.pesticide-comparison {
  display: flex;
  flex-direction: column;
  min-height: auto;
  background: var(--shadow-color);
  position: relative;
  overflow: hidden;
}

/* Общий фон для всей секции */
.pesticide-comparison::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse at 20% 30%,
      rgba(169, 139, 104, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(183, 150, 138, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 40% 60%,
      rgba(169, 139, 104, 0.05) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 1;
  animation: backgroundFloat 25s ease-in-out infinite alternate;
}

/* Первая секция - заголовок с тёмным фоном */
.section-header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  z-index: 2;
}

/* Вторая секция - таблица с тёмным фоном */
.section-table-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  z-index: 2;
}

.comparison-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.comparison-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Стили заголовка и подзаголовка как в detailed-offer */
.comparison-title {
  font-size: 52px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-color-oposite);
  animation: fadeInUp 0.8s ease-out;
}

.comparison-subtitle {
  font-size: 26px;
  line-height: 1.4;
  max-width: 900px;
  color: var(--tertiary-light);
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.comparison-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.comparison-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

/* Таблица с адаптацией под тёмный фон как в detailed-offer */
.comparison-table-wrapper {
  background: linear-gradient(
    135deg,
    rgba(20, 20, 24, 0.9) 0%,
    rgba(20, 20, 24, 0.8) 100%
  );
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(169, 139, 104, 0.2);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.comparison-table-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--tertiary-color),
    var(--tertiary-light),
    var(--tertiary-color)
  );
  z-index: 10;
}

.comparison-table-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  border-color: rgba(169, 139, 104, 0.4);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.table-header {
  background: linear-gradient(
    135deg,
    var(--tertiary-color),
    var(--tertiary-dark)
  );
  color: var(--text-color-oposite);
  text-shadow: 1px 1px 2px rgba(20, 20, 24, 0.3);
}

.table-header th {
  padding: 25px 20px;
  text-align: left;
  font-weight: 500;
  position: relative;
  font-size: 18px;
}

.parameter-col {
  width: 35%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.kaolin-col,
.pesticide-col {
  width: 32.5%;
  text-align: center !important;
}

.kaolin-col {
  background: rgba(169, 139, 104, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pesticide-col {
  background: rgba(238, 10, 16, 0.15);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-content i {
  font-size: 20px;
  opacity: 0.9;
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(169, 139, 104, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.comparison-table tbody tr.visible {
  opacity: 1;
  transform: translateX(0);
  animation: tableRowSlide 0.6s ease-out forwards;
}

.comparison-table tbody tr:hover {
  background: linear-gradient(
    90deg,
    rgba(169, 139, 104, 0.1),
    rgba(183, 150, 138, 0.05)
  );
}

.parameter-name {
  padding: 20px;
  font-weight: 500;
  color: var(--text-color-oposite);
  background: rgba(0, 0, 0, 0.3);
}

.kaolin-cell,
.pesticide-cell {
  padding: 20px;
  position: relative;
  color: var(--text-color-oposite);
}

.kaolin-cell {
  background: rgba(169, 139, 104, 0.08);
}

.pesticide-cell {
  background: rgba(238, 10, 16, 0.08);
}

.positive {
  color: #4caf50;
}

.negative {
  color: #ff5252;
}

.mixed {
  color: #ff9800;
}

.kaolin-cell i,
.pesticide-cell i {
  font-size: 20px;
  margin-right: 10px;
  vertical-align: middle;
}

.kaolin-cell span,
.pesticide-cell span {
  vertical-align: middle;
  line-height: 1.4;
}

.positive i {
  animation: checkPulse 2s ease-in-out infinite;
}

.negative i {
  animation: crossShake 3s ease-in-out infinite;
}

.order-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.order-sample-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(
    135deg,
    var(--tertiary-color),
    var(--tertiary-light)
  );
  color: var(--text-color-oposite);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(169, 139, 104, 0.4);
}

.order-sample-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.order-sample-btn:hover {
  background: linear-gradient(
    135deg,
    var(--tertiary-light),
    var(--tertiary-color)
  );
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(169, 139, 104, 0.5);
}

.order-sample-btn:hover::before {
  left: 100%;
}

.order-sample-btn i {
  font-size: 20px;
}

/* Animations */
@keyframes backgroundFloat {
  0% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translateX(-15px) translateY(-10px) scale(1.02);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tableRowSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes checkPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes crossShake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .pesticide-comparison::before {
    animation: none;
  }

  .section-header-wrapper,
  .section-table-wrapper {
    min-height: auto;
    padding: 60px 0;
  }

  .comparison-table {
    font-size: 14px;
  }

  .table-header th {
    padding: 20px 15px;
    font-size: 16px;
  }

  .parameter-name,
  .kaolin-cell,
  .pesticide-cell {
    padding: 15px;
  }

  .comparison-title {
    font-size: 40px;
  }

  .comparison-subtitle {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .section-header-wrapper,
  .section-table-wrapper {
    padding: 40px 0;
  }

  .comparison-header {
    gap: 15px;
  }

  .comparison-title {
    font-size: 36px;
  }

  .comparison-subtitle {
    font-size: 18px;
  }

  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 600px;
    font-size: 13px;
  }

  .table-header th {
    padding: 15px 10px;
    font-size: 14px;
  }

  .header-content {
    flex-direction: column;
    gap: 5px;
  }

  .header-content i {
    font-size: 18px;
  }

  .parameter-name,
  .kaolin-cell,
  .pesticide-cell {
    padding: 12px 10px;
  }

  .kaolin-cell i,
  .pesticide-cell i {
    font-size: 16px;
    margin-right: 6px;
  }

  .order-sample-btn {
    padding: 15px 30px;
    font-size: 16px;
  }

  .order-sample-btn i {
    font-size: 18px;
  }

  /* Mobile scroll indicator */
  .comparison-table-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(20, 20, 24, 0.8));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .comparison-table-wrapper.scrolled::after {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .section-header-wrapper,
  .section-table-wrapper {
    padding: 30px 0;
  }

  .comparison-container {
    padding: 0 15px;
  }

  .comparison-title {
    font-size: 28px;
  }

  .comparison-subtitle {
    font-size: 14px;
  }

  .comparison-table {
    font-size: 12px;
  }

  .table-header th {
    padding: 12px 8px;
    font-size: 12px;
  }

  .parameter-name,
  .kaolin-cell,
  .pesticide-cell {
    padding: 10px 8px;
  }

  .order-sample-btn {
    padding: 12px 25px;
    font-size: 14px;
    gap: 8px;
  }

  .order-sample-btn i {
    font-size: 16px;
  }
}
