:root {
  --beige: #fef2db;
  --cream: #fef6e8;
  --brown: #4d2219;
  --kbrown: #9e5a48;
  --yellow: #f2b45c;
  --tan: #c5956e;
  --f-display: "luckiest-guy", "Luckiest Guy", system-ui, sans-serif;
  --f-body: "dm-sans", "DM Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--kbrown);
  background: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

b {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgb(242 180 92 / 0.8);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ---------- tipografija ---------- */
.h1,
.h2,
.step__title,
.step__pill,
.outline,
.card__brand,
.entry__q,
.thanks__title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}

.h1 {
  font-size: clamp(42px, 4.17vw, 80px);
  line-height: 1.125;
}

.h2 {
  font-size: clamp(34px, 3.55vw, 68px);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-align: center;
}

.outline {
  color: transparent;
  -webkit-text-stroke: var(--stroke, 1.6px) var(--outline, currentColor);
  paint-order: stroke fill;
}

.copy {
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0;
}

.lead {
  font-size: clamp(15px, 0.94vw, 18px);
  line-height: 1.34;
  text-align: center;
  max-width: 809px;
  margin: 30px auto 0;
  padding: 0 var(--gutter);
}

/* ---------- CTA ---------- */
.cta {
  --c: var(--kbrown);
  --bg: var(--beige);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  height: 45px;
  padding: 0 4px 0 24px;
  border: 1px solid var(--c);
  border-radius: 100px;
  color: var(--c);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}

.cta__arrow {
  width: 36px;
  height: 36px;
  flex: none;
}

.cta__arrow circle {
  fill: var(--c);
  transition: fill 0.2s;
}

.cta__arrow path {
  stroke: var(--bg);
  transition:
    stroke 0.2s,
    transform 0.25s;
}

.cta:hover,
.cta:focus-visible {
  background: var(--c);
  color: var(--bg);
}

.cta:hover .cta__arrow circle,
.cta:focus-visible .cta__arrow circle {
  fill: var(--bg);
}

.cta:hover .cta__arrow path,
.cta:focus-visible .cta__arrow path {
  stroke: var(--c);
  transform: translateX(2px);
}

.cta--light {
  --c: var(--beige);
  --bg: var(--brown);
}

.cta[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* =================================================================== SPLASH */
.splash {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--beige);
  --u: min(calc(100vw / 1920), calc(100svh / 1080));
}

.splash__dark {
  position: absolute;
  inset: 0;
  background: var(--brown);
  clip-path: polygon(52.3% 0, 100% 0, 100% 100%, 46.35% 100%);
}

.splash__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(1920 * var(--u));
  height: calc(1080 * var(--u));
  transform: translate(-50%, -50%);
}

.splash .powered {
  position: absolute;
  right: calc(160 * var(--u));
  top: calc(50 * var(--u));
  --logo-w: calc(143 * var(--u));
  color: #fff;
}

.splash__title {
  position: absolute;
  left: calc(960 * var(--u));
  top: calc(50 * var(--u));
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--tan);
  font-size: calc(80 * var(--u));
  line-height: 1.125;
  white-space: nowrap;
  z-index: 2;
}

.splash__lino {
  position: absolute;
  left: calc(960 * var(--u));
  bottom: calc((1080 * var(--u) - 100svh) / 2);
  width: calc(469 * var(--u));
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: lino-sway 6s ease-in-out infinite;
}

.choice {
  position: absolute;
  top: calc(268 * var(--u));
  width: calc(497 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  z-index: 2;
}

.choice--klasik {
  left: calc(160 * var(--u));
  color: var(--kbrown);
  --outline: var(--kbrown);
}

.choice--ext {
  left: calc(1247 * var(--u));
  color: var(--beige);
  --outline: var(--beige);
}

.choice__visual {
  position: relative;
  height: calc(333 * var(--u));
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.choice--klasik .choice__visual img {
  width: calc(300 * var(--u));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.choice__box {
  position: relative;
  width: calc(320 * var(--u));
  aspect-ratio: 320/391;
  margin-bottom: calc(-30 * var(--u));
}

.choice__box img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.9) rotate(-4deg);
  transition:
    opacity 0.5s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.choice__box img.is-on {
  opacity: 1;
  transform: none;
}

.choice:hover .choice__visual img {
  transform: scale(1.06);
}

.choice:hover .choice__box img.is-on {
  transform: scale(1.06);
}

.choice__h {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: calc(68 * var(--u));
  line-height: 1.15;
  letter-spacing: 0.06em;
  margin: calc(40 * var(--u)) 0 calc(30 * var(--u));
  --stroke: max(1.2px, calc(2 * var(--u)));
}

.choice__copy {
  font-size: max(14px, calc(20 * var(--u)));
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 calc(60 * var(--u));
}

.choice--ext .cta {
  --c: var(--beige);
  --bg: var(--brown);
}

.choice:hover .cta {
  background: var(--c);
  color: var(--bg);
}

.choice:hover .cta__arrow circle {
  fill: var(--bg);
}

.choice:hover .cta__arrow path {
  stroke: var(--c);
}

.wobble {
  animation: wobble 3.2s ease-in-out infinite;
}

/* =================================================================== STRANICA */
.page {
  --hero-bg: var(--beige);
  --hero-ink: var(--kbrown);
  --mix-ink: var(--kbrown);
  --prod-bg: var(--beige);
  --prod-ink: var(--kbrown);
  --prod-name: var(--brown);
  --blob: #f3e1bf;
  --story-ink: var(--kbrown);
  --modal-side: #f3e1bf;
}

.theme-ext {
  --hero-bg: var(--brown);
  --hero-ink: var(--beige);
  --mix-ink: var(--brown);
  --prod-bg: var(--brown);
  --prod-ink: var(--beige);
  --prod-name: var(--beige);
  --blob: #6d362a;
  --story-ink: var(--brown);
  --modal-side: var(--brown);
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 70px var(--gutter) 0;
  color: var(--hero-ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(646px, 100%);
  height: 54px;
  padding: 0 49px;
  border: 1px solid currentColor;
  border-radius: 50px;
}

.nav a,
.nav button {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav a:hover,
.nav button:hover {
  opacity: 0.65;
}

.nav i {
  width: 1px;
  height: 22px;
  background: currentColor;
  flex: none;
}

.powered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 21px;
  letter-spacing: -0.02em;
  --logo-w: 143px;
}

.powered span {
  font-size: inherit;
}

.powered img {
  width: var(--logo-w);
}

.topbar .powered {
  position: absolute;
  right: max(var(--gutter), calc(50% - 800px));
  top: 50px;
}

/* hero */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  --outline: var(--hero-ink);
  --stroke: 2px;
  padding: 200px var(--gutter) 140px;
  min-height: min(1080px, 100svh);
}

.hero__inner {
  max-width: 1416px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero__text {
  flex: 0 1 655px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.hero__text .copy {
  margin-bottom: 30px;
}

.hero .cta {
  --c: var(--hero-ink);
  --bg: var(--hero-bg);
}

.hero__art {
  position: relative;
  flex: 0 1 706px;
  aspect-ratio: 706/738;
}

.hero__lino {
  position: absolute;
  right: 0;
  top: 0;
  width: 77.2%;
  transform-origin: 60% 90%;
  animation: lino-mix 2.4s ease-in-out infinite;
}

.hero__bowl {
  position: absolute;
  left: 0;
  top: 51.9%;
  width: 55.5%;
  animation: float 3.4s ease-in-out infinite;
}

.hero__bowl img {
  width: 100%;
}

.hero__bowl-white,
.hero__bowl-hearts {
  position: absolute;
  inset: 0;
  animation: hearts 2.8s ease-in-out infinite;
}
.hero__bowl-white {
  animation-name: hearts-white;
}

/* valovi */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: clamp(22px, 2.81vw, 54px);
  display: block;
  z-index: 1;
  pointer-events: none;
}

.wave--bottom {
  bottom: -1px;
}

.wave--top {
  top: -1px;
  transform: scaleY(-1);
}

.wave--mix,
.wave--story {
  fill: var(--cream);
}

.wave--prod {
  fill: var(--cream);
}

/* mikser */
.mix {
  position: relative;
  background: var(--cream);
  color: var(--mix-ink);
  --outline: var(--mix-ink);
  padding: 110px 0 200px;
  z-index: 2;
}

.mix .h2 {
  color: var(--mix-ink);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin: clamp(70px, 6.5vw, 124px) auto 0;
  padding: 0 var(--gutter);
}

.step__pill {
  display: grid;
  place-items: center;
  width: 180px;
  height: 50px;
  border-radius: 50px;
  background: var(--yellow);
  color: var(--beige);
  font-size: 26px;
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.step__title {
  font-size: clamp(20px, 1.36vw, 26px);
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.step__copy {
  margin: -6px 0 0;
  font-size: clamp(15px, 0.94vw, 18px);
  line-height: 1.34;
}

.flavours {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 1.4vw, 27px);
  margin: 30px auto 0;
  padding: 0 var(--gutter);
}

.flavour {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(120px, 10.6vw, 204px);
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flavour__img {
  width: 100%;
  aspect-ratio: 320/392;
  object-fit: contain;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.25s;
}

.flavour__name {
  margin-top: 14px;
  font-size: clamp(20px, 1.2vw, 23px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  --stroke: 1.2px;
  white-space: nowrap;
}

button.flavour:hover .flavour__img {
  transform: translateY(-6px) rotate(-2deg);
}

.flavour.is-selected {
  width: clamp(140px, 12.9vw, 248px);
}

.flavour.is-selected .flavour__name {
  color: var(--mix-ink);
  -webkit-text-stroke: unset;
}

.flavour.is-selected .flavour__img {
  filter: drop-shadow(0 14px 18px rgb(77 34 25 / 0.22));
}

.flavours--single .flavour {
  width: 193px;
}

.flavours--single .flavour__img {
  aspect-ratio: 249/283;
}

.flavours--single .flavour__name,
.flavours--single .flavour.is-selected .flavour__name {
  font-size: clamp(32px, 2.3vw, 44px);
  letter-spacing: 0.06em;
  color: transparent;
  --stroke: 1.6px;
  margin-top: 4px;
}

.flavours.is-invalid,
.options.is-invalid {
  animation: shake 0.4s;
}

/* Klasik: mlijeko / gustoća */
.options {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 7.6vw, 147px);
  margin: 30px auto 0;
  padding: 0 var(--gutter);
}

.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(140px, 15.2vw, 291px);
}

.option__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 291/325;
}

.option__visual img {
  position: relative;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.option__shadow {
  position: absolute;
  left: 21.6%;
  right: 9.9%;
  top: 73.7%;
  height: 20.3%;
  border-radius: 50%;
  background: #f7e5d4;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.option[data-value="hladno"] .option__shadow {
  left: 9.6%;
  right: 24.3%;
  top: 75.4%;
  height: 19.3%;
}
.option[data-value="gusto"] .option__shadow {
  left: 27.5%;
  right: 6.5%;
  top: 76.3%;
  height: 19.9%;
}
.option[data-value="rijetko"] .option__shadow {
  left: 6.5%;
  right: 24%;
  top: 76.2%;
  height: 19.9%;
}
.option__name {
  margin-top: 8px;
  font-size: clamp(20px, 1.2vw, 23px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  --stroke: 1.2px;
  text-align: center;
  text-wrap: balance;
}

.option:hover .option__visual img {
  transform: translateY(-6px) rotate(-2deg);
}

.option.is-selected .option__name {
  color: var(--mix-ink);
  -webkit-text-stroke: unset;
}

.option.is-selected .option__visual img {
  transform: scale(1.06);
}

.option.is-selected .option__shadow {
  transform: scale(1.08);
}

/* stage — drag & drop */
.stage {
  position: relative;
  width: min(760px, calc(100% - 2 * var(--gutter)));
  aspect-ratio: 638/350;
  margin: 36px auto 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.stage.is-invalid .bowl {
  animation: shake 0.4s;
}

.stage__guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage__guides path {
  stroke: #7f3300;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
  transition: opacity 0.3s;
}

.stage__guides path.is-done {
  opacity: 0;
}

.stage__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  margin: 0;
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
}

.src {
  position: absolute;
  z-index: 10;
  touch-action: none;
  cursor: grab;
  filter: drop-shadow(0 5px 5px rgb(96 47 28 / 0));
  transition:
    filter 0.18s,
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s;
}

.src:hover,
.src:focus-visible {
  filter: drop-shadow(0 5px 5px rgb(96 47 28 / 0.18));
}

.src:focus-visible {
  outline-offset: 5px;
  border-radius: 999px;
}

.src.is-dragging {
  z-index: 30;
  cursor: grabbing;
  transition: none;
}

.src.is-dropped {
  opacity: 0;
  transform: scale(0.4) !important;
  pointer-events: none;
}

.src--orasi {
  left: 4.5%;
  top: 25%;
  width: 18.5%;
  height: 34%;
}

.src--cokolada {
  left: 27%;
  top: 13%;
  width: 17%;
  height: 34%;
}

.src--zob {
  left: 52.5%;
  top: 6%;
  width: 16.5%;
  height: 34%;
}

.src--banana {
  left: 68.5%;
  top: 27%;
  width: 20%;
  height: 36%;
}

.src__blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.src__blob--choc {
  inset: 12% 4% 8% 6%;
  width: auto;
  height: auto;
}

.src__blob--oat {
  inset: 10% 4% 10% 6%;
  width: auto;
  height: auto;
}

.src__blob--banana {
  inset: auto 6% 2% 4%;
  height: 60%;
  width: auto;
}

.src__piece {
  position: absolute;
  height: auto;
}

.src--orasi .src__piece--1 {
  left: 7%;
  top: 12%;
  width: 52%;
  rotate: -12deg;
}

.src--orasi .src__piece--2 {
  right: 5%;
  top: 14%;
  width: 51%;
  rotate: 12deg;
}

.src--orasi .src__piece--3 {
  bottom: 3%;
  left: 25%;
  width: 55%;
  rotate: 3deg;
}

.src--cokolada .src__piece--1 {
  left: 4%;
  top: 34%;
  width: 43%;
  rotate: -12deg;
}

.src--cokolada .src__piece--2 {
  left: 40%;
  top: 2%;
  width: 35%;
  rotate: 3deg;
}

.src--cokolada .src__piece--3 {
  bottom: -2%;
  right: 1%;
  width: 48%;
  rotate: -5deg;
}

.src--zob .src__piece--1 {
  left: 8%;
  top: 33%;
  width: 46%;
  rotate: -6deg;
}

.src--zob .src__piece--2 {
  right: 6%;
  top: 5%;
  width: 52%;
  rotate: 12deg;
}

.src--zob .src__piece--3 {
  bottom: -4%;
  left: 31%;
  width: 50%;
  rotate: 3deg;
}

.src--banana .src__piece--1 {
  left: 1%;
  top: 17%;
  width: 54%;
  rotate: -12deg;
}

.src--banana .src__piece--2 {
  right: 1%;
  top: 2%;
  width: 55%;
  rotate: 6deg;
}

.src--banana .src__piece--3 {
  bottom: -2%;
  left: 29%;
  width: 57%;
  rotate: 3deg;
}

.bowl {
  position: absolute;
  left: 36.35%;
  top: 61.8%;
  width: 37.3%;
  height: 34.3%;
  z-index: 20;
  transition: transform 0.2s;
}

.bowl.is-over {
  transform: scale(1.05);
}

.bowl__shadow {
  position: absolute;
  left: 6%;
  bottom: -10%;
  width: 88%;
  height: auto;
}

.bowl__body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bowl__fill {
  position: absolute;
  left: 7%;
  top: 8%;
  width: 86%;
  height: 31%;
  overflow: hidden;
  border-radius: 50%;
}

.bowl__fill img {
  position: absolute;
  height: auto;
  animation: drop 0.48s cubic-bezier(0.17, 0.89, 0.32, 1.35) both;
}

.bowl__heart {
  position: absolute;
  color: var(--yellow);
  font-size: clamp(16px, 2vw, 28px);
  opacity: 0;
  pointer-events: none;
  line-height: 1;
}

.bowl__heart--1 {
  left: -6%;
  top: -30%;
}

.bowl__heart--2 {
  right: -4%;
  top: -46%;
}

.bowl__heart--3 {
  right: 10%;
  top: -18%;
  font-size: clamp(10px, 1.1vw, 16px);
}

.bowl.is-full .bowl__heart {
  animation: heart-pop 1.6s ease-out both;
}

.bowl.is-full .bowl__heart--2 {
  animation-delay: 0.15s;
}

.bowl.is-full .bowl__heart--3 {
  animation-delay: 0.3s;
}

/* forma */
.entry {
  width: min(521px, calc(100% - 2 * var(--gutter)));
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.entry__q {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  color: var(--mix-ink);
}

.field {
  width: 100%;
  border: 1px solid var(--mix-ink);
  border-radius: 28px;
  background: transparent;
  color: var(--mix-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 300;
  padding: 16px 24px;
  outline: none;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.field::placeholder {
  color: var(--mix-ink);
  opacity: 0.55;
}

.field:focus {
  box-shadow: 0 0 0 3px rgb(242 180 92 / 0.55);
}

.field.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgb(192 57 43 / 0.15);
}

.field--area {
  height: 225px;
  resize: vertical;
  min-height: 140px;
}

.entry__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-top: 14px;
}

.entry__label {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--mix-ink);
  padding-left: 2px;
}

.field--line {
  height: 43px;
  border-radius: 16px;
  padding: 0 18px;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent {
  display: flex;
  gap: 21px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  width: min(516px, 100%);
  margin-top: 6px;
  cursor: pointer;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--mix-ink);
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.consent input:checked {
  background: var(--mix-ink);
}

.consent input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border: 2px solid var(--cream);
  border-top: 0;
  border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.consent input.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgb(192 57 43 / 0.15);
}

.entry__error {
  min-height: 1.4em;
  margin: 0;
  color: #c0392b;
  font-size: 14px;
  text-align: center;
  font-weight: 400;
}

.mix .cta {
  --c: var(--mix-ink);
  --bg: var(--cream);
}

.thanks {
  text-align: center;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  outline: none;
}

.thanks__title {
  font-size: clamp(40px, 3.5vw, 68px);
  color: var(--yellow);
}

.mix__gift {
  position: absolute;
  right: max(16px, calc(50% - 869px));
  bottom: calc(-1 * clamp(30px, 3.7vw, 71px));
  width: clamp(280px, 29vw, 557px);
  z-index: 5;
  pointer-events: none;
}

/* proizvodi */
.products {
  position: relative;
  background: var(--prod-bg);
  color: var(--prod-ink);
  padding: clamp(90px, 6.25vw, 120px) 0 clamp(110px, 8vw, 150px);
  z-index: 1;
}

.products__title {
  text-align: center;
  color: var(--prod-ink);
}

.carousel {
  margin: clamp(50px, 4vw, 75px) auto 0;
  width: min(930px, 100%);
}

.carousel__track {
  display: flex;
  gap: 39px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 0 20px;
  overscroll-behavior-x: contain;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.card {
  position: relative;
  flex: 0 0 284px;
  scroll-snap-align: start;
}

.card__open {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 284/346;
}

.card__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card__open:hover .card__img {
  transform: translateY(-8px) rotate(-2deg);
}

.card__open:hover .card__blob {
  transform: scale(1.06) rotate(4deg);
}

.card__brand {
  font-size: clamp(28px, 1.9vw, 36px);
  line-height: 1.28;
  letter-spacing: 0.06em;
  color: var(--prod-name);
  margin-top: 4px;
}

.card__name {
  font-size: clamp(28px, 1.9vw, 36px);
  line-height: 1.28;
  letter-spacing: 0.06em;
  --outline: var(--prod-name);
  --stroke: 1.4px;
}

.heart {
  position: absolute;
  left: 69.4%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transition: transform 0.2s;
  z-index: 2;
}

.heart svg {
  width: 100%;
  height: 100%;
}

.heart .heart__path {
  fill: transparent;
  transition: fill 0.2s;
}

.heart[aria-pressed="true"] .heart__path {
  fill: #fef2db;
}

.heart:hover {
  transform: scale(1.08);
}

.heart.pop {
  animation: heart-btn 0.45s;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
}

.carousel__dots button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--prod-ink);
  transition: background 0.2s;
}

.carousel__dots button[aria-selected="true"] {
  background: var(--prod-ink);
}

/* priče */
.stories {
  background: var(--cream);
  color: var(--story-ink);
  padding: clamp(80px, 5.5vw, 100px) 0 clamp(120px, 15vw, 300px);
}

.stories .h2 {
  color: var(--story-ink);
}

.stories__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
  gap: 20px;
  margin: clamp(60px, 7vw, 138px) auto 0;
  padding: 0 var(--gutter);
}

.story {
  display: flex;
  flex-direction: column;
  gap: 35px;
  text-decoration: none;
}

.story img {
  border-radius: 30px;
  width: 100%;
  aspect-ratio: 520/320;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story:hover img {
  transform: translateY(-6px);
}

.story span {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(18px, 1.25vw, 24px);
  line-height: 1.17;
}

/* footer */
.footer {
  background: var(--cream);
}

.footer__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(998px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding-bottom: 108px;
}

.footer__logos img {
  height: auto;
  max-height: 56px;
  width: auto;
}

.footer__bar {
  display: grid;
  place-items: center;
  height: 85px;
  background: radial-gradient(ellipse at center, #522c16, #4c1f1a 70%);
}

.footer__bar a {
  color: var(--beige);
  font-size: 20px;
  text-decoration: none;
}

.footer__bar a:hover {
  text-decoration: underline;
}

/* =================================================================== MODAL */
.modal {
  border: 0;
  padding: 12px 0 24px;
  background: transparent;
  max-width: none;
  max-height: 100svh;
  width: min(1488px, calc(100vw - 32px));
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  color: var(--kbrown);
}

.modal::-webkit-scrollbar {
  display: none;
}

.modal::backdrop {
  background: rgb(30 14 10 / 0.78);
  backdrop-filter: blur(3px);
}

.modal[open] {
  animation: modal-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal__card {
  position: relative;
  display: grid;
  grid-template-columns: 44% 1fr;
  background: var(--beige);
  border-radius: clamp(36px, 6vw, 90px);
  margin-top: clamp(90px, 7.5vw, 107px);
  min-height: min(986px, calc(100svh - 150px));
}

.modal__side {
  display: grid;
  place-items: center;
  background: var(--modal-side, #f3e1bf);
  border-radius: inherit;
  padding: 40px;
}

.modal__side img {
  width: min(411px, 100%);
}

.modal__body {
  padding: clamp(150px, 13.5vw, 220px) clamp(24px, 5vw, 200px)
    clamp(40px, 5vw, 84px) clamp(24px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
}

.modal__head {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(150px, 19.4vw, 289px);
  transform: translate(-50%, -36%);
  pointer-events: none;
}

.modal__x {
  position: absolute;
  right: clamp(24px, 4vw, 60px);
  top: clamp(24px, 4vw, 60px);
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1;
  color: var(--brown);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transition: transform 0.2s;
}

.modal__x:hover {
  transform: rotate(90deg);
}

.modal__title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.28;
  letter-spacing: 0.06em;
  color: var(--brown);
  margin: 0;
}

.modal__title .outline {
  --outline: var(--brown);
  --stroke: 1.4px;
}

.modal__desc {
  font-size: 18px;
  line-height: 1.34;
  margin: 16px 0 0;
  max-width: 559px;
}

.modal__nh {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: 0.06em;
  margin: 48px 0 14px;
  color: var(--accent, #cd5a1d);
}

.modal__table {
  width: min(566px, 100%);
  border-collapse: collapse;
  font-family: var(--f-display);
  text-transform: uppercase;
  color: var(--brown);
  font-size: 20px;
  letter-spacing: 0.06em;
}

.modal__table td {
  padding: 6px 0 4px;
  border-bottom: 1px solid rgb(77 34 25 / 0.25);
}

.modal__table td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 16px;
}

.modal__note {
  font-size: 18px;
  text-align: right;
  width: min(566px, 100%);
  margin: 14px 0 0;
}

.modal__empty {
  font-size: 16px;
  opacity: 0.7;
  margin: 16px 0 0;
}

/* =================================================================== ANIMACIJE */
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-6deg);
  }

  50% {
    transform: rotate(6deg);
  }
}

@keyframes lino-sway {
  0%,
  100% {
    transform: translateX(-50%) rotate(-1.2deg);
  }

  50% {
    transform: translateX(-50%) rotate(1.2deg);
  }
}

@keyframes lino-mix {
  0%,
  100% {
    transform: rotate(-1.5deg);
  }

  50% {
    transform: rotate(1.5deg) translateY(-4px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes hearts {
  0%,
  30% {
    opacity: 0;
    transform: translateY(8px);
  }

  45%,
  85% {
    opacity: 1;
    transform: none;
  }

  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes hearts-white {
  0%,
  25% {
    opacity: 1;
    transform: none;
  }
  40%,
  88% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes drop {
  0% {
    opacity: 0;
    transform: translateY(-42px) scale(0.35) rotate(-18deg);
  }

  70% {
    opacity: 1;
    transform: translateY(3px) scale(1.08) rotate(4deg);
  }

  100% {
    opacity: 1;
  }
}

@keyframes heart-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.4);
  }

  30% {
    opacity: 1;
    transform: translateY(-6px) scale(1.15);
  }

  100% {
    opacity: 0;
    transform: translateY(-34px) scale(1);
  }
}

@keyframes heart-btn {
  40% {
    transform: scale(1.25);
  }
}

@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =================================================================== RESPONSIVE */
@media (max-width: 1200px) {
  .mix {
    padding-bottom: 120px;
  }

  .mix__gift {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 60px auto -110px;
    width: min(380px, 80vw);
  }
}

@media (max-width: 960px) {
  .hero {
    padding: 170px var(--gutter) 100px;
    min-height: 0;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__text {
    align-items: center;
    flex-basis: auto;
  }

  .hero__text .copy {
    margin-bottom: 10px;
  }

  .hero__art {
    width: min(520px, 100%);
    flex-basis: auto;
  }

  .carousel {
    width: min(607px, 100%);
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-top: 16px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .topbar .powered {
    position: static;
    order: -1;
    font-size: 13px;
    --logo-w: 96px;
  }

  .nav {
    height: 42px;
    padding: 0 18px;
    gap: 10px;
  }

  .nav a,
  .nav button {
    font-size: 12px;
    letter-spacing: 0.01em;
  }

  .nav i {
    height: 16px;
  }

  .hero {
    padding-top: 150px;
  }

  .flavours:not(.flavours--single) {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
    align-items: flex-end;
  }

  .flavours::-webkit-scrollbar {
    display: none;
  }

  .flavour {
    flex: none;
    width: 118px;
    scroll-snap-align: center;
  }

  .flavour.is-selected {
    width: 140px;
  }

  .flavours--single .flavour {
    width: 150px;
  }

  .stage {
    margin-top: 24px;
  }

  .stage__hint {
    bottom: -30px;
    font-size: 13px;
  }

  .carousel {
    width: 100%;
  }

  .carousel__track {
    gap: 20px;
    padding-inline: calc(50% - 130px);
    scroll-padding-inline: calc(50% - 130px);
  }

  .card {
    flex-basis: 260px;
    scroll-snap-align: center;
  }

  .stories__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story {
    gap: 18px;
  }

  .footer__logos {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 60px;
  }

  .footer__logos img {
    max-height: 44px;
  }

  .footer__bar a {
    font-size: 16px;
  }

  .modal {
    width: calc(100vw - 20px);
  }

  .modal__card {
    grid-template-columns: 1fr;
    margin-top: 84px;
    min-height: 0;
  }

  .modal__side {
    border-radius: 36px 36px 0 0;
    padding: 90px 24px 24px;
  }

  .modal__side img {
    width: min(240px, 70%);
  }

  .modal__head {
    width: 150px;
    transform: translate(-50%, -50%);
  }

  .modal__body {
    padding: 28px 22px 36px;
  }

  .modal__x {
    font-size: 34px;
    top: -60px;
    right: 6px;
    color: var(--beige);
  }

  .modal__desc,
  .modal__note {
    font-size: 15px;
  }

  .modal__nh {
    font-size: 20px;
    margin-top: 30px;
  }

  .modal__table {
    font-size: 14px;
  }
}

/* splash — portrait / mobilni: složeno jedno ispod drugog */
@media (max-width: 900px), (max-aspect-ratio: 5/4) {
  .splash {
    --u: calc(min(100vw, 560px) / 560);
    display: flex;
    flex-direction: column;
  }

  .splash__dark {
    display: none;
  }

  .splash__stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .splash .powered {
    position: static;
    align-self: flex-end;
    margin: 16px 16px 0;
    color: var(--brown);
    font-size: 12px;
    --logo-w: 90px;
  }

  .splash__title {
    position: static;
    transform: none;
    font-size: clamp(34px, 10vw, 56px);
    margin: 4px auto 0;
    padding: 0 16px;
    white-space: normal;
  }

  .choice {
    position: relative;
    left: auto !important;
    top: auto;
    width: 100%;
    padding: 28px 24px 44px;
  }

  .choice--ext {
    background: var(--brown);
    clip-path: polygon(0 36px, 100% 0, 100% 100%, 0 100%);
    padding-top: 80px;
    margin-top: -1px;
  }

  .choice__visual {
    height: auto;
  }

  .choice--klasik .choice__visual img {
    width: min(180px, 46vw);
  }

  .choice__box {
    width: min(200px, 50vw);
    margin-bottom: 0;
  }

  .choice__h {
    font-size: clamp(34px, 10vw, 52px);
    margin: 20px 0 14px;
    --stroke: 1.5px;
  }

  .choice__copy {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 440px;
  }

  .splash__lino {
    position: relative;
    left: auto;
    transform: none;
    width: min(230px, 56vw);
    margin: -10px auto -24px;
    z-index: 3;
    animation: none;
  }
}
