/* ══════════════════════════════════════════════════════════════
   СЕКЦИИ
   ══════════════════════════════════════════════════════════════ */

/* ── ABOUT ── */
.about-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 60px; 
  align-items: center; 
}

.about-cards { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 16px; 
}

.audience-card {
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--r);
  padding: 24px; 
  display: flex; 
  align-items: flex-start; 
  gap: 16px;
  transition: all .3s;
}

.audience-card:hover { 
  border-color: rgba(var(--accent-rgb), 0.4); 
  background: var(--surface2); 
}

.audience-icon {
  width: 48px; 
  height: 48px; 
  border-radius: 12px; 
  flex-shrink: 0;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 22px;
}

.icon-b2b { 
  background: rgba(var(--accent-rgb), 0.15); 
}

.icon-b2c { 
  background: rgba(var(--accent3-rgb), 0.12); 
}

.icon-b2e { 
  background: rgba(245,158,11,0.12); 
}

.audience-info h4 { 
  font-size: 15px; 
  font-weight: 700; 
  color: var(--white); 
  margin-bottom: 6px; 
}

.audience-info p { 
  font-size: 14px; 
  color: var(--muted); 
  line-height: 1.6; 
}

/* ── PAYMENT ── */
.payment-section { 
  background: var(--surface); 
}

.payment-inner { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 80px; 
  align-items: center; 
}

.payment-methods { 
  list-style: none; 
  margin-top: 24px; 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 10px 24px; 
}

.pay-method { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.pay-method::before { 
  content: ''; 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  background: var(--accent3); 
  flex-shrink: 0; 
}

.pay-icon { 
  display: none; 
}

.pay-info { 
  font-size: 14px; 
  color: var(--muted); 
}

.pay-info span { 
  display: none; 
}

.tax-banner {
  margin-top: 32px; 
  padding: 20px 24px; 
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(var(--accent3-rgb), 0.15), rgba(var(--accent-rgb), 0.15));
  border: 1px solid rgba(var(--accent3-rgb), 0.2);
  display: flex; 
  align-items: flex-start; 
  gap: 14px;
}

.tax-banner-icon { 
  font-size: 24px; 
  flex-shrink: 0; 
}

.tax-banner-text h4 { 
  font-size: 15px; 
  font-weight: 700; 
  color: var(--accent3); 
  margin-bottom: 4px; 
}

.tax-banner-text p { 
  font-size: 13.5px; 
  color: var(--muted); 
  line-height: 1.5; 
}

.payment-visual { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

.flow-step {
  background: var(--bg); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 18px 20px;
  display: flex; 
  align-items: center; 
  gap: 16px;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '↓'; 
  position: absolute; 
  bottom: -20px; 
  left: 30px;
  font-size: 16px; 
  color: var(--muted);
}

.flow-num {
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  flex-shrink: 0;
  background: var(--grad); 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 14px; 
  font-weight: 700; 
  color: #fff;
}

.flow-text h5 { 
  font-size: 14px; 
  font-weight: 700; 
  color: var(--white); 
}

.flow-text p { 
  font-size: 12px; 
  color: var(--muted); 
  margin-top: 2px; 
}

/* ── INTEGRATIONS ── */
.integrations-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px; 
  margin-top: 48px; 
}

.integ-card {
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--r);
  padding: 28px; 
  text-align: center; 
  transition: all .3s;
}

.integ-card:hover { 
  border-color: rgba(var(--accent-rgb), 0.4); 
  transform: translateY(-3px); 
}

.integ-icon { 
  font-size: 32px; 
  margin-bottom: 14px; 
}

.integ-title { 
  font-size: 16px; 
  font-weight: 700; 
  color: var(--white); 
  margin-bottom: 6px; 
}

.integ-desc { 
  font-size: 13px; 
  color: var(--muted); 
  line-height: 1.5; 
}

.api-block {
  margin-top: 40px; 
  background: var(--surface); 
  border: 1px solid var(--border);
  border-radius: var(--r); 
  padding: 28px; 
  display: flex; 
  align-items: center; 
  gap: 24px;
}

.api-code {
  flex: 1; 
  font-family: 'Courier New', monospace; 
  font-size: 13px;
  color: var(--accent3); 
  background: var(--bg); 
  border-radius: 8px; 
  padding: 16px 20px;
  border: 1px solid rgba(var(--accent3-rgb), 0.2); 
  line-height: 1.7;
}

.api-info h4 { 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--white); 
  margin-bottom: 8px; 
}

.api-info p { 
  font-size: 14px; 
  color: var(--muted); 
  line-height: 1.6; 
}

/* ── HOW WE WORK ── */
.steps-track { 
  display: flex; 
  gap: 0; 
  margin-top: 56px; 
  position: relative; 
}

.steps-line {
  position: absolute; 
  top: 28px; 
  left: 28px; 
  right: 28px; 
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: left; 
  transform: scaleX(0);
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-track.tl-animated .steps-line { 
  transform: scaleX(1); 
}

.step-item { 
  flex: 1; 
  text-align: center; 
  position: relative; 
  padding-top: 64px; 
}

.step-circle {
  width: 56px; 
  height: 56px; 
  border-radius: 50%; 
  background: var(--grad);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 20px; 
  font-weight: 800; 
  color: #fff;
  position: absolute; 
  top: 0; 
  left: 50%; 
  transform: translateX(-50%) scale(0.2);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(var(--accent-rgb), 0.3);
  opacity: 0; 
  transition: opacity .25s ease, transform .4s cubic-bezier(0.34,1.56,0.64,1);
}

.step-item.tl-visible .step-circle {
  opacity: 1; 
  transform: translateX(-50%) scale(1);
}

.step-title { 
  font-size: 14px; 
  font-weight: 700; 
  color: var(--white); 
  margin-bottom: 6px; 
  opacity: 0; 
  transform: translateY(8px); 
  transition: opacity .35s ease .1s, transform .35s ease .1s; 
}

.step-desc  { 
  font-size: 12.5px; 
  color: var(--muted); 
  line-height: 1.5; 
  padding: 0 8px; 
  opacity: 0; 
  transform: translateY(8px); 
  transition: opacity .35s ease .2s, transform .35s ease .2s; 
}

.step-item.tl-visible .step-title,
.step-item.tl-visible .step-desc  { 
  opacity: 1; 
  transform: translateY(0); 
}

/* ── ANTIFROD ── */
.antifrod-block { 
  margin-top: 28px; 
  padding: 24px 28px; 
  border-radius: var(--r-sm); 
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(var(--accent-rgb), 0.10)); 
  border: 1px solid rgba(239,68,68,0.15); 
}

.antifrod-header { 
  display: flex; 
  align-items: flex-start; 
  gap: 14px; 
  margin-bottom: 20px; 
}

.antifrod-icon { 
  font-size: 28px; 
  flex-shrink: 0; 
}

.antifrod-header h4 { 
  font-size: 16px; 
  font-weight: 700; 
  color: var(--white); 
  margin-bottom: 4px; 
}

.antifrod-header p { 
  font-size: 13px; 
  color: var(--muted); 
}

.antifrod-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 10px; 
}

.antifrod-item { 
  display: flex; 
  align-items: flex-start; 
  gap: 10px; 
  font-size: 13px; 
  color: var(--muted); 
  background: var(--glass-bg); 
  border-radius: 10px; 
  padding: 10px 14px; 
  border: 1px solid rgba(239,68,68,0.08); 
  line-height: 1.45; 
}

.antifrod-item-icon { 
  font-size: 16px; 
  flex-shrink: 0; 
  margin-top: 1px; 
}

/* ── WHY TELEGRAM ── */
.why-tg-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  margin-top: 48px; 
}

.why-tg-card { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--r); 
  padding: 32px 28px; 
  position: relative; 
  overflow: hidden; 
  transition: all .3s; 
}

.why-tg-card:hover { 
  border-color: rgba(var(--accent-rgb), 0.35); 
  transform: translateY(-4px); 
  box-shadow: 0 20px 50px rgba(0,0,0,0.35); 
}

.why-tg-card::before { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 2px; 
  background: var(--grad); 
  transform: scaleX(0); 
  transform-origin: left; 
  transition: transform .3s; 
}

.why-tg-card:hover::before { 
  transform: scaleX(1); 
}

.why-tg-icon { 
  width: 56px; 
  height: 56px; 
  border-radius: 16px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 26px; 
  margin-bottom: 20px; 
}

.why-tg-icon-blue  { 
  background: rgba(var(--accent-rgb), 0.15); 
  border: 1px solid rgba(var(--accent-rgb), 0.2); 
}

.why-tg-icon-green { 
  background: rgba(var(--accent3-rgb), 0.12); 
  border: 1px solid rgba(var(--accent3-rgb), 0.2); 
}

.why-tg-icon-purple{ 
  background: rgba(var(--accent2-rgb),  0.15); 
  border: 1px solid rgba(var(--accent2-rgb),  0.25); 
}

.why-tg-badge { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  margin-bottom: 14px; 
  background: rgba(var(--accent-rgb), 0.08); 
  border: 1px solid rgba(var(--accent-rgb), 0.15); 
  border-radius: 20px; 
  padding: 4px 12px; 
  font-size: 11px; 
  font-weight: 700; 
  color: var(--accent); 
}

.why-tg-title { 
  font-size: 17px; 
  font-weight: 700; 
  color: var(--white); 
  margin-bottom: 8px; 
}

.why-tg-sub { 
  font-size: 14px; 
  color: var(--muted); 
  line-height: 1.6; 
}

/* ── CASES ── */
.cases-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  margin-top: 48px; 
}

.case-card { 
  background: var(--bg); 
  border: 1px solid var(--border); 
  border-radius: var(--r); 
  padding: 28px; 
  display: flex; 
  flex-direction: column; 
  transition: all .3s; 
}

.case-card:hover { 
  border-color: rgba(var(--accent-rgb), 0.3); 
  transform: translateY(-3px); 
  box-shadow: 0 16px 40px rgba(0,0,0,0.3); 
}

.case-tag { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  font-size: 11px; 
  font-weight: 700; 
  letter-spacing: 0.5px; 
  text-transform: uppercase; 
  padding: 4px 12px; 
  border-radius: 20px; 
  margin-bottom: 16px; 
  width: fit-content; 
}

.case-tag.tag-b2b { 
  background: rgba(var(--accent-rgb), 0.12); 
  color: var(--accent-soft); 
  border: 1px solid rgba(var(--accent-rgb), 0.25); 
}

.case-tag.tag-fmcg { 
  background: rgba(245,158,11,0.12); 
  color: var(--warn); 
  border: 1px solid rgba(245,158,11,0.25); 
}

.case-tag.tag-b2c { 
  background: rgba(var(--accent3-rgb), 0.12); 
  color: var(--accent3); 
  border: 1px solid rgba(var(--accent3-rgb), 0.25); 
}

.case-title { 
  font-size: 17px; 
  font-weight: 800; 
  color: var(--white); 
  margin-bottom: 8px; 
  line-height: 1.3; 
}

.case-task { 
  font-size: 13px; 
  color: var(--muted); 
  margin-bottom: 20px; 
  line-height: 1.55; 
}

.case-solution-label { 
  font-size: 11px; 
  font-weight: 700; 
  color: var(--muted); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-bottom: 10px; 
}

.case-list { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 7px; 
  margin-bottom: 20px; 
  flex: 1; 
}

.case-list li { 
  font-size: 13px; 
  color: var(--muted); 
  display: flex; 
  align-items: flex-start; 
  gap: 8px; 
  line-height: 1.45; 
}

.case-list li::before { 
  content: ''; 
  width: 5px; 
  height: 5px; 
  border-radius: 50%; 
  flex-shrink: 0; 
  margin-top: 6px; 
  background: rgba(var(--accent-rgb), 0.7); 
}

.case-card:nth-child(2) .case-list li::before { 
  background: rgba(245,158,11,0.8); 
}

.case-card:nth-child(3) .case-list li::before { 
  background: rgba(var(--accent3-rgb), 0.8); 
}

.case-result { 
  margin-top: auto; 
  padding: 14px 16px; 
  border-radius: 10px; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  background: rgba(var(--accent-rgb), 0.08); 
  border: 1px solid rgba(var(--accent-rgb), 0.15); 
}

.case-card:nth-child(2) .case-result { 
  background: rgba(245,158,11,0.08); 
  border-color: rgba(245,158,11,0.15); 
}

.case-card:nth-child(3) .case-result { 
  background: rgba(var(--accent3-rgb), 0.08); 
  border-color: rgba(var(--accent3-rgb), 0.15); 
}

.case-result-icon { 
  font-size: 18px; 
  flex-shrink: 0; 
}

.case-result-text { 
  font-size: 12.5px; 
  font-weight: 600; 
  color: var(--accent-soft); 
  line-height: 1.5; 
}

.case-card:nth-child(2) .case-result-text { 
  color: var(--warn); 
}

.case-card:nth-child(3) .case-result-text { 
  color: var(--accent3); 
}

/* ── RESULTS ── */
.results-section { 
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), rgba(var(--accent2-rgb), 0.12)); 
}

.results-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
}

.result-card {
  background: var(--glass-bg); 
  border: 1px solid var(--glass-border);
  border-radius: var(--r); 
  padding: 32px; 
  text-align: center;
  transition: all .3s;
}

.result-card:hover { 
  background: rgba(var(--accent-rgb), 0.08); 
  border-color: rgba(var(--accent-rgb), 0.3); 
}

.result-icon { 
  font-size: 36px; 
  margin-bottom: 16px; 
}

.result-title { 
  font-size: 16px; 
  font-weight: 700; 
  color: var(--white); 
  margin-bottom: 8px; 
}

.result-desc { 
  font-size: 13.5px; 
  color: var(--muted); 
  line-height: 1.5; 
}

/* ── CTA ── */
.cta-section {
  text-align: center; 
  position: relative; 
  overflow: hidden;
}

.cta-section::before {
  content: ''; 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%,-50%);
  width: 800px; 
  height: 400px; 
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.15) 0%, transparent 65%);
}

.cta-inner { 
  position: relative; 
  z-index: 1; 
  max-width: 680px; 
  margin: 0 auto; 
}

.cta-title { 
  font-size: clamp(32px, 4.5vw, 52px); 
  font-weight: 900; 
  color: var(--white); 
  margin-bottom: 20px; 
  line-height: 1.15; 
}

.cta-sub { 
  font-size: 17px; 
  color: var(--muted); 
  margin-bottom: 40px; 
  line-height: 1.7; 
}

.cta-form { 
  display: flex; 
  gap: 12px; 
  max-width: 480px; 
  margin: 0 auto 32px; 
  flex-wrap: wrap; 
  justify-content: center; 
}

.cta-input {
  flex: 1; 
  min-width: 220px; 
  padding: 14px 20px; 
  border-radius: 50px;
  background: var(--surface); 
  border: 1.5px solid var(--border); 
  color: var(--white);
  font-size: 15px; 
  font-family: inherit; 
  outline: none; 
  transition: border-color .2s;
}

.cta-input:focus { 
  border-color: var(--accent); 
}

.cta-input::placeholder { 
  color: var(--muted); 
}

.cta-input:invalid {
  border-color: #ef4444;
}

.cta-form-message {
  text-align: center;
  font-size: 14px;
  margin-top: -20px;
  margin-bottom: 20px;
  padding: 12px 20px;
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cta-form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cta-contacts { 
  display: flex; 
  gap: 32px; 
  justify-content: center; 
  flex-wrap: wrap; 
}

.contact-item { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  color: var(--muted); 
  font-size: 14px; 
}

.contact-item a { 
  color: var(--muted); 
  text-decoration: none; 
  transition: color .2s; 
}

.contact-item a:hover { 
  color: var(--accent); 
}

.contact-icon { 
  font-size: 18px; 
}

/* ── FOOTER ── */
footer {
  padding: 40px 0; 
  border-top: 1px solid var(--border);
  display: flex; 
  align-items: center;
}

.footer-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  flex-wrap: gap; 
  gap: 20px; 
  width: 100%; 
}

.footer-copy { 
  font-size: 13px; 
  color: var(--muted); 
}

.footer-links { 
  display: flex; 
  gap: 24px; 
}

.footer-links a { 
  font-size: 13px; 
  color: var(--muted); 
  text-decoration: none; 
  transition: color .2s; 
}

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

/* ══════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ СЕКЦИЙ
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) { 
  .why-tg-grid { 
    grid-template-columns: 1fr; 
  } 
  
  .cases-grid { 
    grid-template-columns: 1fr; 
  } 
  
  .antifrod-grid { 
    grid-template-columns: 1fr; 
  }
  
  .about-grid { 
    grid-template-columns: 1fr; 
  }
  
  .payment-inner { 
    grid-template-columns: 1fr; 
    gap: 48px; 
  }
  
  .integrations-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .steps-track { 
    flex-direction: column; 
    gap: 0; 
    padding-left: 28px; 
  }
  
  .steps-line { 
    top: 0; 
    bottom: 0; 
    left: 27px; 
    right: auto !important; 
    width: 2px !important; 
    height: auto !important; 
    transform-origin: top; 
    transform: scaleY(0) !important; 
    transition: transform 1.8s cubic-bezier(0.4,0,0.2,1) !important; 
  }
  
  .steps-track.tl-animated .steps-line { 
    transform: scaleY(1) !important; 
  }
  
  .step-item { 
    text-align: left; 
    padding-top: 0; 
    padding-left: 56px; 
    padding-bottom: 28px; 
  }
  
  .step-item:last-child { 
    padding-bottom: 0; 
  }
  
  .step-circle { 
    left: -28px; 
    top: 0; 
    transform: translateX(0) scale(0.2) !important; 
  }
  
  .step-item.tl-visible .step-circle { 
    transform: translateX(0) scale(1) !important; 
  }
  
  .cases-grid { 
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 768px) { 
  .section { 
    padding: 64px 0; 
  }
  
  .why-tg-grid { 
    grid-template-columns: 1fr; 
  } 
  
  .cases-grid { 
    grid-template-columns: 1fr; 
  }
  
  .results-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .payment-methods { 
    grid-template-columns: 1fr; 
  }
  
  .integrations-grid { 
    grid-template-columns: 1fr; 
  }
  
  .api-block { 
    flex-direction: column; 
  }
}

@media (max-width: 480px) {
  .results-grid { 
    grid-template-columns: 1fr; 
  }
  
  .cases-grid { 
    grid-template-columns: 1fr; 
  }
}

/* ══════════════════════════════════════════════════════════════
   СВЕТЛАЯ ТЕМА
   ══════════════════════════════════════════════════════════════ */

html.light .payment-section {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

html.light .results-section {
  background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(var(--accent-rgb), 0.06));
}

html.light .antifrod-block {
  background: linear-gradient(135deg, rgba(239,68,68,0.04), rgba(245,158,11,0.04));
  border-color: rgba(239,68,68,0.12);
}

html.light .tax-banner {
  background: linear-gradient(135deg, rgba(var(--accent3-rgb), 0.10), rgba(var(--accent-rgb), 0.10));
  border-color: rgba(var(--accent3-rgb), 0.2);
}

html.light .flow-step {
  background: #ffffff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
