/* ========================================================== */
/* KOROTKOV HOME: TRUST, COMPLEXES & FAQ SYSTEM               */
/* ========================================================== */

/* --- 1. TRUST / BENEFITS BAR (4 COLUMNS - EXACT EQUAL HEIGHT ON DESKTOP) --- */
.kk-benefits {
  padding: 24px 0;
  background: #fbfdfc;
  border-bottom: 1px solid rgba(20, 61, 52, 0.06);
}

@media (min-width: 992px) {
  .kk-benefits__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  .kk-benefit-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid rgba(20, 61, 52, 0.09) !important;
    box-shadow: 0 2px 8px rgba(17, 56, 46, 0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .kk-benefit-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(17, 56, 46, 0.08) !important;
    border-color: rgba(15, 169, 56, 0.3) !important;
  }

  .kk-benefit-item__text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-width: 0 !important;
  }
}

/* Base styles common to both */
.kk-benefit-item--clickable {
  cursor: pointer !important;
}

.kk-benefit-item__icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #128a38 0%, #0fa938 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(15, 169, 56, 0.28) !important;
  filter: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.kk-benefit-item:hover .kk-benefit-item__icon {
  background: linear-gradient(135deg, #159c40 0%, #11be41 100%) !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(15, 169, 56, 0.4) !important;
}

.kk-benefit-item__content-top {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.kk-benefit-item__text strong {
  font-size: 14.5px !important;
  font-weight: 750 !important;
  color: #11382e !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.kk-benefit-item__text span {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #4a5e55 !important;
}

.kk-benefit-item__action {
  margin-top: 8px !important;
  padding-top: 2px !important;
}

.kk-benefit-item__link {
  font-size: 11.5px !important;
  color: #0fa938 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  display: inline-block !important;
}

.kk-benefit-item__link:hover {
  color: #0d8a2f !important;
}

.kk-benefit-item__subnote {
  font-size: 11.5px !important;
  color: #2b6e49 !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Tablet: 2x2 grid */
@media (min-width: 769px) and (max-width: 991px) {
  .kk-benefits__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
  }
  .kk-benefit-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(20, 61, 52, 0.09) !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
  .kk-benefit-item__text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    height: 100% !important;
  }
}

/* MOBILE: CLEAN VERTICAL LIST LAYOUT */
@media (max-width: 768px) {
  .kk-benefits {
    padding: 16px 0 !important;
  }
  .kk-benefits__grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .kk-benefit-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid rgba(20, 61, 52, 0.08) !important;
    box-shadow: 0 2px 6px rgba(17, 56, 46, 0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: auto !important;
  }
  .kk-benefit-item__icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #128a38 0%, #0fa938 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(15, 169, 56, 0.25) !important;
  }
  .kk-benefit-item__text {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: auto !important;
  }
  .kk-benefit-item__text strong {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }
  .kk-benefit-item__text span {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  .kk-benefit-item__action {
    margin-top: 4px !important;
    padding-top: 0 !important;
  }
}


/* --- 2. SIGNATURE HEALTH COMPLEXES --- */
.kk-complexes {
  padding: 64px 0 54px 0;
  background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
  border-top: 1px solid rgba(20, 61, 52, 0.06);
  border-bottom: 1px solid rgba(20, 61, 52, 0.06);
}

.kk-complexes__head {
  text-align: center;
  margin-bottom: 38px;
}

.kk-complexes__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0fa938;
  margin-bottom: 8px;
}

.kk-complexes__title {
  font-size: 32px;
  font-weight: 800;
  color: #11382e;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.kk-complexes__subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5e55;
}

.kk-complexes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kk-complex-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(20, 61, 52, 0.1);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(17, 56, 46, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.kk-complex-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(17, 56, 46, 0.1);
  border-color: rgba(15, 169, 56, 0.35);
}

.kk-complex-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.kk-complex-card__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kk-complex-card__badge--detox {
  background: #eef8f2;
  color: #0f873b;
  border: 1px solid #c8ebd6;
}

.kk-complex-card__badge--joints {
  background: #fdf6e9;
  color: #a36806;
  border: 1px solid #f2dfb6;
}

.kk-complex-card__badge--immunity {
  background: #fdf0ed;
  color: #c73e1d;
  border: 1px solid #f6cfc4;
}

.kk-complex-card__badge--shield {
  background: #eef4fb;
  color: #2465ab;
  border: 1px solid #c9def4;
}

.kk-complex-card__duration {
  font-size: 11px;
  color: #72847c;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kk-complex-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f0f7f3;
  color: #174d40;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.kk-complex-card:hover .kk-complex-card__icon-wrap {
  background: #0fa938;
  color: #ffffff;
}

.kk-complex-card__title {
  font-size: 18px;
  font-weight: 800;
  color: #11382e;
  line-height: 1.3;
  margin: 0 0 10px 0;
  min-height: 48px;
}

.kk-complex-card__goal {
  font-size: 13px;
  line-height: 1.5;
  color: #4a5e55;
  margin: 0 0 16px 0;
  min-height: 58px;
}

.kk-complex-card__composition {
  background: #f8faf9;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  flex-grow: 1;
}

.kk-complex-card__composition strong {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #174d40;
  margin-bottom: 8px;
  font-weight: 750;
}

.kk-complex-card__composition ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kk-complex-card__composition li {
  font-size: 12px;
  line-height: 1.4;
  color: #2f433b;
  position: relative;
  padding-left: 14px;
}

.kk-complex-card__composition li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #0fa938;
  font-size: 14px;
  line-height: 1;
}

.kk-complex-card__composition li strong {
  display: inline;
  text-transform: none;
  font-size: inherit;
  color: #11382e;
  font-weight: 700;
}

.kk-complex-card__footer {
  margin-top: auto;
}

.kk-complex-card__btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  background: #ffffff;
  color: #174d40;
  border: 1.5px solid #174d40;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.kk-complex-card__btn i {
  color: #0fa938;
  font-size: 14px;
  transition: color 0.2s ease;
}

.kk-complex-card__btn:hover {
  background: #174d40;
  color: #ffffff;
  border-color: #174d40;
}

.kk-complex-card__btn:hover i {
  color: #4ade80;
}

/* --- 3. FAQ ACCORDION SECTION --- */
.kk-faq-section {
  padding: 58px 0;
  background: #ffffff;
  border-top: 1px solid rgba(20, 61, 52, 0.06);
}

.kk-faq__head {
  text-align: center;
  margin-bottom: 34px;
}

.kk-faq__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #0fa938;
  margin-bottom: 8px;
}

.kk-faq__title {
  font-size: 32px;
  font-weight: 800;
  color: #11382e;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.kk-faq__subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
  color: #4a5e55;
}

.kk-faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kk-faq-item {
  border-radius: 14px;
  border: 1px solid rgba(20, 61, 52, 0.1);
  background: #fbfdfc;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kk-faq-item:hover {
  border-color: rgba(20, 61, 52, 0.2);
}

.kk-faq-item.is-open {
  border-color: rgba(15, 169, 56, 0.4);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(17, 56, 46, 0.05);
}

.kk-faq-item__trigger {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  outline: none;
}

.kk-faq-item__question {
  font-size: 15.5px;
  font-weight: 750;
  color: #11382e;
  line-height: 1.35;
}

.kk-faq-item.is-open .kk-faq-item__question {
  color: #0d8a2f;
}

.kk-faq-item__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(20, 61, 52, 0.05);
  color: #174d40;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.kk-faq-item.is-open .kk-faq-item__icon {
  transform: rotate(180deg);
  background: #0fa938;
  color: #ffffff;
}

.kk-faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kk-faq-item.is-open .kk-faq-item__content {
  max-height: 400px;
}

.kk-faq-item__body {
  padding: 0 22px 20px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: #3f554b;
}

.kk-faq-item__body strong {
  color: #11382e;
}

.kk-faq-item__body a {
  color: #0fa938;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.kk-faq-item__body a:hover {
  color: #0b7828;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .kk-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kk-complexes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .kk-benefits__grid {
    grid-template-columns: 1fr;
  }
  .kk-complexes__grid {
    grid-template-columns: 1fr;
  }
  .kk-complex-card__title {
    min-height: auto;
  }
  .kk-complex-card__goal {
    min-height: auto;
  }
  .kk-complexes__title, .kk-faq__title {
    font-size: 26px;
  }
}


/* MOBILE: HORIZONTAL TOUCH-SWIPE CAROUSEL (SWIPE RIGHT) */
@media (max-width: 768px) {
  .kk-complexes {
    padding: 34px 0 28px 0 !important;
  }

  .kk-complexes__head {
    margin-bottom: 18px !important;
    padding: 0 4px !important;
  }

  .kk-complexes__title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .kk-complexes__subtitle {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .kk-complexes__grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding: 6px 15px 18px 15px !important;
    margin: 0 -15px !important;
    scrollbar-width: none !important;
  }

  .kk-complexes__grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .kk-complex-card {
    flex: 0 0 84% !important;
    max-width: 310px !important;
    min-width: 270px !important;
    scroll-snap-align: start !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
  }

  .kk-complexes__swipe-hint {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0fa938;
    margin-top: 10px;
    letter-spacing: 0.2px;
  }
}

@media (min-width: 769px) {
  .kk-complexes__swipe-hint {
    display: none !important;
  }
}


/* SPA BUBBLES ANIMATION FOR CARE SECTION (ENHANCED 3D LAYER) */
.kk-care-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.kk-bubble { position: absolute; bottom: -30px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 22%, rgba(185, 230, 212, 0.28) 55%, rgba(235, 215, 245, 0.22) 75%, rgba(255, 255, 255, 0.65) 100%); border: 1.2px solid rgba(255, 255, 255, 0.9); box-shadow: inset -2px -2px 6px rgba(45, 106, 79, 0.12), inset 1px 1px 4px rgba(255, 255, 255, 0.8), 0 4px 15px rgba(34, 85, 62, 0.09); opacity: 0; pointer-events: none; transform: translate3d(0, 0, 0); }
.kk-bubble::after { content: ''; position: absolute; top: 16%; left: 20%; width: 30%; height: 20%; border-radius: 50%; background: rgba(255, 255, 255, 0.95); transform: rotate(-35deg); filter: blur(0.2px); }
.kk-bubble--1  { left: 6%;  width: 24px; height: 24px; --drift: 22px;  --duration: 3.4s; --delay: 0.1s; }
.kk-bubble--2  { left: 14%; width: 16px; height: 16px; --drift: -18px; --duration: 2.9s; --delay: 0.5s; }
.kk-bubble--3  { left: 22%; width: 32px; height: 32px; --drift: 26px;  --duration: 3.7s; --delay: 0.2s; }
.kk-bubble--4  { left: 32%; width: 14px; height: 14px; --drift: -14px; --duration: 2.6s; --delay: 0.7s; }
.kk-bubble--5  { left: 41%; width: 28px; height: 28px; --drift: 20px;  --duration: 3.5s; --delay: 0.15s; }
.kk-bubble--6  { left: 52%; width: 18px; height: 18px; --drift: -22px; --duration: 3.1s; --delay: 0.6s; }
.kk-bubble--7  { left: 61%; width: 36px; height: 36px; --drift: 28px;  --duration: 3.9s; --delay: 0.25s; }
.kk-bubble--8  { left: 71%; width: 15px; height: 15px; --drift: -15px; --duration: 2.8s; --delay: 0.8s; }
.kk-bubble--9  { left: 81%; width: 28px; height: 28px; --drift: 18px;  --duration: 3.6s; --delay: 0.35s; }
.kk-bubble--10 { left: 91%; width: 20px; height: 20px; --drift: -20px; --duration: 3.2s; --delay: 0.9s; }
.kk-bubble--11 { left: 26%; width: 18px; height: 18px; --drift: 15px;  --duration: 3.3s; --delay: 0.4s; }
.kk-bubble--12 { left: 47%; width: 22px; height: 22px; --drift: -16px; --duration: 3.0s; --delay: 0.3s; }
.kk-bubble--13 { left: 67%; width: 16px; height: 16px; --drift: 14px;  --duration: 2.7s; --delay: 0.65s; }
.kk-bubble--14 { left: 86%; width: 24px; height: 24px; --drift: -17px; --duration: 3.4s; --delay: 0.2s; }
.kk-care-feature.is-animating .kk-bubble { animation: kkSpaBubbleRise var(--duration, 3.4s) cubic-bezier(0.22, 0.61, 0.36, 1) forwards; animation-delay: var(--delay, 0s); }
@keyframes kkSpaBubbleRise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.35); }
  16% { opacity: 0.92; }
  55% { opacity: 0.95; transform: translate3d(var(--drift, 20px), -160px, 0) scale(1); }
  82% { opacity: 0.6; transform: translate3d(calc(var(--drift, 20px) * -0.5), -310px, 0) scale(1.12); }
  100% { opacity: 0; transform: translate3d(var(--drift, 20px), -440px, 0) scale(1.3); }
}


/* --- Botanical Foliage in Categories Margins --- */
.kk-categories {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}
.kk-categories .container {
  position: relative;
  z-index: 2;
}
.kk-cat-foliage {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.kk-cat-foliage--left {
  left: 0;
  width: clamp(200px, 18vw, 360px);
  height: 100%;
}
.kk-cat-foliage--right {
  right: 0;
  width: clamp(200px, 18vw, 360px);
  height: 100%;
}
.kk-cat-foliage svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(46, 94, 64, 0.08));
}
@media (max-width: 1260px) {
  .kk-cat-foliage {
    opacity: 0.35;
    width: 180px;
  }
}
@media (max-width: 1024px) {
  .kk-cat-foliage {
    display: none !important;
  }
}


/* ========================================================== */
/* FLOATING BACK TO TOP BUTTON (DIRECTLY ABOVE CHAT - BRAND EMERALD GRADIENT) */
.kk-back-to-top {
  position: fixed;
  z-index: 9990;
  bottom: 96px;
  right: 29px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #128a38 0%, #0fa938 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 169, 56, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
  outline: none;
}

.kk-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.kk-back-to-top:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 169, 56, 0.55);
  background: linear-gradient(135deg, #159c40 0%, #11be41 100%);
  color: #ffffff;
}

.kk-back-to-top:active {
  transform: scale(0.96);
}

@media (max-width: 480px) {
  .kk-back-to-top {
    bottom: 86px;
    right: 23px;
    width: 46px;
    height: 46px;
    font-size: 17px;
    box-shadow: 0 6px 20px rgba(15, 169, 56, 0.4);
  }
}
