:root {
  --scale: 1;
  --gold: #94671f;
  --ink: #6b4a22;
  --cream: #f4e7d4;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--cream);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.app {
  position: absolute;
  left: 50%; top: 50%;
  width: 1080px; height: 1920px;
  transform: translate(-50%, -50%) scale(var(--scale));
  background: linear-gradient(#fff9f080, #fff9f080), url("assets/mramor.png?v=6") center / 100% 100%;
  overflow: hidden;
}
.brand { position: absolute; top: 86px; left: 0; width: 100%; text-align: center; z-index: 2; }
.brand img { display: block; width: 260px; height: 122px; object-fit: contain; margin: 0 auto; }
.slogan { margin-top: 0; font-size: 24px; letter-spacing: 2px; color: var(--ink); }
.view { position: absolute; inset: 0; }
.hidden { display: none; }
.layer {
  position: absolute; inset: 310px 90px 195px;
  display: flex; flex-direction: column; align-items: center;
}
.eyebrow { margin: 0 0 32px; font-size: 24px; letter-spacing: 3px; font-weight: 500; text-align: center; }
.heroTitle {
  margin: 0; color: var(--gold); text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 88px; font-weight: 400; line-height: 1.07;
}
.campaign { display: block; width: 900px; height: 730px; object-fit: contain; flex-shrink: 0; margin: 48px 0 20px; }
.cta {
  flex-shrink: 0; margin-top: auto; width: 820px; min-height: 116px;
  padding: 20px 44px; border: 1px solid #855c1c; border-radius: 60px;
  background: linear-gradient(110deg, #9a7028, #82581a); color: #fff;
  font: 600 38px/1.25 "Segoe UI", Arial, sans-serif;
  box-shadow: 0 9px 24px #72501820; cursor: pointer;
}
.cta span { margin-left: 22px; font-weight: 400; }
button:focus-visible { outline: 5px solid #44321c; outline-offset: 6px; }
button:active { transform: translateY(2px); }
.footerLine {
  position: absolute; bottom: 94px; left: 70px; right: 70px;
  font-size: 24px; letter-spacing: 2px; text-align: center;
  pointer-events: none;
}
.footerLine span { padding: 0 13px; color: #aa8337; }
.layerIntro { padding-top: 95px; }
.introNumber {
  width: 230px; height: 230px; border: 1px solid #ae863e;
  border-radius: 50%; display: grid; place-items: center;
  font: 150px/1 Georgia, serif; color: var(--gold); margin: 90px 0 70px;
}
.introText { margin: 0; text-align: center; font: 54px/1.35 Georgia, serif; }
.introNote { font-size: 29px; margin-top: 48px; }
.sectionTitle {
  width: 100%; padding-bottom: 32px; border-bottom: 1px solid #b48c4655;
  text-align: center; letter-spacing: 2px; font-size: 27px; font-weight: 600;
}
.qBlock { width: 100%; min-height: 280px; display: flex; align-items: center; }
.questionText { margin: 0; font: 400 54px/1.2 Georgia, serif; color: var(--ink); }
.answers { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.answerBtn {
  display: flex; align-items: center; gap: 24px;
  width: 100%; min-height: 136px; padding: 25px 32px;
  border: 1px solid #ab843caa; border-radius: 28px;
  background: #fffdf8d9; color: var(--ink);
  font: 400 38px/1.25 "Segoe UI", Arial, sans-serif;
  text-align: left; cursor: pointer;
}
.answerBtn:active { background: #eedcbd; }
.answerPrefix { flex-shrink: 0; min-width: 56px; font-weight: 600; color: var(--gold); }
.answerText { min-width: 0; white-space: normal; overflow-wrap: break-word; }
.questionNote { margin: 43px 0 0; font-size: 25px; color: #795f39; letter-spacing: 1px; }
.layerResult { padding-top: 75px; }
.resultCard {
  margin-top: 80px; width: 100%; padding: 65px 60px 80px;
  border: 1px solid #aa8139; border-radius: 160px 160px 35px 35px;
  background: #fffaf1bb; text-align: center;
}
.ornament { font-size: 62px; color: var(--gold); margin-bottom: 45px; }
.resultTitle { font: 400 70px/1.2 Georgia, serif; color: var(--gold); margin: 0; }
.resultDivider { width: 100px; height: 1px; background: #a98134; margin: 50px auto; }
.resultBody { font-size: 43px; line-height: 1.4; margin: 0; }
.resultFooter { font: italic 31px/1.4 Georgia, serif; margin-top: 50px; }

/* Vodoravni raspored koristi cijelu širinu ekrana. */
body[data-layout="landscape"] .app { width: 1920px; height: 1080px; }
body[data-layout="landscape"] .brand { top: 35px; }
body[data-layout="landscape"] .brand img { width: 190px; height: 89px; }
body[data-layout="landscape"] .slogan { font-size: 20px; }
body[data-layout="landscape"] .footerLine { bottom: 42px; font-size: 21px; }
body[data-layout="landscape"] .layer { inset: 210px 130px 125px; }
body[data-layout="landscape"] .cta { width: 700px; min-height: 96px; font-size: 34px; }
body[data-layout="landscape"] .layerStart { inset: 0; display: block; }
body[data-layout="landscape"] .layerStart .eyebrow {
  position: absolute; top: 290px; left: 130px; width: 720px; margin: 0;
}
body[data-layout="landscape"] .heroTitle {
  position: absolute; top: 350px; left: 130px; width: 720px; font-size: 88px;
}
body[data-layout="landscape"] .campaign {
  position: absolute; top: 220px; right: 90px;
  width: 940px; height: 650px; margin: 0;
}
body[data-layout="landscape"] .layerStart .cta {
  position: absolute; left: 140px; bottom: 180px; margin: 0;
}
body[data-layout="landscape"] .layerQuestion {
  display: grid; grid-template-columns: 650px 1fr;
  grid-template-rows: 80px 1fr; column-gap: 80px; align-items: start;
}
body[data-layout="landscape"] .sectionTitle {
  grid-column: 1; grid-row: 1; text-align: left; font-size: 26px;
  line-height: 1.4; padding-bottom: 20px;
}
body[data-layout="landscape"] .qBlock {
  grid-column: 1; grid-row: 2; min-height: 0; padding-top: 35px;
}
body[data-layout="landscape"] .questionText { font-size: 56px; line-height: 1.25; }
body[data-layout="landscape"] .answers { grid-column: 2; grid-row: 1 / 3; gap: 18px; }
body[data-layout="landscape"] .answerBtn {
  min-height: 112px; padding: 20px 30px; font-size: 32px;
}
body[data-layout="landscape"] .questionNote {
  position: absolute; left: 0; bottom: 25px; margin: 0; font-size: 23px;
}
body[data-layout="landscape"] .layerIntro { padding-top: 0; }
body[data-layout="landscape"] .layerIntro .eyebrow { margin-bottom: 20px; }
body[data-layout="landscape"] .introNumber {
  width: 120px; height: 120px; margin: 0 0 28px; font-size: 88px;
}
body[data-layout="landscape"] .introText { font-size: 48px; line-height: 1.25; }
body[data-layout="landscape"] .introNote { font-size: 27px; margin: 24px 0; }
body[data-layout="landscape"] .layerResult { padding-top: 0; }
body[data-layout="landscape"] .layerResult .eyebrow { margin-bottom: 18px; }
body[data-layout="landscape"] .resultCard {
  margin-top: 15px; width: 1060px; padding: 30px 55px;
  border-radius: 85px 85px 28px 28px;
}
body[data-layout="landscape"] .ornament { font-size: 36px; margin-bottom: 12px; }
body[data-layout="landscape"] .resultTitle { font-size: 52px; }
body[data-layout="landscape"] .resultDivider { margin: 22px auto; }
body[data-layout="landscape"] .resultBody { font-size: 34px; }
body[data-layout="landscape"] .resultFooter { font-size: 27px; margin-top: 20px; }

/* Reklamni video je preko cijelog ekrana i troši resurse samo dok je vidljiv. */
.attract {
  position: fixed; inset: 0; z-index: 20; overflow: hidden;
  background: #16120c; cursor: pointer; touch-action: manipulation;
}
.attract video {
  display: block; width: 100%; height: 100%; object-fit: contain;
  pointer-events: none;
}
.attractHint {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  padding: 12px 26px; border-radius: 50px;
  color: #fff; background: #372710bc;
  font-size: clamp(18px, 2.5vw, 30px); text-align: center; white-space: nowrap;
  pointer-events: none;
}
.attractFallback {
  position: absolute; inset: 0; display: none;
  flex-direction: column; justify-content: center; align-items: center;
  background: var(--cream); color: var(--gold); text-align: center;
  pointer-events: none;
}
.attractFallback img { width: min(50vw, 320px); height: auto; }
.attractFallback p { font: 400 clamp(32px, 5vw, 70px)/1.15 Georgia, serif; }
.attract.videoUnavailable .attractFallback { display: flex; }
.attract:focus-visible { outline: 4px solid var(--gold); outline-offset: -4px; }

/* Proširena kartica rezultata sa zasebnom slikom odabranog proizvoda. */
.layerResult { inset: 300px 60px 165px; padding-top: 0; }
.layerResult .eyebrow { margin-bottom: 20px; }
.resultCard { margin-top: 18px; padding: 32px 50px; border-radius: 100px 100px 30px 30px; }
.resultCard .ornament { display: none; }
.resultTitle { font-size: 58px; line-height: 1.18; }
.resultProduct {
  display: block; width: 560px; height: 560px; max-width: 100%;
  margin: 20px auto 0; object-fit: contain; border-radius: 24px; background: #fff;
}
.resultDivider { margin: 20px auto; }
.resultBody { font-size: 36px; line-height: 1.3; }
.resultFooter { margin-top: 18px; font-size: 27px; }

body[data-layout="landscape"] .layerResult { inset: 200px 130px 125px; }
body[data-layout="landscape"] .resultCard {
  width: 1400px; margin-top: 5px; padding: 30px 50px;
  display: grid; grid-template-columns: 1fr 440px;
  grid-template-rows: auto 1px auto auto; column-gap: 45px; row-gap: 20px;
  align-items: center; border-radius: 65px 65px 28px 28px;
}
body[data-layout="landscape"] .resultTitle { grid-column: 1; grid-row: 1; font-size: 48px; }
body[data-layout="landscape"] .resultProduct {
  grid-column: 2; grid-row: 1 / 5;
  width: 440px; height: 440px; margin: 0;
}
body[data-layout="landscape"] .resultDivider { grid-column: 1; grid-row: 2; margin: 0 auto; }
body[data-layout="landscape"] .resultBody { grid-column: 1; grid-row: 3; font-size: 32px; }
body[data-layout="landscape"] .resultFooter {
  grid-column: 1; grid-row: 4; font-size: 25px; margin-top: 0;
}


/* Fluidni prikaz za telefone, tablete i manje browser prozore. */
body[data-device="responsive"] .app {
  inset: 0;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  transform: none;
  background-size: cover;
}

body[data-device="responsive"] .brand {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding-inline: 12px;
}

body[data-device="responsive"] .brand img {
  width: clamp(130px, 32vw, 210px);
  height: auto;
}

body[data-device="responsive"] .slogan {
  font-size: clamp(12px, 3.2vw, 18px);
  letter-spacing: clamp(0.7px, 0.45vw, 2px);
}

body[data-device="responsive"] .layer {
  inset:
    clamp(118px, 18vh, 180px)
    clamp(16px, 5vw, 56px)
    clamp(62px, 9vh, 105px);
}

body[data-device="responsive"] .eyebrow {
  margin-bottom: clamp(12px, 2.4vh, 26px);
  font-size: clamp(14px, 3.5vw, 22px);
  letter-spacing: clamp(1px, 0.6vw, 3px);
}

body[data-device="responsive"] .heroTitle {
  font-size: clamp(42px, 11vw, 74px);
}

body[data-device="responsive"] .campaign {
  width: min(100%, 700px);
  height: auto;
  max-height: clamp(230px, 39vh, 560px);
  margin: clamp(16px, 3vh, 38px) 0 12px;
}

body[data-device="responsive"] .cta {
  width: min(100%, 640px);
  min-height: clamp(56px, 8vh, 86px);
  padding: 12px clamp(22px, 5vw, 40px);
  border-radius: 999px;
  font-size: clamp(18px, 4.8vw, 30px);
}

body[data-device="responsive"] .footerLine {
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  font-size: clamp(10px, 2.2vw, 18px);
  letter-spacing: clamp(0.4px, 0.3vw, 1.5px);
  white-space: nowrap;
}

body[data-device="responsive"] .footerLine span {
  padding-inline: clamp(2px, 1vw, 8px);
}

body[data-device="responsive"] .layerIntro {
  padding-top: 0;
  justify-content: center;
}

body[data-device="responsive"] .introNumber {
  width: clamp(100px, 24vw, 180px);
  height: clamp(100px, 24vw, 180px);
  margin: clamp(18px, 3vh, 42px) 0;
  font-size: clamp(68px, 16vw, 118px);
}

body[data-device="responsive"] .introText {
  font-size: clamp(26px, 6.5vw, 46px);
  line-height: 1.25;
}

body[data-device="responsive"] .introNote {
  margin-top: clamp(18px, 3vh, 36px);
  font-size: clamp(16px, 3.8vw, 24px);
  text-align: center;
}

body[data-device="responsive"] .sectionTitle {
  padding-bottom: clamp(12px, 2vh, 24px);
  font-size: clamp(14px, 3.5vw, 22px);
}

body[data-device="responsive"] .qBlock {
  min-height: clamp(92px, 16vh, 210px);
}

body[data-device="responsive"] .questionText {
  font-size: clamp(28px, 6.8vw, 48px);
  line-height: 1.18;
}

body[data-device="responsive"] .answers {
  gap: clamp(10px, 1.7vh, 18px);
}

body[data-device="responsive"] .answerBtn {
  min-height: clamp(56px, 8.3vh, 105px);
  padding: clamp(12px, 2vh, 20px) clamp(14px, 3.5vw, 26px);
  gap: clamp(10px, 2.5vw, 20px);
  border-radius: clamp(16px, 3.5vw, 24px);
  font-size: clamp(18px, 4.4vw, 30px);
}

body[data-device="responsive"] .answerPrefix {
  min-width: clamp(34px, 8vw, 48px);
}

body[data-device="responsive"] .questionNote {
  margin-top: clamp(13px, 2.2vh, 24px);
  font-size: clamp(14px, 3.3vw, 20px);
}

body[data-device="responsive"] .layerResult {
  inset:
    clamp(112px, 16vh, 165px)
    clamp(12px, 4vw, 44px)
    clamp(58px, 8vh, 90px);
}

body[data-device="responsive"] .layerResult .eyebrow {
  margin-bottom: 8px;
}

body[data-device="responsive"] .resultCard {
  width: min(100%, 760px);
  margin-top: 4px;
  padding: clamp(14px, 3vw, 28px);
  border-radius: clamp(42px, 10vw, 78px) clamp(42px, 10vw, 78px) 22px 22px;
}

body[data-device="responsive"] .resultTitle {
  font-size: clamp(26px, 7vw, 50px);
}

body[data-device="responsive"] .resultProduct {
  width: min(68vw, 420px);
  height: clamp(200px, 32vh, 420px);
  margin-top: clamp(8px, 1.5vh, 16px);
}

body[data-device="responsive"] .resultDivider {
  margin: clamp(9px, 1.5vh, 16px) auto;
}

body[data-device="responsive"] .resultBody {
  font-size: clamp(18px, 4.5vw, 30px);
}

body[data-device="responsive"] .resultFooter {
  margin-top: clamp(8px, 1.4vh, 15px);
  font-size: clamp(15px, 3.5vw, 23px);
}

body[data-device="responsive"] .layerResult .cta {
  margin-top: clamp(8px, 1.6vh, 15px);
}

/* Telefon ili tablet položen vodoravno. */
body[data-device="responsive"][data-layout="landscape"] .brand {
  top: calc(env(safe-area-inset-top, 0px) + 5px);
}

body[data-device="responsive"][data-layout="landscape"] .brand img {
  width: clamp(90px, 12vw, 150px);
  height: auto;
}

body[data-device="responsive"][data-layout="landscape"] .slogan {
  font-size: clamp(10px, 1.8vw, 14px);
}

body[data-device="responsive"][data-layout="landscape"] .footerLine {
  display: none;
}

body[data-device="responsive"][data-layout="landscape"] .layer {
  inset:
    clamp(66px, 18vh, 105px)
    clamp(14px, 3vw, 48px)
    clamp(10px, 3vh, 32px);
}

body[data-device="responsive"][data-layout="landscape"] .layerStart {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(18px, 4vw, 60px);
  align-items: center;
}

body[data-device="responsive"][data-layout="landscape"] .layerStart .eyebrow {
  position: static;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  margin: 0 0 5px;
  font-size: clamp(12px, 2vw, 18px);
}

body[data-device="responsive"][data-layout="landscape"] .heroTitle {
  position: static;
  grid-column: 1;
  grid-row: 2;
  width: auto;
  font-size: clamp(32px, 7vw, 64px);
}

body[data-device="responsive"][data-layout="landscape"] .campaign {
  position: static;
  grid-column: 2;
  grid-row: 1 / 4;
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 80px);
  margin: 0;
}

body[data-device="responsive"][data-layout="landscape"] .layerStart .cta {
  position: static;
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  width: min(100%, 520px);
  min-height: clamp(48px, 12vh, 72px);
  margin: 8px 0 0;
  font-size: clamp(16px, 2.7vw, 25px);
}

body[data-device="responsive"][data-layout="landscape"] .layerIntro {
  padding-top: 0;
}

body[data-device="responsive"][data-layout="landscape"] .layerIntro .eyebrow {
  margin-bottom: 5px;
  font-size: clamp(12px, 1.8vw, 17px);
}

body[data-device="responsive"][data-layout="landscape"] .introNumber {
  width: clamp(62px, 10vh, 92px);
  height: clamp(62px, 10vh, 92px);
  margin: clamp(5px, 1.5vh, 12px) 0;
  font-size: clamp(44px, 8vh, 66px);
}

body[data-device="responsive"][data-layout="landscape"] .introText {
  font-size: clamp(22px, 5vh, 38px);
  line-height: 1.15;
}

body[data-device="responsive"][data-layout="landscape"] .introNote {
  margin: clamp(7px, 1.8vh, 14px) 0;
  font-size: clamp(14px, 2.5vh, 20px);
}

body[data-device="responsive"][data-layout="landscape"] .layerIntro .cta {
  width: min(70%, 520px);
  min-height: clamp(46px, 11vh, 68px);
  font-size: clamp(16px, 3.5vh, 24px);
}

body[data-device="responsive"][data-layout="landscape"] .layerQuestion {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(360px, 1.35fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(16px, 4vw, 52px);
  align-items: stretch;
}

body[data-device="responsive"][data-layout="landscape"] .sectionTitle {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: 8px;
  font-size: clamp(12px, 1.8vw, 18px);
}

body[data-device="responsive"][data-layout="landscape"] .qBlock {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  padding-top: clamp(8px, 2vh, 20px);
}

body[data-device="responsive"][data-layout="landscape"] .questionText {
  font-size: clamp(24px, 4.4vw, 42px);
  line-height: 1.16;
}

body[data-device="responsive"][data-layout="landscape"] .answers {
  grid-column: 2;
  grid-row: 1 / 3;
  height: 100%;
  gap: clamp(5px, 1.4vh, 12px);
}

body[data-device="responsive"][data-layout="landscape"] .answerBtn {
  flex: 1 1 0;
  min-height: 44px;
  padding: clamp(7px, 1.5vh, 13px) clamp(12px, 2vw, 22px);
  gap: 10px;
  border-radius: clamp(12px, 2vw, 19px);
  font-size: clamp(15px, 2.5vw, 23px);
}

body[data-device="responsive"][data-layout="landscape"] .answerPrefix {
  min-width: 30px;
}

body[data-device="responsive"][data-layout="landscape"] .questionNote {
  display: none;
}

body[data-device="responsive"][data-layout="landscape"] .layerResult {
  inset:
    clamp(62px, 16vh, 95px)
    clamp(14px, 3vw, 48px)
    clamp(8px, 2vh, 22px);
}

body[data-device="responsive"][data-layout="landscape"] .layerResult .eyebrow {
  margin-bottom: 4px;
  font-size: clamp(11px, 1.8vw, 17px);
}

body[data-device="responsive"][data-layout="landscape"] .resultCard {
  width: min(100%, 1050px);
  margin-top: 2px;
  padding: clamp(10px, 2vw, 20px);
  grid-template-columns: minmax(0, 1fr) minmax(170px, 34%);
  grid-template-rows: auto 1px auto auto;
  column-gap: clamp(14px, 3vw, 34px);
  row-gap: clamp(5px, 1.2vh, 12px);
  border-radius: clamp(28px, 5vw, 54px) clamp(28px, 5vw, 54px) 18px 18px;
}

body[data-device="responsive"][data-layout="landscape"] .resultTitle {
  font-size: clamp(24px, 4.3vw, 42px);
}

body[data-device="responsive"][data-layout="landscape"] .resultProduct {
  width: 100%;
  height: min(46vh, 330px);
  margin: 0;
}

body[data-device="responsive"][data-layout="landscape"] .resultDivider {
  margin: 0 auto;
}

body[data-device="responsive"][data-layout="landscape"] .resultBody {
  font-size: clamp(17px, 2.8vw, 28px);
}

body[data-device="responsive"][data-layout="landscape"] .resultFooter {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 21px);
}

body[data-device="responsive"][data-layout="landscape"] .layerResult .cta {
  width: min(70%, 480px);
  min-height: clamp(44px, 10vh, 66px);
  margin-top: clamp(5px, 1.5vh, 12px);
  font-size: clamp(15px, 3vh, 23px);
}

/* Vrlo niski mobilni ekrani i browseri sa velikim trakama. */
@media (max-height: 700px) and (orientation: portrait) {
  body[data-device="responsive"] .brand {
    top: calc(env(safe-area-inset-top, 0px) + 5px);
  }

  body[data-device="responsive"] .brand img {
    width: 112px;
  }

  body[data-device="responsive"] .slogan {
    font-size: 11px;
  }

  body[data-device="responsive"] .layer {
    inset: 94px 14px 14px;
  }

  body[data-device="responsive"] .footerLine {
    display: none;
  }

  body[data-device="responsive"] .campaign {
    max-height: 29vh;
    margin-top: 10px;
  }

  body[data-device="responsive"] .qBlock {
    min-height: 74px;
  }

  body[data-device="responsive"] .answerBtn {
    min-height: 48px;
  }

  body[data-device="responsive"] .questionNote {
    display: none;
  }

  body[data-device="responsive"] .resultProduct {
    height: 26vh;
  }
}
