/* ==========================================================================
   ЕКСПЕРИМЕНТАЛЬНИЙ HERO ТА ПРОЗОРА ШАПКА (data-hero-exp="1")
   ========================================================================== */

.hero-exp__bg,
.hero-exp__head,
.hero-exp__panel,
.hero-exp__cta-label,
.hero-exp__btn-sec {
  display: none;
}

html[data-hero-exp="1"] .hero-base__head,
html[data-hero-exp="1"] .hero-base__badges,
html[data-hero-exp="1"] .hero-base__cta-label,
html[data-hero-exp="1"] .btn--hero-pulse__icon {
  display: none;
}

html[data-hero-exp="1"] .hero-exp__bg,
html[data-hero-exp="1"] .hero-exp__head {
  display: block;
}

html[data-hero-exp="1"] .hero-exp__cta-label { display: inline; }
html[data-hero-exp="1"] .hero-exp__btn-sec { display: inline-flex; }

/* --- ШАПКА: Справжній логотип + охайний інтервал --- */
html[data-hero-exp="1"] .header:not(.is-scrolled) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .logo__img--dark {
  display: none;
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .logo__img--light {
  display: block;
  max-height: 46px;
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .nav__link {
  font-weight: 500;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.84) !important;
  text-shadow: none;
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .nav__link:hover {
  color: #FFFFFF !important;
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .header__phone {
  font-size: 0.94rem;
  font-weight: 600;
  text-shadow: none;
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .messenger-icon-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .lang-switch {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .lang-switch__btn {
  color: rgba(255, 255, 255, 0.62);
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .lang-switch__btn.is-active {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  box-shadow: none;
}

html[data-hero-exp="1"] .header:not(.is-scrolled) .lang-switch__btn.is-active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--primary-green);
}

/* --- HERO --- */
html[data-hero-exp="1"] .hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  padding: 100px 0 64px;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #111418;
  background-image: none;
}

html[data-hero-exp="1"] .hero::after { display: none; }

html[data-hero-exp="1"] .hero-exp__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-exp-bg-image, url('../img/Portfolio/A1361.webp'));
  background-size: cover;
  background-position: right center;
  filter: saturate(0.32) contrast(1.06) brightness(0.84);
  transform: scale(1.02);
}

html[data-hero-exp="1"] .hero-exp__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(16, 19, 24, 0.96) 0%,
    rgba(16, 19, 24, 0.84) 46%,
    rgba(16, 19, 24, 0.44) 76%,
    rgba(16, 19, 24, 0.28) 100%
  ),
  linear-gradient(
    to bottom,
    rgba(16, 19, 24, 0.78) 0%,
    rgba(16, 19, 24, 0.14) 28%,
    rgba(16, 19, 24, 0.64) 100%
  );
}

html[data-hero-exp="1"] .hero__container {
  max-width: 1220px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

html[data-hero-exp="1"] .hero__content {
  align-items: flex-start;
  text-align: left;
  max-width: 660px;
  margin-top: auto;
  margin-bottom: auto;
  padding: 16px 0 8px;
}

html[data-hero-exp="1"] .hero-exp__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
}

html[data-hero-exp="1"] .hero-exp__kicker-dot {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background-color: var(--primary-green);
  flex-shrink: 0;
}

html[data-hero-exp="1"] .hero-exp__title {
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 0 0 16px;
}

html[data-hero-exp="1"] .hero__subtitle {
  margin: 0 0 26px;
  max-width: 560px;
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.78);
  text-shadow: none;
}

html[data-hero-exp="1"] .hero__actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

html[data-hero-exp="1"] .btn--hero-pulse {
  min-height: 48px;
  padding: 12px 26px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #0B1218 !important;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-hero-exp="1"] .btn--hero-pulse:hover {
  color: #0B1218 !important;
  background-color: #70BF43;
  border-color: #70BF43;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

html[data-hero-exp="1"] .hero-exp__btn-sec {
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

html[data-hero-exp="1"] .hero-exp__btn-sec:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
}

/* --- НИЖНЯ 3-КОЛОНКОВА ПАНЕЛЬ З ВИРІВНЯНИМИ БАЗОВИМИ ЛІНІЯМИ --- */
html[data-hero-exp="1"] .hero-exp__panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  background: rgba(15, 20, 26, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  overflow: hidden;
}

html[data-hero-exp="1"] .hero-exp__fact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  padding: 20px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-hero-exp="1"] .hero-exp__fact:last-child { border-right: 0; }

html[data-hero-exp="1"] .hero-exp__fact-head {
  display: flex;
  align-items: center;
  min-height: 26px;
}

html[data-hero-exp="1"] .hero-exp__fact-val {
  font-family: var(--font-heading);
  font-size: 1.14rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

html[data-hero-exp="1"] .hero-exp__kionica-logo {
  display: block;
  height: 23px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

html[data-hero-exp="1"] .hero-exp__fact-sub {
  font-size: 0.81rem;
  color: #94A3B8;
  line-height: 1.38;
}

@media (max-width: 768px) {
  html[data-hero-exp="1"] .header:not(.is-scrolled) .logo__img--light { max-height: 38px; }
  html[data-hero-exp="1"] .hero { padding: 86px 0 56px; }
  html[data-hero-exp="1"] .hero-exp__bg { background-position: 62% center; }
  html[data-hero-exp="1"] .hero__container { padding: 0 16px; gap: 22px; }
  html[data-hero-exp="1"] .hero__content { max-width: 100%; padding: 8px 0 0; }
  html[data-hero-exp="1"] .hero-exp__kicker { font-size: 0.7rem; margin-bottom: 10px; }
  html[data-hero-exp="1"] .hero-exp__title { font-size: 1.8rem; margin-bottom: 12px; }
  html[data-hero-exp="1"] .hero__subtitle { font-size: 0.92rem; margin-bottom: 20px; }
  html[data-hero-exp="1"] .hero__actions { width: 100%; margin: 0; }
  html[data-hero-exp="1"] .btn--hero-pulse,
  html[data-hero-exp="1"] .hero-exp__btn-sec { width: 100%; }
  html[data-hero-exp="1"] .hero-exp__panel { grid-template-columns: 1fr; }
  html[data-hero-exp="1"] .hero-exp__fact {
    padding: 13px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  html[data-hero-exp="1"] .hero-exp__fact:last-child { border-bottom: 0; }
}
