/* ==========================================================================
   Home Page Styles (matching tapzaim.kz/index.html)
   ========================================================================== */

/* Hero Section */
.hero {
  position: relative;
  padding: 64px 0 80px;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 183, 108, 0.1) 0%, transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(0, 183, 108, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(0, 183, 108, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, #f4fdf8 0%, #ffffff 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0, 183, 108, 0.12) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d1fae5;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-deep);
  box-shadow: 0 4px 12px rgba(0, 183, 108, 0.07);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Stacked Calculator Card (recreating tapzaim.kz apply.png layered card look) */
.hero-card-wrap {
  position: relative;
  padding: 20px 16px 26px;
}

.hero-card-layer-dark {
  position: absolute;
  inset: 14px 14px 20px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1b2430 0%, #111723 100%);
  transform: rotate(-4deg);
  box-shadow: 0 22px 48px rgba(17, 23, 35, 0.16);
}

.hero-card-layer-green {
  position: absolute;
  inset: 22px 6px 12px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #22d38a 0%, #00b76c 100%);
  transform: rotate(3.5deg);
  opacity: 0.92;
}

.calculator-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 26px;
  padding: 36px 34px 34px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 183, 108, 0.12);
}

.calc-prompt {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.calc-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.calc-amount {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.calc-term-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Custom Slider */
.slider-wrap {
  margin-bottom: 26px;
}

.loan-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}

.loan-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 14px rgba(0, 183, 108, 0.35);
  cursor: grab;
  transition: transform 0.15s ease;
}

.loan-slider::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}

.loan-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffffff;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 14px rgba(0, 183, 108, 0.35);
  cursor: grab;
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.calc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid #d8f5e5;
  margin-bottom: 24px;
}

.calc-meta-item span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.calc-meta-item strong {
  font-size: 16px;
  color: var(--text);
}

.calc-cta {
  width: 100%;
  height: 64px;
  font-size: 20px;
}

/* ==========================================================================
   Generic Sections
   ========================================================================== */
.section {
  padding: 76px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   4 Advantage Cards
   ========================================================================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.advantage-card {
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  background: linear-gradient(180deg, #f2fdf7 0%, #e6faee 100%);
  border: 1px solid #d4f4e2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.advantage-visual {
  width: 100%;
  height: 148px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0, 183, 108, 0.08);
}

.advantage-visual svg {
  width: 88px;
  height: 88px;
}

.advantage-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.55;
}

/* Security Banner */
.safe-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 34px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #e9faf1 0%, #f5fff7 100%);
  border: 1px solid #c6f2d8;
}

.safe-shield {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00c977 0%, #009959 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0, 183, 108, 0.28);
}

.safe-shield svg {
  width: 36px;
  height: 36px;
}

.safe-banner-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.safe-banner-text p {
  font-size: 16px;
  color: var(--text-body);
}

/* ==========================================================================
   Conditions Section (#conditions)
   ========================================================================== */
.conditions-section {
  background: linear-gradient(to bottom, #ffffff, #f7fdf9);
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.condition-card {
  background: var(--surface-mint);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #d4f4e0;
}

.condition-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.condition-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.condition-icon svg {
  width: 24px;
  height: 24px;
}

.condition-head h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.condition-list {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.condition-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 16px;
}

.condition-row:last-child {
  border-bottom: none;
}

.condition-row span {
  color: #70747d;
}

.condition-row strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.condition-note {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.55;
}

.condition-cta {
  width: 100%;
  height: 54px;
  font-size: 17px;
  margin-top: 6px;
}

/* ==========================================================================
   3-Step Application Section
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: linear-gradient(180deg, #f3fdf8 0%, #e7faef 100%);
  border: 1px solid #d2f3df;
  border-radius: var(--radius);
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-visual {
  height: 176px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0, 183, 108, 0.08);
}

.step-visual svg {
  width: 124px;
  height: 124px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.55;
}

/* ==========================================================================
   Repayment Section (.payment)
   ========================================================================== */
.payment {
  background: linear-gradient(to bottom, #ffffff, #f0fdf6);
  padding: 80px 0 110px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.payment-subtitle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.payment-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #111723;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.payment-subtitle {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.payment-lead {
  font-size: 17px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 30px;
}

.payment-steps {
  position: relative;
  list-style: none;
  padding-left: 36px;
}

.payment-steps::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 16px;
  width: 2px;
  background: var(--primary);
}

.payment-step {
  position: relative;
  padding-bottom: 28px;
}

.payment-step:last-child {
  padding-bottom: 0;
}

.payment-step::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #d1fae5;
}

.payment-step h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.payment-step p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

.payment-visual {
  display: flex;
  justify-content: center;
}

.payment-visual img {
  width: 100%;
  max-width: 460px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 183, 108, 0.14);
}

/* Sticky Floating CTA */
.sticky-cta {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 16px;
  box-shadow: 0 12px 32px rgba(0, 183, 108, 0.36);
}

.sticky-cta svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .conditions-grid,
  .steps-grid,
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0 56px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .calculator-card {
    padding: 26px 20px;
  }

  .calc-amount {
    font-size: 34px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .safe-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .sticky-cta {
    right: 16px;
    left: 16px;
    bottom: 16px;
    justify-content: center;
  }
}
