
/* THICKNESS – különálló szekció */

.hb-thickness {
  background-color: #fff;
  background-image: url('../images/thickness-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 110px 24px;
  overflow: hidden;
}

.hb-thickness,
.hb-thickness * {
  box-sizing: border-box;
}

.hb-thickness__inner {
  max-width: 1450px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  grid-template-areas:
    "heading visual"
    "control recommendations";
  column-gap: 30px;
  row-gap: 0;
  align-items: start;
}

.hb-thickness__content {
  grid-area: heading;
}

.hb-thickness__control {
  grid-area: control;
  align-self: start;
}

.hb-thickness__visual {
  grid-area: visual;
  width: 100%;
  max-width: 480px;
  justify-self: center;
  align-self: start;
}

.hb-thickness__recommendations {
  grid-area: recommendations;
  align-self: start;
}
.hb-thickness__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: #5baf00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hb-thickness__content h2 {
  margin: 0 0 20px;
  color: #171c19;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.hb-thickness__content p {
  max-width: 420px;
  margin: 0;
  color: #666f69;
  font-size: 17px;
  line-height: 1.7;
}

/* Csúszka */

.hb-thickness__control {
  margin-top: 45px;
  padding: 28px;
  background: #f5f7f4;
  border: 1px solid #e7ece5;
  border-radius: 20px;
}

.hb-thickness__control label {
  display: block;
  margin-bottom: 25px;
  color: #242b26;
  font-size: 15px;
  font-weight: 700;
}

#hb-thickness-range {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: #78db00;
  cursor: pointer;
}

.hb-thickness__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: #7b847d;
  font-size: 13px;
  font-weight: 600;
}

/* Beton keresztmetszet */

.hb-thickness__visual {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

#hb-concrete-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter:
  drop-shadow(0 0 25px rgba(255,255,255,1))
  drop-shadow(0 0 45px rgba(255,255,255,1))
  drop-shadow(0 0 70px rgba(255,255,255,.95))
  drop-shadow(0 18px 20px rgba(0,0,0,.20));
}

#hb-concrete-neon {
  filter: drop-shadow(0 0 5px rgba(140,255,0,.55));
}

/* Mobil */

@media (max-width: 850px) {
  .hb-thickness {
    padding: 70px 20px;
  }

 .hb-thickness__inner {
  grid-template-columns: 1fr;
  grid-template-areas:
    "heading"
    "control"
    "visual"
    "recommendations";
  gap: 30px;

  }

  .hb-thickness__content h2 {
    letter-spacing: -1px;
  }

  .hb-thickness__control {
    margin-top: 30px;
    padding: 22px;
  }

  .hb-thickness__visual {
    padding: 15px 5px;
  }
}


/* PRÉMIUM VASTAGSÁGÁLLÍTÓ */

.hb-thickness__control--premium {
  margin-top: 12px;
  padding: 30px 32px 34px;
  background: #fff;
  border: 1px solid #e9ece8;
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(25, 35, 25, .07);
}

.hb-thickness__control-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #555d58;
  font-size: 14px;
  font-weight: 650;
}

.hb-thickness__accent-line {
  width: 26px;
  height: 2px;
  background: #7cef00;
  flex-shrink: 0;
}

.hb-thickness__selected {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 22px 0 28px;
}

.hb-thickness__selected strong {
  color: #111713;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
}

.hb-thickness__selected > span {
  padding-left: 20px;
  border-left: 1px solid #e1e5df;
  color: #818982;
  font-size: 14px;
  line-height: 1.5;
}

.hb-thickness__slider-area {
  position: relative;
  padding: 0 4px;
}

.hb-thickness__slider-area input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 9px;
  margin: 0;
  border: 0;
  border-radius: 20px;
  outline-offset: 8px;
  background: linear-gradient(
    to right,
    #7df000 0%,
    #7df000 var(--range-progress, 40%),
    #d6dad7 var(--range-progress, 40%),
    #d6dad7 100%
  );
  cursor: pointer;
}

.hb-thickness__slider-area input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #7df000;
  box-shadow:
    0 0 0 2px #8bef20,
    0 0 18px rgba(125, 240, 0, .45);
  cursor: grab;
}

.hb-thickness__slider-area input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #7df000;
  box-shadow:
    0 0 0 2px #8bef20,
    0 0 18px rgba(125, 240, 0, .45);
  cursor: grab;
}

.hb-thickness__slider-area input:active::-webkit-slider-thumb {
  cursor: grabbing;
  box-shadow:
    0 0 0 3px #8bef20,
    0 0 26px rgba(125, 240, 0, .65);
}

.hb-thickness__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.hb-thickness__ticks span {
  position: relative;
  color: #818982;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hb-thickness__ticks span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: 1px;
  height: 12px;
  background: #cbd1ca;
}

.hb-thickness__ticks span.is-active {
  color: #151b16;
  font-weight: 800;
}

.hb-thickness__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .hb-thickness__control--premium {
    padding: 25px 20px 30px;
  }

  .hb-thickness__selected strong {
    font-size: 52px;
  }

  .hb-thickness__ticks span {
    font-size: 11px;
  }
}

/* VASTAGSÁG INFORMÁCIÓS KÁRTYÁK */

.hb-thickness__recommendations {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 24px;
  background: #171d19;
  border-radius: 22px;
  color: #fff;
}


.hb-thickness__recommendations h3 {
  margin: 0 0 25px;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.7px;
}

.hb-thickness__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hb-thickness__info-card {
  min-width: 0;
  padding: 18px 14px;
  background: #242b26;
  border: 1.5px solid #343e36;
  border-radius: 16px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.hb-thickness__info-card.is-active {
  border-color: #8cff00;
  background: #293b27;
  box-shadow:
    0 0 0 1px rgba(140, 255, 0, 0.12),
    0 0 25px rgba(140, 255, 0, 0.09);
  transform: translateY(-4px);
}

.hb-thickness__card-icon {
  display: block;
  margin-bottom: 12px;
  color: #8cff00;
  font-size: 32px;
  line-height: 1;
}

.hb-thickness__info-card strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.hb-thickness__info-card h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.hb-thickness__info-card p {
  margin: 0;
  color: #b8c3b9;
  font-size: 13px;
  line-height: 1.6;
}

.hb-thickness__disclaimer {
  margin: 24px 0 0;
  color: #aab5ab;
  font-size: 12px;
  line-height: 1.6;
}

/* TABLET */

@media (max-width: 950px) {
  .hb-thickness__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MOBIL */

@media (max-width: 550px) {
  .hb-thickness__recommendations {
    margin-top: 40px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .hb-thickness__cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hb-thickness__info-card {
    padding: 20px;
  }

  .hb-thickness__card-icon {
    margin-bottom: 14px;
  }

  .hb-thickness__info-card.is-active {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-thickness__info-card {
    transition: none;
  }
}
