:root {
  /* Основные цвета */
  --primary: #31c29f;
  --primary-dark: #28a084;
  --primary-light: #4bcf6f;
  --secondary: #162136;
  --text-color: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --background-light: #f7f9fc;
  --background-white: #ffffff;
  --border-color: rgba(51, 51, 51, 0.1);
  --accent: #ff7b29;
  
  /* Градиенты */
  --primary-gradient: linear-gradient(61.8deg, #31c29f, #4bcf6f);
  --primary-gradient-hover: linear-gradient(61.8deg, #28a084, #3fb85a);
  
  /* Размеры и отступы */
  --container-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-default: 0.3s ease;
}

/* Импорт шрифтов */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-fast);
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
}

h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem; /* 24px */
}

h4 {
  font-size: 1.25rem; /* 20px */
}

p {
  margin-bottom: 1rem;
}

/* Контейнеры и сетка */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1 0 0%;
  padding: 0 1rem;
}

/* Секции */
section {
  padding: 5rem 0;
}

section.bg-light {
  background-color: var(--background-light);
}

section.bg-white {
  background-color: var(--background-white);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-default);
  border: none;
  outline: none;
  box-shadow: var(--box-shadow);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-gradient-hover);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: #0f1827;
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
  color: var(--text-white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Формы */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(49, 194, 159, 0.25);
}

/* Герой-секция */
.hero-section {
  position: relative;
  padding: 6rem 0;
  background-color: var(--background-light);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 55%;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--secondary);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Стили для формы займа в hero-секции */
.hero-loan-form {
  background-color: var(--background-white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease-out forwards;
  border: 1px solid rgba(49, 194, 159, 0.2);
}

.hero-loan-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.hero-loan-form .range-slider-wrapper {
  margin-bottom: 1.5rem;
}

.hero-loan-form .range-slider-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-loan-form .range-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  border: none;
  background: transparent;
  text-align: center;
  width: 180px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-loan-form .range-amount:focus {
  outline: none;
  color: var(--primary-dark);
}

.hero-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-top: 1rem;
}

.timer {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background-color: var(--secondary);
  color: var(--text-white);
  border-radius: var(--border-radius-sm);
  font-weight: 700;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Секция с преимуществами */
.features-section {
  text-align: center;
  background-color: var(--background-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--background-white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.speed-icon {
  background-image: url('/new_design/img/speed-icon.svg');
}

.security-icon {
  background-image: url('/new_design/img/security-icon.svg');
}

.percent-icon {
  background-image: url('/new_design/img/percent-icon.svg');
}

.support-icon {
  background-image: url('/new_design/img/support-icon.svg');
}

/* Секция с калькулятором */
.loan-calculator-section {
  background-color: var(--background-white);
}

.calculator-wrapper {
  background-color: var(--background-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: 2.5rem;
  margin-top: 2rem;
}

.range-slider-wrapper {
  margin-bottom: 2.5rem;
}

.range-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.range-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 15px;
  outline: none;
  margin: 1rem 0;
  background: #e0e0e0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}

.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Секция "Как это работает" */
.how-it-works-section {
  background-color: var(--background-light);
  text-align: center;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  position: relative;
  padding: 2rem;
  background-color: var(--background-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: -1.5rem;
  width: 3rem;
  height: 1.5rem;
  background-image: url('/new_design/img/arrow-right.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

/* Секция с отзывами */
.testimonials-section {
  background-color: var(--background-white);
  text-align: center;
}

.testimonials-slider {
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
}

.testimonial-card {
  background-color: var(--background-light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 1rem;
  text-align: left;
  box-shadow: var(--box-shadow);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.testimonial-info h4 {
  margin-bottom: 0.25rem;
}

.testimonial-date {
  font-size: 0.875rem;
  color: var(--text-light);
}

.rating {
  color: #ffc107;
  margin-bottom: 0.5rem;
}

/* FAQ секция */
.faq-section {
  background-color: var(--background-light);
}

.faq-accordion {
  margin-top: 3rem;
}

.faq-item {
  background-color: var(--background-white);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--secondary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform var(--transition-default);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-default), padding var(--transition-default);
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* Адаптивные стили */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-image {
    opacity: 0.3;
    width: 100%;
    background-position: center right;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .steps-container {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    width: 100%;
    max-width: 100%;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .calculator-wrapper {
    padding: 1.5rem;
  }
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Утилиты */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Category Intro Styling */
.category-intro {
    background: linear-gradient(135deg, #f6f9ff 0%, #f0f7ff 100%);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.category-intro .section-title {
    color: var(--secondary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.category-intro .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.category-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 768px) {
    .category-intro {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .category-intro .section-title {
        font-size: 1.8rem;
    }
    
    .category-intro p {
        font-size: 1rem;
    }
}
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }
