/* ============================================================
   FACTS PANEL — redesigned homepage section
   Brand: #155945 (primary green) / #d7b39a (warm accent)
   Fonts: "Montserrat" headings / "Inter" body
   ============================================================ */

/* ── Outer wrapper ── */
.facts-panel {
  position: relative;
  overflow: hidden;
  padding: 72px 56px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 28px;
  margin: 20px 12px 20px 20px;
}

.facts-panel::before,
.facts-panel::after {
  display: none;
}

.facts-panel > * {
  position: relative;
  z-index: 1;
}

/* ── Eyebrow label ── */
.facts-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #155945;
  border: 1px solid rgba(21,89,69,.25);
  background: rgba(21,89,69,.07);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
  width: fit-content;
}

.facts-eyebrow i {
  font-size: 10px;
  opacity: .85;
}

/* ── Headline ── */
.facts-headline {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.625rem); /* 18→26px плавно */
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.42;
  margin: 0 0 36px;
  letter-spacing: -.015em;
}

.facts-headline em {
  font-style: normal;
  color: #155945;
}

/* ── 2×2 grid of fact cards ── */
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Individual card ── */
.fact-card {
  background: rgba(21,89,69,.05);
  border: 1px solid rgba(21,89,69,.13);
  border-radius: 16px;
  padding: 22px 20px 20px;
  position: relative;
  overflow: hidden;
  transition: background .28s ease, border-color .28s ease, transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease;
}

/* Decorative circle in card corner */
.fact-card::after {
  content: "";
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(21,89,69,.07);
  pointer-events: none;
  transition: transform .28s ease;
}

.fact-card:hover {
  background: rgba(21,89,69,.09);
  border-color: rgba(21,89,69,.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(21,89,69,.12);
}

.fact-card:hover::after {
  transform: scale(1.4);
}

/* Icon badge */
.fact-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(21,89,69,.1);
  border: 1px solid rgba(21,89,69,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
  transition: background .28s ease;
}

.fact-card:hover .fact-card__icon {
  background: rgba(21,89,69,.18);
}

.fact-card__icon i {
  font-size: 13px;
  color: #155945;
}

/* Large number */
.fact-card__num {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.625rem, 1.2rem + 1.79vw, 2.625rem); /* 26→42px плавно */
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 7px;
}

.fact-card__num .fact-suffix {
  font-size: 60%;
  font-weight: 700;
  color: #155945;
  letter-spacing: -.01em;
}

/* Label text */
.fact-card__label {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(30,30,30,.6);
  display: block;
}

/* ── SEO text block below facts grid ── */
.facts-seo {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(21,89,69,.12);
}

.facts-seo__text {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(30,30,30,.58);
  margin: 0 0 12px;
}

.facts-seo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts-seo__tags li {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  color: #155945;
  background: rgba(21,89,69,.07);
  border: 1px solid rgba(21,89,69,.15);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}

/* ── Scroll-reveal (reuse site's pattern) ── */
.facts-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}

.facts-reveal.facts-visible {
  opacity: 1;
  transform: none;
}

.facts-reveal[data-delay="1"] { transition-delay: .08s; }
.facts-reveal[data-delay="2"] { transition-delay: .16s; }
.facts-reveal[data-delay="3"] { transition-delay: .24s; }
.facts-reveal[data-delay="4"] { transition-delay: .32s; }
.facts-reveal[data-delay="5"] { transition-delay: .4s; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .facts-panel {
    padding: 64px 40px;
    min-height: auto;
    margin: 16px 12px 16px 16px;
    border-radius: 22px;
  }
}

@media (max-width: 767px) {
  .facts-panel {
    padding: 48px 20px;
    margin: 12px 0 12px 0;
    border-radius: 16px;
  }
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .fact-card {
    padding: 16px 14px 14px;
  }
}

@media (max-width: 480px) {
  .fact-card {
    padding: 18px 16px 16px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .facts-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .fact-card {
    transition: none !important;
  }
}
