/* Сброс и базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  min-height: 100vh;
  color: white;
  line-height: 1.6;

  /* Фон сразу на body, без псевдоэлемента */
  background: url("/fon.webp") center center / cover no-repeat fixed;
  background-attachment: fixed;
  -webkit-background-size: cover; /* Для iOS */

  /* Плавное появление при загрузке */
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

/* Анимация плавного появления */
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Шапка */
.header {
  background: rgba(0, 0, 0, 0.47);
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Сетка блоков */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  gap: 2rem;
  justify-content: center;
  width: 100%;
}

/* Карточки */
.feature-card {
  background: rgba(25, 23, 23, 0.53);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* Кнопки */
.cta-button {
  display: inline-block;
  background: rgba(76, 175, 80, 0.66);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1.2rem;
  margin: 2rem 0;
  transition: transform 0.3s;
}

.cta-button.telegram {
  background: rgba(0, 136, 204, 0.77);
}

.cta-button:hover {
  transform: scale(1.05);
}

/* Подвал */
footer {
  background: rgba(0, 0, 0, 0.47);
  color: white;
  text-align: center;
  padding: 1.5rem;
  bottom: 0;
  width: 100%;
}

/* Иконки */
.messenger-logo {
  width: 60px;
  vertical-align: middle;
  margin-right: 10px;
}
