/* ==========================================================================
   Sekcie 2: segmenty, veľkoodber, kalkulačka, kroky, kvalita, galéria,
   otázky, kontakt, pätička, mobilná lišta
   ========================================================================== */

/* ---------- Segmenty ---------- */

.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.seg {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--glass);
  transition: transform .25s var(--ease-out), box-shadow .3s ease;
}
.seg:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.seg:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
.seg__photo { border: 0; border-bottom: 1px solid var(--line); }
.seg__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.seg__num { font-family: var(--f-mono); font-size: 11px; color: var(--muted-2); }
.seg__title { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.seg__body p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.seg__body .seg__rec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; }
.seg__rec .mono-label { width: 100%; }

@media (max-width: 1100px) {
  .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg:nth-child(even) { margin-top: 0; }
}
@media (max-width: 640px) {
  .segs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .segs::-webkit-scrollbar { display: none; }
  .seg { flex: 0 0 min(82%, 320px); scroll-snap-align: start; }
  .seg:hover { transform: none; box-shadow: none; }
}

/* ---------- Výhody ---------- */

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.perk {
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .3s ease, border-color .3s ease;
}
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.perk__icon { width: 42px; height: 42px; display: grid; place-items: center; }
.perk__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.perk__icon--mint { background: var(--mint); }
.perk__icon--lemon { background: var(--lemon); }
.perk__icon--orange { background: var(--orange); color: #FFF2E8; }
.perk__icon--forest { background: var(--forest); color: var(--mint); }
.perk h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.perk p { font-size: 14px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1100px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .perks { grid-template-columns: 1fr; gap: 10px; }
  .perk { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .perk__icon { grid-row: span 2; }
  .perk h3 { margin: 0 0 6px; font-size: 17px; }
}

.duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; margin: 14px 0; align-items: end; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Kalkulačka ---------- */

.calc {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(24px, 3.6vw, 52px);
}
.calc__glow {
  position: absolute;
  inset: auto -10% -60% 30%;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(226, 255, 0, .2), transparent 70%);
}
.calc__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
@media (max-width: 900px) { .calc__grid { grid-template-columns: 1fr; } }

.calc__title {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-stretch: 86%;
  line-height: .96;
  letter-spacing: -.035em;
  font-weight: 900;
  text-transform: uppercase;
}
.calc__lead { max-width: 44ch; margin-bottom: 26px; font-size: 14.5px; line-height: 1.55; color: rgba(250, 247, 238, .7); }

.calc__out { display: grid; gap: 12px; min-width: 0; }
.profit { padding: 26px 26px 24px; background: var(--lime); color: #0F1115; }
.profit__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.profit__value {
  margin: 10px 0 8px;
  font-size: clamp(46px, 6.4vw, 84px);
  font-stretch: 80%;
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.profit__meta { font-size: 14px; font-weight: 600; }

.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tier {
  position: relative;
  padding: 12px 12px 12px;
  border: 1px solid rgba(250, 247, 238, .16);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.tier__name { font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.tier__min,
.tier__price { font-family: var(--f-mono); font-size: 10.5px; color: rgba(250, 247, 238, .55); margin-top: 4px; }
.tier__price { font-size: 12px; color: rgba(250, 247, 238, .85); }
.tier.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.tier.is-active .tier__min,
.tier.is-active .tier__price { color: var(--muted); }
.tier.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--lime);
  rotate: 45deg;
}
@media (max-width: 480px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.calc__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px; border: 1px solid rgba(250, 247, 238, .16); }
.stat--wide { grid-column: 1 / -1; }
.stat__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(250, 247, 238, .55); }
.stat__value { margin-top: 6px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc__note {
  position: relative;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(250, 247, 238, .14);
  font-family: var(--f-mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(250, 247, 238, .5);
}

/* ---------- Kroky ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.step {
  position: relative;
  padding: 26px 24px 28px 0;
  border-top: 1.5px solid var(--ink);
}
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--lemon);
  border: 1.5px solid var(--ink);
}
.step + .step::before { left: 24px; }
.step__num {
  display: block;
  font-size: clamp(54px, 6vw, 88px);
  font-stretch: 75%;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  transition: color .3s ease;
}
.step:hover .step__num { color: var(--lemon); }
.step h3 { margin: 14px 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.step p { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 30ch; }
.step__time {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 9px;
  background: var(--ink);
  color: var(--lime);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(3)::before { left: 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; }
  .step + .step::before { left: 0; }
}

/* ---------- Kvalita (bento) ---------- */

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--glass);
  transition: transform .2s ease;
}
.tile:hover { transform: translateY(-3px); }
.tile--wide { grid-column: span 2; }
.tile--forest { background: var(--forest); color: #EEF9F3; border-color: var(--forest); }
.tile--forest .mono-label { color: var(--mint); }
.tile--forest .tile__text { color: rgba(238, 249, 243, .78); }
.tile--lime { background: var(--lime-pale); border-color: transparent; }
.tile--photo { padding: 0; }
.tile--photo.ph { aspect-ratio: auto; min-height: 260px; }

.tile__title { margin: 12px 0 10px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.02; letter-spacing: -.035em; font-weight: 900; }
.tile__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.tile__text--sm { font-size: 13.5px; }
.tile__big {
  font-size: clamp(56px, 6vw, 88px);
  font-stretch: 78%;
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.05em;
  margin-bottom: 10px;
}
.tile__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tile__chips li { font-family: var(--f-mono); font-size: 11px; padding: 8px 12px; background: var(--lime-pale); }
.tile__foot { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted-2); margin-top: -10px; }

.sugar { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.sugar__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; text-align: center; }
.sugar__bar {
  display: block;
  height: var(--h);
  min-height: 3px;
  background: var(--c);
  border: 1px solid rgba(18, 19, 15, .2);
  transform-origin: bottom;
  transition: transform 1s var(--ease-out);
}
.js .tile:not(.is-in) .sugar__bar { transform: scaleY(0); }
.sugar__col b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; order: -1; }
.sugar__col small { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; color: var(--muted-2); }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.numbers__val { font-size: clamp(34px, 3.6vw, 50px); font-stretch: 82%; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.numbers__txt { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
}

/* ---------- Otázky ---------- */

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr-h) + 24px); }
.faq__head .kicker { margin-bottom: 16px; }
.faq__head .sec-head__lead { margin-top: 20px; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

.faq__list { border-top: 1.5px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 800;
  letter-spacing: -.025em;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+';
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  font-weight: 400;
  font-size: 20px;
  transition: background .2s ease;
}
.qa summary:hover { color: var(--olive); }
.qa[open] summary::after { content: '\2212'; background: var(--lemon); }
.qa__body { padding: 0 60px 24px 0; }
.qa__body p { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.qa[open] .qa__body { animation: qa-in .4s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Kontakt ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact__side {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(26px, 3.4vw, 50px);
  background: linear-gradient(160deg, var(--lemon), var(--lime-pale) 55%, var(--mint));
}
.contact__side .kicker { color: rgba(18, 19, 15, .62); }
.contact__title {
  margin: 16px 0;
  font-size: clamp(34px, 4.2vw, 58px);
  font-stretch: 84%;
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 900;
  text-transform: uppercase;
}
.contact__lead { max-width: 42ch; margin-bottom: 28px; font-size: 15px; line-height: 1.6; color: rgba(18, 19, 15, .78); }
.contact__list { display: grid; gap: 14px; font-size: 14.5px; font-weight: 600; }
.contact__list li { display: flex; gap: 12px; align-items: baseline; }
.contact__list span { font-family: var(--f-mono); font-size: 11px; font-weight: 400; opacity: .55; min-width: 22px; }

.rep {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: auto;
  padding-top: 32px;
}
.rep__photo { --ph-bg: rgba(255, 255, 255, .45); }
.rep__name { margin: 6px 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.rep__line { font-size: 14px; line-height: 1.6; }
.rep__line a { border-bottom: 1px solid rgba(18, 19, 15, .3); }
.rep__line a:hover { border-color: var(--ink); }

.contact__form { position: relative; padding: clamp(26px, 3.4vw, 50px); }

.sent { display: grid; gap: 16px; align-content: center; min-height: 420px; }
.sent[hidden] { display: none; }
.sent__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 24px; }
.sent__title { font-size: 32px; font-weight: 900; letter-spacing: -.035em; }
.sent__text { font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.sent .btn { justify-self: start; }

/* ---------- Pätička ---------- */

.ftr {
  margin-top: clamp(20px, 3vw, 40px);
  padding: clamp(48px, 6vw, 88px) 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.ftr__grid { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1fr; gap: 36px; }
@media (max-width: 980px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

.brand--light .brand__name { color: var(--cream); }
.brand--light .brand__name small { color: var(--lime); }
.ftr__text { margin-top: 16px; max-width: 34ch; font-size: 13.5px; line-height: 1.6; color: rgba(250, 247, 238, .62); }
.ftr__label { margin-bottom: 14px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250, 247, 238, .45); }
.ftr__list { display: grid; gap: 9px; font-size: 14px; color: rgba(250, 247, 238, .85); }
.ftr__list a:hover { color: var(--lime); }
.ftr__lime { color: var(--lime); }
.ftr__cta { margin-top: 20px; }

.ftr__word {
  margin: clamp(40px, 6vw, 80px) 0 0;
  font-size: clamp(60px, 16vw, 250px);
  font-stretch: 70%;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .78;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(250, 247, 238, .22);
  user-select: none;
}
.ftr__word em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.03em;
  color: var(--lime);
  -webkit-text-stroke: 0;
}

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 247, 238, .14);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(250, 247, 238, .45);
}

/* ---------- Mobilná lišta s CTA ---------- */

.mcta { display: none; }
@media (max-width: 760px) {
  .mcta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 247, 238, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .4s var(--ease-out);
  }
  .mcta.is-on { transform: none; }
  .mcta__call {
    flex: none;
    width: 52px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--ink);
    background: var(--lemon);
  }
  .mcta__call svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
  .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

.form[hidden] { display: none; }
.profit { transition: background .3s ease; }
.profit.is-neg { background: var(--orange); }

/* ==========================================================================
   Telefón – optimalizácie (dotykové plochy, čitateľnosť, kratšia stránka)
   ========================================================================== */

/* hover efekty len tam, kde existuje myš – na dotyku by „zamrzli“ po ťuknutí */
@media (hover: none) {
  .btn:hover, .ftab:hover, .seg:hover, .perk:hover, .tile:hover, .sq-btn:active { transform: none; }
  .can:hover img { transform: none; }
  .partners__set img { filter: none; opacity: .75; }
}

/* focus rámik viditeľný aj na tmavom pozadí */
.calc :focus-visible,
.ftr :focus-visible,
.fpanel.is-dark :focus-visible { outline-color: var(--lime); }

@media (max-width: 640px) {
  :root { --sec-y: 60px; }

  /* formulár: 16 px = iPhone pri ťuknutí nepribližuje stránku */
  .field input, .field select, .field textarea { font-size: 16px; padding: 13px 14px; }
  .check { min-height: 44px; }

  /* čitateľnosť drobných popisov */
  .mono-label, .kicker, .field__label, .fnut__label, .stat__label, .tier__min,
  .fblock__label, .ftr__label, .sugar__col small, .facts dd, .ph__file, .form__note,
  .calc__note, .range__hint, .fsource { font-size: 11px; }
  .tags li { font-size: 10.5px; }

  /* hero: kratší, plechovky skôr v zábere, tlačidlá na celú šírku */
  .hero__tags { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__lead { margin-top: 18px; }
  .hero__stage { min-height: clamp(330px, 92vw, 440px); margin-top: -6px; }
  .hero__badge { width: 84px; }
  .facts__item { padding: 14px 12px 16px; }

  /* posuvníky kalkulačky – väčšia plocha pre prst */
  .range__input { height: 44px; margin-top: 4px; }
  .range__input::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -11px; }
  .switch { display: grid; width: 100%; }
  .profit { padding: 20px; }
  .stat { padding: 14px; }

  /* príchute: menšia scéna s plechovkou */
  .fpanel__stage { min-height: clamp(300px, 86vw, 400px); }
  .fnut { padding: 13px 14px; }
  .fingr, .fserve { padding: 16px; }

  /* kroky spolupráce kompaktne: číslo vľavo, text vpravo */
  .step { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding: 18px 0 20px; }
  .step__num { grid-row: span 3; font-size: 52px; }
  .step h3 { margin: 4px 0 6px; font-size: 18px; }
  .step__time { justify-self: start; margin-top: 10px; }

  /* kvalita */
  .tile { padding: 22px; gap: 18px; }
  .tile--photo.ph { min-height: 220px; }

  /* FAQ – väčšie ťukacie plochy */
  .qa summary { padding: 18px 0; min-height: 56px; font-size: 17px; }
  .qa__body { padding-right: 0; }

  /* pätička – odkazy s dostatočnou plochou */
  .ftr__list { gap: 2px; }
  .ftr__list li { min-height: 40px; display: flex; align-items: center; }
  .ftr__list a, .rep__line a { display: inline-flex; align-items: center; min-height: 40px; }
  .ftr__word { margin-top: 36px; }

  .brand { min-height: 44px; }
}

/* na telefóne vypnúť zrno cez celú obrazovku (šetrí výkon pri scrollovaní) */
@media (max-width: 760px), (hover: none) {
  body::after { display: none; }
}

/* nekonečné animácie mimo obrazovky pozastaviť (batéria) */
.is-offscreen,
.is-offscreen * { animation-play-state: paused !important; }
