/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

/* ===== Hero (фон и общий контейнер) ===== */
.hero {
  padding: 40px 20px 80px;
  background: radial-gradient(circle at center, #1e1b4b, #000);
  display: flex;
  justify-content: center;
  overflow: visible; /* чтобы растянутое меню не обрезалось */
}

.hero-container {
  width: min(100%, 980px);
  position: relative; /* для центрирования растянутого меню */
}

/* ===== Navbar внутри hero ===== */
.gradient-navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #3a0ca3 0%, #4361ee 50%, #f72585 100%);
  color: #fff;
  padding: 14px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  margin: 0 auto 28px;

  /* +20% ширины и центрирование (десктоп) */
  width: 120%;
  max-width: 1176px;        /* 980 * 1.2 */
  left: 50%;
  transform: translateX(-50%);
}

.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 36px; height: 36px; }
.nav-appname { font-size: 1rem; font-weight: 700; }

.install-btn {
  background: linear-gradient(135deg, #f72585 0%, #4361ee 50%, #3a0ca3 100%);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.install-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.3); }

/* ===== Ряд: текст + видео ===== */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 60px);
}

.hero-content { max-width: 560px; }

.hero-content h1 {
  font-size: 3.6rem;       /* +20% */
  line-height: 1.15;
  margin: 0 0 20px;
  color: #fff;
}

.hero-content p {
  font-size: 1.32rem;      /* +20% */
  color: #ccc;
  margin: 0 0 28px;
}

/* Кнопка возле текста (десктоп) */
.buttons { display: flex; gap: 14px; }
.btn.primary {
  padding: 14.4px 28.8px;  /* +20% */
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  background: #4f46e5;
  color: #fff;
  font-size: 1.2rem;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn.primary:hover {
  transform: scale(1.08);
  background-color: #5a54f3;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* Видео */
.hero-image video {
  width: clamp(240px, 22vw, 300px);
  max-width: 300px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Кнопка под видео: по умолчанию скрыта (десктоп) */
.mobile-cta { display: none; margin-top: 16px; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero { padding: 30px 16px 60px; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-image video { width: clamp(220px, 35vw, 300px); }
}

@media (max-width: 640px) {
  /* Меню на всю ширину и строго по центру */
  .gradient-navbar {
    width: 100%;
    max-width: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 16px;
    border-radius: 14px;
  }
  .nav-logo { width: 32px; height: 32px; }

  /* Контент в колонку */
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Прячем верхнюю кнопку и показываем кнопку под видео */
  .buttons { display: none; }
  .mobile-cta { display: block; }
  .mobile-cta .btn.primary { width: min(92vw, 420px); }

  .hero-image video { width: clamp(260px, 82vw, 340px); }
}


/* ===== Секция Преимущества (Stats) ===== */
:root{
  --stats-bg:
    radial-gradient(1200px 600px at 50% 110%, rgba(79,70,229,.35), transparent 60%),
    radial-gradient(circle at center, #141226 0%, #090909 70%);
  --card-bg: linear-gradient(180deg,#2b2b39 0%, #232332 100%);
  --title: #ffffff;
  --accent: #1f6fff;
  --muted: #bfc2cc;
  --divider: rgba(255,255,255,0.12);
}

.stats{
  background: var(--stats-bg);
  padding: clamp(56px, 8vw, 100px) 20px;
}

.stats__inner{
  max-width: 1200px;
  margin: 0 auto;
}

/* Заголовок */
.stats__title{
  margin: 0 0 28px 0;
  font-size: clamp(28px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--title);
  text-align: center;
}
.stats__title span{ color: var(--accent); }

/* Контейнер карточек (десктоп) */
.stats__card{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;                               /* разделители рисуем псевдоэлементом */
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

/* Одна стат‑ячейка */
.stat{
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(16px, 2.5vw, 24px);
  position: relative;
}

/* Вертикальные разделители на десктопе */
.stat:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 12%;
  right: 0;
  width: 1px;
  height: 76%;
  background: var(--divider);
}

/* Значение + подпись */
.stat__value{
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.stat__label{
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.35;
  color: var(--muted);
}

/* ===== Адаптив: планшеты и телефоны ===== */
@media (max-width: 768px){
  /* вместо одной большой карточки — сетка мини‑карточек */
  .stats__card{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    background: transparent;      /* убираем общий фон-контейнер */
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  .stat{
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
  }

  /* никаих псевдо‑разделителей */
  .stat::after{ display: none !important; }

  /* компактнее типографика */
  .stat__value{
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 6px;
    letter-spacing: .3px;
  }
  .stat__label{
    font-size: 13px;
    line-height: 1.4;
  }

  /* немного ужмём внешние отступы */
  .stats{ padding: 48px 16px; }
  .stats__title{ margin-bottom: 20px; }
}

/* очень узкие телефоны — одна колонка */
@media (max-width: 480px){
  .stats__card{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat{ padding: 14px 12px; }
  .stat__value{ font-size: clamp(26px, 9vw, 36px); }
  .stats__title{ font-size: clamp(24px, 7.5vw, 32px); }
}
/* Секция  преимущества*/
.services {
  background:
    radial-gradient(circle at center, #1e1b4b, #000),
    repeating-linear-gradient(0deg, transparent, transparent 19px, var(--dot-color) 20px);
  padding: clamp(60px, 8vw, 100px) 20px;
}

.services__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Заголовок */
.services__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}
.services__title span {
  color: var(--accent);
}

/* Сетка карточек */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Карточка */
.service-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.service-card h3 {
  font-size: 20px;
  margin: 12px 0 10px;
}
.service-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.4;
}

/* Иконка */
.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 20px;
}


/* ===== Секция Отзывы===== */
.testimonials{
  /* общий фон секции как на скрине */
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(79,70,229,.35), transparent 60%),
    radial-gradient(circle at center, #141226 0%, #090909 70%);
  padding: clamp(60px,8vw,100px) 20px;
  color:#fff;
}

.testimonials__inner{
  max-width:1200px;
  margin:0 auto;
}

.testimonials__title{
  text-align:center;
  font-size: clamp(28px,4.2vw,56px);
  font-weight: 700;
  margin: 0 0 36px;
}
.testimonials__title span{ color:#1f6fff; }

/* сетка карточек */
.testimonials__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.t-card{
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 22px 40px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.t-card__head{ margin-bottom: 14px; }
.t-card__avatar{
  width: 48px; height: 48px; border-radius: 50%;
  display:block; object-fit: cover;
}

/* цитата/заголовок */
.t-card__quote{
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 14px;
}
.t-card__text{
  color:#cfcfcf;
  line-height:1.6;
  margin:0 0 22px;
}

/* низ карточки */
.t-card__footer{
  margin-top: auto;
}
.t-card__stars{
  display:flex; gap:6px; margin-bottom: 12px;
}
.star{
  width:22px; height:22px; fill:#fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}
.t-card__name{ font-weight:700; }
.t-card__role{ color:#bdbdbd; font-size:14px; }

/* адаптив */
@media (max-width: 1024px){
  .testimonials__grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px){
  .testimonials__grid{ grid-template-columns: 1fr; }
  .t-card{ padding:22px; }
  .t-card__quote{ font-size:20px; }
}