body {
  background: linear-gradient(135deg, #0e0a2f 0%, #241457 70%, #6326e1 100%);
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0; padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: 1140px;
  padding: 0 20px;
  margin: 0 auto;
}
.header {
  background: rgba(20, 8, 42, 0.95);
  box-shadow: 0 0 22px #7d63feaa;
  padding: 20px 0;
  position: relative;
  z-index: 10;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav-link {
  color: #a897ff;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #804dff;
  transition: width 0.3s;
}
.nav-link:hover {
  color: #ffffff;
}
.nav-link:hover::after {
  width: 100%;
}
.contacts-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-phone {
  background: linear-gradient(90deg, #6f59ff, #ad8aff);
  color: white;
  padding: 10px 18px;
  border-radius: 34px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 16px #bfb8ff99;
  transition: background 0.3s;
  user-select: none;
}
.btn-phone:hover {
  background: linear-gradient(90deg, #967aff, #d4b9ff);
}
.messenger-link {
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
  user-select: none;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background-color 0.3s, color 0.3s;
}
.wa-link {
  color: #00e676;
}
.wa-link:hover {
  background-color: #00c853;
  color: white;
}
.tg-link {
  color: #42a5f5;
}
.tg-link:hover {
  background-color: #1e88e5;
  color: white;
}
.hero {
  text-align: center;
  margin-bottom: 90px;
  padding-top: 60px;
  padding-bottom: 40px;
}
.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  color: #a584ff;
  line-height: 1.1;
  text-shadow: 0 0 25px #ab90ffcc;
  margin-bottom: 15px;
}
.hero-subtitle {
  font-size: 1.35rem;
  color: #907adbcc;
  margin-bottom: 40px;
}
button, .btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #a181ff, #5e48ff);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 15px 42px;
  border-radius: 45px;
  box-shadow: 0 0 24px #7d67ffcc;
  text-decoration: none;
  user-select: none;
  transition: background 0.25s ease;
  border: none;
  cursor: pointer;
}
button:hover, .btn-primary:hover {
  background: linear-gradient(90deg, #be9aff, #9e81ff);
  box-shadow: 0 0 40px #b397ffcc;
}
.btn-large {
  font-size: 1.6rem;
  padding: 18px 52px;
}
.btn-medium {
  min-width: 220px;
  padding: 14px 30px;
}
section {
  margin-top: 40px;
}
h2 {
  color: #c2baff;
  font-weight: 900;
  font-size: 2.7rem;
  text-shadow: 0 0 26px #9f8affcc;
  margin-bottom: 46px;
  text-align: center;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 48px;
}
.benefit-card {
  background: #261e56cc;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 0 26px #7c67ffbb;
  text-align: center;
  cursor: default;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 48px #9d8affcc;
}
.benefit-card .icon-wrapper {
  font-size: 48px;
  color: #8a7affcc;
  margin-bottom: 18px;
  text-align: center;
  line-height: 1;
  user-select: none;
  transition: color 0.3s ease;
}
.benefit-card.benefit-economy .icon-wrapper::before {
  content: "💰";
}
.benefit-card.benefit-legal .icon-wrapper::before {
  content: "📃";
}
.benefit-card.benefit-speed .icon-wrapper::before {
  content: "⚡";
}
.benefit-card.benefit-support .icon-wrapper::before {
  content: "📞";
}
.benefit-card.benefit-custom .icon-wrapper::before {
  content: "🔍";
}
.benefit-card.benefit-transparency .icon-wrapper::before {
  content: "🔎";
}
.benefit-card:hover .icon-wrapper {
  color: #b6aaff;
}
#photo-block {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 60px auto 80px;
  padding: 0 20px;
  max-width: 1140px;
  background: rgba(38, 29, 92, 0.7);
  border-radius: 24px;
  box-shadow: 0 0 60px #6f5cffaa;
  color: #d0c9ff;
}
.photo-block-image {
  max-width: 50%;
  border-radius: 20px;
  box-shadow: 0 0 36px #7464ffa4;
  object-fit: cover;
}
.photo-block-text {
  max-width: 45%;
}
.photo-block-text h2 {
  font-size: 2.8rem;
  margin-bottom: 0.7em;
  color: #a18cff;
  text-shadow: 0 0 12px #9077ffcc;
}
.photo-block-text p {
  font-size: 1.25rem;
  line-height: 1.45;
  color: #cecaffcc;
}
@media (max-width: 850px) {
  #photo-block {
    flex-direction: column;
    text-align: center;
  }
  .photo-block-image,
  .photo-block-text {
    max-width: 100%;
  }
  .photo-block-text h2 {
    font-size: 2.3rem;
  }
  .photo-block-text p {
    font-size: 1.1rem;
  }
}
#discount {
  background: rgba(20, 12, 80, 0.8);
  border-radius: 24px;
  padding: 40px 36px 50px 36px;
  box-shadow: 0 0 70px 16px #7f62ffaa;
  margin-top: 200px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.3s ease;
}
#discount:hover {
  box-shadow: 0 0 80px 20px #a186ffbb;
}
.quiz-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 30px auto;
  max-width: 720px;
}
.quiz-form select,
.quiz-form button.btn-primary {
  min-width: 180px;
  max-width: 180px;
  height: 48px;
  box-sizing: border-box;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 12px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  color: #dcd4ff;
  background: #3a2e8a;
  box-shadow: inset 0 0 15px #8a7affcc;
  transition: background-color 0.3s, box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}
.quiz-form select:hover,
.quiz-form select:focus,
.quiz-form button.btn-primary:hover {
  background: #4b3aae;
  box-shadow: inset 0 0 25px #b5abffcc;
  outline: none;
  color: #fff;
}
.quiz-form button.btn-primary {
  order: 99;
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0 auto;
  padding: 12px 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  border-radius: 25px;
}
.result {
  font-size: 3.6rem;
  font-weight: 900;
  color: #b1a0ff;
  text-shadow: 0 0 28px #a48fffbb;
  margin-top: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  min-height: 60px;
}
.result.visible {
  opacity: 1;
}
/* Обновленные стили для кнопки в квизе, чтобы она была по центру */
#capture-button {
  display: none; /* по умолчанию скрыта, показывайте через JS */
  margin: 30px auto 0 auto; /* автоматические отступы для горизонтального центрирования */
  width: 350px; /* фиксированная ширина для стабильности */
  max-width: 90%; /* адаптивность на узких экранах */
  font-size: 1.4rem;
  padding: 16px 0;
  font-weight: 900;
  border: 3px solid #ff4040;
  color: #ff4040;
  border-radius: 45px;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 25px #ff4040cc;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
  user-select: none;
  opacity: 0; /* начально скрыта, показывайте через JS */
  transition: opacity 0.5s ease;
}

#capture-button.visible {
  display: block;
  opacity: 1;
}
#capture-button:hover {
  background-color: #ff4040;
  color: white;
  box-shadow: 0 0 55px #ff6060cc;
}
.capture-form {
  max-width: 360px;
  margin: 40px auto 0 auto;
  background: rgba(45, 37, 95, 0.9);
  padding: 26px 22px;
  border-radius: 16px;
  box-shadow: 0 0 45px 12px #7a5affaa;
  text-align: center;
  color: #d9caff;
  display: none;
  transition: opacity 0.4s ease;
  width: 100%;
}
.capture-form.visible {
  display: block;
  opacity: 1;
}
.capture-form h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.capture-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  margin-bottom: 14px;
  background: #372a85cc;
  color: #dfd4ff;
  font-size: 1.05rem;
  outline: none;
  font-weight: 600;
  box-shadow: inset 0 0 15px #6e54ffa4;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
}
.capture-form input:focus {
  box-shadow: 0 0 24px #9c70ffb3;
}
.capture-form button {
  width: 100%;
  padding: 16px 0;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 40px;
  background: #ff4040;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 25px #ff4040cc;
  transition: background 0.3s ease;
}
.capture-form button:hover {
  background: #ff6060;
}
.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #c8c3f7cc;
  margin-bottom: 16px;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.checkbox-label a {
  color: #9a94ff;
  text-decoration: underline;
}
.checkbox-label a:hover,
.checkbox-label a:focus {
  color: #cfc7ff;
  outline: none;
}
#contact {
  max-width: 600px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}
.contact-form {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
  box-sizing: border-box;
  user-select: text;
}
.contact-form input,
.contact-form textarea {
  background: #2a245fcc;
  border-radius: 18px;
  border: none;
  color: #cfcaff;
  font-size: 1.15rem;
  padding: 14px 20px;
  font-weight: 600;
  box-shadow: inset 0 0 18px #b1ace1bb;
  resize: vertical;
  transition: box-shadow 0.3s ease;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 24px #b4a9ffcc;
}
.contact-form button {
  max-width: 240px;
  width: 100%;
  background: linear-gradient(90deg, #a393ff, #6c51ff);
  box-shadow: 0 0 36px #9e86ffcc;
  font-weight: 900;
  font-size: 1.3rem;
  color: white;
  padding: 14px 34px;
  border-radius: 44px;
  border: none;
  margin: 0 auto;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: linear-gradient(90deg, #b0a1ff, #7d5aff);
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #a595ffcc;
  user-select: text;
}
.contact-link {
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}
.contact-link:hover {
  color: #cec8ff;
}
.footer {
  background: #190f54;
  color: #5c51a0cc;
  padding: 26px 0;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
}
@media(max-width: 720px) {
  .nav-links {
    gap: 18px;
  }
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .quiz-form {
    flex-direction: column;
    gap: 20px;
  }
  .btn-medium, .btn-large, .capture-btn {
    width: 100%;
    max-width: none;
  }
}
@media(max-width: 420px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}
/* Стили для красной точки в футере */

.red-dot {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #2b0847;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.red-dot:hover,
.red-dot:focus {
  background-color: #2b0847;
  transform: scale(1.3);
  outline: none;
}
