/* ================================
   Секция «Сдача налоговой отчётности»
================================ */
.tax-section {
  padding: 0;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}
.tax-section .container {
  background: linear-gradient(135deg, #9da70a 0%, #a6e300 100%);
  border-radius: 2rem;
  padding: 80px 20px 60px; /* снизу место для волны */
  max-width: 1150px;
  margin: 60px auto 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* волна внизу */
.wave-wrapper {
  position: relative;
  width: 100%;
  height: 50px;
  overflow: hidden;
  margin-top: -1px;
}
.wave-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Заголовок и подзаголовок */
.tax-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  animation: slideFadeIn 0.7s cubic-bezier(0.4,0,0.2,1) both;
}
.tax-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
  animation: slideFadeIn 0.7s cubic-bezier(0.4,0,0.2,1) both;
  animation-delay: 0.15s;
}

/* Список фич с эффектами */
.tax-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 24px;
  max-width: 1100px;
  justify-items: center;
}
.tax-features li {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), inset 0 -2px 4px rgba(0,0,0,0.05);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
  opacity: 0;
  transform: translateY(24px);
  animation: slideFadeIn 0.7s cubic-bezier(0.4,0,0.2,1) both;
}
.tax-features li:nth-child(1) { animation-delay: 0.3s; }
.tax-features li:nth-child(2) { animation-delay: 0.45s; }
.tax-features li:nth-child(3) { animation-delay: 0.6s; }
.tax-features li:nth-child(4) { animation-delay: 0.75s; }
.tax-features li:nth-child(5) { animation-delay: 0.9s; }

.tax-features li::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: url('../images/pattern.svg') no-repeat center/contain;
  opacity: 0.12;
}

.tax-features li:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12), inset 0 -2px 4px rgba(0,0,0,0.05);
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.12));
}

/* Ripple effect */
.tax-features li {
  overflow: hidden;
}
.tax-features li .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.4);
  animation: rippleAnim 0.6s ease-out;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Кнопка */
.tax-action {
  margin-top: 20px;
  opacity: 0;
  transform: translateY(24px);
  animation: slideFadeIn 0.7s cubic-bezier(0.4,0,0.2,1) both;
  animation-delay: 1.1s;
  text-align: center;
}
.tax-action .btn-order {
  display: inline-block;
  background-color: #10b981;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 18px;
  transition: background-color .3s, transform .3s;
}
.tax-action .btn-order:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

/* Анимация появления */
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* адаптив */
@media (max-width: 1024px) {
  .tax-title { font-size: 2.25rem; }
  .tax-subtitle { font-size: 1rem; }
}
@media (max-width: 576px) {
  .tax-section .container { padding: 40px 12px 60px; margin: 20px auto 0; }
  .tax-title { font-size: 1.75rem; }
  .tax-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
  .tax-features { grid-template-columns: 1fr; gap: 16px; }
  .tax-action .btn-order { width: 100%; padding: 14px; }
}
