:root {
  --bg: #0b0f1a;
  --card: #161b29;
  --text: #f4f4f4;
  --accent: #ffd600;
  --brand: #3b82f6;
}

* { box-sizing: border-box; }

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1, h2, h3 {
  color: var(--accent);
  margin-top: 0;
}
a { color: var(--brand); text-decoration: none; }

/* Hero */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  background-image: url('./promo_1c/background.png'); /* Фоновое изображение для всего сайта */
  background-size: cover; /* Растягиваем картинку на весь экран */
  background-position: left top; /* Позиционируем изображение по левому верхнему углу */
  background-attachment: fixed; /* Фиксируем фоновое изображение при прокрутке */
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Полупрозрачный черный */
  z-index: -1; /* Помещаем за текст */
}

@media (max-width: 768px) {
  body {
    background-image: none; /* Новая картинка для мобильных устройств */
  }
}

.hero {
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Полупрозрачный черный */
  z-index: -1; /* Помещаем за текст */
}




.hero h1 { font-size: 2.8rem; }
.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}


/* Buttons */
.btn {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  font-weight: 600;
  background: transparent;
  color: var(--text);
  transition: all 0.2s ease-in-out;
}
.btn:hover { background: var(--accent); color: #000; }
.btn.primary { background: var(--accent); color: #000; }
.btn.primary:hover { transform: translateY(-2px); }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,214,0,0.5); }
  50% { box-shadow: 0 0 15px 5px rgba(255,214,0,0.3); }
}

/* Features */
.features .grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(0,0,0,0.4); }
.card.highlight { border: 2px solid var(--accent); }

/* Screenshots */
.screenshot {
  margin-top: 1rem;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}
.screenshot:hover { transform: scale(1.02); }

/* Sections */
section { padding: 3rem 0; }
section h2 { margin-bottom: 1rem; }

/* Animations */
.fade-up, .fade-in { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.fade-in { transform: translateY(0) scale(0.95); }
.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #333;
  color: #aaa;
  font-size: 0.9rem;
}

/* --- Carousel --- */
.carousel-section {
  margin: 60px 0;
  text-align: center;
}

.carousel-wrapper {
  display: flex;
  justify-content: center;  /* центрирование по горизонтали */
  width: 100%;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 900px;
  width: 100%;
}


.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-track img {
  width: 100%;
  flex: 0 0 100%;     /* 👈 каждый слайд ровно 100% контейнера */
  border-radius: 12px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}
.carousel-btn:hover {
  background: rgba(0,0,0,.6);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ===== Gallery header ===== */
.section-title{ margin:0 0 4px; }
.section-lead{ color:var(--muted); margin:0 0 10px; }

/* линия с кнопкой "назад" */
.gallery-line{
  display:flex; align-items:center; justify-content:flex-start;
  margin:8px 0 10px;
}
.back-btn{
  appearance:none; border:1px solid var(--border); background:transparent;
  color:var(--text); font-size:18px; line-height:1; padding:6px 10px; border-radius:10px;
  cursor:pointer; transition:background .2s,border-color .2s; 
}
.back-btn:hover{ background:rgba(255,255,255,.06); border-color:#58678a; }

/* ===== Carousel ===== */
.carousel-wrapper{ display:flex; justify-content:center; width:100%; }
.carousel{
  position:relative; overflow:hidden; border-radius:12px; box-shadow:var(--shadow);
  max-width: 1000px; width:100%;
}
.carousel-track{ display:flex; transition:transform .6s ease-in-out; }
.slide{ flex:0 0 100%; }
.slide img{ display:block; width:100%; height:auto; border-radius:12px; pointer-events:none; }

/* стрелки поверх всего */
.carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  background:rgba(0,0,0,.45); color:#fff; border:none; font-size:24px;
  padding:8px 12px; border-radius:10px; cursor:pointer; transition:background .2s, transform .15s;
}
.carousel-btn:hover{ background:rgba(0,0,0,.65); transform:translateY(-50%) scale(1.04); }
.carousel-btn.prev{ left:10px; }
.carousel-btn.next{ right:10px; }

/* точки-индикаторы */
.carousel-dots{ display:flex; gap:8px; justify-content:center; margin:10px 0 0; }
.carousel-dots button{
  width:8px; height:8px; border-radius:50%; border:0; cursor:pointer; background:#6b748a; opacity:.6;
}
.carousel-dots button[aria-current="true"]{ background:var(--accent); opacity:1; }
