* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: "Inter", sans-serif;
  color: #fff;
  background-color: #252527;
  overflow: hidden;
}

/* --- Главный экран --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('kvoae.webp') center center / cover no-repeat;
}

/* Тёмный блок справа */
.overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(to right, rgba(37,37,39,0.7) 0%, rgba(37,37,39,1) 100%);
  backdrop-filter: blur(3px);
}

/* Контент справа */
.content {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40%;
  text-align: left;
}

.text-block h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ECBF89;
  margin-bottom: 15px;
  line-height: 1.3;
  margin-left: 50px;
}

.text-block p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
  margin-left: 50px;
}

/* Кнопка с переливом */
.main-btn {
  background: linear-gradient(270deg, #ECBF89, #d7a961, #ECBF89);
  background-size: 200% 200%;
  color: #252527;
  border: none;
  padding: 14px 40px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(236, 191, 137, 0.3);
  animation: gradientFlow 3s ease infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: 50px;
}

.main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(236, 191, 137, 0.6);
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Футер --- */
footer {
  position: absolute;
  bottom: 25px;
  right: 6%;
  width: 40%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.logo {
  height: 30px;
  opacity: 0.9;
  transform: translateX(55px) translateY(4px);
}

.phone {
  color: #ECBF89;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  margin-left: 65px;
}

.phone:hover {
  text-decoration: underline;
}

/* --- Квиз --- */
.quiz-container {
  position: absolute;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.dark-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: background 0.6s ease, opacity 0.6s ease;
  z-index: 5;
}

.dark-overlay.active {
  background: rgba(0, 0, 0, 0.8);
  opacity: 1;
  pointer-events: all;
}

.quiz-container.active {
  display: flex;
  opacity: 1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url('kvoae.webp') center center / cover no-repeat;
  backdrop-filter: blur(2px);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.slide.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

.slide.prev {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

.slide.active h2, 
.slide.active .options,
.slide.active .contact-form {
  animation: fadeInUp 0.6s ease forwards;
}

h2 {
  margin-bottom: 20px;
  color: #ECBF89;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

button.option, #send-btn {
  background-color: #ECBF89;
  color: #252527;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 0 20px rgba(236, 191, 137, 0.3);
}

button.option:hover, #send-btn:hover {
  box-shadow: 0 0 40px rgba(236, 191, 137, 0.6);
  transform: scale(1.05);
}

.contact-form {
  margin-top: 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.contact-form input {
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  width: 220px;
  font-size: 16px;
}

#slide-thanks {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

/* Мягкое появление текста и кнопок */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- Адаптив --- */
@media (max-width: 1024px) {
  .overlay {
    width: 60%;
  }
  .content {
    width: 80%;
    right: 10%;
  }
}

@media (max-width: 768px) {
  body, html {
    overflow: hidden;
  }

  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    width: 100%;
    background: url('kvoae.webp') center center / cover no-repeat;
    text-align: center;
    padding: 40px 20px 30px 20px;
  }
    /* затемнение только для мобильных */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* затемнение на 70% */
    z-index: 1;
  }

  .hero * {
    z-index: 2; /* чтобы текст и кнопка были поверх */
  }

  /* верхняя часть — логотип и телефон */
  footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    top: 0;
    background: none;
    z-index: 10;
  }

  .logo {
    height: 24px;
    width: auto;
    opacity: 0.95;
  }

  .phone {
    font-size: 15px;
    font-weight: 500;
    color: #ECBF89;
    text-decoration: none;
  }

  /* центральный контент */
  .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    z-index: 5;
  }

  .text-block h1 {
    font-size: 26px;
    color: #ECBF89;
    line-height: 1.4;
    margin-bottom: 15px;
    margin-left: 0;
  }

  .text-block p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    margin-left: 0;
  }

  .main-btn {
    background: linear-gradient(270deg, #ECBF89, #d7a961, #ECBF89);
    background-size: 200% 200%;
    color: #252527;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    animation: gradientFlow 3s ease infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .main-btn:hover {
    transform: scale(1.05);
  }
  
  /* убираем серую полосу */
  .overlay {
    display: none;
  }

  /* чистим от старых смещений */
  .text-block h1,
  .text-block p,
  .main-btn {
    margin-left: 0 !important;
  }

  /* центрируем контент */
  .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 5;
  }

  .text-block h1 {
    font-size: 26px;
    color: #ECBF89;
    margin-bottom: 15px;
    line-height: 1.4;
  }

  .text-block p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
  }

  .main-btn {
    background: linear-gradient(270deg, #ECBF89, #d7a961, #ECBF89);
    color: #252527;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 0 25px rgba(236, 191, 137, 0.3);
    animation: gradientFlow 3s ease infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* --- Контактные кнопки с индивидуальными цветами --- */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-option.whatsapp {
  background-color: #25D366; /* зеленый WhatsApp */
  color: #fff;
}

.contact-option.telegram {
  background-color: #0088cc; /* синий Telegram */
  color: #fff;
}

.contact-option.call {
  background-color: #ECBF89; /* стандартный бежевый */
  color: #252527;
}

.contact-option:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

/* стиль placeholder для номера */
.contact-form input::placeholder {
  color: rgba(0,0,0,0.4);
  font-size: 15px;
}

/* подсветка выбранного способа */
.contact-option.active {
  box-shadow: 0 0 25px rgba(255,255,255,0.4);
  outline: 3px solid rgba(255,255,255,0.5);
  transform: scale(1.05);
}

/* динамическая окраска кнопки отправить */
#send-btn.whatsapp {
  background-color: #25D366;
  color: #fff;
}

#send-btn.telegram {
  background-color: #0088cc;
  color: #fff;
}

#send-btn.call {
  background-color: #ECBF89;
  color: #252527;
}