:root{
  /* Meadow minimal palette (kvetoucilouka.cz) */
  --bg: #FAF8F3;           /* warm ivory */
  --soft: #EEF3EE;         /* sage wash */
  --surface: rgba(255,255,255,.82);
  --text: #0C1220;
  --muted: #55606F;
  --border: rgba(12,18,32,.10);

  --accent: #2E7D67;       /* meadow green */
  --accent2: #1F5B4A;      /* deep meadow */
  --ring: rgba(46,125,103,.28);

  --radius: 18px;
  --shadow: 0 10px 30px rgba(12,18,32,.08);

  --container: 1120px;

  /* COMPACT sticky bar defaults */
  --calcH: 78px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  /* čisté pozadí (bez přechodů) – jediný přechod necháváme nad sticky kalkulačkou */
  background: var(--bg);
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-radius: 10px;
}

/* Topbar */
.top{
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.top__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 64px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  font-weight: 700;
}
.brand__mark{
  width: 34px; height: 34px;
  display:block;
  border-radius: 12px;
  background: rgba(46,125,103,.14);
  border: 1px solid rgba(46,125,103,.26);
}
.brand__name{ letter-spacing: -0.02em; }
.top__nav{
  display:flex;
  gap: 16px;
}
.top__nav a{
  text-decoration:none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.top__nav a:hover{ color: var(--text); }

/* HERO */
.hero{ padding: 34px 0 28px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
}
.pill{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46,125,103,.10);
  border: 1px solid rgba(46,125,103,.20);
  color: var(--accent2);
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 12px;
}
h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
  max-width: 58ch;
}
.hero__stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.stat{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: 0 8px 20px rgba(12,18,32,.04);
}
.stat__k{ color: var(--muted); font-size: 12px; font-weight: 600; }
.stat__v{ font-size: 18px; font-weight: 800; margin-top: 4px; }

.hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  margin-bottom: 10px;
}

.btn{
  appearance:none;
  border: 0;
  cursor: pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(46,125,103,.22);
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}
.btn:hover{ filter: brightness(.98); transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn--ghost{
  background: rgba(255,255,255,.66);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn--ghost:hover{ border-color: rgba(46,125,103,.35); }

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

/* Media card */
.mediaCard{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 4/5;
  min-height: 380px;
}
.media{
  position:absolute;
  inset:0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--img{ display:none; }
.mediaCard__overlay{
  position:absolute;
  inset:0;
  background: rgba(250,248,243,.18);
  pointer-events:none;
}
.mediaCard__overlay{ display:none; }
.mediaCard__badge{
  position:absolute;
  left: 14px;
  top: 14px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(250,248,243,.86);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 13px;
}
.dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(46,125,103,.95);
  box-shadow: 0 0 0 4px rgba(46,125,103,.16);
}

/* Sections */
.section{ padding: 46px 0; }
h2{
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: 0 8px 18px rgba(12,18,32,.04);
}
.card h3{ margin: 0 0 6px; font-size: 16px; }
.card p{ margin: 0; color: var(--muted); line-height: 1.55; }

/* jistota: žádné ikonky v kartách */
.card__icon{ display:none !important; }

.steps{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display:grid;
  gap: 12px;
}
.step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  border: 1px solid rgba(12,18,32,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.74);
  padding: 14px;
}
.step__n{
  width: 34px; height: 34px;
  border-radius: 999px;
  display:grid; place-items:center;
  font-weight: 900;
  color: var(--accent2);
  background: rgba(46,125,103,.10);
  border: 1px solid rgba(46,125,103,.20);
}
.step h3{ margin: 0 0 4px; font-size: 16px; }
.step p{ margin: 0; color: var(--muted); line-height: 1.55; }

.faq{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px;
  margin: 10px 0;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(12,18,32,.04);
}
.faq summary{ cursor:pointer; font-weight: 800; }
.faq__a{ margin-top: 10px; color: var(--muted); line-height: 1.6; }

/* Footer */
.footer{
  padding: 38px 0 calc(38px + var(--calcH));
  background: transparent;
  border-top: 1px solid rgba(12,18,32,.06);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}
.footer__links{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a{
  color: var(--muted);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
}
.footer__links a:hover{ color: var(--text); }
.brand--footer{ margin-bottom: 8px; }

/* Sticky calc bar (kontrastní + kompaktní) */
.calcBar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  background: rgba(200,200,255,.98);
  border-top: 1px solid rgba(12,18,32,.50);
  box-shadow: 0 -14px 34px rgba(12,18,32,.5);

  backdrop-filter: blur(10px);
  padding-bottom: env(safe-area-inset-bottom);
  isolation: isolate;
}
.calcBar::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  /* jediný záměrný přechod na stránce – změkčí napojení obsahu na sticky bar */
  top: -34px;
  height: 34px;
  background: linear-gradient(
    180deg,
    rgba(250,248,243,0),
    rgba(255,255,255,.98)
  );
  opacity: 1;
  pointer-events: none;
}

.calcBar__inner{
  height: var(--calcH);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.calcBar__left{
  display:flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.calcBar__label{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .02em;
}
.calcBar__meta{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
}
.dotSep{ opacity:.45; }

.calcBar__right{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Stepper (kompaktnější) */
.stepper{
  display:flex;
  align-items:center;
  gap: 8px;
}
.circleBtn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(12,18,32,.18);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(12,18,32,.08);
  transition: transform .12s ease, border-color .12s ease;
}
.circleBtn:hover{
  border-color: rgba(46,125,103,.55);
  transform: translateY(-1px);
}
.circleBtn:active{ transform: translateY(0); }

.stepper__field{
  display:flex;
  align-items:center;
  gap: 6px;
  border: 1px solid rgba(12,18,32,.18);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  height: 34px;
}
.stepper__field input{
  width: 48px;
  border: 0;
  outline: none;
  font-weight: 900;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  padding: 0;
}
.stepper__field input::-webkit-outer-spin-button,
.stepper__field input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.stepper__field input[type=number]{ -moz-appearance: textfield; }
.unit{
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

/* Price box */
.priceBox{
  text-align:right;
  min-width: 104px;
}
.priceBox__k{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.priceBox__v{
  font-size: 17px;
  font-weight: 1000;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.btn--buy{
  height: 40px;
  padding: 0 14px;
}

/* Extra components */
.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.chip{
  display:inline-flex;
  align-items:center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(46,125,103,.10);
  border: 1px solid rgba(46,125,103,.18);
  color: #1f5b4a;
  font-weight: 700;
  font-size: 13px;
}

.note{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(12,18,32,.10);
  color: var(--muted);
  line-height: 1.6;
}

.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.card--list h3{
  margin: 0 0 10px;
  font-size: 16px;
}
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.list li{ margin: 6px 0; }
.list strong{ color: var(--text); }

/* Nejčastější chyby */
.mistGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.mist{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.74);
  padding: 16px;
  box-shadow: 0 8px 18px rgba(12,18,32,.04);
}
.mist h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.mist p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 920px){
  .hero__grid{ grid-template-columns: 1fr; }
  .mediaCard{ min-height: 320px; aspect-ratio: 16/10; }
  .top__nav{ display:none; }
  .cards{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .mistGrid{ grid-template-columns: 1fr; }
}

/* mobilní layout sticky baru (2 řádky) - centrovaný a bez přetékání */
@media (max-width: 740px){
  .calcBar__inner.container{
    padding-left: 12px;
    padding-right: 12px;
  }

  :root{ --calcH: 112px; }          /* jen pro footer spacing */
  .calcBar__inner{
    flex-direction: column;
    align-items: center;            /* CENTR */
    justify-content: center;
    height: auto;                   /* klíčové: zabrání “vylezení” dolů */
    min-height: var(--calcH);
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .calcBar__left{
    width: 100%;
    align-items: center;            /* CENTR */
    text-align: center;             /* CENTR */
  }
  .stepper{
    justify-content: center;        /* CENTR */
  }

  .calcBar__meta{ display:none; }

  .calcBar__right{
    width: 100%;
    justify-content: center;        /* CENTR */
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;               /* místo přetečení se zabalí */
  }
  .priceBox{
    text-align: center;             /* CENTR */
    min-width: 0;
    flex: 0 1 auto;
  }
  .btn--buy{
    flex: 0 1 220px;
    max-width: 100%;
  }
}

/* extra malý mobil */
@media (max-width: 300px){
  .stepper__field input{ width: 48px; }
  .circleBtn{ width: 32px; height: 32px; font-size: 15px; }
  .stepper__field{ height: 32px; padding: 4px 8px; }
  .btn--buy{ padding: 0 12px; }
}

/* 1) Grid položky se musí umět zmenšit */
.hero__grid > *{
  min-width: 0;
}

/* 2) Media sloupec a karta nesmí nikdy přesáhnout šířku rodiče */
.hero__media,
.mediaCard{
  width: 100%;
  max-width: 100%;
}

/* 3) Video/obrázek uvnitř: držet se karty, žádné přetékání */
.media{
  width: 100%;
  max-width: 100%;
}

