:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --warning: #f72585;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: #f5f7fa;
  transform: skewY(-3deg);
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
}

.header-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.login-btn i {
  font-size: 0.9rem;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.lead {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-large {
  padding: 15px 40px;
  font-size: 1.1rem;
}

section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: var(--dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto 0;
  border-radius: 2px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.feature-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.how-it-works {
  background-color: white;
  padding: 60px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.step {
  position: relative;
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: white;
  border-radius: 50%;
  line-height: 50px;
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 15px;
  right: -25px;
  font-size: 1.5rem;
  color: var(--accent);
}

.calculator {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin: 60px auto;
  max-width: 800px;
}

.calculator h3 {
  font-size: 1.8rem;
  margin-bottom: 30px; /* Увеличен отступ */
}

.calculator p {
  margin-bottom: 30px; /* Увеличен отступ */
}

.calculator .btn {
  margin-top: 20px; /* Добавлен отступ сверху для кнопки */
}

.testimonials {
  background-color: #f8f9fa;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-top: 20px; /* Добавлено для отступа от кавычек */
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -5px; /* Изменено с -20px */
  left: -10px;
  line-height: 1; /* Добавлено */
}

.contact-info {
  margin: 20px 0;
  text-align: center;
}

.contact-info p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-info i {
  font-size: 1.2rem;
}

.testimonial-author {
  font-weight: bold;
}

.cta {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 50px 0 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

.quotes-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.quotes-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.quote-slide {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.quote-slide.active {
  display: block;
}

.quote-text {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.5;
}

.quote-author {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  color: var(--secondary);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--accent);
}

@keyframes fadeIn {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .header-top {
    margin-bottom: 20px;
  }
  
  .login-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .step:not(:last-child)::after {
    content: '↓';
    top: auto;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
  
  .calculator {
    padding: 30px 20px;
  }
}