/* ============================================================
   installments.css
   ============================================================ */

/* ---------- HERO ---------- */
.installments-hero {
  padding: 20px 0 50px;
}

.installments-hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.installments-hero-content h1 {
  margin: 0 0 16px;
}

.installments-hero-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #6c757d;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-hero-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: #c73a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.3);
}

.btn-hero-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: #1a1a2e;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  border-color: #1a1a2e;
  background: #f8f9fa;
}

.hero-features {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: #6c757d;
}

/* ---------- КАРТОЧКА В HERO ---------- */
.installments-hero-card {
  background: #232323;
  color: #fff;
  border-radius: 12px;
  padding: 32px 28px;
}

.card-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.card-rate {
  display: block;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin: 4px 0 12px;
}

.card-desc {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0 0 20px;
}

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.card-stats div b {
  display: block;
  font-size: 18px;
}

.card-stats div small {
  font-size: 12px;
  opacity: 0.6;
}

/* ---------- ПРЕИМУЩЕСТВА (6 элементов) ---------- */
.installments-advantages {
  padding: 0 0 50px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

.advantage-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.advantage-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.advantage-item img {
  height: 36px;
  width: auto;
  margin-bottom: 10px;
}

.advantage-item p {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: #1a1a2e;
}

.advantage-cta {

  padding: 0;
}

.btn-advantage {
  width: 100%;
  height: 100%;
  min-height: 80px;
  border-radius: 12px;
  background: var(--accent-color);
  border: none;
  color: #fff;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-advantage:hover {
  background: #c73a52;
}

/* ---------- ФИЧИ (4 элемента) ---------- */
.installments-features {
  padding: 60px 0;
}

.installments-features h2 {
  text-align: center;
  margin: 0 0 8px;
}

.features-subtitle {
  text-align: center;
  font-size: 17px;
  color: #6c757d;
  margin: 0 0 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.feature-icon {
  margin-bottom: 14px;
}

.feature-icon img {
  height: 44px;
  width: auto;
}

.feature-card p {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  color: #1a1a2e;
}

.feature-card-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-feature {
  width: 100%;
  height: 100%;
  min-height: 100px;
  border-radius: 12px;
  background: var(--accent-color);
  border: none;
  color: #fff;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-feature:hover {
  background: #c73a52;
}

/* ---------- ДОП. ПРЕИМУЩЕСТВА (4 иконки) ---------- */
.installments-benefits {
  padding: 0 0 60px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-item {
  text-align: center;
  padding: 20px;
}

.benefit-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.benefit-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.benefit-item p {
  font-size: 15px;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
}

/* ---------- ДОКУМЕНТЫ + ФОРМА ---------- */
.installments-docs-form {
  padding: 0 0 60px;
}

.docs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.docs-card,
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.docs-card h3,
.form-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}

.docs-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-card ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 15px;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
}

.docs-card ul li:last-child {
  border-bottom: none;
}

.docs-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 20px;
}

/* ---------- ФОРМА ---------- */
.installments-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.installments-form input {
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.installments-form input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.installments-form button {
  padding: 14px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.installments-form button:hover {
  background: #c73a52;
}

.installments-form p {
  font-size: 12px;
  color: #6c757d;
  text-align: center;
  margin: 4px 0 0;
}

/* ---------- КОМУ ПОДХОДИТ ---------- */
.installments-who {
  padding: 60px 0;
  background: #232323;
  color: #fff;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.who-content h2 {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.who-content p {
  font-size: 17px;
  opacity: 0.8;
  margin: 0;
}

.who-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.who-item {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.who-item strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.who-item span {
  font-size: 14px;
  opacity: 0.7;
}

.btn-who {
  grid-column: 1 / -1;
  padding: 16px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-who:hover {
  background: #c73a52;
}

/* ---------- SEO ---------- */
.installments-seo {
  padding: 60px 0;
}

.seo-content h2 {
  margin: 0 0 12px;
}

.seo-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #6c757d;
  margin: 0 0 16px;
}

.seo-full {
  display: none;
}

.seo-full.show {
  display: block;
}

.seo-full p {
  font-size: 16px;
  line-height: 1.7;
  color: #6c757d;
  margin: 0 0 12px;
}

.seo-toggle {
  background: none;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
}

.seo-toggle:hover {
  color: #c73a52;
}

/* ---------- CTA ---------- */
.installments-cta {
  padding: 0 0 60px;
}

.cta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #232323;
  border-radius: 12px;
  padding: 48px 56px;
  color: #fff;
}

.cta-content h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cta-content p {
  font-size: 17px;
  opacity: 0.8;
  margin: 0;
  max-width: 480px;
}

.btn-cta {
  flex-shrink: 0;
  padding: 16px 40px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: #c73a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.3);
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 1024px) {
  .installments-hero-grid {
    grid-template-columns: 1fr;
  }
  .installments-hero-card {
    max-width: 420px;
  }
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .advantage-item:last-child {
    grid-column: span 3;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  .docs-form-grid {
    grid-template-columns: 1fr;
  }
  .who-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cta-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
  .cta-content p {
    max-width: 100%;
  }
  .btn-cta {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .installments-hero-content h1 {
    font-size: 30px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-features {
    flex-wrap: wrap;
    gap: 12px;
  }
  .card-rate {
    font-size: 36px;
  }
  .card-stats {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
  .advantage-item:last-child {
    grid-column: span 2;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card-dark {
    min-height: 80px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .who-items {
    grid-template-columns: 1fr;
  }
  .btn-who {
    grid-column: 1;
  }
  .who-content h2 {
    font-size: 26px;
  }
  .cta-content h2 {
    font-size: 24px;
  }
  .cta-wrapper {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .advantage-item:last-child {
    grid-column: 1;
  }
  .installments-hero-card {
    padding: 24px 20px;
  }
  .docs-card,
  .form-card {
    padding: 24px 18px;
  }
}