/**
 * SvichkaVisk v2 — homepage styles (extracted from BeBuilder HTML block).
 * Loaded only on the front page via functions/sv2-theme.php.
 * HTML/content remains in BeBuilder (WP admin).
 */

/* SvichkaVisk Home Page */

.svv-home,
.svv-home * {
  box-sizing: border-box;
}

.svv-home {
  --svv-bg: #fff8ec;
  --svv-bg-soft: #f7efe1;
  --svv-card: #ffffff;
  --svv-dark: #23180f;
  --svv-text: #2b2117;
  --svv-muted: rgba(43, 33, 23, 0.68);
  --svv-line: rgba(116, 73, 25, 0.16);
  --svv-honey: #e2a52e;
  --svv-honey-2: #bf7621;
  --svv-brown: #6c421b;
  --svv-green: #4f7e38;
  --svv-shadow: 0 18px 48px rgba(43, 33, 23, 0.11);

  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--svv-text);
  background: #fff;
  font-family: inherit;
}

/* ==========================================================================
   Homepage — hero flush to top; floating header over gradient (not cream band)
   Betheme tr-menu pattern: absolute header + zero placeholder at scroll 0.
   Scoped via body.sv2-header-overlay (PHP is_front_page()).
   ========================================================================== */

body.sv2-header-overlay #Header_wrapper,
body.sv2-header-overlay #Header,
body.sv2-header-overlay.mobile-menu #Header_wrapper,
body.sv2-header-overlay.mobile-menu #Header {
  background: transparent !important;
}

body.sv2-header-overlay .header_placeholder {
  height: 0 !important;
}

/* Betheme be.css: #Content { padding-top: 30px } — cream band above hero */
body.sv2-header-overlay #Content {
  padding-top: 0 !important;
}

body.sv2-header-overlay #Content .content_wrapper,
body.sv2-header-overlay #Content .sections_group {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* BeBuilder first section — no top gap before .svv-home */
body.sv2-header-overlay #Content .sections_group > .section:first-child,
body.sv2-header-overlay #Content .sections_group > .mcb-section:first-child {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sv2-header-overlay #Content .sections_group > .section:first-child > .section_wrapper,
body.sv2-header-overlay #Content .sections_group > .mcb-section:first-child > .section_wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sv2-header-overlay #Content .sections_group > .section:first-child .mcb-column-inner,
body.sv2-header-overlay #Content .sections_group > .mcb-section:first-child .mcb-column-inner {
  padding-top: 0 !important;
}

/* Desktop overlay — pill floats over hero gradient */
@media (min-width: 1240px) {
  body.sv2-header-overlay #Header_wrapper {
    min-height: 0 !important;
    height: 0;
    overflow: visible;
  }

  body.sv2-header-overlay:not(.template-slider) #Header {
    min-height: 0 !important;
  }

  body.sv2-header-overlay #Header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 901;
    padding-bottom: 0 !important;
    pointer-events: none;
  }

  body.sv2-header-overlay.admin-bar #Header {
    top: var(--sv2-admin-bar-top-desktop);
  }

  body.sv2-header-overlay #Top_bar {
    pointer-events: auto;
  }

  body.sv2-header-overlay .svv-home > .svv-hero {
    margin-top: 0;
    padding-top: calc(
      var(--sv2-pill-header-top) +
      var(--sv2-header-bar-h-desktop) +
      var(--sv2-hero-header-gap)
    );
  }

  body.sv2-header-overlay.admin-bar .svv-home > .svv-hero {
    padding-top: calc(
      var(--sv2-admin-bar-top-desktop) +
      var(--sv2-pill-header-top) +
      var(--sv2-header-bar-h-desktop) +
      var(--sv2-hero-header-gap)
    );
  }
}

/* Mobile/tablet home — hero gradient flush to fixed header (no cream band) */
@media (max-width: 1239px) {
  body.sv2-header-overlay #Header_wrapper {
    height: auto !important;
    overflow: visible;
    background-color: var(--sv2-header-bg) !important;
  }

  body.sv2-header-overlay #Header {
    position: relative !important;
    top: auto !important;
    pointer-events: auto;
  }

  body.sv2-header-overlay.admin-bar #Header {
    top: auto !important;
  }

  /*
   * Fixed header offset lives on .svv-hero (not #Wrapper padding-top).
   * Wrapper padding + hero start caused a visible #fff8ec strip between bar and gradient.
   */
  body.sv2-header-overlay:not(.sv2-sticky-betheme) #Wrapper {
    padding-top: 0 !important;
  }

  body.sv2-header-overlay.admin-bar:not(.sv2-sticky-betheme) #Wrapper {
    padding-top: 0 !important;
  }

  body.sv2-header-overlay .svv-home > .svv-hero {
    margin-top: 0;
    padding-top: calc(
      var(--sv2-mobile-header-offset, var(--sv2-header-bar-h-mobile)) +
      var(--sv2-header-gap-below)
    );
  }

  body.sv2-header-overlay.admin-bar .svv-home > .svv-hero {
    padding-top: calc(
      var(--sv2-admin-bar-top-mobile) +
      var(--sv2-mobile-header-offset, var(--sv2-header-bar-h-mobile)) +
      var(--sv2-header-gap-below)
    );
  }
}

/* Section order: hero → catalog → promo → about → choice → cta (DOM unchanged in BeBuilder) */
.svv-home > .svv-hero {
  order: 1;
}

.svv-home > #svv-categories {
  order: 2;
}

.svv-home > .svv-section:has(.svv-promo) {
  order: 3;
}

.svv-home > .svv-section:has(.svv-split) {
  order: 4;
}

.svv-home > .svv-section:has(.svv-choice) {
  order: 5;
}

.svv-home > .svv-section:has(.svv-cta) {
  order: 6;
}

.svv-home a {
  color: inherit;
  text-decoration: none;
}

.svv-home img {
  max-width: 100%;
  height: auto;
  display: block;
}

.svv-section {
  padding: 86px 20px;
}

.svv-section--soft {
  background:
    radial-gradient(circle at 12% 0%, rgba(226, 165, 46, 0.12), transparent 34%),
    linear-gradient(180deg, #fffaf1 0%, #f7efe1 100%);
}

.svv-section--white {
  background: #fff;
}

.svv-wrap {
  width: 100%;
  max-width: var(--sv2-wrap-max, 1180px);
  margin-inline: auto;
}

.svv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--svv-brown);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.svv-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--svv-honey);
}

.svv-title {
  margin: 0;
  color: var(--svv-text);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.svv-title--center,
.svv-text-center {
  text-align: center;
}

.svv-lead {
  margin: 16px 0 0;
  color: var(--svv-muted);
  font-size: 18px;
  line-height: 1.68;
}

.svv-head {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

.svv-head .svv-eyebrow {
  justify-content: center;
}

.svv-head .svv-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--svv-honey);
}

.svv-head .svv-hero__stats--categories {
  max-width: 720px;
  margin: 24px auto 0;
}

.svv-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.svv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.svv-btn--primary {
  background: linear-gradient(135deg, var(--svv-honey), #f4bd4f);
  color: var(--svv-dark);
  box-shadow: 0 14px 30px rgba(226, 165, 46, 0.28);
}

.svv-btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--svv-brown), var(--svv-honey-2));
  color: #fff;
  box-shadow: 0 18px 38px rgba(108, 66, 27, 0.22);
}

.svv-btn--ghost {
  border: 1px solid rgba(108, 66, 27, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--svv-text);
}

.svv-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--svv-honey);
  background: #fff;
  color: var(--svv-brown);
}

/* Hero CTAs — symmetric primary + ghost pair */
.svv-hero .svv-btns {
  align-items: stretch;
}

.svv-hero .svv-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: var(--sv2-radius-pill, 999px);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.svv-hero .svv-btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--svv-honey), #f4bd4f);
  color: var(--svv-dark);
  box-shadow: 0 12px 28px rgba(226, 165, 46, 0.26);
}

/* Light sweep — periodic shimmer L→R on hero primary CTA */
.svv-hero .svv-btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent 100%
  );
  transform: translateX(-180%) skewX(-16deg);
  animation: sv2-btn-light-sweep 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes sv2-btn-light-sweep {
  0%,
  42% {
    transform: translateX(-180%) skewX(-16deg);
  }
  72%,
  100% {
    transform: translateX(320%) skewX(-16deg);
  }
}

.svv-hero .svv-btn--ghost {
  border: 1px solid rgba(108, 66, 27, 0.28);
  background: rgba(255, 255, 255, 0.52);
  color: var(--svv-brown);
  box-shadow: none;
}

@media (hover: hover) {
  .svv-hero .svv-btn--primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--svv-brown), var(--svv-honey-2));
    color: #fff;
    box-shadow: 0 16px 34px rgba(108, 66, 27, 0.2);
  }

  .svv-hero .svv-btn--primary:hover::after {
    animation-play-state: paused;
    opacity: 0;
  }

  .svv-hero .svv-btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--svv-honey);
    background: rgba(255, 255, 255, 0.92);
    color: var(--svv-brown);
  }
}

@media (prefers-reduced-motion: reduce) {
  .svv-hero .svv-btn--primary::after {
    content: none;
    animation: none;
  }
}

@media (min-width: 992px) {
  .svv-hero .svv-btns {
    justify-content: center;
    max-width: 660px;
  }

  .svv-hero .svv-btn {
    flex: 0 1 auto;
    min-width: 200px;
    padding: 14px 28px;
  }
}


/* Hero */

.svv-hero {
  position: relative;
  min-height: 720px;
  padding: 96px 20px 84px;
  background:
    radial-gradient(circle at 80% 12%, rgba(226, 165, 46, 0.22), transparent 30%),
    radial-gradient(circle at 12% 20%, rgba(79, 126, 56, 0.10), transparent 28%),
    linear-gradient(135deg, #fffaf1 0%, #f3e5cd 100%);
}

.svv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.2)),
    url("https://svichkavisk.com.ua/wp-content/uploads/2025/11/tserkovni-voskovi-svichky-%E2%84%964-svichkavisk.com-1-800x800.webp") center right / 660px auto no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

/* Video hero — no duplicate candle watermark behind the clip */
.svv-hero:has(.svv-hero__visual--video)::before {
  content: none;
}

.svv-hero__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--sv2-wrap-max, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 46px;
  align-items: center;
}

.svv-hero__content {
  min-width: 0;
}

.svv-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(108, 66, 27, 0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--svv-brown);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 981px) {
  .svv-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .svv-hero__label {
    align-self: center;
  }

  .svv-hero__content .svv-btns {
    align-self: center;
  }

  .svv-hero__content .svv-hero__stats {
    align-self: stretch;
    width: 100%;
    max-width: none;
  }

  .svv-split > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .svv-split > div:last-child > .svv-eyebrow {
    align-self: center;
  }

  .svv-split > div:last-child > .svv-title {
    align-self: center;
  }

  .svv-split > div:last-child > .svv-btns {
    align-self: center;
  }

  .svv-cta__grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .svv-cta .svv-eyebrow {
    align-self: center;
  }

  .svv-cta .svv-title {
    align-self: center;
  }

  .svv-cta .svv-contacts {
    align-self: center;
  }

  /* Desktop hero — full viewport height, same content rail as pill header */
  .svv-hero:has(.svv-hero__visual--video) {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding-inline: var(--sv2-pill-header-gutter, 16px);
    padding-bottom: 72px;
  }

  .svv-hero:has(.svv-hero__visual--video) .svv-hero__wrap {
    width: min(var(--sv2-wrap-max, 1180px), calc(100% - var(--sv2-pill-header-gutter, 16px) * 2));
    max-width: var(--sv2-wrap-max, 1180px);
    padding-inline: 0;
    gap: clamp(32px, 4vw, 48px);
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.95fr);
    align-items: stretch;
  }

  /* Text column — same height as video; label top, CTA bottom, body centered between */
  .svv-hero:has(.svv-hero__visual--video) .svv-hero__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    height: 100%;
    min-height: 100%;
  }

  .svv-hero:has(.svv-hero__visual--video) .svv-hero__label {
    align-self: center;
    flex-shrink: 0;
    margin-bottom: clamp(14px, 2vh, 20px);
  }

  .svv-hero:has(.svv-hero__visual--video) .svv-hero__content h1 {
    flex-shrink: 0;
    align-self: center;
    width: 100%;
    text-align: center;
  }

  .svv-hero:has(.svv-hero__visual--video) .svv-hero__text {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    max-width: none;
    width: 100%;
    margin: clamp(12px, 1.5vh, 24px) 0;
  }

  .svv-hero:has(.svv-hero__visual--video) .svv-hero__content .svv-btns {
    align-self: stretch;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
  }

  .svv-hero:has(.svv-hero__visual--video) .svv-hero__visual--video {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    align-self: stretch;
  }

  .svv-hero:has(.svv-hero__visual--video) .svv-hero__video {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
  }

  .svv-hero:has(.svv-hero__visual--video) .svv-hero__video::before {
    max-height: min(680px, calc(100svh - 220px));
  }
}

.svv-hero h1 {
  margin: 0;
  color: var(--svv-dark);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.svv-hero__text {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(43, 33, 23, 0.72);
  font-size: 20px;
  line-height: 1.66;
}

.svv-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin-top: 30px;
}

.svv-hero__stat {
  padding: 16px;
  border: 1px solid rgba(108, 66, 27, 0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.66);
  box-shadow: 0 10px 26px rgba(43, 33, 23, 0.06);
  text-align: center;
}

.svv-hero__stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--svv-dark);
  font-size: 19px;
  line-height: 1.1;
}

.svv-hero__stat span {
  color: var(--svv-muted);
  font-size: 13px;
  line-height: 1.35;
}

.svv-hero__visual {
  position: relative;
  min-height: 520px;
}

.svv-hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(43, 33, 23, 0.18);
}

.svv-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svv-hero-card--main {
  right: 0;
  top: 20px;
  width: 78%;
  height: 380px;
}

.svv-hero-card--small {
  left: 0;
  bottom: 18px;
  width: 52%;
  height: 260px;
  border: 10px solid rgba(255,255,255,0.72);
}

.svv-hero__badge {
  position: absolute;
  right: 26px;
  bottom: 72px;
  max-width: 245px;
  padding: 20px;
  border: 1px solid rgba(108, 66, 27, 0.14);
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(43, 33, 23, 0.14);
}

.svv-hero__badge strong {
  display: block;
  margin-bottom: 7px;
  color: var(--svv-dark);
  font-size: 18px;
  line-height: 1.2;
}

.svv-hero__badge span {
  display: block;
  color: var(--svv-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Hero video — replaces stacked cards + badge (upload MP4 to Media Library) */
.svv-hero__video {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background-color: var(--sv2-bg-warm, #f7efe1);
  background-image: var(--sv2-hero-poster, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 26px 70px rgba(43, 33, 23, 0.18);
}

/* In-flow spacer — reserves card height when media is stacked in grid (mobile-safe) */
.svv-hero__video::before {
  content: "";
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  pointer-events: none;
}

.svv-hero__video video,
.svv-hero__video-poster,
.svv-hero__video-img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  place-self: stretch;
}

/* Static poster covers video until playback — hides iOS native play overlay */
.svv-hero__video-poster {
  z-index: 2;
  pointer-events: none;
}

.svv-hero__video video {
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.svv-hero__video.is-playing video {
  z-index: 3;
  opacity: 1;
}

.svv-hero__video.is-playing .svv-hero__video-poster,
.svv-hero__video.is-img-fallback .svv-hero__video-poster {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.svv-hero__video-img {
  z-index: 3;
}

.svv-hero__video.is-playing video::-webkit-media-controls,
.svv-hero__video.is-playing video::-webkit-media-controls-start-playback-button,
.svv-hero__video.is-img-fallback video {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .svv-hero__video video,
  .svv-hero__video-img {
    display: none;
  }

  .svv-hero__video-poster {
    opacity: 1;
    visibility: visible;
  }
}


/* Benefits */

.svv-benefits {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 34px 20px;
}

.svv-benefits__grid {
  width: 100%;
  max-width: var(--sv2-wrap-max, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.svv-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 22px;
  border: 1px solid rgba(108, 66, 27, 0.13);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 40px rgba(43, 33, 23, 0.09);
  text-align: center;
}

.svv-benefit .svv-benefit__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(226, 165, 46, 0.16);
  color: var(--svv-brown);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.svv-benefit strong {
  display: block;
  margin-bottom: 7px;
  color: var(--svv-dark);
  font-size: 18px;
  line-height: 1.2;
}

.svv-benefit > span:not(.svv-benefit__icon) {
  display: block;
  color: var(--svv-muted);
  font-size: 14px;
  line-height: 1.5;
}


/* Categories */

.svv-cats__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.svv-cat {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--svv-card);
  color: #fff;
  box-shadow: 0 18px 42px rgba(43, 33, 23, 0.12);
  isolation: isolate;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.svv-cat:hover {
  transform: translateY(-6px);
  color: #fff;
  box-shadow: 0 26px 58px rgba(43, 33, 23, 0.2);
}

.svv-cat__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.svv-cat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.svv-cat:hover .svv-cat__img img {
  transform: scale(1.06);
}

.svv-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(21, 15, 10, 0.04), rgba(21, 15, 10, 0.78)),
    linear-gradient(90deg, rgba(21, 15, 10, 0.42), rgba(21, 15, 10, 0.08));
}

.svv-cat__body {
  margin-top: auto;
  padding: 22px;
}

.svv-cat__tag {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.svv-cat__title {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.svv-cat__text {
  display: block;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
  line-height: 1.42;
}

.svv-cat__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.svv-cat__more::after {
  content: "→";
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--svv-honey);
  color: var(--svv-dark);
  transition: transform 0.22s ease, background 0.22s ease;
}

.svv-cat:hover .svv-cat__more::after {
  transform: translateX(4px);
  background: #fff;
}

.svv-cat--wide {
  grid-column: span 2;
}

.svv-cat--tall {
  min-height: 360px;
}


/* About split */

.svv-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 42px;
  align-items: center;
}

.svv-split > div:last-child > .svv-eyebrow {
  display: flex;
  justify-content: center;
  width: 100%;
}

.svv-split > div:last-child > .svv-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--svv-honey);
}

.svv-split > div:last-child > .svv-title {
  text-align: center;
}

.svv-photo-stack {
  position: relative;
  min-height: 520px;
}

.svv-photo {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--svv-shadow);
}

.svv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svv-photo--one {
  left: 0;
  top: 0;
  width: 78%;
  height: 360px;
}

.svv-photo--two {
  right: 0;
  bottom: 0;
  width: 58%;
  height: 260px;
  border: 10px solid #fff8ec;
}

.svv-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.svv-list__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(108, 66, 27, 0.13);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 28px rgba(43, 33, 23, 0.05);
}

.svv-list__num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 165, 46, 0.18);
  color: var(--svv-brown);
  font-weight: 900;
}

.svv-list__item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--svv-dark);
  font-size: 18px;
}

.svv-list__item span {
  color: var(--svv-muted);
  font-size: 15px;
  line-height: 1.5;
}


/* Choice cards */

.svv-choice {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.svv-choice__card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(108, 66, 27, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 0%, rgba(226, 165, 46, 0.13), transparent 34%),
    #fff;
  box-shadow: 0 14px 34px rgba(43, 33, 23, 0.07);
}

.svv-choice__card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--svv-dark);
  font-size: 22px;
  line-height: 1.12;
  text-align: center;
}

.svv-choice__card p {
  margin: 0;
  color: var(--svv-muted);
  font-size: 15px;
  line-height: 1.6;
}

.svv-choice__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--svv-honey), #f6c55e);
  color: var(--svv-dark);
  font-weight: 900;
}


/* Promo */

.svv-promo {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(35, 24, 15, 0.92), rgba(86, 50, 19, 0.88)),
    url("https://svichkavisk.com.ua/wp-content/uploads/2026/02/img_9942-800x800.webp") center / cover no-repeat;
  color: #fff;
  padding: 58px;
  box-shadow: 0 24px 60px rgba(43, 33, 23, 0.18);
}

.svv-promo__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.svv-promo .svv-eyebrow {
  display: flex;
  justify-content: center;
  width: 100%;
  color: #f5c76b;
}

.svv-promo .svv-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--svv-honey);
}

.svv-promo .svv-title,
.svv-promo .svv-lead {
  color: #fff;
}

.svv-promo .svv-lead {
  color: rgba(255,255,255,0.78);
}

.svv-promo__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.svv-promo .svv-btns {
  justify-content: center;
}

.svv-promo__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}


/* CTA */

.svv-cta {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 54px;
  background:
    radial-gradient(circle at 85% 12%, rgba(226, 165, 46, 0.25), transparent 32%),
    linear-gradient(135deg, #fff8e8, #f4e5cd);
  box-shadow: var(--svv-shadow);
}

.svv-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.svv-cta .svv-eyebrow {
  display: flex;
  justify-content: center;
  width: 100%;
}

.svv-cta .svv-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--svv-honey);
}

.svv-cta .svv-title {
  text-align: center;
}

.svv-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.svv-contact {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(108, 66, 27, 0.15);
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  color: var(--svv-text);
  font-weight: 800;
}

.svv-contact:hover {
  background: #fff;
  color: var(--svv-brown);
}


/* Responsive */

@media (max-width: 1180px) {
  .svv-cats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .svv-cat--wide {
    grid-column: span 2;
  }

  .svv-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .svv-hero {
    min-height: auto;
    --sv2-hero-mobile-rhythm: clamp(16px, 4.5vw, 20px);
  }

  /*
   * Fixed mobile header — keep full header offset; rhythm = visible gap below bar.
   * Must not replace padding-top with rhythm only (pill hides under fixed header).
   */
  body.sv2-header-overlay .svv-home > .svv-hero {
    padding-top: calc(
      var(--sv2-mobile-header-offset, var(--sv2-header-bar-h-mobile)) +
      var(--sv2-hero-mobile-rhythm)
    );
  }

  body.sv2-header-overlay.admin-bar .svv-home > .svv-hero {
    padding-top: calc(
      var(--sv2-admin-bar-top-mobile) +
      var(--sv2-mobile-header-offset, var(--sv2-header-bar-h-mobile)) +
      var(--sv2-hero-mobile-rhythm)
    );
  }

  .svv-hero__wrap,
  .svv-split,
  .svv-cta__grid {
    grid-template-columns: 1fr;
  }

  /* Mobile hero: text + CTA → video → stats (desktop grid unchanged) */
  .svv-hero__wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .svv-hero__content {
    display: contents;
  }

  .svv-hero__label,
  .svv-hero__content h1,
  .svv-hero__text,
  .svv-hero__content .svv-btns {
    order: 1;
  }

  .svv-hero__label {
    align-self: center;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(11px, 3.2vw, 13px);
    padding-inline: clamp(10px, 2.8vw, 14px);
    margin-top: 0;
    margin-bottom: var(--sv2-hero-mobile-rhythm);
  }

  .svv-hero__content h1 {
    width: 100%;
    text-align: center;
    margin-top: 0;
  }

  /* Cancel flex gap (28px) between pill and h1 — spacing = label margin-bottom only */
  .svv-hero__label + h1 {
    margin-top: -28px;
  }

  .svv-hero__visual {
    order: 2;
    min-height: 480px;
  }

  .svv-hero__visual--video {
    min-height: auto;
  }

  .svv-hero__stats {
    order: 3;
    margin-top: 0;
    max-width: none;
  }

  .svv-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svv-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svv-cat,
  .svv-cat--tall {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .svv-section {
    padding: 58px 16px;
  }

  .svv-hero {
    padding-inline: 16px;
    padding-bottom: 52px;
  }

  .svv-hero h1 {
    font-size: 42px;
  }

  .svv-hero__text,
  .svv-lead {
    font-size: 16px;
  }

  .svv-btns,
  .svv-contacts {
    flex-direction: column;
  }

  .svv-btn,
  .svv-contact {
    width: 100%;
  }

  /* Hero CTAs — one row, equal columns on phone */
  .svv-hero .svv-btns {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .svv-hero .svv-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 14px 10px;
    font-size: 15px;
  }

  /* Hero stats — horizontal scroll row (not vertical stack) */
  .svv-hero__stats,
  .svv-hero__stats--categories {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    margin-inline: 0;
    padding-inline: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .svv-hero__stats::-webkit-scrollbar,
  .svv-hero__stats--categories::-webkit-scrollbar {
    display: none;
  }

  .svv-hero__stat {
    flex: 0 0 32%;
    min-width: 110px;
    min-height: 100%;
    padding: 11px 12px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .svv-hero__stat strong {
    font-size: 16px;
  }

  .svv-hero__stat span {
    font-size: 11px;
    line-height: 1.35;
  }

  .svv-benefits__grid,
  .svv-cats__grid,
  .svv-choice {
    grid-template-columns: 1fr;
  }

  .svv-hero__visual {
    min-height: 390px;
  }

  .svv-hero__visual--video {
    min-height: auto;
  }

  .svv-hero__wrap {
    gap: 22px;
  }

  .svv-hero__video {
    max-height: none;
    border-radius: 24px;
  }

  .svv-hero__video::before {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .svv-hero__badge {
    right: 10px;
    bottom: 30px;
    max-width: 220px;
    padding: 16px;
  }

  .svv-cat--wide {
    grid-column: span 1;
  }

  .svv-photo-stack {
    min-height: 380px;
  }

  .svv-photo--one {
    width: 86%;
    height: 270px;
  }

  .svv-photo--two {
    width: 64%;
    height: 190px;
    border-width: 7px;
  }

  .svv-promo,
  .svv-cta {
    padding: 34px 22px;
    border-radius: 26px;
  }
}

