/* Above-the-fold: hero, header, page-hero — full styles load async in style.css */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url('../fonts/roboto.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --vs-green: #2f7e55;
  --vs-bg: #0c1712;
  --vs-text: #f5f2e8;
  --vs-text-muted: #a8b5ad;
  --vs-text-dark: #0c1712;
  --vs-text-secondary: #4a5c52;
  --vs-primary: #f5f2e8;
  --vs-primary-text: #0c1712;
  --vs-radius: 8px;
  --vs-radius-pill: 99px;
  --vs-container: 1160px;
  --vs-header-h: 80px;
  --font: Roboto, system-ui, sans-serif;
}

html {
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background: #0c1712;
  color: var(--vs-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 10000;
}

.container {
  width: 100%;
  max-width: var(--vs-container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── Header (sync — prevents FOUC before style.css) ─── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 12px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 10px 18px;
  border-radius: var(--vs-radius);
  background: rgba(12, 23, 18, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(47, 126, 85, 0.22);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
}

.header__logo picture {
  display: block;
  line-height: 0;
}

.header__logo-img {
  display: block;
  height: 26px;
  width: auto;
  object-fit: contain;
}

.header:not(.header--scrolled) .header__logo-img {
  filter: brightness(0) invert(1);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.header__nav {
  display: none;
}

.header__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header .link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(253, 251, 250, 0.86);
}

.header__cta {
  display: none;
  flex-shrink: 0;
  min-height: 44px;
  padding-inline: 18px;
  font-size: 14px;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--vs-text);
}

.header .burger__line {
  background: var(--vs-text);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--vs-radius-pill);
  background: rgba(245, 245, 237, 0.06);
  border: 1px solid rgba(245, 245, 237, 0.14);
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 6px 10px;
  border-radius: var(--vs-radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--vs-text-muted);
}

.lang-switch__btn.is-active {
  background: var(--vs-primary);
  color: var(--vs-primary-text);
}

.header__menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 32px, var(--vs-container));
  top: calc(100% + -11px);
  max-height: 0;
  overflow: hidden;
  border-radius: 0 0 var(--vs-radius) var(--vs-radius);
  background: rgba(253, 251, 250, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 16px 28px;
  border-radius: var(--vs-radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.btn--primary {
  background: var(--vs-primary);
  color: var(--vs-primary-text);
}

body.product-profile--helper .header__logo-img {
  height: 30px;
}

body.product-profile--helper .header:not(.header--scrolled) .header__logo-img,
body.product-profile--bloomi .header:not(.header--scrolled) .header__logo-img {
  filter: brightness(0) invert(1);
}

body.product-profile--bloomi .header__logo-img {
  height: 26px;
}

@media (min-width: 991px) {
  .burger {
    display: none;
  }

  .header__menu {
    display: none !important;
  }

  .header__nav {
    display: block;
  }

  .header__right {
    margin-left: 0;
  }

  .lang-switch--menu {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 72px;
  overflow: hidden;
  margin-top: 0;
}

.page-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 32px;
  overflow: hidden;
  margin-top: 0;
}

.hero--home,
.page-hero {
  background: #0c1712;
}

.hero--home {
  padding-bottom: clamp(64px, 10vh, 120px);
}

.hero--home .hero__bg .hero__poster,
.hero--home .hero__bg .hero__poster img {
  height: 100%;
}

.hero--home .hero__bg .hero__poster img {
  object-position: 78% center;
}

.hero__container {
  padding-bottom: 8px;
}

.hero__bg,
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg picture,
.hero__bg img,
.page-hero__bg picture,
.page-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero__container,
.page-hero .container {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: var(--vs-container);
}

.hero--home .hero__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.5vw, 24px);
  margin: 0 auto;
}

.hero--home .hero__body,
.hero--home .hero__actions {
  width: 100%;
  max-width: clamp(384px, 55vw, 684px);
}

.hero__title,
.page-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 18ch;
  width: 100%;
}

.page-hero .page-hero__title {
  max-width: none;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vs-text-muted);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 48px;
  height: 2px;
  background: rgba(168, 181, 173, 0.55);
  flex-shrink: 0;
}

.page-hero__text {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--vs-text-muted);
  max-width: 36em;
  line-height: 1.55;
  margin-bottom: 32px;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero--product .page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(198, 188, 172, 0.2);
}

.page-hero--product .page-hero__stat dt {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--vs-text);
  margin-bottom: 4px;
}

.page-hero--product .page-hero__stat dd {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vs-text-muted);
  margin: 0;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 23, 18, 0.97) 0%,
    rgba(12, 23, 18, 0.9) 40%,
    rgba(12, 23, 18, 0.62) 55%,
    rgba(12, 23, 18, 0.32) 65%,
    rgba(12, 23, 18, 0.14) 78%,
    transparent 100%
  );
}

.page-hero--bloomi .page-hero__bg::after {
  background: linear-gradient(
    to top,
    rgba(18, 28, 24, 0.97) 0%,
    rgba(18, 28, 24, 0.88) 22%,
    rgba(12, 23, 18, 0.52) 48%,
    rgba(95, 138, 114, 0.16) 72%,
    transparent 100%
  );
}

.page-hero .btn--outline {
  border: 1px solid rgba(245, 243, 231, 0.45);
  color: var(--vs-text);
  background: rgba(12, 23, 18, 0.28);
}

.btn--bloomi {
  background: var(--vs-text-dark);
  color: var(--vs-text);
}

.page-hero--helper .page-hero__bg img {
  object-position: 82% center;
}

.page-hero__title .t-serif {
  font-weight: 600;
  color: var(--vs-green);
}

.product-profile--helper .page-hero__title .t-serif {
  color: var(--vs-text);
}

.product-profile--bloomi .page-hero__title .t-serif {
  color: #5ed4e8;
}

.split__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #2e2e2e;
  overflow: hidden;
}

.split__media picture,
.split__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--home .hero__title {
  max-width: none;
}

.hero__lead {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--vs-text-muted);
  max-width: 36em;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero--home .hero__lead {
  font-size: clamp(18px, 2.2vw, 23px);
  color: rgba(245, 245, 237, 0.9);
  line-height: 1.5;
  max-width: none;
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn--outline {
  background: transparent;
  color: var(--vs-text);
  border: 1px solid rgba(245, 242, 232, 0.35);
}

@media (max-width: 1200px) {
  .hero {
    padding-bottom: 32px;
    height: 100%;
    min-height: 100svh;
  }
}

@media (max-width: 899px) {
  .hero--home .hero__bg .hero__poster img {
    object-position: center 28%;
  }
}

@media (max-width: 767px) {
  .hero--home .hero__bg img,
  .page-hero__bg img {
    object-position: center 28%;
  }

  .page-hero--helper.page-hero--product {
    min-height: 100svh;
    padding: calc(var(--vs-header-h) + 20px) 0 36px;
    align-items: flex-end;
  }

  .page-hero--helper .page-hero__title {
    margin-bottom: 12px;
  }

  .page-hero--helper .page-hero__text {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
    max-width: none;
  }

  .page-hero--helper .page-hero__actions {
    gap: 10px;
  }

  .page-hero--helper.page-hero--product .page-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .page-hero--helper.page-hero--product .page-hero__stat dt {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    margin-bottom: 2px;
  }

  .page-hero--helper.page-hero--product .page-hero__stat dd {
    font-size: 9px;
    letter-spacing: 0.05em;
    line-height: normal;
  }

  .page-hero--bloomi .page-hero__bg::after {
    background: linear-gradient(
      to top,
      rgba(18, 28, 24, 0.98) 0%,
      rgba(18, 28, 24, 0.94) 28%,
      rgba(12, 23, 18, 0.62) 48%,
      rgba(12, 23, 18, 0.22) 68%,
      transparent 86%
    );
  }

  .page-hero--bloomi .page-hero__text {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
    max-width: none;
    min-height: 8.8em;
  }

  .page-hero--bloomi.page-hero--product {
    min-height: 100vh;
    padding: calc(var(--vs-header-h) + 20px) 0 36px;
    align-items: flex-end;
    overflow: hidden;
  }

  .page-hero--bloomi.page-hero--product > .container {
    width: 100%;
    flex-shrink: 0;
    min-height: 28rem;
  }

  .page-hero--bloomi .page-hero__bg img {
    object-position: center;
    height: 100%;
  }

  .page-hero--bloomi .page-hero__title {
    margin-bottom: 12px;
    min-height: 2.2rem;
  }

  .page-hero--bloomi .page-hero__actions {
    gap: 10px;
    min-height: 3.75rem;
  }

  .page-hero--bloomi.page-hero--product .page-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    margin-top: 18px;
    padding-top: 16px;
    min-height: 52px;
  }

  .page-hero--bloomi.page-hero--product .page-hero__stat dt {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    margin-bottom: 2px;
    color: #d4e8dc;
  }

  .page-hero--bloomi.page-hero--product .page-hero__stat dd {
    font-size: 9px;
    letter-spacing: 0.05em;
    line-height: normal;
  }

  body[data-page="b2b"] .page-hero,
  body[data-page="b2c"] .page-hero {
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
    padding: calc(var(--vs-header-h) + 20px) 0 36px;
    align-items: flex-end;
    overflow: hidden;
  }

  body[data-page="b2b"] .page-hero > .container,
  body[data-page="b2c"] .page-hero > .container {
    width: 100%;
    min-height: 16.5rem;
  }

  body[data-page="b2b"] .page-hero > .container {
    min-height: 18rem;
  }

  body[data-page="b2b"] .page-hero__bg img,
  body[data-page="b2c"] .page-hero__bg img {
    object-position: center 28%;
  }

  body[data-page="b2b"] .page-hero__title,
  body[data-page="b2c"] .page-hero__title {
    margin-bottom: 12px;
  }

  body[data-page="b2b"] .page-hero__text,
  body[data-page="b2c"] .page-hero__text {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
    max-width: none;
    min-height: 4.35em;
  }

  body[data-page="b2b"] .page-hero__text {
    min-height: 5.8em;
  }

  body[data-page="b2b"] .page-hero__actions,
  body[data-page="b2c"] .page-hero__actions {
    gap: 10px;
  }

  body:not(.is-motion-ready) .hero--home .hero__body,
  body:not(.is-motion-ready) .hero--home .hero__actions,
  body:not(.is-motion-ready) .page-hero .container > .eyebrow,
  body:not(.is-motion-ready) .page-hero .container > .page-hero__title,
  body:not(.is-motion-ready) .page-hero .container > .page-hero__text,
  body:not(.is-motion-ready) .page-hero .container > .page-hero__actions,
  body:not(.is-motion-ready) .page-hero .container > .page-hero__stats {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Home: products block — reserve layout before async style.css */
.home-perks {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vw, 14px);
  margin: 0 0 clamp(36px, 5vw, 52px);
  padding: 0;
  list-style: none;
}

.home-perks__item {
  display: flex;
  flex: 1 1 calc(50% - 7px);
  align-items: flex-start;
  gap: 14px;
  min-width: min(100%, 240px);
  padding: clamp(16px, 2.5vw, 20px);
}

.home-perks__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.products__grid {
  display: grid;
  gap: clamp(16px, 3.2vw, 28px);
  grid-template-columns: 1fr;
}

.products__grid .product-card__media {
  position: relative;
  height: clamp(240px, 28vw, 300px);
  background: #0b0b0b;
  overflow: hidden;
}

.products__grid .product-card__media picture,
.products__grid .product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modals: hidden before async style.css loads */
.modal[hidden] {
  display: none !important;
}
