/* Homepage hero text slider + right-side motion */
:root {
  --hh-ink: #232323;
  --hh-muted: #4a5560;
  --hh-green: #18c493;
  --hh-green-deep: #149a74;
  --hh-orange: #e07a1f;
  --hh-green-grad: linear-gradient(90deg, #31a375, #19b27f);
  --hh-font: "Manrope", system-ui, sans-serif;
}

.home-hero {
  font-family: var(--hh-font);
  max-width: 580px;
  color: var(--hh-ink);
  text-align: left;
  position: relative;
  z-index: 2;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.home-hero__stage {
  position: relative;
  min-height: 230px;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  pointer-events: none;
}

.home-hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(24, 196, 147, 0.12);
  color: var(--hh-green-deep);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hh-green);
}

.home-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.15rem, 5vw, 3.85rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--hh-ink);
}

.home-hero h1 strong {
  font-weight: 800;
  color: var(--hh-ink);
}

@media (min-width: 1100px) {
  .home-hero h1 {
    font-size: 4.35rem;
    line-height: 1.02;
  }

  .home-hero__stage {
    min-height: 260px;
  }

  .home-hero__points li {
    font-size: 1.08rem;
  }
}

.home-hero__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.home-hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--hh-muted);
  font-weight: 550;
}

.home-hero__points li::before {
  content: "★";
  flex: none;
  color: var(--hh-green);
  font-size: 1.05rem;
  line-height: 1.35;
}

.home-hero__points strong {
  color: var(--hh-ink);
  font-weight: 750;
}

.home-hero__nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 1.15rem;
}

.home-hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(35, 35, 35, 0.18);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.home-hero__dot.is-active {
  width: 28px;
  background: var(--hh-green);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.home-hero__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 12px;
  background: var(--hh-green-grad);
  color: #fff !important;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(25, 178, 127, 0.28);
  transition: transform 0.15s, filter 0.15s;
}

.home-hero__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  color: #fff !important;
}

.home-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--hh-ink) !important;
  border: 1px solid rgba(24, 196, 147, 0.35);
  box-shadow: none;
}

.home-hero__btn--ghost:hover {
  color: var(--hh-green-deep) !important;
  background: #fff;
}

.home-hero__phones {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.home-hero__phones a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--hh-ink) !important;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none !important;
}

.home-hero__phones img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

/* Modern messenger pills */
.home-hero__social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-hero__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(28, 52, 72, 0.1);
  box-shadow: 0 8px 18px rgba(20, 40, 55, 0.08);
  color: var(--hh-ink) !important;
  text-decoration: none !important;
  font-size: 0.86rem;
  font-weight: 750;
  transition: transform 0.18s, box-shadow 0.18s;
}

.home-hero__social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(20, 40, 55, 0.12);
}

.home-hero__ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}

.home-hero__ico svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: #fff;
}

.home-hero__ico--viber { background: linear-gradient(145deg, #8f5db7, #7360f2); }
.home-hero__ico--tg { background: linear-gradient(145deg, #34aadf, #229ed9); }
.home-hero__ico--ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.home-hero__ico--wa { background: linear-gradient(145deg, #25d366, #128c7e); }

/* Right-side floating scene — 404-style window + sales chips */
#pg-w67d83a9184ac9-0 > .panel-row-style {
  position: relative !important;
  overflow: hidden;
  background-position: right center !important;
  background-size: cover !important;
}

.home-hero-fx {
  position: absolute;
  /* Sit in the right half of the content column, not at the viewport edge */
  right: max(1.25rem, calc((100% - var(--hh-layout, 1380px)) / 2 + 1.25rem));
  top: 52%;
  transform: translateY(-50%);
  width: min(420px, 40%);
  height: min(440px, 80%);
  z-index: 3;
  pointer-events: none;
  font-family: var(--hh-font);
}

.home-hero-fx__illus {
  position: absolute;
  left: 8%;
  right: 10%;
  top: 6%;
  bottom: 4%;
  animation: hh-float 5.5s ease-in-out infinite;
}

.home-hero-fx__win {
  position: absolute;
  inset: 8% 10% 18% 10%;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15)),
    linear-gradient(180deg, #9fd7ef 0%, #d8efe6 45%, #f3efe4 100%);
  border: 10px solid #1f3a52;
  box-shadow:
    0 24px 50px rgba(21, 32, 41, 0.22),
    inset 0 0 0 3px rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.home-hero-fx__win::before,
.home-hero-fx__win::after {
  content: "";
  position: absolute;
  background: #1f3a52;
  z-index: 2;
}

.home-hero-fx__win::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 8px;
  transform: translateX(-50%);
}

.home-hero-fx__win::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 8px;
  transform: translateY(-50%);
}

.home-hero-fx__sun {
  position: absolute;
  top: 12%;
  right: 14%;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7a8, #f0b429 70%);
  box-shadow: 0 0 24px rgba(240, 180, 41, 0.45);
  animation: hh-glow 3.2s ease-in-out infinite;
  z-index: 1;
}

.home-hero-fx__cloud {
  position: absolute;
  top: 22%;
  left: 10%;
  width: 4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 1.15rem -0.5rem 0 0.08rem rgba(255, 255, 255, 0.8);
  animation: hh-drift 7s ease-in-out infinite;
  z-index: 1;
}

.home-hero-fx__sill {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 12%;
  height: 0.85rem;
  border-radius: 6px;
  background: linear-gradient(180deg, #2a4a63, #1f3a52);
  box-shadow: 0 10px 18px rgba(21, 32, 41, 0.2);
}

.home-hero-fx__plant {
  position: absolute;
  right: 14%;
  bottom: 16%;
  width: 1.55rem;
  height: 2.3rem;
  background: linear-gradient(180deg, #2f9e6f, #1d7a54);
  border-radius: 60% 60% 40% 40%;
  transform: rotate(8deg);
  animation: hh-sway 3.8s ease-in-out infinite;
  z-index: 3;
}

.home-hero-fx__plant::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 0.3rem;
  width: 1.25rem;
  height: 1.85rem;
  background: linear-gradient(180deg, #39b883, #1f8a5c);
  border-radius: 60% 60% 40% 40%;
  transform: rotate(-28deg);
}

.home-hero-fx__chip {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  padding: 0.55rem 0.85rem 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 52, 72, 0.1);
  box-shadow: 0 14px 32px rgba(16, 36, 52, 0.16);
  color: var(--hh-ink);
  white-space: nowrap;
  animation: hh-float 5.8s ease-in-out infinite;
  transition: opacity 0.35s, transform 0.35s, filter 0.35s;
  backdrop-filter: blur(6px);
}

.home-hero-fx__chip em {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--hh-green);
  line-height: 1.1;
}

.home-hero-fx__chip span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hh-muted, #5d6b78);
  letter-spacing: 0.01em;
}

.home-hero-fx__chip--a {
  top: 4%;
  right: 2%;
  animation-delay: -0.6s;
}

.home-hero-fx__chip--a em { color: var(--hh-orange, #e07a1f); }

.home-hero-fx__chip--b {
  top: 36%;
  right: 0;
  animation-delay: -2.2s;
  animation-duration: 6.8s;
}

.home-hero-fx__chip--c {
  bottom: 22%;
  left: 0;
  animation-delay: -3.4s;
  animation-duration: 6.2s;
}

.home-hero-fx__chip--d {
  bottom: 6%;
  right: 10%;
  animation-delay: -1.4s;
  animation-duration: 7.1s;
}

.home-hero-fx__chip.is-dim {
  opacity: 0.45;
  filter: grayscale(0.25);
}

@keyframes hh-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes hh-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

@keyframes hh-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes hh-sway {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: rotate(14deg); }
}

#pg-w67d83a9184ac9-0 .home-hero .h1top { display: none; }

#panel-w67d83a9184ac9-0-0-0 > .panel-widget-style {
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

/* Homepage: hero photo goes under the menu (no white strip) */
body.home {
  --hh-menu-h: 84px;
  --hh-layout: 1380px;
}

body.home #wrapper {
  background: transparent !important;
}

body.home .app-bar {
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 1000;
}

/* Remove cream/white gap above the photo row */
body.home #pg-w68a1cbe3f3881-0 > .panel-row-style,
body.home #pg-w68a1cbe3f3881-0.panel-has-style > .panel-row-style {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.home #pg-21-0 > .panel-row-style {
  margin-top: 0 !important;
}

body.home #page-builder.theme-builder {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.home #pl-21 > .panel-grid:first-child,
body.home #pl-w68a1cbe3f3881 > .panel-grid:first-child {
  margin-top: 0 !important;
}

body.home #pl-21 .so-panel:first-child {
  margin-bottom: 0 !important;
}


body.home #pg-w67d83a9184ac9-0 {
  margin-top: calc(var(--hh-menu-h) * -1) !important;
  margin-bottom: 25px;
  position: relative;
  z-index: 0;
}

body.home #pg-w67d83a9184ac9-0 > .panel-row-style {
  padding-top: calc(var(--hh-menu-h) + 28px) !important;
  background-position: right top !important;
  background-size: cover !important;
  min-height: 560px;
}

@media (max-width: 980px) {
  body.home {
    --hh-menu-h: 74px;
  }

  .home-hero-fx {
    display: none;
  }
}

@media (max-width: 780px) {
  .home-hero {
    max-width: none;
    text-align: center;
    margin: 0 auto;
  }

  .home-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .home-hero__stage {
    min-height: 190px;
  }

  .home-hero__points li {
    justify-content: center;
    text-align: left;
  }

  .home-hero__nav,
  .home-hero__actions,
  .home-hero__phones,
  .home-hero__social {
    justify-content: center;
  }

  .home-hero__phones {
    justify-items: center;
  }

  #pg-w67d83a9184ac9-0 > .panel-row-style {
    background-position: 72% center !important;
  }

  #panel-w67d83a9184ac9-0-0-0 > .panel-widget-style {
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.62) 0%, rgba(245, 240, 232, 0.48) 100%);
    border-radius: 18px;
    margin: 0.5rem;
    backdrop-filter: blur(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__slide,
  .home-hero-fx__illus,
  .home-hero-fx__chip,
  .home-hero-fx__cloud,
  .home-hero-fx__sun,
  .home-hero-fx__plant {
    animation: none !important;
    transition: none;
  }
}


/* Hero content width = site layout; photo background stays full-bleed */
body.home #pg-w67d83a9184ac9-0 > .panel-row-style > .panel-grid-cell,
body.home #panel-w67d83a9184ac9-0-0-0 > .ocnacont,
body.home #panel-w67d83a9184ac9-0-0-0 > .panel-widget-style {
  max-width: var(--hh-layout, 1380px) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

body.home #panel-w67d83a9184ac9-0-0-0 > .panel-widget-style {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

body.home .home-hero {
  max-width: min(620px, 100%);
}

body.home .home-hero-fx {
  /* Pull illustration left into the 1380 layout (closer to text) */
  right: max(1.5rem, calc((100% - var(--hh-layout, 1380px)) / 2 + clamp(3rem, 7vw, 7.5rem)));
  width: min(400px, 36%);
}
