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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* HEADER */
header {
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  text-align: center;
}

h1 {
  font-size: 28px;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* COMMON CONTENT BLOCKS */
.content-block {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: black;
  margin: 30px auto;
  padding: 30px;
  border-radius: 15px;
  width: 85%;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.offer,
.advantages {
  display: flex;
  background-color: white;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 25px;
  border-radius: 12px;
}

.offer-details,
.advantages-details {
  flex: 1;
  padding-right: 40px;
}

.offer-details h2,
.advantages-details h2 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #2c3e50;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

/* OFFER SECTION */
.offer-details ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.offer-details ul li {
  margin: 15px 0;
  display: flex;
  align-items: center;
  font-size: 18px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.offer-details ul li img {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.countdown {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.countdown p {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
}

#timer {
  font-size: 52px;
  font-weight: 700;
  background: linear-gradient(45deg, #2e8b57, #228b22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Courier New", monospace;
  letter-spacing: 3px;
}

.offer-image,
.advantages-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.offer-image img,
.advantages-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.advantages-image {
  flex-shrink: 0;
  padding-right: 40px;
}

.advantages-image img {
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.note {
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
  color: #666;
  line-height: 1.5;
}

/* ADVANTAGES SECTION */
.advantages-details ul {
  list-style: none;
  padding: 0;
}

.advantages-details p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.advantages-details ul li {
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.advantages-details ul li span {
  background-color: #2e8b57;
  color: white;
  padding: 10px 15px;
  margin-right: 15px;
  border-radius: 50%;
  font-weight: bold;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA BUTTON */
.cta-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.cta-button {
  background: linear-gradient(45deg, #2e8b57, #228b22);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  padding: 22px 60px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(46, 139, 87, 0.4);
  transition: all 0.3s ease;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: linear-gradient(45deg, #228b22, #006400);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(46, 139, 87, 0.6);
}

.cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* REVIEWS */
.reviews {
  display: flex;
  flex-wrap: wrap;
  color: black;
  margin: 30px auto;
  padding: 20px;
  border-radius: 15px;
  width: 85%;
  max-width: 1200px;
  justify-content: space-between;
  align-items: stretch;
  gap: 25px;
}

.review-card {
  background: white;
  border-radius: 12px;
  width: calc(33.333% - 20px);
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.review-card img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.review-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.review-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
  flex-grow: 1;
}

.author {
  font-weight: bold;
  font-style: italic;
  color: #2e8b57;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* FOOTER */
.footer {
  background: linear-gradient(135deg, #444 0%, #333 100%);
  color: white;
  text-align: center;
  padding: 30px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 40px;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  margin: 10px 0;
  line-height: 1.6;
}

a.text:active,
a.text:hover,
a.text {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

a.text:hover {
  color: #2e8b57;
}

/* MODAL QUIZ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  animation: modalOverlayFade 0.4s ease-out;
  overflow: hidden;
}

@keyframes modalOverlayFade {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.85);
  }
}

.modal-content {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  margin: 5% auto;
  padding: 0;
  border-radius: 30px;
  width: 95%;
  max-width: 650px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color: #333;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close {
  position: absolute;
  right: 25px;
  top: 25px;
  z-index: 10;
  color: #666;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close:hover {
  color: #2e8b57;
  background: rgba(46, 139, 87, 0.1);
  transform: rotate(90deg);
}

.body-wrapper {
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
}

/* QUIZ STYLES */
.quiz-container {
  width: 100%;
  text-align: center;
}

.quiz-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(45deg, #2e8b57, #228b22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  line-height: 1.2;
}

.quiz-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  font-weight: 400;
}

.question-number {
  display: inline-block;
  background: linear-gradient(45deg, #2e8b57, #228b22);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  line-height: 35px;
  font-weight: 600;
  font-size: 16px;
  margin-right: 15px;
  margin-bottom: 15px;
}

.question-text {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 18px 25px;
  background: rgba(46, 139, 87, 0.05);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.radio-option:hover {
  background: rgba(46, 139, 87, 0.1);
  transform: translateX(5px);
}

.radio-option.selected {
  background: linear-gradient(45deg, #2e8b57, #228b22);
  color: white;
  border-color: #2e8b57;
}

.radio-option input[type="radio"] {
  margin-right: 15px;
  width: 22px;
  height: 22px;
  accent-color: #2e8b57;
  cursor: pointer;
}

.radio-option label {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

/* PROGRESS BAR */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2e8b57, #228b22);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 3px;
}

/* ФИНАЛЬНАЯ ФОРМА - АДАПТИВНАЯ */
.final-page-container {
  width: 100%;
  padding: 40px 20px;
  display: none;
  flex-direction: column;
  align-items: center;
}

.final-page-text-container {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.final-page-text-container h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(45deg, #2e8b57, #228b22);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  line-height: 1.3;
  padding: 0 10px;
}

.final-page-text-container p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  padding: 0 10px;
}

.final-page-form-container {
  width: 100%;
  padding: 25px 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
}

.field {
  width: 100%;
  height: 55px;
  border: 2px solid #e1e5e9;
  border-radius: 15px;
  padding: 0 15px 0 50px;
  font-size: 16px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  margin-bottom: 15px;
  background-size: 20px !important;
  background-position: 15px center !important;
}

.field:focus {
  outline: none;
  border-color: #2e8b57;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
  transform: translateY(-2px);
}

.field[name="name"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0zm-1 0a7 7 0 1 1-14 0 7 7 0 0 1 14 0zm-7 5c-2.49 0-4.5-1.79-4.5-4h9c0 2.21-2.01 4-4.5 4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
}

.field[name="phone"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39-0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
}

.button {
  width: 100%;
  height: 55px;
  background: linear-gradient(45deg, #2e8b57, #228b22);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(46, 139, 87, 0.3);
  margin-top: 10px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(46, 139, 87, 0.4);
}

.button:active {
  transform: translateY(0);
}

.products_count {
  margin-top: 20px;
  text-align: center;
  padding: 0 10px;
}

.products_count label {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.products_count input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #2e8b57;
  transform: scale(1.1);
  cursor: pointer;
}

/* RESPONSIVE */
@media screen and (max-width: 992px) {
  .offer,
  .advantages {
    flex-direction: column;
    width: 95%;
    padding: 20px;
  }

  .offer-details,
  .advantages-details {
    padding-right: 0;
  }

  .advantages-image {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .review-card {
    width: calc(50% - 15px);
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 24px;
  }

  .offer-details h2,
  .advantages-details h2 {
    font-size: 24px;
  }

  .cta-button {
    padding: 18px 40px;
    font-size: 18px;
  }

  .review-card {
    width: 100%;
  }

  .reviews {
    width: 95%;
  }

  .countdown {
    padding: 15px;
  }

  #timer {
    font-size: 42px;
  }

  .modal-content {
    margin: 10% auto;
    width: 98%;
    border-radius: 20px;
  }

  .body-wrapper,
  .final-page-container {
    padding: 40px 25px;
  }

  .quiz-title {
    font-size: 28px;
  }

  .question-text {
    font-size: 20px;
  }

  .radio-option {
    padding: 15px 20px;
  }

  /* Адаптивные стили для финальной формы */
  .final-page-container {
    padding: 30px 15px;
  }

  .final-page-text-container h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .final-page-text-container p {
    font-size: 15px;
    line-height: 1.4;
  }

  .final-page-form-container {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .field {
    height: 50px;
    padding: 0 15px 0 45px;
    font-size: 15px;
    background-size: 18px !important;
    background-position: 12px center !important;
  }

  .button {
    height: 50px;
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .offer,
  .advantages {
    margin: 10px auto;
    padding: 15px;
  }

  .offer-details ul li,
  .advantages-details ul li {
    font-size: 16px;
  }

  #timer {
    font-size: 36px;
  }

  .modal-content {
    padding: 20px 15px;
    margin: 10% auto;
  }

  /* Адаптивные стили для финальной формы на маленьких экранах */
  .final-page-container {
    padding: 20px 10px;
  }

  .final-page-text-container {
    margin-bottom: 20px;
  }

  .final-page-text-container h1 {
    font-size: 22px;
    padding: 0 5px;
  }

  .final-page-text-container p {
    font-size: 14px;
    padding: 0 5px;
  }

  .final-page-form-container {
    padding: 18px 12px;
    border-radius: 12px;
  }

  .field {
    height: 48px;
    font-size: 14px;
    padding: 0 12px 0 40px;
    background-size: 16px !important;
    background-position: 10px center !important;
  }

  .button {
    height: 48px;
    font-size: 15px;
  }

  .products_count label {
    font-size: 13px;
    line-height: 1.3;
  }
}

@media screen and (max-width: 360px) {
  /* Адаптивные стили для финальной формы на очень маленьких экранах */
  .final-page-text-container h1 {
    font-size: 20px;
  }

  .final-page-text-container p {
    font-size: 13px;
  }

  .field {
    height: 45px;
    font-size: 13px;
  }

  .button {
    height: 45px;
    font-size: 14px;
  }
}

/* ПЛАНШЕТЫ И ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* Адаптивные стили для финальной формы на планшетах */
  .final-page-container {
    padding: 50px 30px;
  }

  .final-page-text-container h1 {
    font-size: 32px;
  }

  .final-page-text-container p {
    font-size: 18px;
  }

  .field {
    height: 60px;
    font-size: 17px;
  }

  .button {
    height: 60px;
    font-size: 19px;
  }
}

/* ДЕСКТОП - БОЛЬШИЕ ЭКРАНЫ */
@media screen and (min-width: 1025px) {
  /* Адаптивные стили для финальной формы на десктопах */
  .final-page-container {
    padding: 60px 40px;
  }

  .final-page-text-container h1 {
    font-size: 36px;
  }

  .final-page-text-container p {
    font-size: 20px;
  }
}
