/* ======================================================
   KL – FRONT PAGE & HERO STYLES
   ====================================================== */

/* ===== HERO (full-bleed + centered content) ===== */
.kl-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  --header-h: 96px;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* фон */
.kl-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0f172a;
}
.kl-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 38%;
  filter: brightness(0.78);
}

/* лёгкая дымка */
.kl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* контент по центру */
.kl-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 1100px;
  width: 100%;
  padding: clamp(24px, 4vw, 40px) 16px;
}

/* заголовки */
.kl-hero__title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 10px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.kl-hero__kicker {
  color: #f8fafc;
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 6px 0 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

/* буллеты */
.kl-hero__bullets {
  list-style: none;
  margin: 0 auto 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  color: #e5e7eb;
}
.kl-hero__bullets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kl-hero__bullets .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #84cc16;
}

/* ===== HERO (centered glass panel) ===== */
.kl-hero.kl-hero--center {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.kl-hero--center .kl-hero__inner {
  width: min(820px, 92%);
  margin: 0 auto;
}
.kl-hero--center .kl-hero__panel {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.18);
  text-align: center;
  color: #111;
}

/* заголовок внутри панели */
.kl-hero__title--dark {
  font-size: clamp(32px, 5vw, 56px);
  color:  #83CA14; 
  background-color: #6b72802b;
  font-weight: 900;
  margin: 0 0 1rem;
}

/* ===== белые «пилюли» с галочкой ===== */
.kl-badges {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .kl-badges {
    grid-template-columns: 1fr;
  }
}
.kl-badges li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 10px 14px;
  text-align: left;
  color: #374151;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
}
.kl-badges li::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8f5e9;
  border: 1px solid rgba(44, 95, 45, 0.15);
  box-shadow: inset 0 0 0 2px rgba(44, 95, 45, 0.06);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>')
    center/20px 20px no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>')
    center/20px 20px no-repeat;
  background-color: #2c5f2d;
}

/* ===== КНОПКИ ===== */
.kl-hero__cta {
  margin-top: 14px;
  text-align: center;
}
.btn-cta {
  display: inline-block;
  background: #f3c04d;
  color: #2b2b2b;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none;
  text-align: center;
}
.btn-cta:hover {
  filter: brightness(0.97);
}

/* ===== кнопки из [kl_contact_buttons] ===== */
.kl-contacts,
.kl-contacts-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
  text-align: center;
}

.kl-contacts .btn-pill,
.kl-contacts-buttons .btn-pill {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #2c5f2d;
  color: #fff;
  border: none;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.kl-contacts .btn-pill:hover,
.kl-contacts-buttons .btn-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* адаптив */
@media (max-width: 860px) {
  .kl-hero.kl-hero--center {
    min-height: 64vh;
  }
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}
.service-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.service-title {
  margin: 12px 14px 6px;
  font-size: 1.1rem;
  color: #1f2937;
}
.service-excerpt {
  margin: 0 14px 0;
  color: #6b7280;
  flex: 1 1 auto;
}

.service-foot {
  margin: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.service-foot .price-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: VAR(--brand, #2c5f2d);
  line-height: Q;
}

/* ===== PRICE CARDS ===== */
.price-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 840px) {
  .price-cards {
    grid-template-columns: 1fr;
  }
}
.price-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  padding: 18px;
  text-align: center;
}
.price-name {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #1f2937;
}
.price-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand, #2c5f2d);
}
.price-note {
  color: #6b7280;
  margin-top: 6px;
}

/* ===== REVIEWS ===== */
.reviews-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .reviews-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .reviews-list {
    grid-template-columns: 1fr;
  }
}
.review-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}
.review-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.placeholder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f6f3;
}

/* ===== CONTACTS CTA ===== */
.contacts-cta {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  padding: 24px;
  text-align: center;
  margin-top: 2rem;
}

/* убираем горизонтальную прокрутку */
html,
body {
  overflow-x: hidden;
}
