/* Komfort Glass — Premium Home Pluses Block */
.kg-home-pluses {
  --kg-brown: #7a5648;
  --kg-brown-dark: #2b211d;
  --kg-green: #6aa84f;
  --kg-green-dark: #426b32;
  --kg-cream: #f7f1e8;
  --kg-ink: #171514;
  --kg-muted: #706a64;
  --kg-card: #fff;
  --kg-border: #e9e2d8;
  position: relative;
  margin: 0;
  padding: clamp(42px, 6vw, 82px) 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(122, 86, 72, .13), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(106, 168, 79, .14), transparent 30%),
    linear-gradient(180deg, #fbf8f3 0%, #f7f1e8 100%);
  color: var(--kg-ink);
  overflow: hidden;
  isolation: isolate;
}

.kg-home-pluses:before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(122, 86, 72, .09);
  border-radius: 38px;
  pointer-events: none;
  z-index: -1;
}

.kg-home-pluses * {
  box-sizing: border-box
}

.kg-home-pluses .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px
}

.kg-home-pluses__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.kg-home-pluses__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(106, 168, 79, .12);
  border: 1px solid rgba(106, 168, 79, .26);
  color: var(--kg-green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kg-home-pluses__head h2 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(30px, 4.7vw, 58px);
  line-height: .98;
  letter-spacing: -.052em;
  font-weight: 850;
  color: var(--kg-ink);
}

.kg-home-pluses__head p {
  margin: 0;
  color: var(--kg-muted);
  font-size: 16px;
  line-height: 1.75;
}

.kg-home-pluses__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kg-home-plus-card {
  position: relative;
  min-height: 286px;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72)),
    linear-gradient(135deg, rgba(106, 168, 79, .12), rgba(122, 86, 72, .08));
  border: 1px solid var(--kg-border);
  box-shadow: 0 22px 60px rgba(35, 28, 22, .075);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.kg-home-plus-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--kg-green), #d5aa79, var(--kg-brown));
  opacity: .78;
}

.kg-home-plus-card:after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(106, 168, 79, .11);
  transition: transform .3s ease, opacity .3s ease;
}

.kg-home-plus-card:hover {
  transform: translateY(-7px);
  border-color: rgba(106, 168, 79, .36);
  box-shadow: 0 30px 82px rgba(35, 28, 22, .13);
}

.kg-home-plus-card:hover:after {
  transform: scale(1.28);
  opacity: .9
}

.kg-home-plus-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.kg-home-plus-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 21px;
  color: var(--kg-green-dark);
  background: linear-gradient(145deg, #eef7e9, #fff);
  border: 1px solid #dcecd5;
  box-shadow: 0 16px 34px rgba(106, 168, 79, .14);
}

.kg-home-plus-card__icon img,
.kg-home-plus-card__icon svg {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.kg-home-plus-card__number {
  color: rgba(122, 86, 72, .28);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
}

.kg-home-plus-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 13px;
  color: var(--kg-ink);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 850;
}

.kg-home-plus-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--kg-muted);
  font-size: 15px;
  line-height: 1.68;
}

.kg-home-plus-card:nth-child(1),
.kg-home-plus-card:nth-child(5) {
  background:
    radial-gradient(circle at 90% 92%, rgba(106, 168, 79, .16), transparent 34%),
    linear-gradient(145deg, #fff, #f3faef);
}

.kg-home-plus-card:nth-child(2n) {
  background:
    radial-gradient(circle at 92% 92%, rgba(122, 86, 72, .12), transparent 34%),
    linear-gradient(145deg, #fff, #fbf5ee);
}

.kg-home-reveal {
  opacity: 1;
  transform: none
}

.js .kg-home-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .58s ease, transform .58s ease;
}

.js .kg-home-reveal.kg-home-visible {
  opacity: 1;
  transform: translateY(0)
}

@media(max-width:1199px) {
  .kg-home-pluses__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .kg-home-plus-card {
    min-height: 245px
  }
}

@media(max-width:767px) {
  .kg-home-pluses {
    margin: 28px 0;
    padding: 38px 0;
    border-radius: 0
  }

  .kg-home-pluses:before {
    inset: 10px;
    border-radius: 26px
  }

  .kg-home-pluses .container {
    padding: 0 16px
  }

  .kg-home-pluses__head {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 20px
  }

  .kg-home-pluses__head h2 {
    font-size: clamp(28px, 9vw, 38px)
  }

  .kg-home-pluses__head p {
    font-size: 15px;
    line-height: 1.65
  }

  .kg-home-pluses__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 16px 12px;
    margin: 0 -16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .kg-home-pluses__grid::-webkit-scrollbar {
    height: 6px
  }

  .kg-home-pluses__grid::-webkit-scrollbar-thumb {
    background: rgba(122, 86, 72, .25);
    border-radius: 999px
  }

  .kg-home-plus-card {
    min-width: 82%;
    min-height: 250px;
    padding: 22px;
    border-radius: 24px;
    scroll-snap-align: start;
  }

  .kg-home-plus-card__icon {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 18px
  }

  .kg-home-plus-card__icon img,
  .kg-home-plus-card__icon svg {
    width: 29px;
    height: 29px
  }
}

@media(max-width:420px) {
  .kg-home-plus-card {
    min-width: 88%
  }
}

@media(prefers-color-scheme:dark) {
  .kg-home-pluses {
    background:
      radial-gradient(circle at 8% 14%, rgba(122, 86, 72, .16), transparent 28%),
      radial-gradient(circle at 92% 12%, rgba(106, 168, 79, .16), transparent 30%),
      linear-gradient(135deg, #15110f 0%, #241b17 48%, #10130f 100%);
    color: #fff;
  }

  .kg-home-pluses:before {
    border-color: rgba(255, 255, 255, .08)
  }

  .kg-home-pluses__head h2 {
    color: #fff
  }

  .kg-home-pluses__head p {
    color: rgba(255, 255, 255, .68)
  }

  .kg-home-pluses__eyebrow {
    color: #bce5a5;
    background: rgba(106, 168, 79, .13);
    border-color: rgba(106, 168, 79, .28)
  }

  .kg-home-plus-card,
  .kg-home-plus-card:nth-child(1),
  .kg-home-plus-card:nth-child(5),
  .kg-home-plus-card:nth-child(2n) {
    background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
    border-color: rgba(255, 255, 255, .13);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .26);
  }

  .kg-home-plus-card:hover {
    border-color: rgba(106, 168, 79, .42);
    box-shadow: 0 34px 86px rgba(0, 0, 0, .32)
  }

  .kg-home-plus-card h3 {
    color: #fff
  }

  .kg-home-plus-card p {
    color: rgba(255, 255, 255, .68)
  }

  .kg-home-plus-card__number {
    color: rgba(255, 255, 255, .2)
  }

  .kg-home-plus-card__icon {
    background: rgba(106, 168, 79, .12);
    border-color: rgba(106, 168, 79, .28);
    color: #bce5a5
  }
}

@media(prefers-reduced-motion:reduce) {
  .kg-home-pluses * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important
  }
}