/* Hero CTA - гарантированно видимая кнопка */
.hero-cta {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Benefits Section Styles */
.benefit-card {
  background: #1f2937;
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.benefit-card img {
  margin: 0 auto 1rem;
  width: 64px;
  height: 64px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.benefit-card p {
  font-size: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Reviews Swiper Styles */
.reviews-swiper {
  padding-bottom: 2rem;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

.reviews-swiper .swiper-slide {
  opacity: 1;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.reviews-swiper .swiper-slide-active {
  opacity: 1;
}

.reviews-swiper .swiper-pagination {
  bottom: 0;
}

.reviews-swiper .swiper-pagination-bullet {
  background: #9ca3af;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  margin: 0 5px;
}

.reviews-swiper .swiper-pagination-bullet-active {
  background: #34d399;
  opacity: 1;
}

/* Навигационные стрелки */
.reviews-swiper .swiper-button-prev,
.reviews-swiper .swiper-button-next {
  color: #34d399;
  width: 50px; /* Increased size */
  height: 50px; /* Increased size */
  background: rgba(31, 41, 55, 0.8);
  border-radius: 50%;
  transition: background 0.3s ease;
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.reviews-swiper .swiper-button-prev {
  left: 10px;
}

.reviews-swiper .swiper-button-next {
  right: 10px;
}

.reviews-swiper .swiper-button-prev:hover,
.reviews-swiper .swiper-button-next:hover {
  background: rgba(31, 41, 55, 1);
}

.reviews-swiper .swiper-button-prev:after,
.reviews-swiper .swiper-button-next:after {
  font-size: 20px; /* Increased arrow size to match larger button */
}

/* Review Card Styles */
.review-card {
  min-height: 200px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  box-sizing: border-box;
  background: #374151;
  border-radius: 0.5rem;
  height: auto;
}

.review-card img {
  margin-bottom: 0.5rem;
  border-radius: 50%;
  width: 96px;
  height: 96px;
}

.review-card .stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.review-card p.quote {
  position: relative;
  margin: 0 1rem;
  padding: 0.5rem 0;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 60px;
}

.review-card p.quote::before,
.review-card p.quote::after {
  position: absolute;
  font-size: 2rem;
  color: #6b7280;
}

.review-card p.quote::before {
  content: '"';
  left: -0.5rem;
  top: 0;
}

.review-card p.quote::after {
  content: '"';
  right: -0.5rem;
  bottom: 0;
}

.review-card p:last-child {
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
}

/* Form Section Styles */
.form-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background: #1f2937;
}

.form-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.form-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.24) 0%, rgba(2, 6, 23, 0.64) 75%);
}

.form-title,
.form-description,
.form-policy {
  position: relative;
  z-index: 2;
}

.form-title {
  margin-bottom: 1.8rem;
  text-shadow: 0 8px 22px rgba(2, 6, 23, 0.5);
}

.form-description {
  max-width: 760px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.form-section .content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
}

/* Phone Code Custom Select */
.phone-code-wrapper {
  position: relative;
}

#phone-code-display {
  cursor: pointer;
}

#phone-code-flag {
  display: inline-block;
  width: 1.5rem;
  height: 1.125rem;
}

#phone-code-text {
  font-size: 0.875rem;
}

#phone-code-dropdown {
  background-color: #4b5563;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#phone-code-dropdown .option {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  color: white;
  cursor: pointer;
}

#phone-code-dropdown .option:hover {
  background-color: #6b7280;
}

#phone-code-dropdown .option img {
  width: 1.5rem;
  height: 1.125rem;
  margin-right: 0.5rem;
}

/* Form Styles */
#reg-form {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.82));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.875rem;
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.52), 0 0 0 1px rgba(148, 163, 184, 0.08) inset;
  padding: 1.75rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

#reg-form .tg-auth-card {
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.62));
  border-radius: 0.75rem;
  padding: 1rem 0.9rem;
}

#reg-form .tg-auth-title {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

#reg-form .tg-auth-widget {
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#reg-form .tg-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  margin: 0 auto;
}

#reg-form .tg-auth-subtitle {
  margin-top: 0.75rem;
  font-size: 0.83rem;
  color: #94a3b8;
}

#reg-form .form-divider {
  position: relative;
  height: 1px;
  margin: 0.65rem 0 0.8rem;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.4), transparent);
}

#reg-form .form-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

#reg-form input {
  transition: all 0.3s ease;
  background: rgba(100, 116, 139, 0.28);
  color: #e5e7eb;
  width: 100%;
  padding: 0.92rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  margin-bottom: 1rem;
}

#reg-form input::placeholder {
  color: #94a3b8;
}

#reg-form input:focus {
  outline: none;
  border-color: rgba(52, 211, 153, 0.85);
  background: rgba(71, 85, 105, 0.35);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

#phone-code-display {
  min-height: 56px;
  background: rgba(100, 116, 139, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.55rem;
  padding: 0.92rem 0.8rem;
  color: #e5e7eb;
}

#phone-code-display:hover {
  background: rgba(71, 85, 105, 0.35);
}

#phone-code-dropdown {
  margin-top: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

#reg-form button {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #041b14;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 1.2rem;
  border-radius: 0.62rem;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
  width: 100%;
}

#reg-form button:hover {
  background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.42);
}

#reg-form button:active {
  transform: translateY(0);
}

.form-section #policy-btn {
  color: #34d399;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.form-policy {
  color: #cbd5e1;
  text-shadow: 0 4px 16px rgba(2, 6, 23, 0.45);
}

/* Policy Link Styles */
#policy-btn {
  font-size: 1rem;
  color: #34d399;
  text-decoration: underline;
  cursor: pointer;
}

/* Modal */
#policy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
}

#policy-modal.hidden {
  display: none;
}

#policy-modal .bg-gray-800 {
  width: 100%;
  max-width: 800px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 0.5rem;
}

#policy-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #34d399;
  font-size: 1.5rem;
  cursor: pointer;
}

#policy-close:hover {
  color: #00ff88;
}

/* General Section Styles */
section .bg-gray-900,
section .bg-gray-800 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section .bg-gray-900:hover,
section .bg-gray-800:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

section .text-green-500 {
  font-size: 3rem;
  line-height: 1;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .benefit-card {
    min-height: 300px;
    padding: 1rem;
  }

  .benefit-card h3 {
    font-size: 1.25rem;
  }

  .benefit-card p {
    font-size: 0.9rem;
  }

  .reviews-swiper {
    padding: 0 20px 2rem 20px;
    overflow: hidden;
  }

  .reviews-swiper .swiper-slide {
    max-width: 100%;
    width: 100%;
    padding: 0;
    height: auto;
  }

  .reviews-swiper .swiper-button-prev,
  .reviews-swiper .swiper-button-next {
    display: block;
    width: 40px; /* Slightly smaller for mobile */
    height: 40px;
  }

  .reviews-swiper .swiper-button-prev {
    left: 0px;
  }

  .reviews-swiper .swiper-button-next {
    right: 0px;
  }

  .reviews-swiper .swiper-button-prev:after,
  .reviews-swiper .swiper-button-next:after {
    font-size: 16px; /* Adjusted arrow size for mobile */
  }

  .review-card {
    min-height: 220px;
    max-width: 100%;
    padding: 0.75rem;
    height: auto;
  }

  .review-card p.quote {
    font-size: 0.8rem;
    margin: 0 0.5rem;
    padding: 0.3rem 0;
    min-height: 70px;
  }

  .review-card p.quote::before,
  .review-card p.quote::after {
    font-size: 1.5rem;
  }

  .review-card p:last-child {
    font-size: 0.85rem;
  }

  .form-section {
    min-height: 500px;
    padding: 1rem;
  }

  .form-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .form-description {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.55;
  }

  .form-section .content {
    padding: 1rem;
  }

  #reg-form {
    padding: 1rem;
    max-width: 100%;
    border-radius: 0.75rem;
  }

  #reg-form .tg-auth-card {
    padding: 0.85rem 0.7rem;
  }

  #reg-form .tg-auth-title {
    font-size: 0.9rem;
  }

  #reg-form .tg-auth-subtitle {
    font-size: 0.78rem;
  }

  #reg-form .form-divider span {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.6rem;
  }

  #phone-code-display {
    padding: 0.92rem 0.75rem;
    font-size: 0.875rem;
    min-height: 52px;
  }

  #reg-form button {
    font-size: 1rem;
  }

  #policy-modal .bg-gray-800 {
    max-width: 100%;
    margin: 1rem;
    max-height: calc(100vh - 2rem);
    padding: 1rem;
  }

  #policy-modal h3 {
    font-size: 1.25rem;
  }

  #policy-content {
    padding: 1rem;
    font-size: 0.875rem;
  }

  #policy-btn {
    font-size: 0.9rem;
  }

  section .text-green-500 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}