/*
 * GxG global theme layer
 *
 * This is the authored style layer for every generated EN and RU route.
 * The Webflow export remains the structural baseline; these rules preserve
 * Showcasy typography, spacing, and component treatment while retaining only
 * GxG's five accent colours, logo, and distinctive pull-quote treatment.
 */

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-18: 72px;
  --space-20: 80px;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.w-webflow-badge {
  display: none !important;
}

.w-locales-item a,
.locale a,
.locale a.link,
.w-locales-item a.link,
.locale.w-locales-item a:-webkit-any-link {
  color: var(--neutral--100) !important;
  cursor: pointer;
  text-decoration: none !important;
}

/* Persistent chrome stays solid; content must not show through while scrolling. */
.navbar {
  background-color: var(--neutral--0);
}

/* Showcasy article rhythm. The preceding block owns the vertical separation. */
.rich-text figure {
  margin: var(--space-8) 0;
}

.rich-text figcaption {
  margin-top: var(--space-2);
}

.rich-text h2,
.rich-text h3,
.rich-text h5 {
  margin-bottom: var(--space-8);
  padding-top: 0;
}

.rich-text h6,
.rich-text p,
.rich-text ul,
.rich-text ol {
  margin-bottom: var(--space-4);
  padding-top: 0;
}

/* Intentional GxG exception: a spacious pull quote, not the Showcasy body quote. */
.rich-text blockquote {
  color: var(--neutral--50);
  margin: var(--space-10) 0;
  padding: var(--space-8);
  font: 400 28px/150% "Inter Tight", sans-serif;
  letter-spacing: 0.14px;
}

/* Quiet Showcasy pills for content filters and product taxonomy. */
.tabs-menu {
  gap: var(--space-3);
}

.tab-link {
  border-color: var(--neutral--20);
  background-color: var(--neutral--0);
  color: var(--neutral--70);
}

.tab-link.w--current {
  border-color: var(--neutral--20);
  background-color: var(--neutral--10-101);
  color: var(--neutral--100);
}

.post-img {
  border-radius: 20px;
}

.post-tag {
  border: 1px solid var(--neutral--20);
  background-color: var(--neutral--10-101);
  color: var(--neutral--70);
  padding: var(--space-1) var(--space-3);
  font-size: 14px;
  line-height: 150%;
}

/* Product cards always expose two compact, scannable category tags. */
.list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.product-details-image {
  margin-bottom: var(--space-8);
}

/* Home-only layout styles live here instead of runtime <style> blocks. */
.w-tab-pane .post-item-wr {
  height: 100%;
}

.w-tab-pane .div-block-6 {
  min-height: 497px;
}

.w-tab-pane .post-img {
  width: 100%;
  max-height: 251px;
}

.swiper-logo-wr {
  animation: gxg-logo-scroll 15s linear infinite;
}

@keyframes gxg-logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__wrap {
  --marquee-duration: 60s;
  --marquee-gap: var(--space-10);
  display: flex;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee__wrap .marquee__track {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-start;
  min-width: 100%;
  gap: var(--marquee-gap);
}

.marquee__wrap[data-direction="left"] .marquee__track {
  animation: gxg-marquee-horizontal var(--marquee-duration) linear infinite;
}

.marquee__wrap[data-direction="right"] .marquee__track {
  animation: gxg-marquee-horizontal var(--marquee-duration) linear infinite reverse;
}

.marquee__wrap[data-direction="up"],
.marquee__wrap[data-direction="down"] {
  max-height: 500px;
}

.marquee__wrap[data-direction="up"] .marquee__track,
.marquee__wrap[data-direction="down"] .marquee__track {
  flex-direction: column;
  min-width: auto;
  min-height: 100%;
}

.marquee__wrap[data-direction="up"] .marquee__track {
  animation: gxg-marquee-vertical var(--marquee-duration) linear infinite var(--marquee-direction, normal);
}

.marquee__wrap[data-direction="down"] .marquee__track {
  animation: gxg-marquee-vertical var(--marquee-duration) linear infinite reverse;
}

.marquee__wrap .marquee__item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.marquee__wrap .marquee__item--text {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
}

.marquee__wrap .marquee__item img {
  width: auto;
  max-width: none;
  transition: opacity 0.2s;
}

@keyframes gxg-marquee-horizontal {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--marquee-gap) / 2)); }
}

@keyframes gxg-marquee-vertical {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-50% - var(--marquee-gap) / 2)); }
}

.marquee__wrap:not(.is-in-view) .marquee__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .swiper-logo-wr,
  .marquee__wrap .marquee__track {
    animation-play-state: paused !important;
  }
}
