/* === HE-COMPARE === */
.he-compare-outer,
.he-compare-outer *,
.he-compare-outer *::before,
.he-compare-outer *::after {
  box-sizing: border-box;
}

.he-compare-outer {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background-color: #fff;
  padding: 60px 24px 30px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.he-compare {
  max-width: 950px;
  margin: 0 auto;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 1;
}

.he-compare__header {
  text-align: center;
  margin-bottom: 45px;
}

.he-compare__title {
  color: #1B3A1A;
  font-family: inherit;
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.he-compare__subtitle {
  color: #1a1a1a;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.he-compare__grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1.2fr;
  gap: 0;
  align-items: stretch;
  border-radius: 16px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.04);
  background: #fff;
  position: relative;
  border: 1px solid #e0e0e0;
  margin-top: 40px;
}

.he-compare__cell {
  height: 60px;
  padding: 0 15px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.he-compare__col-labels .he-compare__cell {
  justify-content: flex-start;
  text-align: left;
  font-weight: 700;
  color: #1B3A1A;
  padding-left: 25px;
  background-color: #f9fafa;
}

.he-compare__cell:last-child {
  border-bottom: none;
}

.he-compare__col-header {
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #1B3A1A;
  border-bottom: 2px solid #e0e0e0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1.3;
  background-color: #fff;
  letter-spacing: -0.01em;
}

.he-compare__col-labels .he-compare__col-header {
  border-top-left-radius: 16px;
}

.he-compare__sub-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  margin-top: 4px;
}

.he-compare__val-low {
  color: #c0392b;
  font-weight: 500;
}

.he-compare__val-mid {
  color: #e67e22;
  font-weight: 500;
}

.he-compare__col-winner {
  background: #fff;
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(46,125,50,0.15);
  border-radius: 16px;
  border: 2px solid #7CB342;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  margin-top: -8px;
  margin-bottom: -8px;
}

.he-compare__col-winner .he-compare__col-header {
  background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
  color: #fff;
  border-radius: 14px 14px 0 0;
  border-bottom: none;
  height: 86px;
  padding: 0;
}

.he-compare__brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.he-compare__col-winner .he-compare__sub-label {
  color: #e8f5e9;
}

.he-compare__col-winner .he-compare__cell {
  font-weight: 700;
  color: #2E7D32;
  background: transparent;
  font-size: 15px;
  height: 60px;
}

.he-compare__footer {
  margin-top: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.he-compare__footer-text {
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

.he-compare__footer-text strong {
  color: #1B3A1A;
  font-weight: 600;
}

@media (max-width: 850px) {
  .he-compare-outer {
    padding: 40px 15px 20px;
  }
  .he-compare__header {
    margin-bottom: 28px;
  }
  .he-compare__title {
    font-size: 26px;
  }
  .he-compare__subtitle {
    font-size: 15px;
  }

  /* Mobile grid: 2 stĺpce vedľa seba, NAJA pod nimi cez celú šírku */
  .he-compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    box-shadow: none;
    border: none;
    background: transparent;
    overflow: visible;
    margin-top: 24px;
  }
  .he-compare__col-labels {
    display: none;
  }
  .he-compare__col-standard,
  .he-compare__col-tincture {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding-bottom: 12px;
  }
  .he-compare__col-winner {
    grid-column: 1 / -1;
    border: 2px solid #7CB342;
    transform: none;
    margin: 0;
    padding-bottom: 12px;
  }
  .he-compare__col-header {
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid #eee;
    height: auto;
    min-height: 70px;
    padding: 14px 8px;
    font-size: 14px;
  }
  .he-compare__col-winner .he-compare__col-header {
    height: auto;
    min-height: 80px;
    padding: 14px 8px;
  }
  .he-compare__sub-label {
    font-size: 12px;
  }
  .he-compare__cell {
    flex-direction: column;
    height: auto;
    padding: 10px 6px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
  }
  .he-compare__col-winner .he-compare__cell {
    font-size: 13px;
  }
  .he-compare__cell::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .he-compare__footer {
    margin-top: 24px;
  }
  .he-compare__footer-text {
    font-size: 14.5px;
    text-align: left;
  }
}
