:root {
  --bg: #0e0e0e;
  --surface: #1a1a1a;
  --text: #f5f3ef;
  --muted: #a8a8a8;
  --accent: #d4ff3a;
  --accent-text: #0e0e0e;
  --light-bg: #f5f3ef;
  --light-text: #141414;
  --light-muted: #5c5c5c;
  --danger: #ff6b6b;
  --radius: 16px;
  --space: clamp(56px, 9vw, 112px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); }
.section { padding-block: var(--space); }
.section--light { background: var(--light-bg); color: var(--light-text); }
.section--light .micro, .section--light .eyebrow { color: var(--light-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .75em; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }
.micro { font-size: .9rem; color: var(--muted); margin-top: .75em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: #e2ff75; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.section .btn--primary { margin-top: 32px; }

.checks { list-style: none; padding: 0; margin: 0 0 8px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: .8rem; font-weight: 900; display: grid; place-items: center; margin-top: 3px; }

.ph { display: grid; place-items: center; padding: 16px; text-align: center; font-size: .85rem; color: var(--muted); background: repeating-linear-gradient(45deg, #202020 0 12px, #262626 12px 24px); border-radius: var(--radius); }
.section--light .ph { background: repeating-linear-gradient(45deg, #e6e3dc 0 12px, #ece9e2 12px 24px); color: var(--light-muted); }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square { aspect-ratio: 1; }

.hero { padding-top: 24px; }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__media { order: -1; height: min(27vh, 220px); max-height: none; aspect-ratio: auto; }

.results { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 24px; }
.result { margin: 0; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.result figcaption { display: grid; gap: 4px; padding: 16px 18px 20px; color: var(--muted); font-size: .95rem; }
.result strong { color: var(--text); font-size: 1.1rem; }
.result__stat { color: var(--accent); font-weight: 800; }

.pains { list-style: none; padding: 0; margin: 24px 0 32px; }
.pains li { padding: 16px 0 16px 36px; border-bottom: 1px solid #0000001a; position: relative; }
.pains li::before { content: "✕"; position: absolute; left: 0; font-weight: 900; color: var(--danger); }

.fit { display: grid; gap: 16px; margin-top: 24px; }
.fit > * { min-width: 0; }
.fit__col { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.fit__col ul { margin: 0; padding-left: 20px; }
.fit__col li { margin-bottom: 8px; }
.fit__col--yes { border-top: 4px solid var(--accent); }
.fit__col--no { border-top: 4px solid var(--danger); }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px; }
.steps__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--light-text); color: var(--light-bg); font-weight: 900; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--light-muted); }

.cards { display: grid; gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; margin: 0; }
.card p { margin: 0; color: var(--muted); }
.section--light .card { background: #fff; }
.section--light .card p { color: var(--light-muted); }
.quote p { font-size: 1.05rem; color: inherit; margin-bottom: 12px; }
.quote footer { font-weight: 700; }

.guarantee { text-align: left; }
.about { display: grid; gap: 32px; align-items: center; }
.about > * { min-width: 0; }
.stats { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats li { display: grid; gap: 2px; }
.stats strong { font-size: 1.6rem; color: var(--accent); line-height: 1.1; overflow-wrap: anywhere; }
.stats span { font-size: .85rem; color: var(--muted); }

.faq-text details { border-bottom: 1px solid #ffffff1f; }
.faq-text summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; position: relative; }
.faq-text summary::-webkit-details-marker { display: none; }
.faq-text summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; }
.faq-text details[open] summary::after { content: "−"; }
.faq-text details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

.final { text-align: center; }

.footer { padding: 40px 0 120px; color: var(--muted); font-size: .9rem; }
.footer__inner { display: grid; gap: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer button { background: none; border: 0; color: inherit; padding: 0; text-decoration: underline; cursor: pointer; }
.footer p { margin: 0; }

.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 20; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 60%, transparent); transform: translateY(120%); transition: transform .25s ease; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: none; }

@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .hero__media { order: 0; height: auto; aspect-ratio: 4 / 5; max-height: none; }
  /* Tri u vidokrugu, ostale se dolistaju. */
  .results { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; }
  .fit, .about { grid-template-columns: 1fr 1fr; }
  .steps, .cards { grid-template-columns: repeat(3, 1fr); }
  #dobijas .cards { grid-template-columns: repeat(4, 1fr); }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Kviz ---------- */
body.quiz-open { overflow: hidden; }
body.quiz-open .sticky-cta { display: none; }

.quiz { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.quiz__panel { min-height: 100%; width: min(640px, 100%); margin-inline: auto; padding: 16px 20px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.quiz__top { display: flex; align-items: center; gap: 12px; }
.quiz__icon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.quiz__icon[disabled] { visibility: hidden; }
.quiz__progress { flex: 1; height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.quiz__bar { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .25s ease; }
.quiz__count { margin: 12px 0 24px; color: var(--muted); font-size: .9rem; }
.quiz__title { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-bottom: .4em; }
.quiz__hint { color: var(--muted); margin-bottom: 20px; }
.quiz__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quiz__options { display: grid; gap: 10px; margin-top: 16px; }
.quiz__opt { min-height: 60px; padding: 14px 18px; border-radius: 14px; border: 2px solid #2c2c2c; background: var(--surface); color: var(--text); font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.quiz__opt:hover { border-color: #4a4a4a; }
.quiz__opt[aria-pressed="true"] { border-color: var(--accent); background: #232a0d; }
.quiz__options--scale { grid-template-columns: repeat(5, 1fr); }
.quiz__options--scale .quiz__opt { text-align: center; padding: 0; font-size: 1.15rem; }
.quiz__next, .quiz__submit { width: 100%; margin-top: 24px; }

.quiz__form { display: grid; gap: 18px; margin-top: 8px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: .95rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] { min-height: 54px; padding: 0 16px; border-radius: 12px; border: 2px solid #2c2c2c; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.field input:focus { border-color: var(--accent); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; min-height: 1.2em; color: var(--danger); font-size: .88rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { padding: 10px 16px; border-radius: 999px; border: 2px solid #2c2c2c; background: var(--surface); font-weight: 600; cursor: pointer; }
.pills input:checked + label { border-color: var(--accent); background: #232a0d; }
.pills input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.field--consent { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field--consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.field--consent label { font-weight: 400; font-size: .92rem; color: var(--muted); }
.field--consent .field__error { grid-column: 1 / -1; }
.quiz__status { color: var(--danger); font-size: .95rem; }
.quiz__status:empty { display: none; }
.btn.is-loading { opacity: .7; }

@media (min-width: 900px) {
  .quiz { background: rgba(0, 0, 0, .75); display: grid; place-items: center; padding: 32px; }
  .quiz__panel { min-height: auto; background: var(--bg); border-radius: 24px; padding: 28px 32px 36px; }
  .quiz__options--scale { grid-template-columns: repeat(10, 1fr); }
}

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--text); border-top: 1px solid #2c2c2c; border-radius: 14px 14px 0 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0, 0, 0, .45); font-size: .78rem; line-height: 1.3; }
.cookie p { margin: 0; flex: 1; }
.cookie__actions { display: flex; gap: 6px; flex-shrink: 0; }
.cookie .btn { min-height: 36px; padding: 0 12px; font-size: .8rem; border-width: 1px; }
.sticky-cta.is-visible ~ .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); }
body.quiz-open .cookie { display: none; }

@media (min-width: 900px) {
  .cookie { display: block; left: auto; right: 24px; bottom: 24px; width: 420px; border: 1px solid #2c2c2c; border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; line-height: 1.5; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
  .cookie p { margin: 0 0 12px; }
  .cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cookie .btn { min-height: 46px; font-size: .95rem; padding: 0 12px; }
}

/* ---------- Hvala stranica ---------- */
.thanks { padding-top: 56px; }
.thanks__badge { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: 2rem; font-weight: 900; margin: 0 0 20px; }
.next-steps { padding-left: 22px; margin: 0 0 8px; }
.next-steps li { margin-bottom: 10px; }
.thanks .btn { margin-top: 20px; }

.faq-video-list { margin-top: 24px; border-top: 1px solid #0000001a; }
.faq-item { border-bottom: 1px solid #0000001a; }
.faq-item h3 { margin: 0; font-size: 1.05rem; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 20px 44px 20px 0; font-weight: 700; cursor: pointer; position: relative; }
.faq-q::after { content: "▶"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--light-text); color: var(--light-bg); font-size: .7rem; display: grid; place-items: center; }
.faq-q[aria-expanded="true"]::after { content: "−"; font-size: 1.1rem; }
.faq-panel { padding-bottom: 24px; }
.faq-player { position: relative; width: min(360px, 100%); margin-inline: auto; }
.faq-video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); object-fit: cover; }
.faq-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-text); font-size: 2rem; cursor: pointer; }
.faq-next { display: flex; margin: 16px auto 0; }

/* ---------- Pravne stranice ---------- */
.legal { font-size: 1rem; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; scroll-margin-top: 24px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal p, .legal li { color: #d6d3cd; }
.legal a { color: var(--accent); }

/* ---------- Fotografije ---------- */
img.hero__media { width: 100%; object-fit: cover; object-position: center 25%; border-radius: var(--radius); background: var(--surface); }
.result__img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface); }
.about__img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: var(--radius); background: var(--surface); }

/* ---------- Traka sa ponudom ---------- */
.offerbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px; background: var(--accent); color: var(--accent-text); text-align: center; }
.offerbar__text { margin: 0; font-size: .9rem; font-weight: 700; }
.offerbar__time { font-variant-numeric: tabular-nums; }
.offerbar__cta { min-height: 40px; padding: 0 18px; font-size: .9rem; background: var(--accent-text); color: var(--accent); }
.offerbar__cta:hover { background: #232323; }

/* ---------- Ponuda ---------- */
.price { background: #fff; border-radius: var(--radius); padding: 28px 24px; margin-top: 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .08); }
.price__old { margin: 0; color: var(--light-muted); font-size: .95rem; }
.price__old s { color: var(--danger); }
.price__row { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.price__now { font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.price__per { font-weight: 700; color: var(--light-muted); }
.price__save { display: inline-block; margin: 0 0 20px; padding: 6px 12px; border-radius: 999px; background: #e9f7d5; color: #3f6212; font-weight: 700; font-size: .85rem; }
.price__list { list-style: none; padding: 0; margin: 0 0 20px; }
.price__list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.price__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #3f6212; color: #fff; font-size: .7rem; font-weight: 900; display: grid; place-items: center; margin-top: 3px; }
.price__bonus { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; background: #fff7d1; border: 1px solid #f2d24b; font-weight: 700; font-size: .9rem; }
.price__bonus [data-bonus-countdown] { font-variant-numeric: tabular-nums; }
.price .btn { width: 100%; }
.price .micro { text-align: center; margin-bottom: 0; }

@media (min-width: 900px) {
  .offerbar__text { font-size: 1rem; }
  .price { padding: 36px 32px; }
}

body.quiz-open .offerbar { display: none !important; }
html { scroll-padding-top: 64px; }

/* Traka sa ponudom: kompaktna na mobilnom */
@media (max-width: 899px) {
  .offerbar { gap: 0; padding: 7px 12px; }
  .offerbar__text { font-size: .76rem; line-height: 1.25; }
  .offerbar__cta { display: none; }
  .hero { padding-top: 16px; }
  .hero__media { height: min(24vh, 190px); }
}

/* Hero na mobilnom: CTA odmah posle teksta, prednosti ispod */
@media (max-width: 899px) {
  .hero__copy { display: flex; flex-direction: column; }
  .hero__copy .eyebrow { order: 1; }
  .hero__copy h1 { order: 2; }
  .hero__copy .lead { order: 3; }
  .hero__copy .btn { order: 4; margin-top: 4px; }
  .hero__copy .checks { order: 5; margin-top: 20px; margin-bottom: 0; }
}

/* ---------- Paketi ---------- */
.plans { display: grid; gap: 16px; margin-top: 24px; align-items: start; }
.plan { position: relative; background: #fff; border: 2px solid #e4e1da; border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.plan--featured { border-color: var(--light-text); box-shadow: 0 16px 40px rgba(0, 0, 0, .12); }
.plan__badge { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.plan__name { margin: 0 0 6px; font-size: 1.1rem; }
.plan__price { margin: 0; font-size: clamp(2.2rem, 7vw, 2.8rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.plan__per { margin: 6px 0 0; color: var(--light-muted); font-weight: 700; font-size: .95rem; }
.plan__note { margin: 10px 0 0; font-size: .9rem; color: #3f6212; font-weight: 700; }
.plan .btn { width: 100%; margin-top: 18px; }
.includes { background: #fff; border-radius: var(--radius); padding: 24px 20px; margin-top: 16px; }
.includes h3 { margin: 0 0 14px; font-size: 1.05rem; }
.includes .micro { margin-bottom: 0; text-align: center; }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .plan--featured { transform: scale(1.04); }
  .includes { padding: 28px 32px; }
}

.quiz__paket { margin: -8px 0 16px; padding: 8px 12px; border-radius: 10px; background: var(--surface); color: var(--accent); font-weight: 700; font-size: .9rem; }

.closed { background: #fff; border: 2px solid #e4e1da; border-radius: var(--radius); padding: 28px 24px; margin-top: 24px; text-align: center; }
.closed h3 { margin: 0 0 8px; font-size: 1.2rem; }
.closed p { margin: 0 0 18px; color: var(--light-muted); }
.plan__list { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; }
.plan__list li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .92rem; line-height: 1.4; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #3f6212; color: #fff; font-size: .62rem; font-weight: 900; display: grid; place-items: center; }
.includes { padding: 20px; }

/* Odbrojavanje je sada jedini sadržaj trake, pa nosi naglasak. */
.offerbar__text { font-size: 1rem; }
.offerbar__time { font-size: 1.3em; font-weight: 900; letter-spacing: -.01em; }
/* .plans je na desktopu trokolonski; sa jednom karticom mora nazad u jednu kolonu. */
.plans--single { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
@media (min-width: 768px) {
  .offerbar__text { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .offerbar__text { font-size: .92rem; }
  .offerbar__time { font-size: 1.25em; }
}

/* Strelice stoje preko ivica trake; traka ostaje običan scroller. */
.carousel { position: relative; }
.carousel__nav { position: absolute; top: calc(50% - 40px); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(14,14,14,.72); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.carousel__nav:hover { background: var(--accent); color: var(--accent-text); }
.carousel__nav--prev { left: -6px; }
.carousel__nav--next { right: -6px; }
@media (min-width: 768px) {
  .carousel__nav--prev { left: -22px; }
  .carousel__nav--next { right: -22px; }
}
