/* ---------- Fontovi ----------
   Kad dobijemo fajlove za Minion Pro i Consultant, stavljaju se u /fonts i dodaju u src ispod.
   Do tada se koriste Crimson Text i Corinthia (Corinthia ima sva naša slova). */
/* Fontovi se učitavaju sa samog sajta (brže, i bez slanja podataka Google-u) */
@font-face {
  font-family: 'Corinthia';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/corinthia-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Corinthia';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/corinthia-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/crimsontext-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/crimsontext-400-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/crimsontext-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/crimsontext-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/crimsontext-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Crimson Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/crimsontext-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Minion Pro";
  src: local("Minion Pro"), local("MinionPro-Regular");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Minion Pro";
  src: local("Minion Pro Semibold"), local("MinionPro-Semibold");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Consultant";
  src: local("Consultant");
  font-display: swap;
}

/* ---------- Boje i osnova ---------- */
:root {
  --tan: #a58966;
  --brown: #5b4831;
  --cream: #f8e9d4;
  --blue: #13397f;
  --sand: #dbc7af;           /* bež sa leve strane fotografije */
  --green: #abb052;          /* zelena traka */
  --green-line: #ebe3b6;     /* okvir zelene trake */
  --font-serif: "Minion Pro", "Crimson Text", Georgia, serif;
  --font-script: "Consultant", "Corinthia", cursive;
  /* Razmere iz dizajna: traka 51px na 1583px, logo 70px visok, 10px od vrha */
  --header-h: clamp(48px, 3.22vw, 64px);
  --logo-h: calc(var(--header-h) * 1.37);
  --logo-top: calc(var(--header-h) * .2);
  --gutter: clamp(16px, 2.4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

/* ---------- Zaglavlje ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(248, 233, 212, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header__inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(91, 72, 49, .75);
}

.site-header__logo {
  position: absolute;
  left: 50%;
  top: var(--logo-top);
  transform: translateX(-50%);
  height: var(--logo-h);
}

.site-header__logo {
  transition: opacity .3s ease, transform .3s ease, height .35s ease, top .35s ease;
}
.site-header__inner { transition: height .35s ease; }
.site-header.is-logo-hidden .site-header__logo {
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
}

.site-header__logo img {
  width: auto;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18));
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 28px);
}

/* Prekidač jezika SR | EN (prikazuje se kad je na sajtu uključen Polylang) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  letter-spacing: .08em;
}
.lang-switch a {
  color: var(--tan);
  text-decoration: none;
  padding: 4px 2px;
}
.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a[aria-current] { color: var(--brown); }
.lang-switch a[aria-current] { border-bottom: 1px solid currentColor; }
.lang-switch__sep { color: var(--tan); opacity: .6; }
/* Prekidač jezika stoji u meniju, ispod stavki */
.lang-switch--menu {
  justify-content: center;
  margin-top: clamp(24px, 4vh, 40px);
  font-size: 18px;
  gap: 8px;
}

.site-header__contact {
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header__contact:hover,
.site-header__contact:focus-visible { border-bottom-color: currentColor; }

.menu-toggle {
  position: relative;
  z-index: 60;
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--brown);
}
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 18px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Kad se skroluje, zaglavlje dobija gušću pozadinu */
.site-header.is-scrolled {
  background: rgba(248, 233, 212, .75);
  box-shadow: 0 2px 14px rgba(91, 72, 49, .12);
}
/* Kad se skroluje, traka i logo se smanje da ne odvlače pažnju */
.site-header.is-scrolled .site-header__inner { height: calc(var(--header-h) * .8); }
.site-header.is-scrolled .site-header__logo {
  height: calc(var(--logo-h) * .68);
  top: calc(var(--logo-top) * .5);
}

/* ---------- Meni ---------- */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  opacity: 0;
  transition: opacity .35s ease;
}
.site-menu.is-open { opacity: 1; }
.site-menu[hidden] { display: none; }

.site-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.site-menu li + li { margin-top: clamp(8px, 1.6vh, 16px); }
.site-menu a {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown);
  transition: color .2s ease;
}
.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu a[aria-current="page"] { color: var(--tan); }

body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sand);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img {
  object-fit: cover;
  object-position: left center;
}

/* Blagi prelaz sa leve strane da tekst bude čitljiv na užim ekranima */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(219, 199, 175, .85) 0%, rgba(219, 199, 175, .6) 28%, rgba(219, 199, 175, 0) 40%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(440px, 29vw);
  margin-left: calc(var(--gutter) + 4px);
  padding: calc(var(--header-h) + 32px) 0 48px;
}

.hero__title {
  margin: 0 0 .25em;
  font-size: clamp(44px, 4vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #6b5640;
}

.hero__text {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.4;
  text-align: justify;
  hyphens: auto;
}

.hero__subtitle {
  margin: 1.5em 0 .1em;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---------- Zelena traka sa prednostima (i zeleno podnožje) ---------- */
.benefits,
.site-footer {
  position: relative;
  padding: clamp(10px, 1vw, 16px);
  background: var(--green);
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

/* Sjaj preko leve polovine, kao na dizajnu */
.benefits::before,
.benefits::after,
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.benefits::before,
.site-footer::before {
  clip-path: polygon(0 0, 50.5% 0, 24% 100%, 0 100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 3%, rgba(255, 255, 255, .15) 24%);
}
.benefits::after,
.site-footer::after {
  clip-path: polygon(0 0, 42% 0, 16.5% 100%, 0 100%);
  background: radial-gradient(ellipse 22% 110% at 28% 60%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 70%);
}

.benefits__panel,
.site-footer__panel {
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--green-line);
  padding: clamp(18px, 1.4vw, 24px) clamp(24px, 2.6vw, 44px) clamp(14px, 1.1vw, 20px);
}

.benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(28px, 3.6vw, 64px);
}

.benefit__icon {
  width: clamp(110px, 8.4vw, 150px);
  margin: 0 auto clamp(12px, 1.2vw, 20px);
}

.benefit p {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.36;
  color: #3e3223;
  text-align: justify;
  hyphens: auto;
}

/* ---------- Zagrizi sreću ----------
   Pozadina je ista slika kao na dizajnu (2000×720), pa sekcija drži tu razmeru,
   a zdele i tekst su postavljeni u procentima da se poklope sa njom. */
.bite {
  position: relative;
  z-index: 2;              /* zdela sa orasima prelazi u sledeću sekciju */
  aspect-ratio: 2000 / 720;
  background: #ebddd0 url("../img/zagrizi-pozadina.webp") center / cover no-repeat;
}

/* Blag prelaz u boju sledeće sekcije, da se ne vidi ravna ivica ispod zdele */
.bite::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  background: linear-gradient(180deg, rgba(248, 233, 212, 0), var(--cream));
  pointer-events: none;
}

.bite__bowl {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(91, 72, 49, .12));
}
.bite__bowl--rose {
  left: -3.8%;
  top: -1.9%;
  width: 26.4%;
}
.bite__bowl--walnut {
  left: 22.5%;
  top: 17.4%;
  width: 34%;
}

/* Tekst je vertikalno centriran u kartici sa pozadine (kartica je od 9,4% do 90,5% visine) */
.bite__content {
  position: absolute;
  left: 58.5%;
  right: 5%;
  top: 9.4%;
  bottom: 9.5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bite__title {
  margin: 0 0 .3em;
  font-size: clamp(40px, 3.9vw, 68px);
  font-weight: 400;
  line-height: 1;
  color: #4e3e2b;
}

.bite__text {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 23px);
  line-height: 1.4;
  color: #3e3223;
  text-align: justify;
  hyphens: auto;
}

/* ---------- Kartice proizvoda ---------- */
.products {
  padding: clamp(56px, 6vw, 110px) var(--gutter) clamp(48px, 5vw, 90px);
}

.products__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 44px);
}

.product-card {
  --card-bg: #fbeede;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-bg);
  color: var(--brown);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(91, 72, 49, .10), 0 1px 3px rgba(91, 72, 49, .08);
  transition: transform .35s ease, box-shadow .35s ease;
  -webkit-tap-highlight-color: transparent;
}

.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 700 / 715;
  overflow: hidden;
}
/* Kartica ostaje iste veličine, a činija u njoj je manja */
.product-card__media img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  transition: transform .6s ease;
  /* ivice slike se stapaju sa karticom, da se ne vidi pravougaonik */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  padding: 0 clamp(20px, 2vw, 32px) clamp(22px, 2vw, 32px);
}

.product-card__text {
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.4;
  color: var(--brown);
}

.product-card__name {
  margin-top: auto;
  padding-top: .45em;
  font-size: clamp(28px, 2.1vw, 36px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #6b5640;
  transition: color .3s ease;
}

.products__title {
  margin: 0 0 clamp(22px, 2.4vw, 44px);
  font-size: clamp(30px, 2.8vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: #6b5640;
}

.products__dots,
.carousel__dots { display: none; }

/* Dugme se vidi samo na ekranima na dodir (telefon, tablet) */
.product-card__more { display: none; }

/* Prelaz mišem: kartica se podigne, slika se blago uveća, naziv dobije zlatnu boju */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 38px rgba(91, 72, 49, .18), 0 2px 6px rgba(91, 72, 49, .08);
  }
  .product-card:hover .product-card__media img { transform: scale(1.05); }
  .product-card:hover .product-card__name { color: var(--tan); }
}

.product-card:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 4px;
}

/* Na dodir: vidljivo dugme i blago „utiskivanje" kartice kad se pritisne */
@media (hover: none) {
  .product-card__more {
    display: inline-block;
    margin-top: 16px;
    padding: 9px 20px;
    border: 1px solid var(--tan);
    border-radius: 999px;
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brown);
    background: rgba(255, 255, 255, .45);
  }
  .product-card:active {
    transform: scale(.98);
    box-shadow: 0 3px 10px rgba(91, 72, 49, .12);
  }
  .product-card:active .product-card__more {
    background: var(--tan);
    color: #fff;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Stranica sa tekstom (Politika privatnosti) ---------- */
.legal {
  padding: calc(var(--header-h) + clamp(56px, 6vw, 96px)) var(--gutter) clamp(56px, 6vw, 96px);
}

.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal__title {
  margin: 0 0 .2em;
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #6b5640;
}

.legal__date {
  margin: 0 0 2em;
  font-style: italic;
  color: var(--tan);
}

.legal h2 {
  margin: 1.8em 0 .5em;
  font-size: clamp(21px, 1.6vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--brown);
}

.legal p,
.legal li {
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.55;
}
.legal p { margin: 0 0 1em; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li + li { margin-top: .25em; }
.legal a { color: var(--brown); text-underline-offset: 3px; }
.legal a:hover { color: var(--tan); }

/* ---------- Stranica proizvoda (Ratluk, Žele, Karamela) ---------- */
.product-page {
  padding-top: calc(var(--header-h) + clamp(28px, 3vw, 48px));
  /* Ista svetla pozadina sa senkama lišća (bez talasastih linija) na svim stranicama proizvoda i O nama */
  background: var(--cream) url("../img/pozadina.webp") center top / cover no-repeat;
}

/* Naslov sekcije sa crticama sa strane: — O PROIZVODU — */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  margin: 0 0 clamp(24px, 3vw, 56px);
  padding: 0 var(--gutter);
  font-size: clamp(28px, 2.3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-title::before,
.section-title::after {
  content: "";
  width: .9em;
  height: 1.5px;
  background: currentColor;
}

/* Naslov stranice proizvoda: isti stil kao naslovi sekcija, samo veći i razvučeniji */
.page-title {
  font-size: clamp(30px, 2.4vw, 42px);
  letter-spacing: .14em;
}

/* O proizvodu: slika u sredini, napomene i strelice oko nje.
   Pozicije su u procentima prema dizajnu (2000×1290), a slova rastu sa širinom (cqw). */
.about-product {
  padding: clamp(16px, 2vw, 40px) var(--gutter) clamp(8px, 1vw, 16px);
}

.about-product__stage {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  aspect-ratio: 2000 / 1290;
  container-type: inline-size;
}

.about-product__image {
  position: absolute;
  left: 27.3%;
  top: 28.5%;
  width: 37%;
}

.about-product__arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #1f3570;
  pointer-events: none;
}

.about-product__notes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.note {
  position: absolute;
  text-align: center;
  color: #3a4a6e;
}
.note--1 { left: 19.35%; top: 1.2%;  width: 19.5%; }
.note--2 { left: 58.35%; top: 2.7%;  width: 18.4%; }
.note--3 { left: 6.4%;   top: 35%;   width: 19.5%; }
.note--4 { left: 74.75%; top: 37.5%; width: 19.6%; }
.note--5 { left: 9.05%;  top: 70.5%; width: 19.55%; }
.note--6 { left: 57.65%; top: 70.5%; width: 20.35%; }

.note__title {
  margin: 0 0 .2em;
  font-family: var(--font-script);
  font-size: 3.5cqw;
  font-weight: 400;
  line-height: 1.05;
  color: #1f3570;
  /* Lomi se samo gde je <br>, kao na dizajnu; može da bude širi od teksta ispod */
  width: max-content;
  margin-left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.note p {
  margin: 0;
  font-size: clamp(14px, 1.42cqw, 16px);
  line-height: 1.38;
  text-align: left;
}

/* Ratluk: ispod donjih napomena ostaje prazan deo pozornice, pa ga skraćujemo */
@media (min-width: 1000px) {
  .about-product__stage { margin-bottom: -3%; }
}

/* Računar: kad se pređe mišem preko napomene, ona i njena strelica se blago uvećaju */
@media (hover: hover) and (min-width: 1000px) {
  .note {
    transition: transform .35s ease;
  }
  .note:hover {
    z-index: 2;
    transform: scale(1.08);
  }
  .arrow {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .35s ease, stroke-width .35s ease;
  }
  .about-product__stage:has(.note--1:hover) .arrow--1,
  .about-product__stage:has(.note--2:hover) .arrow--2,
  .about-product__stage:has(.note--3:hover) .arrow--3,
  .about-product__stage:has(.note--4:hover) .arrow--4,
  .about-product__stage:has(.note--5:hover) .arrow--5,
  .about-product__stage:has(.note--6:hover) .arrow--6 {
    transform: scale(1.25);
    stroke-width: 3.4;
  }
}

/* Ikonice se vide samo kad su napomene složene jedna ispod druge (tablet, telefon) */
.note__icon { display: none; }

/* Ukusi: ceo baner na računaru, karusel na telefonu */
.flavors {
  padding: clamp(24px, 2.5vw, 40px) var(--gutter) clamp(8px, 1vw, 16px);
}
.flavors__banner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%),
                      linear-gradient(180deg, transparent 0, #000 9%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%),
              linear-gradient(180deg, transparent 0, #000 9%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
.flavors__list { display: none; }

/* Pakovanje: tri ponude jedna pored druge, kutije u istoj razmeri */
.packaging {
  padding: clamp(24px, 2.5vw, 40px) var(--gutter) clamp(48px, 5vw, 80px);
}
.packaging__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 16fr 13fr 7fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: end;
}
.pack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pack__label {
  order: 2;                /* u HTML-u je pre slike, a prikazuje se ispod nje */
  margin: clamp(12px, 1.2vw, 18px) 0 0;
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--blue);
}
.pack img { width: 100%; }

/* ---------- Karamela: raspored napomena, ukusi i pakovanje ---------- */

@media (min-width: 1000px) {
  .about-product--karamela .about-product__stage {
    aspect-ratio: 2000 / 1200;
    margin-bottom: 1%;
  }
  .about-product--karamela .about-product__image { left: 27%; top: 33.5%; width: 42%; }
  .about-product--karamela .note--1 { left: 7.1%;   top: 2.5%;  width: 22.4%; }
  .about-product--karamela .note--2 { left: 69.25%; top: 0.8%;  width: 22.25%; }
  .about-product--karamela .note--3 { left: 4.25%;  top: 40%;   width: 22.25%; }
  .about-product--karamela .note--4 { left: 71.65%; top: 40%;   width: 22.35%; }
  .about-product--karamela .note--5 { left: 9.4%;   top: 80.4%; width: 22.35%; }
  .about-product--karamela .note--6 { left: 66.85%; top: 80.4%; width: 22.4%; }
}

/* Ukusi kao zasebne slike sa rukopisnim nazivom (umesto jednog banera) */
.flavors--items .flavors__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: clamp(32px, 6vw, 110px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.flavor { margin: 0; text-align: center; }
.flavor img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}
.flavor__name {
  margin-top: 6px;
  padding-bottom: .15em;   /* rukopisni j i g imaju duge repove koji bi se inače odsekli */
  font-family: var(--font-script);
  font-size: 46px;
  line-height: 1.25;
  color: #1f3570;
}

/* Pet ukusa ratluka u jednom redu */
.flavors--five .flavors__list {
  grid-template-columns: repeat(5, minmax(0, 210px));
  gap: clamp(16px, 2vw, 36px);
  align-items: end;
}
.flavors--five .flavor img { height: 170px; }
.flavors--five .flavor__name { font-size: 40px; }

/* Ukusi kao fotografije sa pozadinom, isečene u pravougaonik */
.flavors--photos .flavors__list { grid-template-columns: repeat(5, minmax(0, 220px)); }
.flavors--photos .flavors__list .flavor img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(91, 72, 49, .12);
  -webkit-mask-image: none;
  mask-image: none;
}

/* Dve vrste pakovanja */
.packaging--two .packaging__list {
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
}

/* ---------- Žele: raspored napomena, pakovanja po vrstama ---------- */

@media (min-width: 1000px) {
  .about-product--zele .about-product__stage {
    aspect-ratio: 2000 / 1080;
    margin-bottom: 2%;
  }
  .about-product--zele .about-product__image { left: 27%; top: 15.7%; width: 47.2%; }
  .about-product--zele .note--1 { left: 16.35%; top: 2.8%;  width: 20.4%; }
  .about-product--zele .note--2 { left: 67.5%;  top: 6%;    width: 19.6%; }
  .about-product--zele .note--3 { left: 76%;    top: 39.8%; width: 19.5%; }
  .about-product--zele .note--4 { left: 50.15%; top: 82.4%; width: 19.6%; }
  .about-product--zele .note--5 { left: 9.65%;  top: 67.6%; width: 20.6%; }
}

/* Pakovanja po vrsti sečenja: kocke, kriške, sendvič */
.pack-group + .pack-group { margin-top: clamp(40px, 5vw, 80px); }
.pack-group__title {
  margin: 0 0 clamp(12px, 1.5vw, 24px);
  font-family: var(--font-script);
  font-size: clamp(40px, 3vw, 52px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  color: #1f3570;
}
.packaging--groups .packaging__list {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
}
.packaging--groups .pack img {
  width: auto;
  max-width: 100%;
  height: clamp(180px, 18vw, 260px);
  object-fit: contain;
}

/* ---------- O nama ---------- */
/* Naslovna slika: naslov stoji na praznom levom delu fotografije */
.about-hero {
  position: relative;
  margin-top: calc(-1 * clamp(28px, 3vw, 48px));   /* slika ide odmah ispod zaglavlja */
}
.about-hero__media img {
  width: 100%;
  height: auto;
}
.about-hero__title {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  font-size: clamp(34px, 3vw, 52px);
}
.about-page {
  padding: clamp(24px, 3vw, 48px) var(--gutter) clamp(32px, 3vw, 56px);
}
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.about-row + .about-row { margin-top: clamp(0px, 1vw, 16px); }
/* Prvi deo samo sa tekstom: jedna kolona na sredini */
.about-row--text {
  grid-template-columns: 1fr;
  max-width: 820px;
  text-align: center;
}
.about-row--reverse .about-row__text { order: 2; }
.about-row__lead {
  margin: 0 0 .3em;
  font-family: var(--font-script);
  font-size: clamp(36px, 3vw, 50px);
  line-height: 1.2;
  color: #1f3570;
}
.about-row__text p:not(.about-row__lead) {
  margin: 0;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.55;
  color: var(--brown);
}
.about-row__photo {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(91, 72, 49, .16);
}
.about-row__bowl {
  width: min(100%, 520px);
  justify-self: center;
  filter: drop-shadow(0 10px 18px rgba(91, 72, 49, .14));
}
.about-row__bowl--small { width: min(100%, 380px); }
.about-row__bowl { margin-block: -4%; }
.product-page--about .benefits { margin-top: clamp(8px, 2vw, 24px); }

@media (max-width: 699px) {
  .about-hero { margin-top: 0; }
  .about-hero__title {
    position: static;
    transform: none;
    margin: 0 0 18px;
  }
  .about-hero { display: flex; flex-direction: column-reverse; }
  .about-hero__media img { border-radius: 0; }
}

@media (max-width: 799px) {
  .about-row { grid-template-columns: 1fr; gap: 24px; }
  .about-row--reverse .about-row__text { order: 0; }
  .about-row__bowl { width: min(80%, 320px); }
  .about-row__bowl--small { width: min(70%, 260px); }
}

/* ---------- Podnožje ---------- */
.site-footer__panel {
  padding: clamp(32px, 3.2vw, 56px) clamp(24px, 3vw, 56px) 0;
  color: var(--brown);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.1fr 1.6fr;
  gap: clamp(28px, 3.4vw, 64px);
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: clamp(19px, 1.35vw, 23px);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown);
}

.site-footer p,
.site-footer address,
.site-footer li {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.5;
  font-style: normal;
}
.site-footer p { margin: 0 0 12px; }

.site-footer a { color: var(--brown); text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__logo { width: 120px; margin-bottom: 16px; }

/* Računar: 1. kolona stranice pa logo ispod, 2. kontakt, 3. šira forma */
@media (min-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: .8fr 1fr 2fr;
    grid-template-areas:
      "nav     contact form"
      "brand   contact form";
    grid-template-rows: auto 1fr;
    row-gap: 28px;
  }
  .site-footer__grid > :nth-child(1) { grid-area: brand; }
  .site-footer__grid > :nth-child(2) { grid-area: nav; }
  .site-footer__grid > :nth-child(3) { grid-area: contact; }
  .site-footer__grid > :nth-child(4) { grid-area: form; }
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__links li + li { margin-top: 4px; }

.site-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--brown);
  border-radius: 50%;
  color: var(--brown);
  transition: background-color .2s ease, color .2s ease;
}
.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  background: var(--brown);
  color: var(--green);
  text-decoration: none;
}

.site-footer__contact dt {
  font-weight: 600;
  margin-top: 8px;
}
.site-footer__contact dt:first-child { margin-top: 0; }
.site-footer__contact dd { margin: 0; }

/* Kontakt forma (zasad samo izgled, slanje dodajemo kasnije) */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form__full { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  letter-spacing: .03em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--green-line);
  border-radius: 6px;
  background: rgba(252, 247, 241, .9);
  color: var(--brown);
  font: inherit;
  font-size: 16px;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brown);
  outline-offset: 1px;
}

.contact-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}
.contact-form__consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--brown);
}
.contact-form__consent label { margin: 0; font-size: 15px; }

.contact-form button {
  justify-self: start;
  padding: 11px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease;
}
.contact-form button:hover,
.contact-form button:focus-visible { background: #3e3223; }

.contact-form__note {
  margin: 0;
  font-size: 14px;
  font-style: italic;
}
.contact-form__note--ok,
.contact-form__note--error {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-style: normal;
}
.contact-form__note--ok { background: rgba(252, 247, 241, .9); color: var(--brown); }
.contact-form__note--error { background: #f6e1dc; color: #7a2e1f; }

/* Polje-zamka za spam robote: ljudi ga ne vide */
.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(28px, 3vw, 48px);
  padding: 16px 0 18px;
  border-top: 1px solid rgba(235, 227, 182, .7);
  font-size: 14px;
  color: var(--brown);
}
.site-footer__bottom p { margin: 0; font-size: 14px; }

/* ---------- Tablet i telefon ---------- */
@media (max-width: 899px) {
  :root { --header-h: 48px; }

  /* Fotografija ide ispod providne trake, kao na računaru */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: var(--cream);
  }
  .hero::before { display: none; }

  .hero__media {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .hero__media img { object-position: 72% center; }

  .hero__content {
    width: auto;
    margin: 0;
    padding: 32px var(--gutter) 40px;
  }
  .hero__text { text-align: left; }

  /* Zagrizi sreću: zdele gore, tekst u kartici ispod */
  .bite {
    aspect-ratio: auto;
    padding: 0 var(--gutter) 40px;
    background: linear-gradient(180deg, #ebddd0 0%, #f3eae3 100%);
    overflow: hidden;
  }
  .bite__bowls {
    position: relative;
    height: min(78vw, 520px);
    max-width: 560px;
    margin: 0 auto;
  }
  .bite__bowl--rose { left: -14%; top: 4%; width: 52%; }
  .bite__bowl--walnut { left: 26%; top: 14%; width: 70%; }
  .bite__content {
    position: relative;
    inset: auto;
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 24px 30px;
    border-radius: 14px;
    /* Ista slika (kafa i ratluk) kao u kartici na računaru, uz svetli sloj zbog čitljivosti */
    background:
      linear-gradient(rgba(252, 247, 241, .55), rgba(252, 247, 241, .55)),
      #f3eae3 url("../img/zagrizi-kartica.webp") center / cover no-repeat;
    box-shadow: 0 10px 30px rgba(91, 72, 49, .12);
  }
  .bite::before { display: none; }
  .bite__text { text-align: left; font-size: 18px; }
}

/* Tablet i telefon: napomene o proizvodu složene ispod slike, sa ikonicama */
@media (max-width: 999px) {
  .about-product__stage {
    aspect-ratio: auto;
    max-width: 760px;
  }
  .about-product__image {
    position: static;
    width: min(560px, 92%);
    margin: 0 auto 32px;
  }
  .about-product__arrows { display: none; }
  .about-product__notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  .note { position: static; width: auto; }
  .note__icon {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
    fill: none;
    stroke: #1f3570;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .note__title {
    font-size: 40px;
    width: auto;
    margin-left: 0;
    transform: none;
    white-space: normal;
  }
  .note__title br { display: none; }
  .note p {
    font-size: 16px;
    text-align: center;
  }
}

/* Tablet: prednosti dve po dve */
@media (max-width: 1099px) {
  .benefits__list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }
  .benefits__panel { padding-top: 28px; padding-bottom: 28px; }

  /* Podnožje: dve kolone, forma preko cele širine */
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :last-child { grid-column: 1 / -1; }
}

/* Na telefonu nema mesta pored logoa; kontakt je u meniju */
@media (max-width: 599px) {
  .site-header__contact { display: none; }

  /* Napomene jedna ispod druge */
  .about-product__notes { grid-template-columns: 1fr; gap: 32px; }

  /* Opšti karusel: prevlačenje prstom, susedna stavka viri sa strane */
  .carousel {
    position: relative;      /* da JS meri položaj stavki unutar karusela */
    display: flex;
    justify-content: flex-start;   /* centrirana lista bi sakrila prve stavke levo van ekrana */
    gap: 16px;
    margin: 0;
    padding: 6px 12vw 14px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .carousel::-webkit-scrollbar { display: none; }
  .carousel > li {
    flex: 0 0 76vw;
    scroll-snap-align: center;
  }

  .flavors__banner { display: none; }
  /* Samo dva ukusa: jedan ispod drugog, bez karusela */
  .flavors--items .flavors__list:not(.carousel) {
    grid-template-columns: minmax(0, 300px);
    gap: 28px;
  }
  .flavors--items .flavors__list img {
    -webkit-mask-image: none;
    mask-image: none;
    height: 170px;
  }
  .flavor__name { font-size: 40px; }
  .flavors__list.carousel { display: flex; justify-content: flex-start; }
  .flavors--five .flavors__list.carousel { padding-left: 18vw; padding-right: 18vw; }
  .flavors--five .flavors__list.carousel > li { flex-basis: 64vw; }
  .flavors__list img {
    width: auto;
    max-width: 100%;
    height: 190px;
    margin: 0 auto;
    /* ivice isečka se sa sve četiri strane stapaju sa pozadinom stranice */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
                        linear-gradient(180deg, transparent 0, #000 12%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
                linear-gradient(180deg, transparent 0, #000 12%, #000 90%, transparent 100%);
    mask-composite: intersect;
  }

  .packaging { padding-left: 0; padding-right: 0; }
  .packaging__list.carousel {
    display: flex;
    max-width: none;
    align-items: stretch;
  }
  .pack {
    justify-content: center;
    padding: 14px 12px 16px;
    border-radius: 14px;
    background: #fbeede;
    box-shadow: 0 6px 16px rgba(91, 72, 49, .10);
  }
  .pack img {
    height: 170px;
    object-fit: contain;
  }
  .pack__label { margin-top: 10px; font-size: 18px; }

  /* Kartice proizvoda kao karusel: prevlačenje prstom, susedna kartica viri sa strane */
  .products { padding-left: 0; padding-right: 0; }
  .products__title { margin: 0 var(--gutter) 18px; }
  .products__list {
    position: relative;      /* da JS meri položaj kartica unutar karusela */
    display: flex;
    gap: 16px;
    max-width: none;
    padding: 10px 14vw 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 14vw;
    scrollbar-width: none;
  }
  .products__list::-webkit-scrollbar { display: none; }
  .products__list > li {
    flex: 0 0 72vw;
    scroll-snap-align: center;
  }
  .product-card__name { font-size: 26px; }
  .product-card__text { font-size: 17px; }

  .products__dots,
  .carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
  }
  .products__dots button,
  .carousel__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid var(--tan);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
  }
  .products__dots button[aria-current="true"],
  .carousel__dots button[aria-current="true"] {
    background: var(--tan);
    transform: scale(1.2);
  }

  /* Prednosti jedna ispod druge */
  .benefits__list {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .benefits__panel { padding: 28px 22px 30px; }
  .benefit { text-align: center; }
  .benefit p {
    font-size: 17px;
    text-align: center;
    hyphens: manual;
  }
  .benefit__icon { width: 120px; }
  .benefits::before,
  .site-footer::before { clip-path: polygon(0 0, 100% 0, 100% 10%, 0 30%); }
  .benefits::after,
  .site-footer::after { clip-path: polygon(0 0, 100% 0, 100% 5%, 0 25%); }

  /* Podnožje jedno ispod drugog, centrirano */
  .site-footer__panel { padding: 30px 20px 0; }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .site-footer__logo { margin: 0 auto 14px; }
  /* Na telefonu prvo forma, pa kontakt podaci, pa stranice, a logo na kraju */
  .site-footer__grid > :nth-child(4) { order: -2; }
  .site-footer__grid > :nth-child(3) { order: -1; }
  .site-footer__grid > :nth-child(1) { order: 1; }
  .site-footer__social { justify-content: center; }
  .contact-form { grid-template-columns: 1fr; text-align: left; }
  .contact-form button { justify-self: stretch; }
  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 899px) and (min-width: 600px) {
  .hero__media { aspect-ratio: 16 / 9; }
  .hero__content { max-width: 680px; }
}

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