/* ==========================================================================
   Breakpointy jako proměnné (@custom-media). Build: npm run build (nebo watch)
   Zdroj: src/styles.css  →  generovaný výstup: css/styles.css (needituj ručně)
   ========================================================================== */

/* ==========================================================================
   ALPA ActiveGel — landing page
   BEM + native CSS nesting, mobile-first. Breakpointy: sm576 md768 lg992 xl1200
   ========================================================================== */

:root {
  /* barvy */
  --c-navy: #0d2758;
  --c-navy-50: #e7ebf1;
  --c-text-secondary: #6b7280;
  --c-text-inverted: #ffffff;
  --c-accent: #d32d63;
  --c-btn-grad-start: #d53672;
  --c-btn-grad-end: #c22458;
  --c-success: #22c55e;
  --c-yellow: #fde900;
  --c-icon-blue: #b0c8e0;
  --c-hero-sep: #3a6a9a;
  --c-section-light: #f3f8fd;
  --c-usecase-border: #dde8f5;
  --c-circle-bg: #f3f8fd;
  --c-circle-border: #c0ddf5;
  --c-tag-border: #5a8aaa;

  /* radiusy / rozměry */
  --radius-md: 8px;
  --radius-card: 12px;
  --radius-tag: 4px;
  --control-h: 44px;

  /* stíny */
  --shadow-btn: 0 4px 6px rgba(0, 0, 0, .12);

  /* spacing */
  --space-2: 8px;
  --space-4: 16px;

  /* fonty */
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  /* pozadí sekcí (radiální modrý gradient) */
  --grad-hero: radial-gradient(ellipse 78% 120% at 50% 40%, #0055a0 0%, #013f7f 48%, #02285e 100%);
  --grad-cta: radial-gradient(ellipse 62% 220% at 50% 50%, #0055a0 0%, #013f7f 52%, #02285e 100%);
}

/* --- reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* branding wrapper – sémantická hlavička bez vlivu na layout hero__left */
.hero__brand { display: contents; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-navy);
  background: #fff;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }

/* --- layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1184px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* --- tlačítko ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  padding-inline: var(--space-4);
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn--primary {
  background: linear-gradient(180deg, var(--c-btn-grad-start), var(--c-btn-grad-end));
  color: var(--c-text-inverted);
  box-shadow: var(--shadow-btn);

  &:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
  &:active { transform: translateY(0); filter: brightness(.98); }
}

.btn__icon { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   01 · HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: var(--c-text-inverted);
}

.hero__inner {
  position: relative;
  z-index: 4;
  max-width: 1280px;
  margin-inline: auto;
  padding: 40px clamp(16px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: calc(620px + 20vw);

  @media (min-width: 576px) {
     min-height: calc(520px + 20vw);
  }
  @media (min-width: 768px) {
    min-height: calc(330px + 100vw * 0.35);
  }
  @media (min-width: 1200px) {
    min-height: 752px;
  }
}

.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  @media (min-width: 992px) {
    width: 548px;
    flex: none;
    padding-top: 8px;
  }
}

.hero__logo { width: clamp(112px, 12vw, 141px); height: auto; }
.hero__wordmark { width: clamp(280px, 34vw, 423px); height: auto; margin-top: 28px; }
.hero__badge { width: clamp(210px, 24vw, 250px); height: auto; margin-top: 20px; }

.hero__tagline {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
}

.hero__icons {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: 26px;
}

.hero__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;

  & img { height: clamp(64px, 8vw, 91px); width: auto; }
}

.hero__icon-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.33;
  color: var(--c-icon-blue);
}

.hero__sep {
  align-self: stretch;
  width: 1px;
  min-height: 90px;
  background: var(--c-hero-sep);
}

.hero__info { margin-top: 26px; }
.hero__info-1 { font-size: 18px; line-height: 28px; color: var(--c-text-secondary); }
.hero__info-2 { font-size: 16px; line-height: 24px; color: var(--c-text-inverted); }

/* --- hero vizuál: žena+kaluž (z1) < vlna (z2) < tuba (z3) < text (z4) ----- */
.hero__woman {
  display: none;
  /*
  width: min(460px, 86vw);
  height: auto;
  margin: 8px auto 0;
  margin-top: -50px;
  margin-right: -50px;
  */
  position: absolute;
  z-index: 1;
  right: -50px;
  left: auto;
  bottom: -58px;
  width: auto;
  height: 596px;
  margin: 0 -50px 0 auto;
  @media (min-width: 576px) {
    height: 500px;
    margin-top: -10px;
    display: block;
    right: -120px;
  }
  @media (min-width: 768px) {
    height: 580px;
    height: calc(300px + 33vw);
    margin-top: -90px;

  }
  @media (min-width: 1200px) {
    height: 650px;
    margin-top: -110px;

  }
  /*
  @media (min-width: 840px) {
    margin-top: -210px;
  }
  */

  @media (min-width: 1200px) {
    height: 700px;
    right: max(0px, calc(50% - 632px));
  }
}

.hero__tube {
  display: block;
  position: absolute;
  z-index: 3;
  left: 48%;
  transform: translateX(-50%);
  bottom: 25px;
  width: calc(50px + 75vw);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .32));


  @media (min-width: 576px) {
    transform: none;
    left: auto;
    right: 50px;
    bottom: 8px;
    width: 520px;
    width: calc(200px + 33vw);
  }
  @media (min-width: 992px) {
    right: 170px;
  }

  @media (min-width: 1200px) {
    left: calc(50% - 272px);
    bottom: 42px;
    width: 662px;
  }
}

.hero__wave {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(90px, 12vw, 172px);
}

/* ==========================================================================
   02 · SIZES
   ========================================================================== */
.sizes {
  position: relative;
  background: #fff;
  padding-block: clamp(40px, 6vw, 56px);
}

.sizes__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  text-align: center;
  color: var(--c-navy);
  margin-bottom: 36px;
}

.sizes__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
  }
}

.sizes__card {
  display: flex;
  flex-direction: column; /* mobil: foto pod obsahem */
  gap: 20px;
  background: #fff;
  border: 1px solid var(--c-navy-50);
  border-radius: var(--radius-card);
  padding: 28px;

  /* karta na plnou šířku (sm) → foto vedle obsahu */
  @media (min-width: 450px) { flex-direction: row; align-items: stretch; }
  /* dvě úzké karty vedle sebe (md) → foto zpět pod obsah */
  @media (min-width: 768px) { flex-direction: column; }
  /* dvě široké karty (lg) → foto vedle obsahu */
  @media (min-width: 992px) { flex-direction: row; }

  &.sizes__card--featured { border-width: 2px; }
}

.sizes__content {
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media (min-width: 576px) { flex: 1 1 0; min-width: 0; padding-right: 12px; }
  @media (min-width: 768px) { padding-right: 0; }
  @media (min-width: 992px) { padding-right: 12px; }
}

.sizes__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.25;
  color: var(--c-navy);
}
.sizes__accent { color: var(--c-accent); }

.sizes__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

.sizes__price { display: flex; flex-direction: column; gap: 2px; }
.sizes__price-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  line-height: 40px;
  color: var(--c-navy);
}
.sizes__stock { font-size: 12px; line-height: 16px; color: var(--c-success); }

.sizes__photo {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;

  & img { width: 200px; max-width: 100%; height: auto; object-fit: contain; }

  @media (min-width: 576px) { & img { width: 170px; } }
  @media (min-width: 768px) { & img { width: 200px; } }
}

/* --- sdílené: check odrážky ---------------------------------------------- */
.check { display: flex; flex-direction: column; gap: 8px; }
.check__item { display: flex; align-items: flex-start; gap: 8px; }
.check__mark {
  flex: none;
  font-size: 16px;
  line-height: 28px;
  font-weight: 700;
  color: var(--c-navy);
}
.check__text {
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text-secondary);
}

/* ==========================================================================
   03 · USE-CASES
   ========================================================================== */
.usecases {
  background: var(--c-section-light);
  padding-block: clamp(40px, 6vw, 56px);
}

.usecases__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  text-align: center;
  color: var(--c-navy);
  margin-bottom: 36px;
}

.usecases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;

  @media (min-width: 768px) { grid-template-columns: 1fr 1fr; }
  @media (min-width: 992px) { grid-template-columns: repeat(3, 1fr); }
}

.usecases__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-usecase-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.usecases__media {
  height: 200px;

  & img { width: 100%; height: 100%; object-fit: cover; }
}

.usecases__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 20px;
}

.usecases__card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: 24px;
  line-height: 32px;
  color: var(--c-navy);
}

.usecases__text {
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text-secondary);
}

.usecases__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-accent);

  &:hover { text-decoration: underline; }
}

/* ==========================================================================
   04 · BENEFITS
   ========================================================================== */
.benefits {
  background: #fff;
  padding-block: clamp(40px, 6vw, 56px);
}

.benefits__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  text-align: center;
  color: var(--c-navy);
  margin-bottom: 36px;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 16px;

  @media (min-width: 576px) { grid-template-columns: 1fr 1fr; }
  @media (min-width: 992px) { grid-template-columns: repeat(4, 1fr); }
}

.benefits__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-inline: 8px;
  text-align: center;
}

.benefits__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-circle-bg);
  border: 1.5px solid var(--c-circle-border);

  & img { width: auto; height: 50px; }
}

.benefits__label {
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text-secondary);
}

/* ==========================================================================
   05 · CTA BANNER
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--grad-cta);
  color: var(--c-text-inverted);
}

.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(36px, 5vw, 48px) clamp(16px, 5vw, 64px) 10px;
  display: flex;
  flex-direction: column;
  gap: 24px;

  @media (min-width: 992px) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 352px;
    padding-bottom: 180px;
  }
}

.cta__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;

  @media (min-width: 992px) { max-width: 695px; }
}

.cta__heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
}
.cta__accent { color: var(--c-yellow); }

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

.tag {
  padding: 6px 12px;
  border: 1px solid var(--c-tag-border);
  border-radius: var(--radius-tag);
  background: rgba(255, 255, 255, .08);
  font-size: 18px;
  line-height: 28px;
  color: var(--c-icon-blue);
}

.cta__tube {
  align-self: center;
  width: clamp(320px, 60vw, 520px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35));
  @media (min-width: 576px){
    margin-top: -60px;
  }

  @media (min-width: 992px) {
    position: absolute;
    z-index: 1;
    right: -16px;
    bottom: 38px;
    width: 600px;
    align-self: auto;
  }

  @media (min-width: 1200px) { right: 0; width: 640px; }
}

.cta__wave {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(70px, 12vw, 180px);
}

/* ==========================================================================
   06 · FOOTER STRIP
   ========================================================================== */
.site-footer {
  background: #fff;
  padding-block: 24px;
}

.site-footer__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 64px);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  @media (min-width: 768px) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
}

.site-footer__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__icon { width: auto; height: 42px; }

.site-footer__text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text-secondary);
}
