/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--secondary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  font-size: 24px;
  color: var(--secondary);
  font-weight: 500;
}

.mobile-menu ul li a:hover {
  color: var(--primary);
}

/* Адаптивные стили для шапки */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-timer {
    display: none;
  }
}

/* Дополнительные стили для мобильных устройств */
@media (max-width: 768px) {
  header .logo img {
    width: 100px;
  }
  
  .rating-wrapper {
    margin-right: auto;
    margin-left: 15px;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .hero-loan-form {
    margin-bottom: 2rem;
    padding: 1.25rem;
  }
  
  .hero-loan-form .range-amount {
    font-size: 1.75rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .footer-top .col {
    flex: 0 0 100%;
    margin-bottom: 2rem;
  }
  
  .footer-heading {
    margin-top: 0.5rem;
  }
  
  .cta-wrapper {
    padding: 2rem 1rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .testimonial-avatar {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Стили для CTA секции */
.cta-section {
  background-color: var(--background-white);
  padding: 5rem 0;
}

.cta-wrapper {
  background: var(--primary-gradient);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  color: white;
  box-shadow: var(--box-shadow);
}

.cta-wrapper h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-wrapper .btn {
  background-color: white;
  color: var(--primary);
  border: none;
}

.cta-wrapper .btn:hover {
  background-color: var(--secondary);
  color: white;
}

/* Стили для подвала */
footer {
  background-color: var(--secondary);
  color: white;
}

.footer-logo {
  
}

.footer-heading {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

/* Дополнительные анимации и эффекты */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Стили для модальных окон */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  overflow: auto;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
}

.close:hover {
  color: var(--text-color);
}

/* Дополнительные стили для форм */
.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-left: 2.5rem;
}

.input-with-icon::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url('/new_design/img/phone-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-wrapper label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-light);
}

.checkbox-wrapper label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.checkbox-wrapper input[type="checkbox"]:checked + label::before {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"]:checked + label::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper label a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-wrapper label a:hover {
  text-decoration: none;
}
