*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-attachment: fixed;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

a,
.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 0 1rem;
}

.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: fixed !important; /* Фиксированная позиция, не двигается при скролле НИКОГДА */
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 100000;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
  animation: slideDown 0.5s ease-out;
  width: 100%;
  display: block;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: translateY(0);
  opacity: 1;
  will-change: transform; /* Оптимизация для анимации */
}

/* Переопределяем transition для скрытого состояния */
.topbar.hidden {
  transition: transform 0.3s ease-in-out !important, opacity 0.3s ease-in-out !important;
}

.topbar.hidden {
  transform: translateY(-100%) !important; /* Принудительно скрываем header */
  opacity: 0 !important;
  pointer-events: none !important;
}

/* На мобильных устройствах header всегда виден */
@media (max-width: 768px) {
  .topbar.hidden {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 200px;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.brand__logo img {
  height: 100%;
  width: auto;
  display: block;
  max-height: 200px;
}

.brand__logo:hover {
  transform: scale(1.05);
  box-shadow: none;
}

.brand__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.brand__subtitle {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 1;
}

.nav__link {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.nav__link:hover::before {
  left: 100%;
}

.nav__link:hover {
  background-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.nav__link--accent {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 600;
}

.nav__link--accent:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 5rem 0 4rem;
  position: relative;
  animation: fadeInUp 0.8s ease-out;
}

#how-it-works {
  background: #f8fafc;
  background-image: none;
  padding-top: 0 !important;
  padding-bottom: 4rem !important;
  margin-top: -1px !important; /* Негативный margin для устранения визуальной линии */
  margin-bottom: 0 !important;
  border-top: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1;
}

#how-it-works.section.hero {
  padding-top: 0 !important;
  padding-bottom: 4rem !important;
  margin-top: -1px !important;
  border-top: none !important;
}

.hero--landing {
  padding-top: 14rem; /* Увеличен отступ для header высотой ~200px + padding */
  padding-bottom: 0 !important; /* Убран нижний padding для уменьшения расстояния до кнопок */
  margin-bottom: 0 !important;
  background: #f8fafc;
  background-image: none;
  width: 100%;
  display: block;
  border-bottom: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 1;
}

.hero--landing::after {
  display: none !important;
  content: none !important;
}

.hero--blue {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  color: #0f172a;
  padding: 8rem 0;
  margin: 0;
  position: relative;
}

.hero--cta-intermediate {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 6rem 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.hero--cta-intermediate::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 4s ease-in-out infinite;
}

.hero--cta-intermediate .hero__content {
  position: relative;
  z-index: 1;
}

.hero--cta-intermediate .hero__title--medium {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}

.hero--cta-intermediate .hero__subtitle--medium {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__title--medium {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #0f172a;
  font-weight: 700;
}

.hero__subtitle--medium {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #64748b;
}

/* Стили для кнопок в промежуточной CTA секции */
.hero--cta-intermediate .btn--primary {
  background: #fff;
  color: #667eea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero--cta-intermediate .btn--primary:hover {
  background: #f8fafc;
  color: #5568d3;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero--cta-intermediate .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero--cta-intermediate .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero--fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__inner--centered {
  text-align: center;
}

.hero__content--centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__content {
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Центрирование контента на главной странице */
.hero--landing .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  text-align: left;
  align-items: flex-start;
  margin: 0 auto;
  padding-left: 5rem;
}

.hero__title--large {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #0f172a;
  font-weight: 700;
}

.hero__subtitle--large {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #64748b;
}

.hero__cta--centered {
  justify-content: center;
  gap: 1.5rem;
}

.btn--white {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border: 2px solid transparent;
}

.btn--white:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn--white-border {
  background: transparent;
  color: #0f172a;
  border: 2px solid rgba(15, 23, 42, 0.2);
}

.btn--white-border:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(37, 99, 235, 0.3);
  color: #0f172a;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
  max-width: 100%;
  overflow-x: hidden;
}

/* Специфичный стиль для секции с видео - видео занимает всё правое пространство */
.hero--landing .container {
  width: min(1600px, 90vw) !important;
  margin: 0 auto !important;
  padding: 0 2rem;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Стили для элемента, который является одновременно container и hero__inner */
.hero--landing .container.hero__inner {
  width: min(1600px, 90vw) !important;
  margin: 0 auto !important;
  padding: 0 2rem;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(300px, 400px) minmax(500px, 600px);
  align-items: center;
  justify-content: center;
  gap: 10rem;
  place-items: center;
  justify-items: center;
}

.hero--landing .hero__inner {
  grid-template-columns: minmax(300px, 400px) minmax(500px, 600px);
  align-items: center;
  justify-content: center;
  gap: 10rem;
  margin: 0;
  place-items: center;
  justify-items: center;
  width: 100%;
  display: grid;
  max-width: 100%;
  overflow-x: visible;
}

/* Независимый контейнер для видео, центрированный на всей странице */
.hero--landing .hero__video--independent {
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto 3rem !important; /* Увеличен нижний отступ, чтобы нижний край облаков не срезался */
  padding: 0 !important;
  padding-top: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
}

.hero--landing .hero__video--independent .hero__panel--video {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important; /* Убран отступ снизу, так как пузыри теперь рядом */
  min-height: 300px !important; /* Минимальная высота для предотвращения срезания нижнего края облаков */
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  padding: 0 !important;
}

.hero--landing .hero__video--independent .hero__panel--video-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  height: auto !important;
  flex: none !important;
  transform: none !important;
  -webkit-transform: none !important;
}


@media (max-width: 768px) {
  .hero--landing .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
  }

  .hero--landing .hero__cta--independent {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .hero--landing .hero__cta--independent .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.hero__content h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #0f172a;
  text-shadow: none;
  background: transparent;
  word-spacing: normal;
  hyphens: none;
  white-space: normal;
}

/* Уменьшенный размер заголовка для секции demo */
.section--alt .hero__content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.hero__content p {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: #334155;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.hero--landing .hero__cta {
  justify-content: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
}

/* Независимый контейнер для текста, центрированный на всей странице */
.hero--landing .hero__text--independent {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto 5rem auto; /* Увеличен отступ снизу для размещения разделителя ближе к облакам */
  padding: 0 2rem;
  box-sizing: border-box;
  text-align: center;
}

.hero--landing .hero__text--independent .eyebrow {
  text-align: center;
}

.hero--landing .hero__text--independent h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero--landing .hero__text--independent p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* Независимый контейнер для кнопок, центрированный на всей странице */
.hero--landing .hero__cta--independent {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem auto 0 !important; /* Убран нижний отступ, чтобы убрать полоску */
  width: 100%;
  max-width: 1600px;
  padding: 0 2rem 1rem 2rem !important; /* Добавлен padding-bottom, чтобы кнопки не обрезались */
  box-sizing: border-box;
  overflow: visible !important; /* Убираем обрезку кнопок */
}

/* Убираем тени и обрезку у кнопок в hero__cta--independent */
.hero--landing .hero__cta--independent .btn {
  overflow: visible !important; /* Убираем обрезку кнопок */
}

.hero--landing .hero__cta--independent .btn:hover {
  box-shadow: none !important; /* Убираем тень при наведении */
}

.hero--landing .hero__cta--independent .btn--primary {
  box-shadow: none !important;
}

.hero--landing .hero__cta--independent .btn--primary:hover {
  box-shadow: none !important;
}

.hero--landing .hero__cta--independent .btn--ghost {
  box-shadow: none !important;
}

.hero--landing .hero__cta--independent .btn--ghost:hover {
  box-shadow: none !important;
}
}

.hero__panel--video {
  position: relative;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent;
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
  margin: 0 auto;
  padding: 0;
  min-height: 400px;
  max-height: 600px;
  height: 100%;
  max-width: 100%;
  width: 100%;
  z-index: 0;
  contain: layout style paint;
}

/* Внутренняя обёртка с border-radius для скрытия обводки */
.hero__panel--video-inner {
  position: relative;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  margin: -4px;
  border-radius: 24px;
  overflow: visible !important;
  background: transparent;
  display: flex;
  flex-direction: column;
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 1.5rem 1.5rem 0 1.5rem; /* Убран нижний padding для уменьшения расстояния */
  box-sizing: border-box !important;
  align-items: center;
  justify-content: center;
  /* Увеличиваем отрицательный margin для полного перекрытия обводки в углах */
}

/* Псевдоэлемент для перекрытия обводки в углах */
.hero__panel--video-inner::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: transparent;
  border-radius: 26px;
  z-index: -1;
  pointer-events: none;
  /* Дополнительная обрезка через clip-path */
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}

.hero__panel--video * {
  border: none !important;
  outline: none !important;
  position: relative;
  z-index: 1;
}



/* Стили для интерактивных облаков */
.cloud-container {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 1.5rem 1.5rem 0 1.5rem; /* Убран нижний padding для уменьшения расстояния до кнопок */
  min-height: auto; /* Убрана фиксированная высота */
}

.cloud {
  flex: 1;
  max-width: 400px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cloud.cloud--visible {
  opacity: 1;
  transform: translateY(0);
}

.cloud--1 {
  animation-delay: 0.1s;
}

.cloud--2 {
  animation-delay: 0.3s;
}

.cloud__speaker {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.cloud__message {
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #0f172a;
  line-height: 1.5;
  font-size: 0.9375rem;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12), 0 1px 3px rgba(37, 99, 235, 0.08);
  backdrop-filter: blur(10px);
  font-family: "Inter", "Segoe UI", sans-serif;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

.cloud--2 .cloud__message {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.08));
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12), 0 1px 3px rgba(124, 58, 237, 0.08);
}

.cloud__message:hover {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18), 0 2px 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.cloud--2 .cloud__message:hover {
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.18), 0 2px 4px rgba(124, 58, 237, 0.12);
}

/* Мобильная версия: вертикально с отступом */
@media (max-width: 768px) {
  .cloud-container {
    flex-direction: column;
    align-items: flex-start; /* Выравнивание по левому краю для отступа слева */
    gap: 1rem;
    padding: 1rem 1rem 0 1.5rem; /* Увеличен левый padding для отступа от края */
  }

  .cloud {
    max-width: calc(100% - 1.5rem); /* Учитываем padding контейнера */
    width: 100%;
  }

  .cloud--1 {
    transform: translateX(0) translateY(20px); /* Убрано смещение влево, так как есть padding */
  }

  .cloud--1.cloud--visible {
    transform: translateX(0) translateY(0);
  }

  .cloud--2 {
    transform: translateX(20px) translateY(20px); /* Смещение вправо относительно левого облака */
  }

  .cloud--2.cloud--visible {
    transform: translateX(20px) translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 1.2vw, 1rem) clamp(1.6rem, 2.5vw, 2rem);
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.6s ease;
  opacity: 0;
}

.btn:hover::before {
  transform: scale(1);
  opacity: 1;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(-1px) scale(1.02);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 10px 25px -15px rgba(37, 99, 235, 0.4);
  position: relative;
  z-index: 1;
}

.btn--primary::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border-radius: inherit;
}

.btn--primary:hover {
  box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.btn--ghost {
  border-color: rgba(15, 23, 42, 0.2);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn--ghost:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.hero__stats span {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1d4ed8;
}

.panel {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px -35px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 60px -30px rgba(15, 23, 42, 0.25);
}

.panel h2 {
  margin-top: 0;
}

.panel__conversation {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 1rem;
}

.panel__conversation.empty {
  color: #94a3b8;
}

.panel__message {
  background: rgba(37, 99, 235, 0.12);
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.panel__message--alt {
  background: rgba(124, 58, 237, 0.12);
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: #fff;
}

.section h2 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.features {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 26px -22px rgba(15, 23, 42, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.25);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature--compact {
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.8rem;
}

.timeline--large li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: flex-start;
}

.timeline--large h3 {
  margin-top: 0;
}

.timeline__step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.conversation-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.conversation-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.25rem;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.5);
}

.conversation-meta {
  font-size: 0.9rem;
  color: #64748b;
}

.conversation-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.conversation-viewer {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.55);
}

.conversation-viewer.hidden {
  display: none;
}

.conversation-viewer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.conversation-viewer__body {
  max-height: 420px;
  overflow: auto;
  overflow-x: hidden !important;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

.conversation-viewer__body::-webkit-scrollbar {
  width: 8px;
}

.conversation-viewer__body::-webkit-scrollbar-track {
  background: transparent;
}

.conversation-viewer__body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3));
  border-radius: 4px;
}

.conversation-viewer__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(124, 58, 237, 0.5));
}

.conversation-viewer__body--standalone {
  max-height: none;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.45);
  padding: 2rem;
  min-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
  overflow-x: hidden;
  box-sizing: border-box;
}

.conversation-viewer__body--standalone::-webkit-scrollbar {
  width: 8px;
}

.conversation-viewer__body--standalone::-webkit-scrollbar-track {
  background: transparent;
}

.conversation-viewer__body--standalone::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3));
  border-radius: 4px;
}

.conversation-viewer__body--standalone::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(124, 58, 237, 0.5));
}

.bubble {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0;
  margin-bottom: 1rem;
  position: relative;
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Inter", "Segoe UI", sans-serif;
  font-feature-settings: "liga" off;
  text-rendering: optimizeLegibility;
}

.bubble--left {
  justify-content: flex-start;
}

.bubble--right {
  justify-content: flex-end;
}

.bubble:nth-child(1) { animation-delay: 0.05s; }
.bubble:nth-child(2) { animation-delay: 0.1s; }
.bubble:nth-child(3) { animation-delay: 0.15s; }
.bubble:nth-child(4) { animation-delay: 0.2s; }
.bubble:nth-child(5) { animation-delay: 0.25s; }
.bubble:nth-child(6) { animation-delay: 0.3s; }
.bubble:nth-child(7) { animation-delay: 0.35s; }
.bubble:nth-child(8) { animation-delay: 0.4s; }
.bubble:nth-child(9) { animation-delay: 0.45s; }
.bubble:nth-child(10) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bubble__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.bubble--alt .bubble__avatar {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.bubble__content {
  flex: 1;
  min-width: 0;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.bubble__speaker {
  font-weight: 700;
  font-size: 0.875rem;
  color: #1e293b;
  margin: 0;
  padding: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.bubble--alt .bubble__speaker {
  color: #1e293b;
}

.bubble__message {
  padding: 1rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #0f172a;
  line-height: 1.5;
  font-size: 0.9375rem;
  font-weight: 400;
  position: relative;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12), 0 1px 3px rgba(37, 99, 235, 0.08);
  word-wrap: break-word;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  font-family: "Inter", "Segoe UI", sans-serif;
}

.bubble__message:hover {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18), 0 2px 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.1));
}

.bubble--alt .bubble__message {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.08));
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12), 0 1px 3px rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(10px);
  color: #0f172a;
  font-family: "Inter", "Segoe UI", sans-serif;
}

.bubble--alt .bubble__message:hover {
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.18), 0 2px 4px rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.1));
}

.bubble--right .bubble__content {
  align-items: flex-end;
}

.bubble--right .bubble__speaker {
  text-align: right;
  color: #1e293b;
}

.watermark {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(15, 23, 42, 0.5);
}

.cta {
  text-align: center;
  max-width: 640px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2.5rem 0;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.footer__links {
  display: flex;
  gap: 1rem;
}

.footer a {
  color: #cbd5f5;
  font-size: 0.9rem;
}

.placeholder {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.4);
}

.auth-page {
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.08), transparent 55%), #f8fafc;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.auth {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.auth__panel {
  background: #fff;
  padding: 2.5rem;
  border-radius: 24px;
  width: min(600px, 100%);
  max-width: 100%;
  box-shadow: 0 24px 70px -45px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: grid;
  gap: 1.75rem;
  animation: fadeInScale 0.6s ease-out;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: auto;
}

@media (max-width: 480px) {
  .auth__panel {
    padding: 1.5rem;
    width: 100%;
    margin: 0;
    border-radius: 16px;
  }
  
  .auth {
    padding: 1rem;
  }
  
  .auth__terms {
    padding: 0.75rem !important;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.auth__header h1 {
  margin: 0 0 0.35rem;
}

.auth__form {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: auto;
}

.auth__form > label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: #0f172a;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth__form input,
.auth__form select,
.auth__form textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.4);
}

.auth__oauth {
  display: grid;
  gap: 0.75rem;
}

.auth__terms {
  display: block !important;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 500;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: auto !important;
}

.auth__terms {
  display: block !important;
  visibility: visible !important;
}

.auth__terms label,
.auth__terms-label {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  cursor: pointer !important;
  margin-bottom: 1rem !important;
  font-weight: normal !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.auth__terms span {
  display: block !important;
  width: 100% !important;
  flex: 1 !important;
  min-width: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.auth__terms input[type="checkbox"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
}

.auth__terms input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.auth__footer {
  color: #475569;
  text-align: center;
}

.onboarding {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.onboarding__content {
  display: grid;
  gap: 1.25rem;
}

.onboarding__form {
  display: grid;
  gap: 1.25rem;
}

.dropzone {
  border: 2px dashed rgba(37, 99, 235, 0.3);
  border-radius: 18px;
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
  text-align: center;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}

.dropzone input {
  display: none;
}

.onboarding textarea {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1rem;
  resize: vertical;
  font-family: inherit;
}

.onboarding__preview {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 50px -35px rgba(15, 23, 42, 0.5);
  display: grid;
  gap: 1.25rem;
}

.onboarding__chat {
  gap: 1.75rem;
}

.chat-window {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 25px 60px -40px rgba(15, 23, 42, 0.55);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 380px;
}

.chat-window__messages {
  display: grid;
  gap: 0.75rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.chat-bubble {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  line-height: 1.5;
  font-size: 0.95rem;
  display: grid;
  gap: 0.25rem;
  max-width: 100%;
  box-shadow: 0 10px 30px -22px rgba(15, 23, 42, 0.45);
  font-family: "Inter", "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.chat-bubble strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chat-bubble--ai {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  animation: slideInLeft 0.4s ease-out;
}

.chat-bubble--user {
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chat-window__input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.chat-window__input input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.75rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.onboarding__tips {
  align-content: start;
}

.tips-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: #475569;
  font-size: 0.95rem;
}

.onboarding__footer {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.tone-grid {
  display: grid;
  gap: 1rem;
}

.tone-grid label {
  display: grid;
  gap: 0.4rem;
}

.tone-grid input[type="range"] {
  accent-color: #2563eb;
}

.charter {
  display: grid;
  gap: 0.9rem;
}

.charter__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.charter__warning {
  margin-top: 1.5rem;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
  font-weight: 600;
}

.charter__summary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: #475569;
}

.swipe {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.swipe__filters {
  grid-column: 1;
  grid-row: 1;
}

.swipe__deck {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.swipe-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px -30px rgba(15, 23, 42, 0.3),
              0 0 0 1px rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.swipe-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 80px -35px rgba(37, 99, 235, 0.3),
              0 0 0 1px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.3);
}

.swipe-card__photo {
  width: 50%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 12px 40px -20px rgba(15, 23, 42, 0.4);
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 0.5rem;
}

.swipe-card__info {
  padding: 1.75rem 1.5rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.95) 10%);
}

.swipe-card__info h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.swipe-card__distance {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.2);
}

.swipe-card__info p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.swipe-card__scripts {
  display: none;
}

.swipe-card[data-profile] .swipe-card__scripts span {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #475569;
}

.swipe-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 600px);
  max-height: 85vh;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 40px 120px -60px rgba(15, 23, 42, 0.65);
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  z-index: 1001;
  overflow-y: auto;
  pointer-events: auto;
}

.swipe-panel.hidden {
  display: none;
}

.swipe-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  pointer-events: auto;
}

.swipe-panel-overlay.active {
  display: block;
}

.swipe-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swipe-panel__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.compatibility-section {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.compatibility-section.hidden {
  display: none;
}

.compatibility-score {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(14, 165, 233, 0.2);
}

.compatibility-score__value {
  font-size: 3rem;
  font-weight: 700;
  color: #0ea5e9;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.compatibility-score__label {
  font-size: 0.9rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compatibility-analysis {
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
}

.compatibility-details {
  display: grid;
  gap: 1rem;
}

.compatibility-strengths,
.compatibility-concerns {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
}

.compatibility-strengths h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  color: #059669;
  font-weight: 600;
}

.compatibility-concerns h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  color: #dc2626;
  font-weight: 600;
}

.compatibility-strengths ul,
.compatibility-concerns ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #475569;
}

.compatibility-strengths li,
.compatibility-concerns li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.btn--secondary {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px -12px rgba(14, 165, 233, 0.4);
}

.btn--secondary:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(14, 165, 233, 0.5);
}

.btn--secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.matches__list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.matches__item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.4);
}

.matches__item img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: contain;
  background-color: #f1f5f9;
}

.chat__layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.5rem;
}

.chat__sidebar {
  background: #fff;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.chat__sidebar ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.chat__sidebar li {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
}

.chat__sidebar li.active {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
  font-weight: 600;
}

.chat__window {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 100px -50px rgba(102, 126, 234, 0.4), 0 0 60px rgba(255, 107, 107, 0.2);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}


.chat__window-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat__history {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  overflow-y: auto;
  font-family: "Inter", "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.suggestion {
  background: rgba(34, 197, 94, 0.12);
}

.chat__composer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  position: relative;
  overflow: visible;
}

.chat__composer input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.85rem;
}

.chat__composer .emoji-btn {
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  min-width: auto;
  line-height: 1;
}

.emoji-panel {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  width: 400px;
  max-width: calc(100vw - 3rem);
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
  max-height: 300px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.emoji-panel.show {
  display: flex;
}

.emoji-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.emoji-panel__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.emoji-panel__close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #1e293b;
}

.emoji-panel__content {
  padding: 1rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.5rem;
  max-height: 250px;
}

.emoji-item {
  font-size: 1.8rem;
  padding: 0.5rem;
  cursor: pointer;
  text-align: center;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
  user-select: none;
}

.emoji-item:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: scale(1.1);
}

.emoji-item:active {
  transform: scale(0.95);
}

.chat__window {
  position: relative;
  overflow: visible;
}

.profile {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(200px, 1fr) 2.5fr;
}

.profile__sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 40px -20px rgba(102, 126, 234, 0.3);
}

.profile__sidebar ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.profile__main {
  display: grid;
  gap: 1.5rem;
}

.profile__card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 60px -30px rgba(102, 126, 234, 0.3), 0 0 40px rgba(255, 107, 107, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.profile__card:hover::before {
  left: 100%;
}

.profile__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px -30px rgba(102, 126, 234, 0.4), 0 0 50px rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.3);
}

.profile__card--danger {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.profile__stats {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.clone-data {
  display: grid;
  gap: 1.25rem;
}

.clone-data h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  color: #1e293b;
}

.clone-data h4 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1rem;
  color: #334155;
  font-weight: 600;
}

.clone-data h4:first-child {
  margin-top: 0;
}

.clone-data__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.clone-data__item:last-child {
  border-bottom: none;
}

.clone-data__item strong {
  color: #475569;
  margin-right: 0.5rem;
}

.clone-data__quotes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.clone-data__quotes li {
  padding: 0.75rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 8px;
  border-left: 3px solid #2563eb;
  transition: all 0.3s ease;
}

.clone-data__quotes li:hover {
  transform: translateX(3px);
  background: rgba(37, 99, 235, 0.08);
}

.clone-data__quotes li strong {
  color: #2563eb;
  display: block;
  margin-bottom: 0.25rem;
}

.legal {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  position: relative;
}

.legal__content {
  max-width: 720px;
}

.legal__content h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.legal__content h2 {
  margin-top: 2rem;
}

.legal__content ul {
  padding-left: 1.25rem;
}

.legal__warning {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.legal__warning p {
  margin: 0.5rem 0;
}

.legal__warning p:first-child {
  margin-top: 0;
}

.legal__warning p:last-child {
  margin-bottom: 0;
}

.legal__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #666;
}

/* Мобильное меню (гамбургер) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  z-index: 100000;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f172a;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99998;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  will-change: transform;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu__nav .nav__link {
  padding: 0.75rem;
  font-size: 0.9rem;
  border-radius: 12px;
  text-align: center;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .topbar {
    position: fixed !important; /* На мобильных тоже фиксирован */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100000;
    width: 100%;
    display: block;
  }

  .topbar {
    padding: 0;
  }

  .topbar__inner {
    padding: 0.3rem 0;
    min-height: auto;
    max-height: 80px;
    align-items: center;
    overflow: visible;
  }

  .topbar {
    overflow: visible;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 0.5rem;
    align-items: center;
  }

  .brand__logo {
    height: 120px;
  }

  .brand__logo img {
    max-height: 120px;
  }

  .brand__subtitle {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    line-height: 1.2;
  }

  .brand__text {
    min-width: 0;
    overflow: hidden;
  }

  .hero {
    padding-top: 4rem;
  }

  .conversation-viewer__body {
    max-height: none;
  }

  .bubble__avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .bubble__message {
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
  }


  .conversation-viewer__body--standalone {
    padding: 1.5rem;
  }

  .swipe {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .swipe__filters {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
  }

  .swipe__deck {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .swipe-card {
    max-width: 100%;
    width: 100%;
  }

  .swipe-panel {
    width: 95vw;
    max-height: 90vh;
    padding: 1.25rem;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .profile__sidebar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
  }

  .profile__main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .profile__card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.25rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  #userNameContainer {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
    margin-bottom: 1rem !important;
  }

  .profile__sidebar,
  .profile__main {
    grid-row: auto !important;
  }

  .section {
    padding: 2rem 0;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .chat__layout {
    grid-template-columns: 1fr;
  }

  .chat__sidebar {
    display: none;
  }
}

/* ============================================================================
   Уведомления о новых сообщениях
   ============================================================================ */

.chat-notifications-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  pointer-events: none;
}

.chat-notification {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  pointer-events: auto;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  animation: slideInNotification 0.3s ease forwards;
}

.chat-notification--show {
  transform: translateX(0);
  opacity: 1;
}

@keyframes slideInNotification {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.chat-notification__content {
  flex: 1;
  display: grid;
  gap: 0.5rem;
}

.chat-notification__title {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.chat-notification__message {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-notification__close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.chat-notification__close:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.chat-notification__close:active {
  background: rgba(148, 163, 184, 0.25);
}

/* Анимация пульсации для привлечения внимания */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.3);
  }
  50% {
    box-shadow: 0 20px 50px -30px rgba(37, 99, 235, 0.3), 0 0 0 4px rgba(37, 99, 235, 0.1);
  }
}

.chat-notification:first-child {
  animation: slideInNotification 0.3s ease forwards, pulse 2s ease infinite;
}

.chat-notification:hover {
  transform: translateX(-3px);
  box-shadow: 0 25px 60px -25px rgba(15, 23, 42, 0.35);
}

@media (max-width: 768px) {
  .chat-notifications-container {
    top: 60px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .chat-notification {
    padding: 0.875rem 1rem;
  }
  
  .chat-notification__title {
    font-size: 0.9rem;
  }
  
  .chat-notification__message {
    font-size: 0.8rem;
  }
}

/* Визуальный разделитель в hero секции */
.hero__visual-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4rem;
  width: 100%;
  max-width: 600px;
  padding: 0 2rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1; /* Ниже header */
}

.hero__hearts-match {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: visible;
  margin: 2rem 0 1rem 0; /* Убран отрицательный margin, чтобы не перекрывать header */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ниже header, чтобы не перекрывать его */
}

.heart {
  position: absolute;
  width: 70px;
  height: 70px;
  z-index: 1; /* Ниже header, чтобы не перекрывать его */
  filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.6));
  animation: heartFloat 4s ease-in-out infinite;
}

.hearts__compatibility {
  position: absolute;
  left: 50%;
  top: calc(100% - 16px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1; /* Ниже header */
  pointer-events: none;
}

.hearts__compatibility-percent {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hearts__compatibility-label {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 500;
  color: #64748b;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.heart--left {
  left: calc(50% - 120px);
  animation-name: heartMoveLeft;
  animation-delay: 0s;
}

.heart--right {
  right: calc(50% - 120px);
  animation-name: heartMoveRight;
  animation-delay: 0s;
}

.heart svg {
  width: 100%;
  height: 100%;
  animation: heartPulse 2s ease-in-out infinite;
}

.hearts__spark {
  position: absolute;
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #7c3aed 0%, #ec4899 50%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  left: 50%;
  top: 50%;
  animation: heartsSparkFly 3s ease-out infinite;
}

.hearts__spark--1 {
  animation-delay: 0s;
  --spark-x: -50;
  --spark-y: -40;
}

.hearts__spark--2 {
  animation-delay: 0.3s;
  --spark-x: 60;
  --spark-y: -30;
}

.hearts__spark--3 {
  animation-delay: 0.6s;
  --spark-x: -40;
  --spark-y: 50;
}

.hearts__spark--4 {
  animation-delay: 0.9s;
  --spark-x: 45;
  --spark-y: 40;
}

.hearts__spark--5 {
  animation-delay: 1.2s;
  --spark-x: 25;
  --spark-y: -55;
}

.hearts__spark--6 {
  animation-delay: 1.5s;
  --spark-x: -35;
  --spark-y: 60;
}

@keyframes heartMoveLeft {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, -20px) scale(1.1);
  }
  50% {
    transform: translate(70px, 0) scale(1.2);
  }
  75% {
    transform: translate(40px, 20px) scale(1.1);
  }
}

@keyframes heartMoveRight {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-40px, -20px) scale(1.1);
  }
  50% {
    transform: translate(-70px, 0) scale(1.2);
  }
  75% {
    transform: translate(-40px, 20px) scale(1.1);
  }
}


@keyframes heartFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes heartsSparkFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(var(--spark-x, 0) * 1px),
      calc(var(--spark-y, 0) * 1px)
    ) scale(0);
  }
}

@media (max-width: 768px) {
  .hero--landing .hero__text--independent {
    margin-bottom: 2rem;
  }

  .hero__visual-divider {
    margin: 0 auto 2rem;
    padding: 0 1rem;
  }

  .hero__hearts-match {
    height: 120px;
    margin: -30px 0 3rem 0;
  }

  .heart {
    width: 40px;
    height: 40px;
  }

  .heart--left {
    left: calc(50% - 65px);
  }

  .heart--right {
    right: calc(50% - 65px);
  }

  @keyframes heartMoveLeft {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    50% {
      transform: translate(35px, 0) scale(1.2);
    }
  }

  @keyframes heartMoveRight {
    0%, 100% {
      transform: translate(0, 0) scale(1);
    }
    50% {
      transform: translate(-35px, 0) scale(1.2);
    }
  }
}

/* Индикатор прокрутки */
.scroll-indicator {
  position: absolute;
  bottom: -3rem; /* Перемещено ниже кнопок */
  left: 50%;
  transform: translateX(-50%);
  color: rgba(37, 99, 235, 0.6);
  animation: bounceScroll 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  color: #2563eb;
  transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator svg {
  display: block;
}

@keyframes bounceScroll {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.8; /* Увеличена видимость */
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
}

/* Плавная прокрутка между секциями */
.hero {
  scroll-margin-top: 80px;
}

@media (max-width: 480px) {
  body {
    padding-top: 70px;
  }

  .topbar__inner {
    padding: 1rem 0;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero--landing .hero__cta--independent {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero--landing .hero__cta--independent .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .section {
    padding: 3rem 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  
  .chat-notifications-container {
    top: 50px;
    right: 8px;
    left: 8px;
  }

  .scroll-indicator {
    bottom: -2rem; /* Перемещено ниже кнопок на мобильных */
  }
}

/* ============================================================================
   Дополнительные интерактивные эффекты
   ============================================================================ */

/* Улучшенные эффекты для карточек совпадений */
.matches__item {
  transition: all 0.3s ease;
  position: relative;
}

.matches__item:hover {
  transform: translateX(3px);
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.25);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Эффект для конверсационных карточек */
.conversation-card {
  transition: all 0.3s ease;
}

.conversation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -20px rgba(15, 23, 42, 0.25);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Улучшенные эффекты для форм */
.auth__form input:focus,
.auth__form select:focus,
.auth__form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

/* Улучшенные эффекты для панелей */
.swipe-panel {
  animation: slideInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.swipe-panel-overlay.active {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Эффект для dropzone */
.dropzone {
  transition: all 0.3s ease;
}

.dropzone:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.05);
}

/* Улучшенные эффекты для чата */
.chat__window {
  animation: fadeInUp 0.6s ease-out;
}

.chat__history {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 107, 0.3) transparent;
}

.chat__history::-webkit-scrollbar {
  width: 8px;
}

.chat__history::-webkit-scrollbar-track {
  background: transparent;
}

.chat__history::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 4px;
}

.chat__history::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

/* ============================================================================
   Страница "Как это работает"
   ============================================================================ */

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works__step {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 30px -20px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.how-it-works__step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -25px rgba(15, 23, 42, 0.25);
  border-color: rgba(37, 99, 235, 0.3);
}

.how-it-works__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-it-works__icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: none;
  outline: none;
}

.how-it-works__step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #0f172a;
}

.how-it-works__step p {
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 2rem 0;
  flex: 1;
}

.how-it-works__step-icon-bottom {
  width: 64px;
  height: 64px;
  margin-top: auto;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .how-it-works__step {
    padding: 2rem 1.5rem;
  }
}

/* ГАРАНТИРОВАННАЯ ФИКСАЦИЯ HEADER НА ДЕСКТОПЕ - фиксирован, но может скрываться */
@media (min-width: 769px) {
  .topbar {
    position: fixed !important; /* Фиксирован вверху */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* На десктопе header скрывается при прокрутке через класс .hidden */
  .topbar.hidden {
    transform: translateY(-100%) !important; /* Принудительно скрываем header вверх */
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

