body {
  background: url(/img/3-bg.png) no-repeat;
  background-size: cover;
  font-family: "Roboto", sans-serif;
  color: #333;
}

/* Стили для шапки */
.header {
  margin: 10px 15px;
}
.header-background {
  position: relative; /* Контейнер становится родителем для абсолютных элементов */
  overflow: hidden;
  height: 300px;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
/* Фон хэдера */
.header-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* Фон на заднем плане */
  position: absolute;
  top: 0;
  left: 0;
}

header nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}
header nav ul li {
  display: inline;
}
header nav ul li a {
  text-decoration: none;
  color: #333;
}

/* Стили для логотипа  */
.logo-container {
  padding: 10px 0 0 10px; /* Отступ сверху и слева */
  display: inline-block;
}
.logo {
  /* Логотип */
  position: absolute; /* Абсолютное позтционирование */
  top: 20px;
  left: 20px;
  max-width: 80px; /* Ограничение ширины */
  z-index: 10;
  transition: transform 1.1s ease; /* Логотип на переднем плане */
}
.logo:hover {
  transform: scale(1.3);
}
/* Ссылка логотипа*/
.logo-link {
  display: inline-block;
}

/* ===================
   АНИМАЦИЯ
====================== */

/* Анимация заголовка */
@keyframes fadeInScale {
  0% {
    opacity: 0; /* Начинается с прозрачности 0 */
    -webkit-transform: translate(-50%, -50%) scale(0.8); /* Комбинируем translate и scale */
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1; /* Полностью видимый */
    -webkit-transform: translate(-50%, -50%) scale(1); /* Возвращается к нормальному размеру */
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.header-background h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1); /* Добавляем scale */
  color: rgb(58, 189, 189);
  font-family: "Times New Roman", Times, serif;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Тень для лучшей читаемости */
  z-index: 3;
  background: rgba(0, 0, 0, 0);
  padding: 10px 20px;
  border-radius: 5px;
  animation: fadeinScale 2s ease-in-out; /* Применяем анимацию */
  -webkit-animation: fadeInScale 2s ease-in-out;
}
@keyframes fadeInScale {
  0% {
    opasity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    -webkit-transform: translate(-50%, -50%) scale(0.8); /* Для Safari */
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Для Safari */
  }
}

/* =============================
   НАВИГАЦИОННОЕ МЕНЮ
   ============================= */
.header-menu {
  position: sticky;
  top: 0;
  background-color: rgba(216, 218, 150, 0.9); /* Полупрозрачный фон */
  box-shadow: 0 8px 5px rgba(0, 0, 0, 0.5);
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(5px);
  padding: 10px 0;
  transition: background-color 0.3s ease;
}
.header-menu ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: 0;
}
.header-menu a {
  color: rgb(25, 37, 206);
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}
.header-menu a:hover {
  color: #c92121;
}
/* Подсветка активного пункта */
.header-menu a.active {
  color: #523df1;
  border-bottom: 2px solid #1d1c1b;
}
.button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform 0.3s ease;
}
.button:hover {
  transform: scale(1.02);
}
.button:active {
  transform: scale(0.98);
}
/* =======================
            АДАПТИВНОСТЬ
         ======================= */
@media (max-width: 768px) {
  .header-menu ul {
    flex-direction: column;
    align-items: center;
  }
}

.main {
  margin-left: 15px 20px;
}

/* Новая версия футера */
.footer {
  text-align: center;
  padding: 20px 10px;
  background: linear-gradient(
    135deg,
    #a05f5f,
    #7a3c3c
  ); /* градиентный фон, теплые оттенки */
  color: #f8f8f8;
  margin-top: 30px;
  border-top: 4px solid #5a1212;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
  font-size: 14px;
}

.footer a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffd633;
}

/* Добавим небольшой отступ между элементами в футере */
.footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Стили для как начать  */
.howto-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  padding: 30px;
}
.howto-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.howto-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px #0001;
  padding: 22px;
  width: 310px;
  text-align: center;
  transition: transform 0.15s;
}
.howto-card:hover {
  transform: translateY(-4px) scale(1.02);
}
.howto-card img {
  /* height: 56px; */
  margin-bottom: 12px;
}
.howto-faq {
  background: #f7fafc;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 40px 0 10px 0;
}
.howto-assistant {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  font-size: 1.12em;
}
.howto-assistant img {
  width: 52px;
  height: 52px;
}

.howto-headline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
  justify-content: center;
}

.howto-headline {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
  margin-bottom: 32px;
}

.bubble-tail {
  position: absolute;
  left: -28px;
  top: 10px;
  z-index: 1;
  filter: drop-shadow(0 3px 6px #0002);
}

.howto-step-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: none;
  border-radius: 10px;
  box-shadow: 0 1px 4px #0001;
}

.howto-cards-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: none;
  border-radius: 10px;
  box-shadow: 0 1px 4px #0001;
}

.howto-exchange-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 4px;
  /* Можно добавить glow-эффект для красоты: */
  filter: drop-shadow(0 0 6px #ffd90060);
}

.assistant-pulse {
  width: 90px;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-assistant 1.5s infinite;
  background: transparent; /* если фон нужен — можно задать тут */
}
.assistant-head {
  width: 100%;
  height: 100%;
}

@keyframes pulse-assistant {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px #ffdb6000;
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 24px 8px #ffdb6040;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px #ffdb6000;
  }
}

.howto-assistant {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(90deg, #fffde4 0%, #fff7ba 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px #ffe08c30;
    padding: 18px 28px;
    margin-top: 36px;
    margin-bottom: 0;
    font-size: 1.18em;
    font-weight: 500;
    color: #806000;
    border: 1.5px solid #ffe595;
    position: relative;
}

.howto-assistant .assistant-avatar {
    width: 54px;
    height: auto;
}

.howto-assistant b {
    color: #bca200;
    font-weight: 700;
}

/* Плавная анимация*/
.howto-card {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: howtoFadeIn .6s cubic-bezier(.44,1.6,.56,1) forwards;
    /* Чтобы сделать каскад — добавим индивидуальную задержку (через js или nth-child) */
}
@keyframes howtoFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.97);}
    to   { opacity: 1; transform: translateY(0) scale(1);}
}
.howto-card:nth-child(1) { animation-delay: .35s;}
.howto-card:nth-child(2) { animation-delay: .75s;}
.howto-card:nth-child(3) { animation-delay: .95s;}
.howto-card:nth-child(4) { animation-delay: 1.15s;}
.howto-card:nth-child(5) { animation-delay: 1.35s;}
.howto-card:nth-child(6) { animation-delay: 1.55s;}
.howto-card:nth-child(7) { animation-delay: 1.75s;}
.howto-card:nth-child(8) { animation-delay: 1.95s;}


