/* ==========================================================================
   Mlekara Milovanović — main stylesheet
   Tokens come from the Figma variables (docs/design-review.md).
   ========================================================================== */

/* Fonts: Archivo variable (wght), self-hosted. latin-ext covers č ć š ž đ. */
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	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: "Archivo";
	src: url("../fonts/archivo-latin-ext-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Freestyle Script (handwritten lines), self-hosted so phones/Macs show it too (they don't have it installed; user
   2026-11-25). Built from the Windows TTF + composed č ć ž đ Č Ć Ž Đ (the TTF lacks them). ⚠ Needs a webfont licence
   before launch (launch-checklist). */
@font-face {
	font-family: "Freestyle Script";
	src: url("../fonts/freestyle-script.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Colours (Figma variables) */
	--mm-green: #036636;        /* Primarna zelena */
	--mm-green-2: #90b03e;      /* Sekundarna zelena */
	--mm-blue: #bad7f1;         /* Plava */
	--mm-beige: #fff1e0;        /* Bež */
	--mm-white: #fff;           /* Bela */
	--mm-lime: #b1e74c;         /* Button fill (from the Figma component; not a Figma variable) */

	/* Type (Figma text styles) */
	--mm-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mm-h1: 800 80px/72px var(--mm-font);
	--mm-h2: 800 48px/46px var(--mm-font);
	--mm-sub: 600 24px/20px var(--mm-font);
	--mm-text: 400 16px/20px var(--mm-font);
	--mm-button: 800 16px/18px var(--mm-font);
	--mm-nav: 900 14px/12px var(--mm-font);

	/* Layout */
	--mm-container: 1240px;     /* 1440 frame with 100px side margins */
	--mm-gutter: 16px;
	--mm-radius: 12px;
}

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

body {
	margin: 0;
	font: var(--mm-text);
	color: var(--mm-green);
	background: var(--mm-white);
	-webkit-font-smoothing: antialiased;
}

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

h1 { font: var(--mm-h1); text-transform: uppercase; margin: 0 0 24px; }
h2 { font: var(--mm-h2); text-transform: uppercase; margin: 0 0 24px; }
h3 { font: var(--mm-sub); text-transform: uppercase; margin: 0 0 16px; }

a { color: inherit; }

.container {
	width: 100%;
	max-width: calc(var(--mm-container) + 2 * var(--mm-gutter));
	margin-inline: auto;
	padding-inline: var(--mm-gutter);
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: var(--mm-gutter);
	top: var(--mm-gutter);
	z-index: 100;
	padding: 8px 16px;
	background: var(--mm-white);
}

/* Slogan (Freestyle Script: licence pending, falls back to a system script) */
.slogan {
	margin: 0;
	font: 400 32px/30px "Freestyle Script", "Segoe Script", cursive;
	color: var(--mm-blue);
}

/* Header (Figma Components → Component 1) -------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--mm-white);
	border-bottom: 2.5px solid var(--mm-green);
	border-radius: 0 0 10px 10px;
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr; /* keeps the logo truly centred whatever the menu widths */
	align-items: center;
	max-width: 1440px;
	height: 97.5px; /* + 2.5px bottom border = 100px, Figma stroke is inside */
	margin-inline: auto;
	padding-inline: 99px;
	transition: height 0.2s ease;
}

.site-logo {
	display: block;
	align-self: start;
	margin-top: 8px; /* Figma: logo sits near the top, not centred */
}

.site-logo__full {
	width: 117px;
}

.site-header.is-scrolled .site-logo {
	align-self: center;
	margin-top: 0;
}

.site-logo__compact {
	display: none;
}

.site-header.is-scrolled .site-header__inner {
	height: 70px;
}

.site-header.is-scrolled .site-logo__full {
	display: none;
}

.site-header.is-scrolled .site-logo__compact {
	display: block;
}

.site-nav--right {
	justify-self: end;
}

.site-nav__list {
	display: flex;
	gap: 45px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list > li {
	position: relative;
}

.site-nav__list > li > a {
	display: block;
	padding: 44px 0 41.5px; /* text at y44 like Figma; link fills the header so the dropdown starts at its edge */
	font: var(--mm-nav);
	text-transform: uppercase;
	text-decoration: none;
}

.site-header.is-scrolled .site-nav__list > li > a {
	padding-block: 29px;
}

.site-nav__list > li > a:hover,
.site-nav__list > .current-menu-item > a,
.site-nav__list > .current-menu-ancestor > a {
	color: var(--mm-green-2);
}

/* Dropdown */
.site-nav .sub-menu {
	position: absolute;
	top: calc(100% + 2.5px);
	left: 50%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 250px;
	margin: 0;
	padding: 22px 19px 13px;
	list-style: none;
	background: var(--mm-blue);
	border-radius: 0 0 10px 10px;
	transform: translateX(-50%);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.15s ease, visibility 0.15s;
}

/* Keyboard focus only (:focus-visible): a mouse-clicked link kept the menu open when the page came back from the
   browser's back/forward cache. */
.site-nav li:hover > .sub-menu,
.site-nav li:has(:focus-visible) > .sub-menu {
	visibility: visible;
	opacity: 1;
}

.site-nav .sub-menu a {
	display: block;
	font: 600 14px/12px var(--mm-font);
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

.site-nav .sub-menu a:hover {
	text-decoration: underline;
}

/* Polylang switcher item */
.site-nav .lang-item a {
	text-transform: uppercase;
}

/* Footer (Figma Components → Component 2) --------------------------------- */
.site-footer {
	color: var(--mm-white);
	/* Mountain silhouette on top; solid green continues below it for taller footers. */
	background:
		url("../img/footer-mountain.png") center top / 100% auto no-repeat,
		linear-gradient(to bottom, transparent 400px, var(--mm-green) 400px);
	overflow: hidden;
}

.site-footer__inner {
	position: relative;
	display: flex;
	max-width: 1440px;
	min-height: 507px;
	margin-inline: auto;
	padding: 143px 100px 58px;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	width: 397px;
}

.site-footer__logo {
	width: 221px;
}

.site-footer__brand .slogan {
	max-width: 287px;
	margin-top: 38px;
	font-size: 40px;
}

.site-footer__social {
	display: flex;
	gap: 25px;
	margin: auto 0 0;
	padding: 0;
	list-style: none;
	color: var(--mm-beige);
}

.site-footer__social a {
	display: block;
}

.site-footer__social svg {
	display: block;
	height: 25px;
	width: auto;
}

.site-footer__col {
	width: 283px;
}

.site-footer__title {
	margin: 0 0 20px;
	font: var(--mm-sub);
	color: var(--mm-blue);
}

.site-footer__menu {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__credit {
	position: absolute;
	bottom: 60px;
	left: 546px;
	width: 397px;
	margin: 0;
	text-align: right;
}

.site-footer__credit a {
	font-weight: 700;
}

.site-footer__trail {
	position: absolute;
	top: 65px;
	right: 0;
	width: 416px;
	pointer-events: none;
}

/* Buttons (Figma "Frame 1": lime, 2.5px green bottom stroke only, radius 10) */
.btn,
.btn-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 15px;
	font: var(--mm-button);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mm-green);
	background: var(--mm-lime);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 2.5px 0 var(--mm-green);
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover,
.btn-arrow:hover {
	transform: translateY(1px);
	box-shadow: 0 1.5px 0 var(--mm-green);
}

.btn-arrow {
	width: 46px;
	height: 40px;
	padding: 0;
}

.btn-arrow--prev svg {
	transform: rotate(180deg);
}

.btn-arrow:disabled {
	opacity: 0.45;
	cursor: default;
	transform: none;
}

/* Slider (vanilla, scroll-snap) ------------------------------------------- */
.mm-slider__track {
	display: flex;
	gap: 25px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.mm-slider__track::-webkit-scrollbar {
	display: none;
}

.mm-slider__slide {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.mm-slider__nav {
	display: flex;
	align-items: center;
	gap: 77px;
}

.mm-slider__nav[hidden] {
	display: none;
}

.mm-slider__progress {
	position: relative;
	display: none;
	width: 160px;
	height: 3px;
	overflow: hidden;
	background: var(--mm-blue);
	border-radius: 2px;
}

.mm-slider__progress span {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--mm-green);
	border-radius: 2px;
	transition: transform 0.2s ease;
}

/* Hero (shared component) --------------------------------------------------
   --home: photo under the sticky header, 30% dark overlay, blue title, beige subtitle (Figma 17:263)
   --page: photo starts below the header, no overlay, green title, light-green subtitle (Figma 110:582) */
.hero {
	position: relative;
	overflow: hidden;
}

.hero--home {
	min-height: 715px;
	margin-top: -102.5px;
	padding-top: 255px;
	text-align: center;
}

.hero--page {
	min-height: 615px;
	padding-top: 98px;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero--home .hero__bg {
	object-position: center top; /* Figma crop: top 88% */
}

.hero--home::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgb(0 0 0 / 30%);
}

.hero__content {
	position: relative;
	z-index: 2;
}

.hero__title {
	max-width: 608px;
	margin: 0;
}

.hero--home .hero__title {
	max-width: 924px;
	margin-inline: auto;
	color: var(--mm-blue);
}

.hero--page .hero__title {
	max-width: 672px;
	font: var(--mm-h2);
}

.hero__text {
	max-width: 392px;
	margin: 98px auto 0;
	color: var(--mm-white);
}

.hero__button {
	margin-top: 43px;
}

/* Figma: 316×40, one line, rotated 4.99° counter-clockwise around its top-left, 143.5px below the title top. */
.hero__slogan {
	position: absolute;
	top: 143.5px;
	left: calc(var(--mm-gutter) + 345px);
	width: 316px;
	font-size: 36px;
	text-align: center;
	white-space: nowrap;
	color: var(--mm-green-2);
	transform: rotate(-4.99deg);
	transform-origin: 0 0;
}

.hero--home .hero__slogan {
	top: 146.3px; /* Figma: pivot (802, 401.3), 48/36, 4.25 deg */
	left: calc(var(--mm-gutter) + 702px);
	width: 436px;
	font-size: 48px;
	line-height: 36px;
	color: var(--mm-beige);
	transform: rotate(-4.25deg);
}

/* Single product (Figma 110:679) ---------------------------------------------- */
.product-top {
	position: relative;
	min-height: 646px;
	padding-bottom: 72px;
	background: linear-gradient(to bottom, transparent 466px, var(--mm-green) 466px);
}

.product-top::before {
	content: "";
	position: absolute;
	inset: 285px 0 auto;
	height: 212px;
	background: url("../img/footer-mountain.png") center top / 100% auto no-repeat;
}

.product-top__inner {
	position: relative;
	display: flex;
}

.product-top__media {
	position: relative;
	flex: 0 0 633px;
	padding: 81px 0 0 101px;
}

.product-top .product-top__badge {
	top: 70px;
	right: auto;
	left: 0;
}

.product-top__img {
	width: 370px;
	height: 370px;
	object-fit: contain;
}

.product-top__img--placeholder {
	padding: 90px;
	opacity: 0.15;
}

.product-top__packs {
	width: 370px;
	margin-top: 30px;
	text-align: center;
	color: var(--mm-white);
}

.product-top__packs p {
	margin: 0 0 11px;
}

.product-top__pack-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 35px;
}

.pack-btn {
	color: var(--mm-white);
	box-shadow: 0 2.5px 0 var(--mm-beige);
}

.pack-btn:hover {
	box-shadow: 0 1.5px 0 var(--mm-beige);
}

.pack-btn.is-active {
	color: var(--mm-green);
}

.product-top__info {
	flex: 1;
	padding-top: 90px;
}

.product-top__info h1 {
	margin: 0 0 37px;
	font: var(--mm-h2);
}

.product-top__desc {
	max-width: 494px;
	margin: 0;
}

.product-top__meta {
	margin-top: 22px;
	text-align: right;
}

.product-top__meta p {
	margin: 0 0 5px;
}

.nutrition {
	width: 341px;
	margin-top: 34px;
	color: var(--mm-white);
	border-collapse: collapse;
}

.nutrition th {
	font-weight: 400;
	text-align: left;
}

.nutrition thead th {
	padding-bottom: 8px;
	vertical-align: bottom;
	border-bottom: 1px solid var(--mm-blue);
}

.nutrition thead th:last-child,
.nutrition td {
	text-align: right;
}

.nutrition small {
	display: block;
	font-size: 12px;
}

.nutrition tbody th,
.nutrition td {
	padding-top: 9px;
}

.nutrition tbody tr:first-child > * {
	padding-top: 15px;
}

.nutrition .is-sub > * {
	padding-top: 1px;
	font-size: 12px;
}

.product-recipes {
	padding-top: 64px;
	text-align: center;
}

.product-recipes h2 {
	max-width: 608px;
	margin: 0 auto 63px;
}

.product-recipes__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 25px;
}

.recipe-card {
	width: calc((100% - 50px) / 3); /* Figma row is 1241 wide, 1px over the container */
	overflow: hidden;
	text-align: left;
	background: var(--mm-blue);
	border-bottom: 2px solid var(--mm-green);
	border-radius: 16px;
}

.recipe-card__img {
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.recipe-card__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 95px;
	padding: 12px 23px;
}

.recipe-card h3 {
	max-width: 179px;
	margin: 0 0 8px;
	font: var(--mm-button);
	text-transform: uppercase;
}

.recipe-card p {
	margin: 0;
}

.recipe-card .btn {
	flex: none;
}

.product-similar {
	padding: 112px 0 63px;
}

.product-similar h2 {
	margin-bottom: 60px;
	text-align: center;
}

.product-similar .mm-slider__nav {
	justify-content: center;
	margin-top: 60px;
}

.product-similar .mm-slider__progress {
	display: block;
}

/* Naša priča (Figma 118:1196) ---------------------------------------------------- */
.hero--story {
	min-height: 714px;
	margin-top: -102.5px;
	padding-top: 308px;
	text-align: center;
}

.hero--story .hero__bg {
	object-position: center top;
}

.hero--story::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgb(0 0 0 / 30%);
}

.hero--story .hero__title {
	max-width: 703px;
	margin-inline: auto;
	font: var(--mm-h2);
	color: var(--mm-beige);
}

.story {
	padding-block: 61px 81px;
}

.story__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 50px;
}

.story__row + .story__row {
	margin-top: 61px;
}

.story__photo {
	flex: 0 0 607px;
	width: 607px;
	height: 390px;
	object-fit: cover;
	border-bottom: 2px solid var(--mm-green);
	border-radius: 16px;
}

.story__photo--blue {
	border-bottom-color: var(--mm-blue);
}

.story__text {
	max-width: 540px;
}

.story__text--wide {
	max-width: 582px;
}

.story__text h2 {
	margin: 0 0 50px;
	font: var(--mm-sub);
}

.story__text p {
	margin: 0 0 20px;
}

.story__text p:last-child {
	margin-bottom: 0;
}

.story-family {
	position: relative;
	z-index: 1;
	padding: 152px 0 123px;
	color: var(--mm-white);
	background: linear-gradient(to bottom, transparent 181px, var(--mm-green) 181px);
}

.story-family::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 212px;
	background: url("../img/footer-mountain.png") center top / 100% auto no-repeat;
}

.story-family .container {
	position: relative;
}

.story-family__heading {
	position: relative;
	margin-bottom: 73px;
	text-align: center;
}

.story-family__heading h2 {
	margin: 0;
	color: var(--mm-blue);
}

.story-family__script {
	position: absolute;
	top: 46.5px; /* Figma: pivot (933, 1895.5) */
	left: calc(var(--mm-gutter) + 833px);
	width: 316px;
	font-size: 36px;
	white-space: nowrap;
	color: var(--mm-lime);
	transform: rotate(-4.99deg);
	transform-origin: 0 0;
}

.story-family__more {
	display: flex;
	align-items: flex-start;
	gap: 213px;
	margin: 69px 0 0;
}

.story-family__more h3 {
	flex: 0 0 403px;
	margin: 0;
	font: var(--mm-sub);
	color: var(--mm-blue);
}

.story-family__more p {
	max-width: 540px;
	margin: 0;
}

.story-milk {
	position: relative;
	min-height: 794px;
	margin-bottom: calc(-100vw * 112 / 1440);
	padding-top: 98px;
	overflow: hidden;
}

.story-milk__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story-milk__card {
	position: relative;
	width: 632px;
	min-height: 497px;
	padding: 54px 39px 40px;
	background: var(--mm-blue);
	border-bottom: 2px solid var(--mm-green);
	border-radius: 16px;
}

.story-milk__card h2 {
	margin: 0 0 25px;
	font: var(--mm-sub);
}

.story-milk__card p {
	margin: 0 0 20px;
}

.story-milk__card p:last-child {
	margin-bottom: 0;
}

/* Naš tim (Figma 203:1612) --------------------------------------------------------- */
.team-page {
	position: relative;
	margin-bottom: calc(-100vw * 104 / 1440);
	padding: 96px 0 max(203px, calc(100vw * 203 / 1440));
	overflow: hidden;
}

.team-page::before {
	content: "";
	position: absolute;
	inset: 533px 0 0;
	background: url("../img/sketch-landscape.svg") no-repeat;
	background-position: calc(100vw * -1059 / 1440) calc(100vw * -1179 / 1440);
	background-size: calc(100vw * 3418 / 1440) auto;
	opacity: 0.2;
	pointer-events: none;
}

.team-page .container {
	position: relative;
}

.team-page .story__text {
	max-width: 605px;
}

.team-page .story__text p {
	max-width: 540px;
}

.team-page__cards {
	display: flex;
	flex-wrap: wrap;
	gap: 51px 25px;
	margin-top: 112px;
}

.team-page .card-person {
	width: calc((100% - 50px) / 3);
}

.team-page .card-person--wide {
	width: calc((100% - 25px) / 2);
}

/* Kvalitet i standardi (Figma 203:1834) --------------------------------------------- */
.quality {
	position: relative;
	margin-bottom: calc(-100vw * 104 / 1440);
	padding: 50px 0 max(154px, calc(100vw * 154 / 1440));
	overflow: hidden;
}

.quality::before {
	content: "";
	position: absolute;
	inset: 545px 0 0;
	background: url("../img/sketch-landscape.svg") no-repeat;
	background-position: calc(100vw * -264 / 1440) calc(100vw * -678 / 1440);
	background-size: calc(100vw * 1967 / 1440) auto;
	opacity: 0.2;
	pointer-events: none;
}

.quality .container {
	position: relative;
}

.quality h1 {
	margin: 0 0 20px;
	font: var(--mm-h2);
	text-align: center;
}

.quality__subtitle {
	margin: 0 0 50px;
	font: var(--mm-sub);
	text-align: center;
	text-transform: uppercase;
}

.quality__text {
	max-width: 605px;
}

.quality__text h2 {
	max-width: 521px;
}

.quality__quote {
	max-width: 658px;
	margin: 50px auto;
	font: var(--mm-sub);
	text-align: center;
	text-transform: uppercase;
}

.quality__certs {
	display: flex;
	flex-wrap: wrap;
	gap: 25px 26px;
}

.cert-card {
	position: relative;
	width: calc((100% - 26px) / 2);
	min-height: 272px;
	padding: 40px 35px;
	background: var(--mm-blue);
	border-bottom: 2px solid var(--mm-lime);
	border-radius: 16px;
}

.cert-card__text {
	max-width: 363px;
}

.cert-card__text p {
	margin: 0 0 20px;
}

.cert-card__text p:last-child {
	margin-bottom: 0;
}

.cert-card__logo {
	position: absolute;
	top: 21px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 155px;
	height: 76px;
}

.cert-card__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.cert-card__btn {
	position: absolute;
	right: 39px;
	bottom: 36px;
}

/* Naši partneri (Figma 203:1760) ---------------------------------------------------- */
.partners-page {
	position: relative;
	margin-bottom: calc(-100vw * 104 / 1440);
	padding: 100px 0 max(173px, calc(100vw * 173 / 1440));
	overflow: hidden;
	text-align: center;
}

.partners-page::before {
	content: "";
	position: absolute;
	inset: 389px 0 0;
	background: url("../img/sketch-landscape.svg") no-repeat;
	background-position: calc(100vw * -229 / 1440) calc(100vw * -654 / 1440);
	background-size: calc(100vw * 1898 / 1440) auto;
	opacity: 0.2;
	pointer-events: none;
}

.partners-page .container {
	position: relative;
}

.partners-page h1 {
	margin: 0 0 25px;
	font: var(--mm-h2);
}

.partners-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 25px 112px;
	max-width: 1136px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.partners-grid .home-partners__logo[hidden],
.partners-page .btn[hidden] {
	display: none;
}

/* Figma shows logos up to 134px tall in their 200px boxes. */
.partners-grid .home-partners__logo img,
.home-partners .home-partners__logo img {
	max-height: 134px;
}

.partners-page .btn {
	margin-top: 25px;
}

/* Proizvodnja (Figma 203:1686) ------------------------------------------------------- */
.hero--production {
	min-height: 615px;
	margin-top: -12.5px;
	padding-top: 223px;
	text-align: center;
}

.hero--production::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgb(0 0 0 / 30%);
}

.hero--production .hero__title {
	max-width: none;
	margin-inline: auto;
	font: var(--mm-h2);
	color: var(--mm-beige);
}

.production {
	position: relative;
	margin-bottom: calc(-100vw * 104 / 1440);
	padding: 77px 0 max(224px, calc(100vw * 224 / 1440));
	overflow: hidden;
}

.production::before {
	content: "";
	position: absolute;
	inset: 496px 0 0;
	background: url("../img/sketch-landscape.svg") no-repeat;
	background-position: calc(100vw * -279 / 1440) calc(100vw * -678 / 1440);
	background-size: calc(100vw * 1967 / 1440) auto;
	opacity: 0.2;
	pointer-events: none;
}

.production .container {
	position: relative;
}

.production__photos {
	display: flex;
	gap: 25px;
	margin-block: 77px;
}

.production__photos img {
	width: calc((100% - 50px) / 3);
	height: 397px;
	object-fit: cover;
	border-bottom: 2px solid var(--mm-lime);
	border-radius: 16px;
}

/* Kontakt (Figma 203:1982); form + map come from the home contact section ------------- */
.home-contact__title {
	font: var(--mm-h2);
	text-transform: uppercase;
}

.contact-page {
	padding: 119px 0 max(222px, calc(100vw * 222 / 1440));
}

.contact-page .home-contact__title {
	margin: 0 0 84px;
}

.contact-page::before {
	inset: 484px 0 0;
	height: auto;
	background-position: calc(100vw * -360 / 1440) calc(100vw * -743 / 1440);
	background-size: calc(100vw * 2154 / 1440) auto;
}

.contact-page .card-map {
	margin-top: 0;
	padding-bottom: 42px;
}

.contact-page .card-map__address {
	margin-top: 26px;
}

.dept-cards {
	position: relative;
	display: flex;
	gap: 25px;
	margin-top: 119px;
}

.dept-card {
	position: relative;
	flex: 1 1 0;
	min-height: 242px;
	padding: 78px 8px 24px;
	text-align: center;
	color: var(--mm-white);
	background: var(--mm-green);
	border-bottom: 2px solid var(--mm-lime);
	border-radius: 16px;
}

.dept-card__icon {
	position: absolute;
	top: -38px;
	left: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 75px;
	height: 75px;
	background: var(--mm-blue);
	border-radius: 50%;
}

.dept-card__icon svg {
	max-width: 53px;
	max-height: 53px;
}

.dept-card h2 {
	margin: 0 0 10px;
	font: var(--mm-sub);
	color: var(--mm-blue);
}

.dept-card__role {
	margin: 0;
}

.dept-card ul {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	font: 400 14px/20px var(--mm-font);
}

.dept-card a {
	text-decoration: none;
}

.dept-card a:hover {
	text-decoration: underline;
}

/* Single recipe (Figma 650:804) ------------------------------------------------- */
.recipe {
	padding-top: 96px;
}

.recipe__title {
	margin: 0 0 82px;
	font: var(--mm-h2);
	text-align: center;
}

.recipe__row {
	display: flex;
	align-items: flex-start;
	gap: 75px;
}

.recipe__photo {
	flex: 0 0 607px;
	width: 607px;
	height: 390px;
	object-fit: cover;
	border-bottom: 2px solid var(--mm-green);
	border-radius: 16px;
}

.recipe__ingredients {
	padding-top: 30px;
}

.recipe__ingredients h2 {
	margin: 0 0 54px;
	font: var(--mm-sub);
}

.recipe__ingredients ul {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.recipe__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 60px 25px;
	margin: 143px 0 0;
	padding: 0;
	list-style: none;
}

.recipe__steps li {
	position: relative;
	width: calc((100% - 50px) / 3);
	padding-left: 29px;
}

.recipe__steps p {
	position: relative;
	max-width: 368px;
	margin: 0;
}

/* Figma: Freestyle Script 160/30, blue, behind the text's top-left */
.recipe__num {
	position: absolute;
	top: -27px;
	left: 0;
	font: 400 160px/30px "Freestyle Script", "Segoe Script", cursive;
	color: var(--mm-blue);
}

.recipe-list {
	padding-bottom: 120px;
}

.recipe-list .product-recipes {
	padding-top: 0;
}

.recipe-list .product-recipes__list {
	justify-content: flex-start;
}

/* Other recipes on the big sketch (20%), which runs under the footer's mountain edge. Figma values at 1440. */
.recipe-more {
	position: relative;
	margin-bottom: calc(-100vw * 104 / 1440);
	padding: 212px 0 max(225px, calc(100vw * 225 / 1440));
	overflow: hidden;
}

.recipe-more::before {
	content: "";
	position: absolute;
	inset: 63px 0 0;
	background: url("../img/sketch-landscape.svg") no-repeat;
	background-position: calc(100vw * -1059 / 1440) calc(100vw * -1179 / 1440);
	background-size: calc(100vw * 3418 / 1440) auto;
	opacity: 0.2;
	pointer-events: none;
}

.recipe-more .product-recipes {
	position: relative;
	padding-top: 0;
}

/* Products page: category blocks (Figma 110:582) ------------------------------ */
.cat-block {
	scroll-margin-top: 70px; /* anchor jumps land below the compact sticky header */
}

.cat-block__intro {
	position: relative;
	z-index: 2; /* photo overlaps the mountain band below */
	display: flex;
	align-items: flex-start;
	gap: 109px;
	min-height: 621px; /* intro area above the green strip, where the cards start */
	padding-top: 75px;
}

.cat-block--flipped .cat-block__intro {
	flex-direction: row-reverse;
	justify-content: space-between;
	gap: 40px;
}

.cat-block__media {
	position: relative;
	z-index: 1;
	flex: 0 0 465px;
	margin-left: 59px; /* photo at x159, text at x733 */
}

.cat-block--flipped .cat-block__media {
	margin: 0 76px 0 0; /* photo ends at x1264 */
}

.cat-block__media img {
	width: 465px;
	height: 465px;
	object-fit: contain;
}

/* Pavlaka, Sitni sir, Pocerski sir photos: a bit larger, growing downward so they sit deeper in the green band
   (user, 2026-11-18). */
#pavlaka .cat-block__media img,
#sitni-sir .cat-block__media img,
#pocerski-sir .cat-block__media img {
	transform: translateY(16px) scale(1.12); /* 16px lower (2026-11-19): stand on the ridge like Kiselo mleko */
	transform-origin: center top;
}

.cat-block__text {
	max-width: 540px;
	padding-top: 101px; /* title 176px below the block top */
}

.cat-block__text h2 {
	margin: 0 0 34px;
}

.cat-block__text p {
	max-width: 494px;
	margin: 0;
}

/* Mountain band + green strip; the cards start at the top of the green strip. */
.cat-block__products {
	position: relative;
	z-index: 1;
	padding-bottom: 40px;
	background: linear-gradient(to bottom, var(--mm-green) 0, var(--mm-green) 250px, transparent 250px);
}

.cat-block__products::before {
	content: "";
	position: absolute;
	inset: -212px 0 auto;
	height: 212px;
	background: url("../img/footer-mountain.png") center top / 100% auto no-repeat; /* Figma: top 42%, not squashed */
}

.cat-block__track.is-centered {
	justify-content: center;
}

.cat-block .mm-slider__nav {
	justify-content: center;
	margin-top: 60px;
}

.cat-block .mm-slider__progress {
	display: block;
}

/* Product card (one packaging) */
.product-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 397px;
	text-align: center;
	text-decoration: none;
}

.product-card__box {
	position: relative;
	display: block;
	height: 405px;
	margin-bottom: 16px; /* 26px to the name */
	overflow: hidden;
	background: var(--mm-beige);
	border-bottom: 2.5px solid var(--mm-green);
	border-radius: 16px;
}

.product-card--sketch .product-card__box::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/sketch-landscape.svg") center / cover no-repeat;
	opacity: 0.2;
}

.product-card--blue .product-card__box {
	background: var(--mm-blue);
}

.product-card__img {
	position: relative;
	width: 335px;
	height: 335px;
	margin: 45px auto 0;
	object-fit: contain;
	transition: transform 0.2s ease;
}

/* No photo yet: faded "M" until the product shoot photos arrive. */
.product-card__img--placeholder {
	width: 160px;
	height: auto;
	margin-top: 120px;
	opacity: 0.15;
}

.product-card:hover .product-card__img {
	transform: scale(1.03);
}

.product-card__badge {
	position: absolute;
	top: 20px;
	right: 15px;
	padding: 11px 15px;
	font: var(--mm-button);
	text-transform: uppercase;
	background: var(--mm-lime);
	border-radius: 10px;
	box-shadow: 0 2.5px 0 var(--mm-green);
}

.product-card__name {
	font: var(--mm-sub);
	text-transform: uppercase;
}

.product-card__pack {
	font: var(--mm-text);
}

/* Home: product slider (Figma v2 "Frame 56"; ends in the Cer mountain band) */
.home-products {
	position: relative;
	z-index: 1;
	padding: 52px 0 59px; /* was 109px: next section shows sooner (user 2026-11-19) */
	background: linear-gradient(to bottom, transparent 577px, var(--mm-green) 577px);
}

.home-products::after {
	content: "";
	position: absolute;
	inset: 370px 0 auto;
	height: 212px;
	background: url("../img/footer-mountain.png") center top / 100% auto no-repeat; /* Figma: top 42% of the image, not squashed */
}

.home-products .mm-slider {
	position: relative;
	z-index: 1;
}

.home-products__slide {
	display: flex;
	gap: 168px;
	width: 100%;
}

.home-products__media {
	flex: 0 0 465px;
}

.home-products__media img {
	width: 465px;
	height: 465px;
	object-fit: contain;
}

.home-products__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
	max-width: 607px;
	padding-top: 46px;
}

.home-products__text h2,
.home-products__text p {
	margin: 0;
}

.home-products__text p {
	max-width: 460px;
}

.home-products .mm-slider__nav {
	position: absolute;
	right: var(--mm-gutter);
	bottom: 232px; /* above the mountain ridge (starts 370px from the section top) */
	gap: 25px;
}

/* Home: "Naše mleko" (green, map of Serbia) -------------------------------- */
.home-origin {
	min-height: 558px;
	padding-top: 117px;
	color: var(--mm-white);
	background: var(--mm-green);
}

.home-origin__inner {
	position: relative;
}

.home-origin__text {
	max-width: 614px;
}

.home-origin h2 {
	margin: 0;
	color: var(--mm-blue);
}

.home-origin__text .home-origin__subtitle {
	max-width: 328px;
	margin: 32px 0 0;
	font: var(--mm-button);
	text-transform: uppercase;
	color: var(--mm-beige);
}

.home-origin__map {
	position: absolute;
	top: -51px;
	left: calc(var(--mm-gutter) + 552px);
	width: 273px; /* Figma: x652, 66px below the block top */
}

/* Right column: handwritten line + text */
.home-origin__script {
	position: absolute;
	top: -4px;
	left: calc(var(--mm-gutter) + 835px);
	width: 405px;
	font-size: 40px;
	text-align: center;
	color: var(--mm-beige);
}

.home-origin__body {
	position: absolute;
	top: 78px;
	left: calc(var(--mm-gutter) + 893px);
	width: 310px;
	margin: 0;
}

/* Home: "Ponosni na svoje korene" (Figma v3: photo band + green card) ---------- */
.home-roots {
	padding-bottom: 44px;
}

.home-roots__band {
	position: relative;
	min-height: 649px;
	padding-top: 69px;
	overflow: hidden;
}

.home-roots__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-roots__card {
	position: relative;
	width: 632px;
	min-height: 497px;
	padding: 40px 49px;
	background: var(--mm-blue);
	border-bottom: 2px solid var(--mm-lime);
	border-radius: 16px;
}

.home-roots__title {
	margin: 0 0 25px;
	font: var(--mm-sub);
	text-transform: uppercase;
}

.home-roots__text {
	max-width: 597px;
}

.home-roots__card .home-roots__text {
	max-width: 554px;
}

.home-roots__row {
	display: flex;
	align-items: flex-start;
	gap: 73px;
	padding-top: 76px;
}

.home-roots__side {
	flex: 1;
	padding-top: 5px;
}

.home-roots__script {
	max-width: 540px; /* right edge lines up with the text below */
	margin-bottom: 34px;
	font-size: 40px;
	text-align: right;
	color: var(--mm-green);
}

.home-roots__photo {
	flex: 0 0 607px;
	width: 607px;
	height: 500px;
	object-fit: cover;
	border-bottom: 2px solid var(--mm-green); /* Figma: bottom stroke only */
	border-radius: 16px;
}

.home-roots__side .home-roots__text {
	max-width: 540px;
}

/* Home: team ------------------------------------------------------------------ */
.home-team {
	padding: 120px 0 26px;
	overflow: hidden;
}

.home-team__inner {
	display: flex;
	gap: 25px;
}

.home-team__intro {
	display: flex;
	flex: 0 0 397px;
	flex-direction: column;
}

.home-team__intro h2 {
	margin-bottom: 35px;
}

.home-team__intro p {
	max-width: 352px;
	margin: 0 0 35px;
}

.home-team__intro .mm-slider__nav {
	gap: 25px;
	margin-top: auto;
}

.home-team__track {
	flex: 1;
	min-width: 0;
	margin-right: min(0px, calc((1240px - 100vw) / 2 - var(--mm-gutter))); /* cards run to the window edge */
}

/* Room after the last card, so the last stop still starts on a card edge (2 full cards, none cropped). */
.home-team__track::after {
	content: "";
	flex: 0 0 max(0px, calc(100% - 844px));
}

.card-person {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 397px;
	padding-bottom: 30px;
	overflow: hidden;
	text-align: center;
	background: var(--mm-green);
	border-bottom: 2px solid var(--mm-lime); /* Figma: bottom stroke only */
	border-radius: 16px;
}

.card-person__photo {
	width: 100%;
	height: 285px;
	margin-bottom: 15px;
	object-fit: cover;
}

.card-person__name {
	margin: 0;
	font: var(--mm-sub);
	color: var(--mm-beige);
}

.card-person__role {
	margin: 0;
	color: var(--mm-white);
}

/* Home: partners ---------------------------------------------------------------- */
.home-partners {
	padding: 100px 0 75px;
	text-align: center;
}

.home-partners h2 {
	max-width: 864px;
	margin: 0 auto 42px;
}

.home-partners__track {
	gap: 112px;
	max-width: 1136px;
	margin-inline: auto;
}

.home-partners__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 200px;
	height: 200px;
}

.home-partners__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.home-partners .mm-slider__nav {
	justify-content: center;
	margin-top: 35px;
}

.home-partners .mm-slider__progress {
	display: block;
}

/* Home: contact (Figma v2: white, landscape sketch runs under the footer's mountain edge) */
/* Sketch + footer overlap scale with the window width (Figma values at 1440: 516 tall, 232 bottom padding,
   104 under the footer), so wide screens show the same crop instead of a cut-off top edge. */
.home-contact {
	position: relative;
	margin-bottom: calc(-100vw * 104 / 1440);
	padding: 49px 0 max(232px, calc(100vw * 232 / 1440));
}

/* Figma: bottom 51% of the sketch, fill at 20% opacity. */
.home-contact::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: calc(100vw * 516 / 1440);
	background: url("../img/sketch-landscape.svg") center bottom / 100% auto no-repeat;
	opacity: 0.2;
	pointer-events: none;
}

.home-contact > .container {
	position: relative;
}

.site-footer {
	position: relative;
	z-index: 1;
}

.home-contact__title {
	margin: 0 0 94px;
	text-align: center;
}

.home-contact__grid {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}

.home-contact__form {
	flex: 0 1 608px;
}

/* Contact form (CF7 markup from the site setup) */
.mm-form__row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 25px;
}

.mm-form__label {
	font: var(--mm-button);
	text-transform: uppercase;
}

.mm-form__pair {
	display: flex;
	gap: 24px;
}

.mm-form__pair > .wpcf7-form-control-wrap {
	flex: 1;
}

.mm-form input[type="text"],
.mm-form input[type="email"],
.mm-form textarea {
	width: 100%;
	height: 50px;
	padding: 12px 16px;
	font: var(--mm-text);
	color: var(--mm-green);
	background: var(--mm-beige);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 2.5px 0 var(--mm-green); /* Figma: bottom stroke only, outside */
}

.mm-form input:focus,
.mm-form textarea:focus {
	outline: 2px solid var(--mm-green-2);
	outline-offset: 2px;
}

.mm-form textarea {
	height: 150px;
	resize: vertical;
}

.mm-form ::placeholder {
	color: var(--mm-lime);
	opacity: 1;
}

.mm-form__actions {
	text-align: center;
}

.mm-form .wpcf7-spinner {
	display: none;
}

.card-map {
	flex: 0 0 503px;
	margin-top: -13px; /* card starts 13px above the form in Figma */
	padding-bottom: 34px;
	overflow: hidden;
	text-align: center;
	background: var(--mm-green);
	border-bottom: 2px solid var(--mm-lime); /* Figma: bottom stroke only */
	border-radius: 16px;
}

.card-map__map {
	display: block;
	width: 100%;
	height: 326px;
	border: 0;
}

.card-map__title {
	margin: 20px 0;
	font: var(--mm-sub);
	color: var(--mm-beige);
}

.card-map__address {
	margin: 0;
	color: var(--mm-white);
}

/* ==========================================================================
   Client fixes 2026-11-10 (Mlekara Ispravke.docx + Figma edit of 9.11.)
   ========================================================================== */

/* Subheadings: line height 20 → 24 */
:root {
	--mm-sub: 600 24px/24px var(--mm-font);
}

/* Submenu hover: colour change instead of underline */
.site-nav .sub-menu a:hover,
.site-nav .sub-menu a:focus-visible {
	color: var(--mm-green-2);
	text-decoration: none;
}

/* Home hero: no subtitle/paragraph, title centred both ways (Figma: title at y287 in 715) */
.hero--home {
	display: flex;
	align-items: center;
	padding-top: 0;
}

.hero--home .hero__content {
	width: 100%;
}

video.hero__bg {
	object-fit: cover;
}

/* Footer: taller (Figma 561), bigger "M", cropped by the footer's bottom edge */
.site-footer {
	background:
		url("../img/footer-mountain.png") center top / max(100%, 1595px) auto no-repeat,
		linear-gradient(to bottom, transparent 450px, var(--mm-green) 450px);
}

.site-footer__inner {
	min-height: 561px;
}

.site-footer__credit {
	bottom: 128px;
}

.site-footer__social {
	margin-bottom: 70px;
}

.site-footer__trail {
	top: 37px;
	width: 493px;
}

/* Recipe sketch background: fixed pixel size so it isn't zoomed on wide screens (Figma 2188 wide, crop 49%) */
.recipe-more::before {
	background-position: calc(50% - 106px) -755px;
	background-size: 2188px auto;
}

.recipe-list {
	position: relative;
	margin-bottom: -104px;
	padding-bottom: 224px;
	overflow: hidden;
}

.recipe-list::before {
	content: "";
	position: absolute;
	inset: 300px 0 0;
	background: url("../img/sketch-landscape.svg") no-repeat;
	background-position: calc(50% - 106px) -755px;
	background-size: 2188px auto;
	opacity: 0.2;
	pointer-events: none;
}

.recipe-list .container {
	position: relative;
}

/* Home product slider: group of up to 3 photos (Figma 714:2798) ------------------ */
.home-products__media {
	position: relative;
	height: 520px;
}

.home-products__media img.home-products__img {
	position: absolute;
	width: 433px;
	height: 433px;
	object-fit: contain;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s ease;
}

.home-products__img--1 {
	top: 41px;
	left: 18px;
}

.home-products__media .home-products__img--2,
.home-products__media .home-products__img--3 {
	width: 341px;
	height: 341px;
	top: 157px;
}

.home-products__img--2 {
	left: -88px;
}

.home-products__img--3 {
	left: 232px;
}

.home-products__text {
	transition: opacity 0.5s ease;
}

/* Not the visible slide: photos shrink down into the green band, text fades (Figma variant 2). */
.is-animated .home-products__slide:not(.is-current) .home-products__img--1 {
	transform: translate(-17px, 268px) scale(0.16);
	opacity: 0;
}

.is-animated .home-products__slide:not(.is-current) .home-products__img--2 {
	transform: translate(148px, 180px) scale(0.12);
	opacity: 0;
}

.is-animated .home-products__slide:not(.is-current) .home-products__img--3 {
	transform: translate(-139px, 175px) scale(0.07);
	opacity: 0;
}

.is-animated .home-products__slide:not(.is-current) .home-products__text {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.home-products__media img.home-products__img,
	.home-products__text {
		transition: none;
	}
}

/* Home: "Od farme do vašeg stola" (Figma Group 17) ------------------------------ */
.home-farm {
	padding: 160px 0 78px;
}

.home-farm__inner {
	display: flex;
	gap: 129px;
}

.home-farm__text {
	flex: 0 0 397px;
	padding-top: 61px;
}

.home-farm__text h2 {
	margin: 0 0 70px;
}

.home-farm__text p {
	max-width: 352px;
	margin: 0 0 20px;
}

.home-farm__photos {
	position: relative;
	flex: 1;
	height: 382px;
}

.home-farm__photo {
	position: absolute;
	width: 317px;
	height: 317px;
	object-fit: cover;
	border-bottom: 2.5px solid var(--mm-green);
	border-radius: 16px;
}

/* Positions/rotation from Figma, relative to the photo area (x626 at 1440). */
.home-farm__photo--1 {
	top: 37px;
	left: 15px;
	transform: rotate(-5.67deg);
}

.home-farm__photo--2 {
	top: 44px;
	left: 397px;
	transform: rotate(8.44deg);
}

.home-farm__photo--3 {
	top: 0;
	left: 218px;
}


/* Slider fix 10.11.: side photos keep their 341px size (the main-photo rule was more specific), and tracks never scroll vertically. */
.home-products__media img.home-products__img--2,
.home-products__media img.home-products__img--3 {
	width: 341px;
	height: 341px;
}

.mm-slider__track {
	overflow-y: hidden;
}

/* Slider fix 10.11.: the left cup sits 88px left of the container (Figma), so the track reaches 88px further left instead of clipping it. */
.home-products {
	overflow-x: clip;
}

.home-products .mm-slider__track {
	gap: 113px; /* neighbours stay out of the extra 88px */
	margin-left: -88px;
	padding-left: 88px;
	scroll-padding-left: 88px;
}

/* Pack buttons show the full name (10.11.): tighter gap, row may be wider than the photo so 3 fit on one line. */
.product-top__pack-list {
	gap: 12px 16px;
	margin-inline: -60px;
}

/* Footer "M" (10.11.): lower and a bit smaller so it sits fully on green, below the mountain ridge. */
.site-footer__trail {
	top: 110px;
	width: 440px;
}

/* Recipe ingredients in columns (Figma 650:804, 10.11.): "Za testo:" / "Za nadev:" headings, 212px columns 55px apart. */
.recipe__ingredients h2 {
	margin-bottom: 25px;
}

.recipe__groups {
	display: flex;
	flex-wrap: wrap;
	gap: 25px 55px;
}

.recipe__groups ul {
	width: 212px;
	gap: 15px; /* 20px lines → 35px apart, as in Figma */
}

.recipe__group-title {
	font-weight: 700;
}

/* Footer "M" as in Figma (10.11.): pre-cropped image (left 61%, 11–76% of the height), 493×524, cut by the
   footer's bottom edge and the viewport's right edge (also on screens wider than 1440). */
.site-footer__trail {
	top: auto;
	right: min(0px, calc(720px - 50vw));
	bottom: 0;
	width: 493px;
	height: 524px;
}

/* Social icons on the same line as the credit (Figma y 415–440 of 561). */
.site-footer__social {
	margin-bottom: 63px;
}

/* Slider fix 10.11.: the outgoing slide's text disappears at once (no fade-out), so it never shows in the extra
   88px strip left of the container while sliding; the incoming text still fades in. */
.is-animated .home-products__slide:not(.is-current) .home-products__text {
	transition: none;
}

/* Footer slogan on one line, as in Figma (10.11.): Freestyle Script 36px, no wrapping. */
.site-footer__brand .slogan {
	max-width: none;
	font-size: 36px;
	white-space: nowrap;
}

/* "Od naše farme" sequence (Figma 837:906, 10.11.). The texts share one grid cell so the height doesn't jump.
   No data-step (no JS / reduced motion) = final state: all photos + the last text. */
.home-farm__steps {
	display: grid;
}

.home-farm__step {
	grid-area: 1 / 1;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.6s ease, visibility 0.6s;
}

.home-farm:not([data-step]) .home-farm__step:last-child,
.home-farm[data-step="1"] [data-farm-step="1"],
.home-farm[data-step="2"] [data-farm-step="2"],
.home-farm[data-step="3"] [data-farm-step="3"] {
	visibility: visible;
	opacity: 1;
}

.home-farm__photo {
	transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-farm[data-step="1"] .home-farm__photo--2,
.home-farm[data-step="1"] .home-farm__photo--3,
.home-farm[data-step="2"] .home-farm__photo--3 {
	opacity: 0;
	translate: 0 40px;
}

/* Figma 837:906: text column 450px, photos start 526px from it (same photo position as before). */
.home-farm__inner {
	gap: 76px;
}

.home-farm__text {
	flex-basis: 450px;
}

/* Product: composition, storage, shelf life, packaging + photo (Figma 843:1053, 10.11.). */
.product-info {
	padding: 66px 0 40px;
}

.product-info__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.product-info__text {
	flex: 0 1 608px;
}

.product-info__text > p {
	max-width: 540px;
	margin: 0 0 20px;
}

.product-info__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 42px 0 0;
	padding: 0;
	list-style: none;
}

.product-info__list li {
	display: flex;
	align-items: center;
	gap: 29px;
}

.product-info__list p {
	max-width: 540px;
	margin: 0;
}

.product-info__icon {
	display: flex;
	flex: 0 0 55px;
	align-items: center;
	justify-content: center;
	height: 55px;
	border-radius: 50%;
	background: var(--mm-blue);
}

.product-info__photo {
	flex: 0 0 607px;
	width: 607px;
	height: 390px;
	object-fit: cover;
	border-bottom: 2.5px solid var(--mm-green);
	border-radius: 16px;
}

/* No white gap between the sketch and the footer mountain (10.11.): every sketch is anchored by its bottom
   (the grass) and reaches ~200px under the footer's top edge, so the grass always runs behind the ridge.
   Horizontal overflow stays clipped; vertical may pass under the footer. */
.team-page,
.quality,
.partners-page,
.production,
.recipe-more,
.recipe-list {
	overflow: visible;
	overflow-x: clip;
}

.team-page::before,
.quality::before,
.partners-page::before,
.production::before,
.recipe-more::before,
.recipe-list::before,
.home-contact::before {
	bottom: -100px;
	background-position-y: bottom;
}

/* Product: the nutrition table always starts on the green part (Figma y 444 = 344px below the section top),
   whatever the description length; a longer text pushes it down instead of overlapping. */
.product-top__head {
	min-height: 254px; /* 344 - 90px top padding */
}

.product-top__info .nutrition {
	margin-top: 0;
}

/* Naše mleko: less space between the handwritten line and the text (user, 2026-11-18). */
.home-origin__body {
	top: 58px;
}

/* ==========================================================================
   Mobile (spec-006, Figma 868:1057 "Home - Mobile", 390 wide), up to 1023px.
   Header + footer (all pages) and Pocetna. Content column max 600px, 24px sides.
   ========================================================================== */
.site-header__mobile {
	display: none;
}

@media (max-width: 1023px) {
	:root {
		--mm-gutter: 24px;
		--mm-container: 600px;
		--mm-h1: 800 40px/42px var(--mm-font);
		--mm-h2: 800 32px/34px var(--mm-font);
		--mm-sub: 600 22px/28px var(--mm-font);
		--mm-text: 400 16px/22px var(--mm-font);
	}

	/* Header (Figma 918:1107): language left, "M" centre, menu icon right; blue panels drop below. */
	.site-header__inner,
	.site-header.is-scrolled .site-header__inner {
		position: relative;
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 73.5px;
		padding-inline: 20px;
	}

	.site-nav {
		display: none;
	}

	.site-header__mobile {
		display: contents;
	}

	.mobile-lang {
		order: 1;
		width: 40px;
	}

	.site-logo,
	.site-header.is-scrolled .site-logo {
		order: 2;
		align-self: center;
		margin: 0;
	}

	.site-menu-toggle {
		order: 3;
	}

	.site-logo__full,
	.site-header.is-scrolled .site-logo__full {
		display: none;
	}

	.site-logo__compact,
	.site-header.is-scrolled .site-logo__compact {
		display: block;
		width: auto;
		height: 50px;
	}

	.mobile-lang__toggle {
		padding: 8px 0;
		font: var(--mm-nav);
		text-transform: uppercase;
		color: var(--mm-green);
		background: none;
		border: 0;
		cursor: pointer;
	}

	.site-menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 40px;
		height: 20px;
		padding: 0;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.site-menu-toggle span {
		display: block;
		height: 2px;
		background: var(--mm-green);
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.site-menu-toggle[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
	}

	.site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
	}

	/* Panels: blue, 170 wide, flush to the screen edge, green bottom stroke */
	.mobile-panel {
		position: absolute;
		top: calc(100% + 2.5px);
		width: 170px;
		margin: 0;
		padding: 22px 10px;
		list-style: none;
		text-align: center;
		background: var(--mm-blue);
		border-bottom: 2.5px solid var(--mm-green);
		border-radius: 0 0 10px 10px;
	}

	.mobile-panel[hidden] {
		display: none;
	}

	.mobile-lang__list {
		left: 0;
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	.mobile-menu {
		right: 0;
	}

	.mobile-menu__list,
	.mobile-menu .sub-menu {
		display: flex;
		flex-direction: column;
		gap: 19px; /* was 14 (+5, user 2026-11-20) */
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.mobile-menu__list + .mobile-menu__list {
		margin-top: 19px;
	}

	.mobile-panel a {
		display: block;
		font: var(--mm-nav);
		line-height: 15px;
		text-transform: uppercase;
		text-decoration: none;
	}

	.mobile-panel a:hover,
	.mobile-panel a[aria-current],
	.mobile-menu .current-menu-item > a {
		color: var(--mm-green-2);
	}

	.mobile-menu .sub-menu {
		display: none;
		margin-top: 19px;
	}

	.mobile-menu .is-open > .sub-menu {
		display: flex;
	}

	.mobile-menu .sub-menu a {
		font-weight: 500;
	}

	.mobile-menu .lang-item {
		display: none;
	}

	/* Hero */
	.hero--home {
		min-height: 512px;
		margin-top: 0;
		padding-block: 48px;
	}

	.hero--home .hero__title {
		max-width: 342px;
	}

	.hero--home .hero__slogan {
		position: static;
		width: auto;
		margin-top: 24px;
		font-size: 32px;
		line-height: 32px;
		white-space: normal;
		transform: none;
	}

	.hero__text {
		max-width: none;
		margin-top: 32px;
	}

	/* Product slider: photos, then title, text, button + arrows; mountain strip at the bottom. */
	.home-products {
		padding: 36px 0 72px;
		background: none;
	}

	.home-products::after {
		inset: auto 0 0;
		height: 52px;
		background-size: 300% auto;
	}

	.home-products .mm-slider__track {
		gap: 24px;
		margin-left: 0;
		padding-left: 0;
		scroll-padding-left: 0;
	}

	.home-products__slide {
		flex-direction: column;
		gap: 20px;
	}

	.home-products__media {
		flex: none;
		width: 342px;
		max-width: 100%;
		height: 250px;
		margin-inline: auto;
	}

	.home-products__media img.home-products__img {
		width: 225px;
		height: 225px;
	}

	.home-products__img--1 {
		top: 0;
		left: 53px;
	}

	.home-products__media img.home-products__img--2,
	.home-products__media img.home-products__img--3 {
		top: 73px;
		width: 177px;
		height: 177px;
	}

	.home-products__img--2 {
		left: -4px;
	}

	.home-products__img--3 {
		left: 162px;
	}

	.is-animated .home-products__slide:not(.is-current) .home-products__img--1,
	.is-animated .home-products__slide:not(.is-current) .home-products__img--2,
	.is-animated .home-products__slide:not(.is-current) .home-products__img--3 {
		transform: none;
	}

	.home-products__text {
		gap: 20px;
		max-width: none;
		padding-top: 0;
	}

	.home-products__text p {
		max-width: none;
	}

	.home-products .mm-slider__nav {
		right: var(--mm-gutter);
		bottom: 0;
		gap: 12px;
	}

	/* Nase mleko */
	.home-origin {
		min-height: 0;
		padding: 48px 0;
	}

	.home-origin__inner {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.home-origin__text {
		max-width: none;
	}

	.home-origin__text .home-origin__subtitle {
		max-width: none;
		margin-top: 24px;
		line-height: 22px;
	}

	.home-origin__map {
		position: static;
		order: 1;
		width: 151px;
		margin-inline: auto;
	}

	.home-origin__script,
	.home-origin__body {
		position: static;
		order: 2;
		width: auto;
	}

	.home-origin__script {
		font-size: 32px;
	}

	.home-origin__body {
		order: 3;
	}

	/* Ponosni: photo on top, blue card full width */
	.home-roots {
		padding-bottom: 0;
	}

	.home-roots__band {
		min-height: 0;
		padding-top: 260px;
	}

	.home-roots__bg {
		bottom: auto;
		height: 260px;
	}

	.home-roots__band > .container {
		max-width: none;
		padding-inline: 0;
	}

	.home-roots__card {
		width: auto;
		min-height: 0;
		padding: 36px var(--mm-gutter);
		border-bottom: 0;
		border-radius: 0;
	}

	.home-roots__card > * {
		max-width: 600px;
		margin-inline: auto;
	}

	.home-roots__title {
		margin-bottom: 24px;
	}

	.home-roots__row {
		flex-direction: column;
		gap: 24px;
		padding-top: 36px;
	}

	.home-roots__photo {
		flex: none;
		width: 100%;
		height: auto;
	}

	/* Od nase farme: one 294px photo frame (the photos still swap in turn) */
	.home-farm {
		padding: 56px 0 48px;
	}

	.home-farm__inner {
		flex-direction: column;
		gap: 24px;
	}

	.home-farm__text {
		flex: none;
		padding-top: 0;
	}

	.home-farm__text h2 {
		margin-bottom: 24px;
	}

	.home-farm__text p {
		max-width: none;
	}

	.home-farm__photos {
		flex: none;
		width: 294px;
		height: 294px;
		margin-inline: auto;
	}

	.home-farm__photo,
	.home-farm__photo--1,
	.home-farm__photo--2,
	.home-farm__photo--3 {
		top: 0;
		left: 0;
		width: 294px;
		height: 294px;
		transform: none;
	}

	/* Nas tim: intro, then all cards stacked (no slider) */
	.home-team {
		padding: 36px 0 24px;
	}

	.home-team__inner {
		flex-direction: column;
		gap: 24px;
	}

	.home-team__intro {
		flex: none;
	}

	.home-team__intro h2 {
		margin-bottom: 24px;
	}

	.home-team__intro p {
		max-width: none;
		margin-bottom: 0;
	}

	.home-team .mm-slider__nav,
	.home-partners .mm-slider__nav {
		display: none;
	}

	.home-team__track {
		flex-direction: column;
		gap: 24px;
		margin-right: 0;
		overflow: visible;
	}

	.home-team__track::after {
		display: none;
	}

	.home-team .card-person {
		width: 100%;
		gap: 8px;
		padding-bottom: 20px;
		text-align: left;
	}

	.home-team .card-person__photo {
		height: 246px;
		margin-bottom: 12px;
	}

	.home-team .card-person__name,
	.home-team .card-person__role {
		padding-inline: 20px;
	}

	.home-team .card-person__role {
		font-size: 14px;
	}

	/* Partneri: 2x2 logos */
	.home-partners {
		padding: 36px 0 48px;
	}

	.home-partners h2 {
		margin-bottom: 24px;
	}

	.home-partners__track {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 24px;
		overflow: visible;
	}

	.home-partners__logo {
		width: auto;
		height: 132px;
	}

	.home-partners .home-partners__logo:nth-child(n+5) {
		display: none;
	}

	/* Kontakt: form, map card, sketch strip */
	.home-contact {
		margin-bottom: 0;
		padding: 36px 0 132px;
	}

	.home-contact::before {
		bottom: 0;
		height: 100px;
		background-size: 200% auto;
	}

	.home-contact__title {
		margin-bottom: 32px;
	}

	.home-contact__grid {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.home-contact__form {
		flex: none;
	}

	.card-map {
		flex: none;
		margin-top: 0;
		padding-bottom: 24px;
		text-align: left;
	}

	.card-map__map {
		height: 222px;
	}

	.card-map__title {
		margin: 24px 24px 12px;
	}

	.card-map__address {
		margin-inline: 24px;
	}

	/* Footer (Figma 920:1314): mountain edge, logo + slogan row, centred columns, credit left, big milk "M" at the bottom. */
	.site-footer {
		background:
			url("../img/footer-mountain.png") center top / max(100%, 487px) auto no-repeat,
			linear-gradient(to bottom, transparent 86px, var(--mm-green) 86px);
	}

	.site-footer__inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		min-height: 0;
		padding: 51px 24px 255px;
		text-align: center;
	}

	.site-footer__brand {
		display: contents;
	}

	.site-footer__logo {
		justify-self: start;
		width: 142px;
		margin-left: 9px;
	}

	.site-footer__brand .slogan {
		justify-self: end;
		max-width: 150px;
		margin: 0;
		font-size: 30px;
		line-height: 30px;
		white-space: normal;
	}

	.site-footer__col {
		order: 1;
		grid-column: 1 / -1;
		width: auto;
		margin-top: 51px;
	}

	.site-footer__col + .site-footer__col {
		margin-top: 56px;
	}

	.site-footer__title {
		margin-bottom: 16px;
	}

	.site-footer__menu {
		align-items: center;
		gap: 16px;
	}

	.site-footer__social {
		position: relative;
		z-index: 1;
		order: 2;
		grid-column: 1 / -1;
		justify-self: center;
		margin: 51px 0 0;
	}

	.site-footer__credit {
		position: relative;
		bottom: auto;
		left: auto;
		z-index: 1;
		order: 3;
		grid-column: 1 / -1;
		width: auto;
		margin-top: 56px;
		font-size: 14px;
		text-align: left;
	}

	.site-footer__trail {
		top: auto;
		right: 0; /* the image's cut edge sits on the screen edge */
		bottom: 0;
		left: auto;
		width: 390px; /* Figma size; doesn't grow on wider phones/tablets so it stays below the icons */
		height: auto;
	}
}

/* Mobile: single product (spec-006, Figma 740:1952), up to 1023px. Order: title, text, badge, photo over the
   mountain, green part (weights + nutrition), info section, recipes and similar products stacked. */
@media (max-width: 1023px) {
	.product-top {
		min-height: 0;
		padding-bottom: 36px;
		background: none;
	}

	.product-top::before {
		display: none;
	}

	.product-top__inner {
		flex-direction: column;
		padding-top: 36px;
	}

	.product-top__media,
	.product-top__info,
	.product-top__head {
		display: contents;
	}

	.product-top__info h1 {
		order: 1;
		margin: 0 0 20px;
	}

	.product-top__desc {
		order: 2;
		max-width: none;
	}

	.product-top .product-top__badge {
		position: static;
		order: 3;
		align-self: flex-start;
		margin-top: 16px;
	}

	.product-top__img {
		position: relative;
		z-index: 1;
		order: 4;
		align-self: center;
		width: 310px;
		height: 310px;
		margin: -14px 0 16px;
	}

	/* Green part: full-bleed green behind the weights and the table, mountain edge above it. */
	.product-top__packs,
	.nutrition {
		background: var(--mm-green);
		box-shadow: 0 0 0 100vmax var(--mm-green);
		clip-path: inset(-100px -100vmax 0);
	}

	.product-top__packs {
		position: relative;
		order: 5;
		width: auto;
		margin: 0;
		padding: 8px 0 28px;
	}

	.product-top__packs::before {
		content: "";
		position: absolute;
		bottom: 100%;
		left: 50%;
		width: 100vw;
		height: 100px;
		background: url("../img/footer-mountain.png") center top / 300% auto no-repeat;
		transform: translateX(-50%);
	}

	.product-top__pack-list {
		gap: 12px 24px;
		margin-inline: 0;
	}

	.nutrition {
		order: 6;
		width: 100%;
		margin-top: -1px; /* no seam between the two green blocks */
		clip-path: inset(0 -100vmax -36px);
	}

	/* Composition / storage / packaging section: text, then the photo */
	.product-info {
		padding: 36px 0 12px;
	}

	.product-info__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.product-info__text {
		flex: none;
	}

	.product-info__list {
		margin-top: 28px;
	}

	.product-info__list li {
		gap: 16px;
	}

	.product-info__photo {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 607 / 390;
	}

	/* Recipes with this product (and recipe lists): cards stacked */
	.product-recipes {
		padding-top: 48px;
	}

	.product-recipes h2 {
		margin-bottom: 28px;
	}

	.product-recipes__list {
		flex-direction: column;
		gap: 28px;
	}

	.recipe-card {
		width: 100%;
	}

	.recipe-card__img {
		height: 215px;
	}

	.recipe-card__body {
		min-height: 82px;
		padding: 12px 20px;
	}

	/* Similar products: first 3 stacked, no slider controls */
	.product-similar {
		padding: 48px 0;
	}

	.product-similar h2 {
		margin-bottom: 32px;
	}

	.product-similar .mm-slider__track {
		flex-direction: column;
		gap: 32px;
		overflow: visible;
	}

	.product-similar .mm-slider__slide:nth-child(n+4),
	.product-similar .mm-slider__nav {
		display: none;
	}

	.product-similar .product-card {
		width: 100%;
	}

	.product-similar .product-card__box {
		height: 347px;
	}

	.product-similar .product-card__img {
		width: 290px;
		height: 290px;
		margin-top: 30px;
	}
}

/* Mobile: Naš tim (spec-006, Figma 736:1186) + shared story rows and sketch sections, up to 1023px. */
@media (max-width: 1023px) {
	/* The mobile footer is flat: sketch sections end at their own edge instead of running under it. */
	.team-page,
	.quality,
	.partners-page,
	.production,
	.recipe-more,
	.recipe-list {
		margin-bottom: 0;
	}

	.team-page::before,
	.quality::before,
	.partners-page::before,
	.production::before,
	.recipe-more::before,
	.recipe-list::before {
		bottom: 0;
	}

	.recipe__title {
		margin-bottom: 32px;
	}

	/* Text + photo rows (Naš tim, Naša priča): text, then a full-width photo */
	.story__row {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.story__row + .story__row {
		margin-top: 40px;
	}

	.story__text,
	.story__text--wide,
	.team-page .story__text,
	.team-page .story__text p {
		max-width: none;
	}

	.story__text h2 {
		margin-bottom: 24px;
	}

	.story__photo {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 342 / 220;
	}

	/* Naš tim */
	.team-page {
		padding: 40px 0 48px;
	}

	.team-page::before {
		inset: 600px 0 0;
		background-position: center bottom;
		background-size: 1250px auto;
	}

	.team-page__cards {
		flex-direction: column;
		gap: 24px;
		margin-top: 32px;
	}

	.team-page .card-person,
	.team-page .card-person--wide {
		width: 100%;
		padding-bottom: 24px;
	}

	.team-page .card-person__photo {
		height: 246px;
		margin-bottom: 10px;
	}

	.team-page .card-person--wide .card-person__photo {
		height: 220px;
	}
}

/* Mobile: Kvalitet i standardi (spec-006, Figma 733:1185), up to 1023px. */
@media (max-width: 1023px) {
	.quality {
		padding: 40px 0 48px;
	}

	.quality::before {
		inset: 900px 0 0;
		background-position: center bottom;
		background-size: 1270px auto;
	}

	.quality h1 {
		margin-bottom: 16px;
	}

	.quality__subtitle {
		margin-bottom: 40px;
	}

	/* Heading, then the photo, then the paragraphs */
	.quality .story__row {
		gap: 24px;
	}

	.quality .quality__text {
		display: contents;
	}

	.quality__text h2 {
		order: 0;
		max-width: none;
		margin: 0;
	}

	.quality .story__row > .story__photo {
		order: 1;
	}

	.quality__text p {
		order: 2;
		margin: 0;
	}

	.quality__quote {
		margin: 48px auto 32px;
	}

	/* Certificates stacked: logo, text, button bottom-right */
	.quality__certs {
		flex-direction: column;
		gap: 24px;
	}

	.cert-card {
		display: flex;
		flex-direction: column;
		width: 100%;
		min-height: 0;
		padding: 24px;
	}

	.cert-card__logo {
		position: static;
		order: -1;
		justify-content: flex-start;
		width: auto;
		height: 76px;
		margin-bottom: 24px;
	}

	.cert-card__logo img {
		max-width: 155px;
	}

	.cert-card__btn {
		position: static;
		align-self: flex-end;
		margin-top: 24px;
	}
}

/* Mobile: Naši partneri (spec-006, Figma 707:1122), up to 1023px. 2-column logo grid, button, sketch below. */
@media (max-width: 1023px) {
	.partners-page {
		padding: 40px 0 140px;
	}

	.partners-page::before {
		inset: 500px 0 0;
		background-position: center bottom;
		background-size: 1050px auto;
	}

	.partners-page h1 {
		margin-bottom: 28px;
	}

	.partners-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px 24px;
	}

	.partners-grid .home-partners__logo {
		width: auto;
		height: 159px;
	}

	.partners-grid .home-partners__logo img {
		max-height: 120px;
	}

	.partners-page .btn {
		margin-top: 28px;
	}
}

/* Mobile: Kontakt page (spec-006, Figma 703:1371), up to 1023px. Form + map card come from the home contact rules. */
@media (max-width: 1023px) {
	.contact-page .home-contact__title {
		margin-bottom: 36px;
	}

	.contact-page .card-map {
		padding-bottom: 22px;
	}

	.contact-page .card-map__address {
		margin-top: 22px;
	}

	.dept-cards {
		flex-direction: column;
		gap: 60px;
		max-width: 291px;
		margin: 78px auto 0;
	}

	.dept-card {
		flex: none;
	}

	.contact-page::before {
		height: 650px;
		background-size: 1250px auto;
	}
}

/* Single recipe: "Priprema" heading exists for mobile only. */
.recipe__steps-title {
	display: none;
}

/* Mobile: single recipe (spec-006, Figma 867:1057), up to 1023px. Title, photo, ingredient groups in one column,
   "Priprema" + steps with a small number on the left; related recipes stack via the recipe-card rules. */
@media (max-width: 1023px) {
	.recipe {
		padding-top: 32px;
	}

	.recipe__title {
		margin-bottom: 24px;
		text-align: left;
	}

	.recipe__row {
		flex-direction: column;
		gap: 24px;
	}

	.recipe__photo {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 350 / 236;
	}

	.recipe__ingredients {
		padding-top: 0;
	}

	.recipe__ingredients h2 {
		margin-bottom: 20px;
	}

	.recipe__groups {
		flex-direction: column;
		gap: 20px;
	}

	.recipe__groups ul {
		width: auto;
		gap: 10px;
	}

	.recipe__steps-title {
		display: block;
		margin: 32px 0 24px;
		font: var(--mm-sub);
	}

	.recipe__steps {
		flex-direction: column;
		gap: 24px;
		margin-top: 0;
	}

	.recipe__steps li {
		width: 100%;
		padding-left: 46px;
	}

	.recipe__steps p {
		max-width: none;
	}

	.recipe__num {
		top: -4px;
		font-size: 56px;
		line-height: 40px;
	}

	.recipe-more {
		padding: 40px 0 48px;
	}

	.recipe-more::before {
		inset: 0;
		background-position: center bottom;
		background-size: 1250px auto;
	}
}

/* Header submenus slide out from behind the white header strip (Figma prototype, 2026-11-18).
   The strip (white + green bottom line + rounded corners) moves to a ::after layer above the submenus; links, logo
   and the mobile controls sit above that layer. Height stays 100px (97.5 + 2.5 line). */
.site-header {
	padding-bottom: 2.5px;
	background: none;
	border-bottom: 0;
	border-radius: 0;
}

.site-header::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--mm-white);
	border-bottom: 2.5px solid var(--mm-green);
	border-radius: 0 0 10px 10px;
	pointer-events: none;
}

.site-logo,
.site-nav__list > li > a,
.mobile-lang,
.site-menu-toggle {
	position: relative;
	z-index: 2;
}

.site-nav .sub-menu {
	z-index: 0;
	border-bottom: 2.5px solid var(--mm-green); /* Figma: green bottom line under the rounded corners */
	transform: translate(-50%, -100%);
	opacity: 1;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.35s;
}

.site-nav li:hover > .sub-menu,
.site-nav li:has(:focus-visible) > .sub-menu {
	transform: translate(-50%, 0);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
}

/* Hover flicker fix (2026-11-19): a closing dropdown ignores the mouse (it slid back under a resting cursor and
   reopened itself), and an invisible strip bridges the 2.5 px gap under the header line between link and dropdown. */
.site-nav .sub-menu {
	pointer-events: none;
}

.site-nav li:hover > .sub-menu,
.site-nav li:has(:focus-visible) > .sub-menu {
	pointer-events: auto;
}

.site-nav .sub-menu::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.site-nav .sub-menu,
	.site-nav li:hover > .sub-menu,
	.site-nav li:has(:focus-visible) > .sub-menu {
		transition: none;
	}
}

/* Home product slider (2026-11-18): slides stacked in one place, no sideways movement. Leaving slide: text fades
   out while the photos shrink to nothing; the next slide's text fades in while its photos grow (JS in main.js). */
.home-products [data-slider-fade] .mm-slider__track {
	display: grid;
	gap: 0;
	margin-left: 0;
	padding-left: 0;
	overflow: visible;
	scroll-snap-type: none;
}

.home-products [data-slider-fade] .home-products__slide {
	grid-area: 1 / 1;
	min-width: 0;
}

.home-products [data-slider-fade] .home-products__slide:not(.is-current) {
	visibility: hidden;
	pointer-events: none;
}

.home-products [data-slider-fade] .home-products__text {
	transition: opacity 0.45s ease;
}

.home-products [data-slider-fade] .home-products__media img.home-products__img {
	transform: none;
	transform-origin: 50% 100%;
	opacity: 1;
	transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}

.home-products [data-slider-fade] .home-products__slide:not(.is-current) .home-products__text,
.home-products [data-slider-fade] .home-products__slide.is-leaving .home-products__text {
	opacity: 0;
}

.home-products [data-slider-fade] .home-products__slide:not(.is-current) .home-products__media img.home-products__img,
.home-products [data-slider-fade] .home-products__slide.is-leaving .home-products__media img.home-products__img {
	transform: scale(0);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.6, 1), opacity 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
	.home-products [data-slider-fade] .home-products__text,
	.home-products [data-slider-fade] .home-products__media img.home-products__img {
		transition: none !important;
	}
}

/* Alternating handwritten lines (Figma components 8 + 9, 2026-11-18): colour shift + text morph (JS). The two texts
   overlap; one blurs out while the other sharpens in, and the alpha threshold filter melts the letters together. */
[data-rotate] {
	transition: color 0.8s ease;
}

[data-rotate].is-morph {
	display: grid;
}

[data-rotate].is-morphing {
	filter: url(#mm-morph) blur(0.4px); /* only while morphing, so the letters stay smooth at rest */
}

.home-origin__script.is-morph,
.home-farm__script.is-morph {
	display: grid; /* overrides the line's own display, keeps its position */
}

.morph__text {
	grid-area: 1 / 1;
}

.home-origin__script.is-alt {
	color: var(--mm-blue);
}

/* Component 8: top right of "Od naše farme" (Figma 957,2453 383×383 → centre 96px below the section top). */
.home-farm {
	position: relative;
}

.home-farm__script {
	position: absolute;
	top: 81px;
	right: max(var(--mm-gutter), calc((100% - var(--mm-container)) / 2));
	width: 383px;
	font-size: 40px;
	text-align: center;
	color: var(--mm-green);
}

.home-farm__script.is-alt {
	color: var(--mm-lime);
}

@media (max-width: 1023px) {
	.home-farm__script {
		position: static;
		width: auto;
		margin: 24px var(--mm-gutter) 0;
		font-size: 32px;
	}
}

/* Farm handwritten line moved under the changing text, in the text column (user, 2026-11-18). */
.home-farm__script {
	position: static;
	width: auto;
	margin: 40px 0 0;
	text-align: left;
}

@media (max-width: 1023px) {
	.home-farm__script {
		margin: 24px 0 0;
	}
}

/* Product page (2026-11-18): one uniform 607×390 frame for the photo next to Sastav. Wide photos fill it; tall
   packshots (shot on white) sit whole in it on white (--tall, set from the image's proportions). */
.product-info__photo {
	flex: 0 0 607px;
	width: 607px;
	height: 390px;
	object-fit: cover;
	background: var(--mm-white);
}

.product-info__photo--tall {
	object-fit: contain;
}

@media (max-width: 1023px) {
	.product-info__photo {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 607 / 390;
	}
}

/* Galerija (spec-007, Figma 944:1962): 6-column grid → squares span 2 (3 per row, 397px), wide span 3 (2 per row,
   607×393); rhythm 3 / 2 / 3 comes from the template. Sketch at the bottom like the other pages. */
.gallery-page {
	position: relative;
	margin-bottom: calc(-100vw * 104 / 1440);
	padding: 100px 0 max(173px, calc(100vw * 173 / 1440));
	overflow: visible;
	overflow-x: clip;
	text-align: center;
}

.gallery-page::before {
	content: "";
	position: absolute;
	inset: 900px 0 -100px;
	background: url("../img/sketch-landscape.svg") no-repeat;
	background-position: calc(100vw * -279 / 1440) bottom;
	background-size: calc(100vw * 1967 / 1440) auto;
	opacity: 0.2;
	pointer-events: none;
}

.gallery-page .container {
	position: relative;
}

.gallery-page h1 {
	margin: 0 0 55px;
	font: var(--mm-h2);
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 25px; /* Figma 944:1962 update 2026-11-19: rows 25 apart (was 81) */
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-grid__item {
	grid-column: span 2;
	aspect-ratio: 1;
}

.gallery-grid__item--wide {
	grid-column: span 3;
	aspect-ratio: 607 / 431; /* Figma update 2026-11-19 (was 607 / 393) */
}

.gallery-grid__item[hidden] {
	display: none;
}

.gallery-grid__item a {
	display: block;
	height: 100%;
	overflow: hidden;
	border-bottom: 2px solid var(--mm-green);
	border-radius: 16px;
}

.gallery-grid__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-grid__item a:hover .gallery-grid__img {
	transform: scale(1.03);
}

.gallery-more {
	margin-top: 79px; /* Figma update 2026-11-19: button 79px under the last row */
}

.gallery-more[hidden] {
	display: none;
}

.gallery-lightbox {
	max-width: 94vw;
	max-height: 92vh;
	padding: 0;
	overflow: visible;
	background: none;
	border: 0;
}

.gallery-lightbox::backdrop {
	background: rgb(0 0 0 / 85%);
}

.gallery-lightbox__img {
	max-width: 94vw;
	max-height: 92vh;
	width: auto;
	height: auto;
	border-radius: 10px;
}

/* Scroll reveal (class added by JS, so without JS / with reduced motion photos just show). */
.gallery-grid__item.is-reveal {
	opacity: 0;
	transform: translateY(60px) scale(0.94);
	transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-grid__item.is-reveal.is-in {
	opacity: 1;
	transform: none;
}

.gallery-lightbox__nav {
	position: fixed;
	top: 50%;
	margin-top: -20px;
}

.gallery-lightbox__nav--prev {
	left: 20px;
}

.gallery-lightbox__nav--next {
	right: 20px;
}

.gallery-lightbox__count {
	position: fixed;
	bottom: 16px;
	left: 0;
	right: 0;
	margin: 0;
	font: var(--mm-button);
	color: var(--mm-white);
	text-align: center;
}

.gallery-lightbox__close {
	position: fixed;
	top: 16px;
	right: 20px;
	width: 44px;
	height: 44px;
	font: 400 36px/40px var(--mm-font);
	color: var(--mm-white);
	background: none;
	border: 0;
	cursor: pointer;
}

@media (max-width: 1023px) {
	.gallery-page {
		margin-bottom: 0;
		padding: 40px 0 120px;
	}

	.gallery-page::before {
		inset: auto 0 0;
		height: 600px;
		background-position: center bottom;
		background-size: 1250px auto;
	}

	.gallery-page h1 {
		margin-bottom: 28px;
	}

	.gallery-grid {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.gallery-grid__item {
		grid-column: span 1;
	}

	.gallery-grid__item--wide,
	.gallery-grid__item:nth-child(8n + 3),
	.gallery-grid__item:nth-child(8n) {
		grid-column: span 2; /* the 3rd square of each row of three would stand alone in 2 columns */
		aspect-ratio: 607 / 393;
	}

	.gallery-more {
		margin-top: 28px;
	}
}

/* Scroll reveal + photo cross-fade (spec-008, 2026-11-19). Classes are added by JS only, so without JS or with
   reduced motion everything simply shows. Each element animates once; JS removes the classes afterwards. */
html .rv {
	transition: opacity 0.7s ease-out, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rv:not(.is-in) {
	opacity: 0;
}

.rv--up:not(.is-in) {
	transform: translateY(24px);
}

.rv--zoom:not(.is-in) {
	transform: scale(0.96);
}

.rv--left:not(.is-in) {
	transform: translateX(-40px);
}

.rv--right:not(.is-in) {
	transform: translateX(40px);
}

/* Parallax photo bands (desktop only): taller than their section so the ±50 px shift never shows an edge. */
@media (min-width: 1024px) {
	.is-parallax {
		top: -50px;
		height: calc(100% + 100px);
		will-change: transform;
	}
}

/* Weight buttons: the product photo and info photo fade out, swap, fade in. */
.product-top__img,
.product-info__photo {
	transition: opacity 0.2s ease;
}

.is-swapping-photo {
	opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
	/* Only once the page has loaded (class set by main.js): arriving via a link to a section (/proizvodi/#pavlaka)
	   opens right there instead of animating a long scroll from the top. */
	html.is-ready {
		scroll-behavior: smooth;
	}
}

/* Home slider: designer's composed group image (slot 1 "Slider na početnoj", Figma 969:2142…2302, 2026-11-19).
   The image covers Figma x -70…770 / y -114…566 of the 1440 frame; the media box starts at Figma (100, 65). */
.home-products__media img.home-products__img.home-products__img--set {
	top: -179px;
	left: -170px;
	width: 840px;
	height: 680px;
	max-width: none;
	pointer-events: none; /* transparent edges overlap the hero above */
}

@media (max-width: 1023px) {
	/* Same composition at 45 %, products centred over the text, standing on the box bottom. */
	.home-products__media img.home-products__img.home-products__img--set {
		top: -26px;
		left: -11px;
		width: 378px;
		height: 306px;
	}
}

/* Product page main photo 470×470 (designer, 2026-11-19: "470x470 i malo spustila"). Same centre line as the old
   370 box, top 42 px above the fat badge, bottom just past "Pakuje se…"; the weight buttons keep their place. */
@media (min-width: 1024px) {
	.product-top__img {
		width: 470px;
		height: 470px;
		max-width: none;
		margin: -53px -50px -47px;
	}
}

/* Hero handwritten line (2026-11-19): written in once on page load, left to right behind a soft edge, along the
   line's own slant. CSS only, so there is no flash before JS; reduced motion shows it straight away. */
@media (prefers-reduced-motion: no-preference) {
	.hero__slogan {
		/* Room for the script font's swashes and tails, which reach outside the text box (the mask cuts at the box);
		   the negative margin cancels it, so the line stays where it was. */
		box-sizing: content-box; /* padding outside the set width, so the centred text doesn't move */
		padding: 0.35em 0.5em;
		margin: -0.35em -0.5em;
		-webkit-mask-image: linear-gradient(to right, #000 45%, transparent 55%);
		mask-image: linear-gradient(to right, #000 45%, transparent 55%);
		-webkit-mask-size: 225% 100%;
		mask-size: 225% 100%;
		-webkit-mask-position: 100% 0;
		mask-position: 100% 0;
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		animation: mm-write 3s cubic-bezier(0.45, 0.1, 0.35, 1) 0.5s forwards;
	}
}

@keyframes mm-write {
	to {
		-webkit-mask-position: 0 0;
		mask-position: 0 0;
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 1023px) {
	.hero--home .hero__slogan {
		margin-top: calc(24px - 0.35em); /* keeps the phone spacing with the extra room above */
	}
}

/* Sastav photo, cut-out products (PNG, Figma 958:2116): on the beige sketch card like the product cards. The sketch
   sits at 20 % (beige overlay at 80 %), drawn as the image background so the weight buttons can swap the photo. */
.product-info__photo--cutout {
	object-fit: contain;
	background:
		linear-gradient(rgb(255 241 224 / 80%), rgb(255 241 224 / 80%)),
		url("../img/sketch-landscape.svg") center bottom / cover no-repeat,
		var(--mm-beige);
}

/* Product page: when "Recepti" is the last section (no "Slični proizvodi"), keep it off the footer mountain. */
.product-recipes:last-child {
	padding-bottom: 100px;
}

@media (max-width: 1023px) {
	.product-recipes:last-child {
		padding-bottom: 64px;
	}
}

/* Galerija sketch fixed to the window on desktop (designer, 2026-11-19): visible from the start and stays put while
   the photos scroll and "Prikaži više" adds rows. Sketch at 20 % = white overlay at 80 %. Phones keep the old one
   (mobile browsers ignore fixed backgrounds). */
@media (min-width: 1024px) {
	.gallery-page::before {
		display: none;
	}

	.gallery-page {
		background:
			linear-gradient(rgb(255 255 255 / 80%), rgb(255 255 255 / 80%)) fixed,
			url("../img/sketch-landscape.svg") calc(100vw * -279 / 1440) calc(100% + 160px) / calc(100vw * 1967 / 1440) auto no-repeat fixed, /* 160px lower: title on white (user) */
			var(--mm-white);
	}
}

/* Naši partneri: same fixed sketch as Galerija (desktop), so more logo rows never push it down (user 2026-11-19). */
@media (min-width: 1024px) {
	.partners-page::before {
		display: none;
	}

	.partners-page {
		background:
			linear-gradient(rgb(255 255 255 / 80%), rgb(255 255 255 / 80%)) fixed,
			url("../img/sketch-landscape.svg") calc(100vw * -229 / 1440) calc(100% + 160px) / calc(100vw * 1898 / 1440) auto no-repeat fixed,
			var(--mm-white);
	}
}

/* Kontakt: "Preuzmi sve kontakte" button under the department cards (2026-11-19). */
.contact-page__download {
	margin: 56px 0 0;
	text-align: center;
}

@media (max-width: 1023px) {
	.contact-page__download {
		margin-top: 32px;
	}
}

/* Header logo animation (desktop, 2026-11-19): static logo hidden while the animated WebP plays over its spot; the
   animation box is wider than the logo (the name slides in from the sides) and its last frame matches the logo. */
.site-logo {
	position: relative;
}

html.mm-logo-anim .site-logo__full {
	visibility: hidden;
}

.site-logo__anim {
	position: absolute;
	top: 0;
	left: -14.3px;
	width: 145.5px;
	max-width: none;
	height: 88.3px;
	pointer-events: none;
}

.site-header.is-scrolled .site-logo__anim {
	display: none;
}

@media (max-width: 1023px) {
	.site-logo__anim {
		display: none;
	}
}

/* Mobile header (Figma "Navigacija", 2026-11-20): plain white bar, no green bottom line, no rounded corners. */
@media (max-width: 1023px) {
	.site-header {
		padding-bottom: 0;
	}

	.site-header::after {
		border-bottom: 0;
		border-radius: 0;
	}
}

@media (max-width: 1023px) {
	/* Menu panel from the logo's left edge to the screen edge (logo 48 px, centred), 2026-11-20. */
	.mobile-menu {
		left: calc(50% - 24px);
		width: auto;
	}

	/* No header line on mobile any more: panels attach directly under the bar. */
	.mobile-panel {
		top: 100%;
	}
}

@media (max-width: 1023px) {
	/* Mobile menu: chevron right after the text of items with a submenu (2026-11-20). The text stays centred (the
	   chevron hangs to the right via a negative margin); the button's tap area is 40×40. */
	.mobile-menu .menu-item-has-children > a {
		display: inline-block;
		vertical-align: middle;
	}

	.submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		margin: -12.5px -44px -12.5px 4px; /* 40px tap area without changing the row height or the text's centre */
		padding: 0;
		vertical-align: middle;
		color: var(--mm-green);
		background: none;
		border: 0;
		cursor: pointer;
	}

	.submenu-toggle svg {
		transition: transform 0.2s ease;
	}

	.mobile-menu .is-open > .submenu-toggle svg {
		transform: rotate(180deg);
	}
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
	.submenu-toggle svg {
		transition: none;
	}
}

@media (max-width: 1023px) {
	/* 2026-11-20 (user): panel starts at the logo's RIGHT edge; chevrons in one column at the panel's right side.
	   Items keep a 28px column free on the right and centre their text in the rest, so text never hits a chevron. */
	.mobile-menu {
		left: calc(50% + 24px);
		padding-inline: 8px;
	}

	.mobile-menu__list > li {
		position: relative;
		padding-right: 28px;
	}

	.submenu-toggle {
		position: absolute;
		top: -12.5px; /* 40px tall, centred on the 15px text line */
		right: 0;
		width: 28px;
		margin: 0;
	}
}

@media (max-width: 1023px) {
	/* Chevron column: the item text is a normal block row again (even row spacing, chevron centred on it). */
	.mobile-menu .menu-item-has-children > a {
		display: block;
	}
}

@media (max-width: 1023px) {
	/* Menu panel per designer mockup (Figma 918:1108 closed, 918:1206 open, 2026-11-20): 170px flush right, items
	   left-aligned, 12px Archivo Black; chevrons in one column at the right; submenu items regular, indented. */
	.mobile-menu {
		left: calc(100% - (50% - 24px) * 1.1); /* logo's right edge → screen edge, made 10 % wider (user 2026-11-25) */
		right: 0;
		width: auto;
		padding: 25px 17px 22px;
		text-align: left;
	}

	.mobile-menu__list {
		gap: 20px;
	}

	.mobile-menu__list > li {
		position: relative;
		padding-right: 26px;
	}

	.mobile-menu a {
		font-size: 12px;
	}

	.mobile-menu .sub-menu {
		gap: 14px;
		margin-top: 14px;
		padding-left: 19.5px;
	}

	.mobile-menu .sub-menu a {
		font-weight: 400;
	}

	.submenu-toggle {
		position: absolute;
		top: -13px; /* 40x40 tap area centred on the chevron (Figma: 3px below the row top) */
		right: -14.5px;
		display: flex;
		width: 40px;
		height: 40px;
		margin: 0;
	}
}

/* Desktop heroes fill the screen below the header (user 2026-11-20), 1024–1920 px wide; wider screens keep the
   fixed heights above. Header = 102.5px; home/story run up under it, production overlaps it by 12.5px. */
@media (min-width: 1024px) and (max-width: 1920px) {
	.hero--home,
	.hero--story {
		min-height: 100vh;
	}

	.hero--page {
		min-height: calc(100vh - 102.5px);
	}

	.hero--production {
		min-height: calc(100vh - 90px);
	}
}

/* Hero heights, measured correction (2026-11-20): the desktop header is 100px tall (home/story start 2.5px above
   the page top, production 12.5px under the header), so the visible hero ends exactly at the window bottom. */
@media (min-width: 1024px) and (max-width: 1920px) {
	.hero--home,
	.hero--story {
		min-height: calc(100vh + 2.5px);
	}

	.hero--page {
		min-height: calc(100vh - 100px);
	}

	.hero--production {
		min-height: calc(100vh - 87.5px);
	}
}

/* Mobile heroes fill the screen below the 74px header too (svh = the visible height with the browser bars shown,
   so nothing jumps while scrolling). Story starts 28.5px above the page top, production 12.5px under the header. */
@media (max-width: 1023px) {
	.hero--home,
	.hero--page {
		min-height: calc(100vh - 74px);
		min-height: calc(100svh - 74px);
	}

	.hero--story {
		min-height: calc(100vh + 28.5px);
		min-height: calc(100svh + 28.5px);
	}

	.hero--production {
		min-height: calc(100vh - 61.5px);
		min-height: calc(100svh - 61.5px);
	}
}

/* Handwritten hero line on phones: written in a bit slower (user 2026-11-20). */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
	.hero__slogan {
		animation-duration: 4.2s;
	}
}

@media (max-width: 1023px) {
	/* Phones (2026-11-20): short "M" logo animation over the 48×50 icon (position set by JS). */
	html.mm-logo-anim .site-logo__compact {
		visibility: hidden;
	}

	.site-logo__anim.site-logo__anim--m {
		display: block;
		width: 48px;
		height: 50px;
	}

	/* Thin light seam between the product slider's mountain strip and the green "Naše mleko" section: the strip
	   reaches 2px into the green so the seam is covered (user 2026-11-20). */
	.home-products::after {
		bottom: -2px;
	}
}

@media (max-width: 1023px) {
	/* Od naše farme on phones (Figma mobile, 2026-11-20): title → text → photo → handwritten line. The text column's
	   children join the section column so the line can follow the photo; spacing = the column gap (24px). */
	.home-farm__text {
		display: contents;
	}

	.home-farm__text h2 {
		order: 1;
		margin-bottom: 0;
	}

	.home-farm__steps {
		order: 2;
	}

	.home-farm__photos {
		order: 3;
	}

	.home-farm__script {
		order: 4;
		margin: 0;
	}
}

/* Home "Naš tim" (user 2026-11-20): photos hidden for now, green cards with name + position only (desktop + mobile).
   Photos stay set on the team entries; remove this block to bring them back. The Naš tim page is unchanged. */
.home-team .card-person__photo {
	display: none;
}

.home-team .card-person {
	padding-top: 30px;
}

/* Home "Naš tim" without photos: cards only as tall as their text (they stretched to the intro column's height). */
.home-team .card-person {
	align-self: flex-start;
}

/* Contact form "Pošalji upit" on phones: 5px more space above and below (user 2026-11-20). */
@media (max-width: 1023px) {
	.mm-form__actions {
		margin-block: 5px;
	}
}

@media (max-width: 1023px) {
	/* Contact sketch on phones (Figma mobile, 2026-11-20): the whole landscape at screen width, mountain tops
	   included (was a 200% crop of the grass). Height = the drawing's ratio (705 / 1967); the section keeps 32px
	   between the map card and the sketch. */
	.home-contact {
		padding-bottom: calc(100vw * 705 / 1967 + 32px);
	}

	.home-contact::before {
		height: calc(100vw * 705 / 1967);
		background-size: 100% auto;
		background-position: center bottom;
	}
}

@media (max-width: 1023px) {
	/* Mobile footer "M" (Figma 918:1312, 2026-11-20): Figma's own mobile crop (assets/img/milk-trail-mobile.png),
	   full width at the bottom, scaling with the screen; the credit keeps Figma's distance above it (255 of 390). */
	.site-footer__inner {
		padding-bottom: calc(100vw * 255 / 390);
	}

	.site-footer__trail {
		right: auto;
		left: 0;
		width: 100%;
	}
}

@media (max-width: 1023px) {
	/* Naši proizvodi hero on phones (no Figma mobile; styled like the home hero, user 2026-11-20): title centred both
	   ways, light blue, h1 size, 30% dark overlay so the blue reads on the bright photo. */
	.page-template-products .hero--page {
		display: flex;
		align-items: center;
		padding-block: 48px;
		text-align: center;
	}

	.page-template-products .hero--page::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		background: rgb(0 0 0 / 30%);
	}

	.page-template-products .hero--page .hero__content {
		width: 100%;
	}

	.page-template-products .hero--page .hero__title {
		max-width: 342px;
		margin-inline: auto;
		font: var(--mm-h1);
		color: var(--mm-blue);
	}
}

/* Naši proizvodi, category blocks on phones (no Figma mobile; 2026-11-20). Order: title → text → photo standing on
   a low mountain strip → product cards in a swipe row (78% wide, next card peeks, snap per card; arrows hidden,
   progress bar kept). Desktop unchanged. */
@media (max-width: 1023px) {
	.cat-block__intro,
	.cat-block--flipped .cat-block__intro {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 24px;
		min-height: 0;
		padding-top: 56px;
	}

	.cat-block__text {
		order: 1;
		max-width: none;
		padding-top: 0;
	}

	.cat-block__text h2 {
		margin-bottom: 16px;
	}

	.cat-block__text p {
		max-width: none;
	}

	.cat-block__media,
	.cat-block--flipped .cat-block__media {
		order: 2;
		flex: none;
		width: min(300px, 78vw);
		margin: 0 auto -48px; /* photo foot reaches into the mountain strip */
	}

	.cat-block__media img {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.cat-block__products {
		padding-bottom: 32px;
		background: linear-gradient(to bottom, var(--mm-green) 0, var(--mm-green) 170px, transparent 170px);
	}

	.cat-block__products::before {
		inset: -56px 0 auto;
		height: 57px;
		background-size: 300% auto;
	}

	.cat-block__products .container {
		padding-top: 64px; /* room for the photo foot over the green */
	}

	.cat-block .mm-slider__track,
	.cat-block .cat-block__track.is-centered {
		justify-content: flex-start;
		gap: 16px;
		margin-inline: calc(-1 * var(--mm-gutter));
		padding-inline: var(--mm-gutter);
		scroll-padding-inline: var(--mm-gutter);
	}

	.cat-block .mm-slider__slide {
		flex: 0 0 min(78%, 320px);
	}

	.cat-block .product-card {
		width: 100%;
	}

	.cat-block .product-card__box {
		height: auto;
		aspect-ratio: 1 / 1.08;
	}

	.cat-block .product-card__img {
		width: 84%;
		height: auto;
		aspect-ratio: 1;
		margin: 14% auto 0;
	}

	.cat-block .mm-slider__nav {
		gap: 0;
		margin-top: 24px;
	}

	.cat-block .mm-slider__nav .btn-arrow {
		display: none;
	}
}

/* Naši proizvodi on phones per the designer's mobile frame (Figma 1016:1429, 2026-11-20); products kept as a swipe
   row (user) in her Paster mleko slider style: one full-width card, lime arrows + progress bar. Overrides the
   interim mobile styling above. */
@media (max-width: 1023px) {
	/* Hero: light-blue panel, green title left, photo as a strip at the bottom (627×268 at 390, shifted 237 left). */
	.page-template-products .hero--page {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 32px 0 0;
		text-align: left;
		background: var(--mm-blue);
	}

	.page-template-products .hero--page::after {
		content: none;
	}

	.page-template-products .hero--page .hero__content {
		order: 1;
	}

	.page-template-products .hero--page .hero__title {
		max-width: 342px;
		margin: 0;
		font: 800 32px/34px var(--mm-font);
		color: var(--mm-green);
	}

	.page-template-products .hero--page .hero__button {
		margin-top: 28px;
	}

	.page-template-products .hero--page .hero__bg {
		position: relative;
		inset: auto;
		order: 2;
		display: block;
		width: calc(100vw * 627 / 390);
		max-width: none;
		height: calc(100vw * 268 / 390);
		margin: 38px 0 0 calc(-100vw * 237 / 390);
		object-fit: cover;
		object-position: center 60%;
	}

	/* Category intro: photo 280 (max 72vw) standing on the 72px mountain strip, foot where the green starts. */
	.cat-block__media,
	.cat-block--flipped .cat-block__media {
		width: min(280px, 72vw);
		margin: 0 auto;
	}

	.cat-block__products {
		background: linear-gradient(to bottom, var(--mm-green) 0, var(--mm-green) 230px, transparent 230px);
	}

	.cat-block__products::before {
		inset: -72px 0 auto;
		height: 73px;
	}

	.cat-block__products .container {
		padding-top: 0;
	}

	/* One full-width card per view, swipe + arrows; progress bar 132px between the arrows. */
	.cat-block .mm-slider__track,
	.cat-block .cat-block__track.is-centered {
		gap: 24px;
	}

	.cat-block .mm-slider__slide {
		flex: 0 0 100%;
	}

	.cat-block .product-card__box {
		aspect-ratio: 342 / 344;
	}

	.cat-block .mm-slider__nav {
		justify-content: center;
		gap: 12px;
		margin-top: 24px;
	}

	.cat-block .mm-slider__nav .btn-arrow {
		display: inline-flex;
		width: 40px;
		height: 40px;
	}

	.cat-block .mm-slider__progress {
		display: block;
		width: 132px;
	}
}

@media (max-width: 1023px) {
	/* Same 32px gap between the category photo and the product card in every section (user 2026-11-20); the desktop
	   "larger + lower" tweak of three photos is off on phones so all six follow one rule. */
	#pavlaka .cat-block__media img,
	#sitni-sir .cat-block__media img,
	#pocerski-sir .cat-block__media img {
		transform: none;
	}

	.cat-block__products .container {
		padding-top: 32px;
	}
}

@media (max-width: 1023px) {
	/* Category photos stand on the bottom of their square box (landscape photos were centred, floating higher and
	   leaving a larger visual gap above the card). */
	.cat-block__media img {
		object-position: center bottom;
	}
}

@media (max-width: 1023px) {
	/* Each category photo moved down by the empty transparent space under its product (measured in the files), so the
	   product itself ends at the box bottom: same visible 32px to the card everywhere. Box = min(280px, 72vw);
	   landscape files (Pavlaka, Sitni sir) render at 2/3 of the box height. */
	#mleko .cat-block__media img        { transform: translateY(calc(min(280px, 72vw) * 0.007)); }
	#jogurt .cat-block__media img       { transform: translateY(calc(min(280px, 72vw) * 0.096)); }
	#kiselo-mleko .cat-block__media img { transform: translateY(calc(min(280px, 72vw) * 0.118)); }
	#pavlaka .cat-block__media img      { transform: translateY(calc(min(280px, 72vw) * 0.054)); }
	#sitni-sir .cat-block__media img    { transform: translateY(calc(min(280px, 72vw) * 0.024)); }
	#pocerski-sir .cat-block__media img { transform: translateY(calc(min(280px, 72vw) * 0.2)); }
}

@media (max-width: 1023px) {
	/* Swipe hint (user 2026-11-20): cards 48px narrower than the row, so ~30px of the next card peeks in on the right. */
	.cat-block .mm-slider__track,
	.cat-block .cat-block__track.is-centered {
		gap: 16px;
	}

	.cat-block .mm-slider__slide {
		flex: 0 0 calc(100% - 48px);
	}
}

@media (max-width: 1023px) {
	/* Low, wide products (bowls, cheese cubes) sit low in their square photo box, leaving a big empty area under the
	   text (user 2026-11-20). Pull these three photos up by the extra empty space above the product (measured:
	   product top at ~123 / 112 / 121 px of the 280 box vs ~60 for Jogurt / Kiselo mleko); the transparent top of
	   the photo slides under the text, the gap to the card is unchanged. */
	#pavlaka .cat-block__media      { margin-top: calc(min(280px, 72vw) * -0.225); }
	#sitni-sir .cat-block__media    { margin-top: calc(min(280px, 72vw) * -0.19); }
	#pocerski-sir .cat-block__media { margin-top: calc(min(280px, 72vw) * -0.22); }
}

@media (max-width: 1023px) {
	/* Single product on phones (Figma "Pojedinačni proizvod — mobile"): the page starts on white, so the header keeps
	   its green bottom line and rounded corners there (user 2026-11-20). Same for every page without a hero (Kontakt,
	   Galerija, Partneri, news...); hero pages get the line on scroll (.is-scrolled, below). */
	.single-mm_product .site-header,
	body:not(:has(.hero)) .site-header {
		padding-bottom: 2.5px;
	}

	.single-mm_product .site-header::after,
	body:not(:has(.hero)) .site-header::after {
		border-bottom: 2.5px solid var(--mm-green);
		border-radius: 0 0 10px 10px;
	}
}

/* User 2026-11-20: no tap flash on touch screens; text can't be selected and images can't be dragged out or
   long-pressed to save (site-wide). Form fields stay selectable/editable. Note: this only blocks casual copying. */
html {
	-webkit-tap-highlight-color: transparent;
}

body {
	-webkit-user-select: none;
	user-select: none;
}

img,
video,
svg {
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable] {
	-webkit-user-select: text;
	user-select: text;
}

@media (max-width: 1023px) {
	/* Product page main photo on phones a bit larger (user 2026-11-20): 310 → 390 (max 94vw), grown evenly around the
	   same centre (−40px top/bottom) so the layout around it doesn't move. */
	.product-top__img {
		width: min(390px, 94vw);
		height: min(390px, 94vw);
		margin: calc(-14px - (min(390px, 94vw) - 310px) / 2) 0 calc(16px - (min(390px, 94vw) - 310px) / 2);
	}
}

@media (max-width: 1023px) {
	/* Product page: no hairline between the two green blocks (weights / table). Both clip edges met exactly and were
	   anti-aliased; now they overlap by 2px (user 2026-11-20). */
	.product-top__packs {
		clip-path: inset(-100px -100vmax -2px);
	}

	.nutrition {
		clip-path: inset(-2px -100vmax -36px);
	}
}

@media (max-width: 1023px) {
	/* Phones: once the page scrolls, the header gets its green bottom line + rounded corners on every page (user
	   2026-11-20); single product pages keep them all the time. Drawn inside the header's height (no padding change),
	   so nothing jumps when it appears. */
	.site-header::after {
		transition: border-color 0.2s ease;
	}

	.site-header.is-scrolled::after {
		border-bottom: 2.5px solid var(--mm-green);
		border-radius: 0 0 10px 10px;
	}
}

/* Mobile: Proizvodnja (no Figma mockup; user 2026-11-20), up to 1023px. Title centred in the full-height hero
   (offset by the 12.5px the hero tucks under the header); the 3 photos become a swipe row with the next one
   peeking, like the products sliders; text rows reuse the shared story rows. */
@media (max-width: 1023px) {
	.hero--production {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 60.5px 0 48px;
	}

	.hero--production .hero__content {
		width: 100%;
	}

	.hero--production .hero__title {
		max-width: 342px;
	}

	.production {
		padding: 40px 0 160px;
	}

	.production::before {
		inset: auto 0 0;
		height: 448px; /* sketch 1967x705 drawn 1250px wide */
		background-position: center bottom;
		background-size: 1250px auto;
	}

	.production__photos {
		gap: 16px;
		margin: 40px -24px;
		padding-inline: 24px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 24px;
		scrollbar-width: none;
	}

	.production__photos::-webkit-scrollbar {
		display: none;
	}

	.production__photos img {
		flex: 0 0 calc(100% - 48px);
		width: auto;
		height: auto;
		aspect-ratio: 294 / 360;
		scroll-snap-align: start;
	}
}

/* Galerija, user 2026-11-20: photos added by "Prikaži više" drop down into place (they appear below what was just
   seen); scroll reveals keep rising. Phones: the sketch is fixed to the window like on desktop. Mobile browsers ignore
   fixed backgrounds, so it is a fixed layer clipped to the section (clip-path also clips fixed children, iOS too),
   full window height so the drawing's top is never cut. */
.gallery-grid__item.is-reveal.is-more {
	transform: translateY(-60px) scale(0.94);
}

.gallery-grid__item.is-reveal.is-more.is-in {
	transform: none;
}

@media (max-width: 1023px) {
	.gallery-page {
		clip-path: inset(0);
	}

	.gallery-page::before {
		position: fixed;
		inset: 0;
		height: auto;
	}
}

/* Recepti: sketch fixed to the window like Galerija (user 2026-11-20). Desktop: same fixed background; phones: fixed
   layer clipped to the section, drawn larger so the illustration reaches higher up the screen. */
@media (min-width: 1024px) {
	.recipe-list::before {
		display: none;
	}

	.recipe-list {
		background:
			linear-gradient(rgb(255 255 255 / 80%), rgb(255 255 255 / 80%)) fixed,
			url("../img/sketch-landscape.svg") calc(100vw * -279 / 1440) calc(100% + 160px) / calc(100vw * 1967 / 1440) auto no-repeat fixed,
			var(--mm-white);
	}
}

@media (max-width: 1023px) {
	.recipe-list {
		clip-path: inset(0);
	}

	.recipe-list::before {
		position: fixed;
		inset: 0;
		background-position: center bottom;
		background-size: 1500px auto;
	}

	.gallery-page::before {
		background-size: 1500px auto;
	}
}

/* Naša priča on phones (user 2026-11-20): shorter hero, title top-left like Naši proizvodi (32px in, 32/34).
   The hero runs 102.5px up under the header, so 102.5px is added to the visible 420px and to the top padding. */
@media (max-width: 1023px) {
	.hero--story {
		min-height: 522.5px;
		padding-top: 134.5px;
		text-align: left;
	}

	.hero--story .hero__title {
		max-width: 342px;
		margin: 0;
	}
}

/* Naša priča on phones (no mockup; user 2026-11-20). Family section: mountain drawn 900px wide (ridge = top 132px,
   solid green from 113px) so there is no white gap; lime script line under the title instead of off-screen; the
   "najveća vrednost" pair stacks. Milk section: the card fits the screen. */
@media (max-width: 1023px) {
	.story-family {
		padding: 145px 0 56px;
		background: linear-gradient(to bottom, transparent 113px, var(--mm-green) 113px);
	}

	.story-family::before {
		height: 132px;
		background-size: 900px auto;
	}

	.story-family__heading {
		margin-bottom: 32px;
	}

	.story-family__script {
		position: static;
		width: auto;
		margin-top: 16px;
		font-size: 28px;
		white-space: normal;
		transform: rotate(-4.99deg);
		transform-origin: center;
	}

	.story-family__more {
		flex-direction: column;
		gap: 16px;
		margin-top: 40px;
	}

	.story-family__more h3 {
		flex: none;
	}

	.story-milk {
		min-height: 0;
		padding: 48px 0 calc(100vw * 112 / 1440 + 48px);
	}

	.story-milk__card {
		width: auto;
		min-height: 0;
		padding: 32px 24px;
	}
}

/* Home "Naš tim", desktop (user 2026-11-20): the name cards sit centred on the intro column's height. */
@media (min-width: 1024px) {
	.home-team .card-person {
		align-self: center;
	}
}

/* Naši partneri: a bit more room between the title and the logos (user 2026-11-20). */
.partners-page h1 {
	margin-bottom: 50px;
}

@media (max-width: 1023px) {
	.partners-page h1 {
		margin-bottom: 36px;
	}
}

/* Home partners on phones (user 2026-11-20): all logos in a swipe row of 2 rows x 2 columns per page, with arrows +
   progress bar like the Naši proizvodi sliders. Arrows move one page (main.js: grid tracks step by page). */
@media (max-width: 1023px) {
	.home-partners__track {
		grid-template-rows: repeat(2, 132px);
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: calc((100% - 24px) / 2);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.home-partners .home-partners__logo:nth-child(n+5) {
		display: flex;
	}

	.home-partners__logo {
		scroll-snap-align: start;
	}

	.home-partners .mm-slider__nav:not([hidden]) {
		display: flex;
		justify-content: center;
		gap: 12px;
		margin-top: 24px;
	}

	.home-partners .mm-slider__nav .btn-arrow {
		display: inline-flex;
		width: 40px;
		height: 40px;
	}

	.home-partners .mm-slider__progress {
		display: block;
		width: 132px;
	}
}

/* Naš tim page (user 2026-11-20): photos hidden like on the home page, cards with name + position only (desktop +
   mobile). Photos stay set on the team entries; remove this block to bring them back. */
.team-page .card-person__photo {
	display: none;
}

.team-page .card-person {
	padding-top: 30px;
}

.team-page__cards {
	row-gap: 25px;
}

@media (max-width: 1023px) {
	.team-page .card-person,
	.team-page .card-person--wide {
		padding-top: 24px;
	}

	.team-page__cards {
		row-gap: 16px;
	}
}

/* Naši partneri on phones: sketch fixed to the window like on desktop (user 2026-11-20); same clipped fixed layer as
   Galerija / Recepti, 1500px wide so its top isn't cut. */
@media (max-width: 1023px) {
	.partners-page {
		clip-path: inset(0);
	}

	.partners-page::before {
		position: fixed;
		inset: 0;
		background-position: center bottom;
		background-size: 1500px auto;
	}
}

/* Recipe: "Vreme pripreme" under the ingredients (Figma 650:804, group 1027:1771): blue 55px circle with a white
   clock, bold label + time, 29px apart. */
.recipe__time {
	display: flex;
	align-items: center;
	gap: 29px;
	margin: 60px 0 0;
	line-height: 20px;
}

.recipe__ingredients h2 + .recipe__time,
.recipe__ingredients > .recipe__time:first-child {
	margin-top: 0;
}

.recipe__time-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 55px;
	height: 55px;
	color: var(--mm-white);
	background: var(--mm-blue);
	border-radius: 50%;
}

@media (max-width: 1023px) {
	.recipe__time {
		gap: 16px;
		margin-top: 32px;
	}

	.recipe__time-icon {
		width: 48px;
		height: 48px;
	}

	.recipe__time-icon svg {
		width: 29px;
		height: 29px;
	}
}

/* Contact form messages (spec-009, 2026-11-23). CF7 adds the hints/states; brand colours instead of CF7's defaults. */
:root {
	--mm-error: #c0392b;
}

/* Honeypot (mlekara-core/inc/forms.php): off-screen for people, still in the form for bots. */
.mm-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mm-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 18px;
	color: var(--mm-error);
}

.mm-form input.wpcf7-not-valid,
.mm-form textarea.wpcf7-not-valid {
	box-shadow: 0 2.5px 0 var(--mm-error);
}

/* CF7's own CSS loads after this file (on demand, footer), so the response box needs .mm-form for specificity. */
.wpcf7 form.mm-form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 20px;
	text-align: center;
	color: var(--mm-green);
	background: var(--mm-beige);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 2.5px 0 var(--mm-green);
}

.wpcf7 form.mm-form.sent .wpcf7-response-output {
	color: var(--mm-white);
	background: var(--mm-green);
	box-shadow: 0 2.5px 0 var(--mm-lime);
}

.wpcf7 form.mm-form.invalid .wpcf7-response-output,
.wpcf7 form.mm-form.unaccepted .wpcf7-response-output,
.wpcf7 form.mm-form.failed .wpcf7-response-output,
.wpcf7 form.mm-form.aborted .wpcf7-response-output,
.wpcf7 form.mm-form.spam .wpcf7-response-output {
	color: var(--mm-error);
	box-shadow: 0 2.5px 0 var(--mm-error);
}

/* While sending: button dimmed, no double clicks. */
.wpcf7 form.submitting .btn {
	opacity: 0.6;
	pointer-events: none;
}

/* Home slider compositions 15 % smaller (user 2026-11-23). Size + position (not transform: the fade animation uses
   transform). The products stand at (415, 610) of the 840×680 image; that point stays where it was:
   desktop left -170 + 415×0.15, top -179 + 610×0.15; phones the same at 45 %. */
.home-products__media img.home-products__img.home-products__img--set {
	top: -87.5px;
	left: -107.75px;
	width: 714px;
	height: 578px;
}

@media (max-width: 1023px) {
	/* Phones: +10 % and again +10 % (user 2026-11-25) around the same base point (175.7, 248.5) of the media box. */
	.home-products__media img.home-products__img.home-products__img--set {
		top: -33.8px;
		left: -16.3px;
		width: 388.7px;
		height: 314.7px;
	}
}

/* Naši proizvodi hero on phones with the designer's portrait poster (2026-11-24, "Slika – telefon" on the page):
   the poster fills the hero (screen height minus the header), title on its sky. Tablets keep the strip layout. */
@media (max-width: 767px) {
	.page-template-products .hero--page {
		min-height: calc(100vh - 74px);
		min-height: calc(100svh - 74px);
		padding: 32px 0 0;
		background: var(--mm-blue);
	}

	.page-template-products .hero--page .hero__bg {
		position: absolute;
		inset: 0;
		order: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		object-fit: cover;
		object-position: center bottom;
	}
}

/* Laptop widths 1024–1439 px (QA MM-005 / MM-018, 2026-11-24). These decorations were placed with fixed Figma
   offsets from the left of a 1240 px container, so on narrower screens they slid off the right edge. Here the same
   offsets and widths become proportions of the real container (content width = 100% − 2 × gutter, Figma = 1240),
   so at 1272+ px they equal the old pixel values and below that everything scales down together.
   Script lines scale their font the same way (never above the Figma size). */
@media (min-width: 1024px) and (max-width: 1439px) {
	/* Home hero: "Ukus koji traje generacijama" (Figma left 702, width 436, 48/36) */
	.hero--home .hero__slogan {
		left: calc(var(--mm-gutter) + (100% - 2 * var(--mm-gutter)) * 702 / 1240);
		width: calc((100% - 2 * var(--mm-gutter)) * 436 / 1240);
		font-size: min(48px, calc((100vw - 2 * var(--mm-gutter)) * 48 / 1240));
		line-height: min(36px, calc((100vw - 2 * var(--mm-gutter)) * 36 / 1240));
	}

	/* Home "Naše mleko": text column, map, script line and body (Figma 614 / 552+273 / 835+405 / 893+310) */
	.home-origin__text {
		max-width: calc((100% - 2 * var(--mm-gutter)) * 614 / 1240);
	}

	.home-origin__map {
		left: calc(var(--mm-gutter) + (100% - 2 * var(--mm-gutter)) * 552 / 1240);
		width: calc((100% - 2 * var(--mm-gutter)) * 273 / 1240);
		height: auto;
	}

	.home-origin__script {
		left: calc(var(--mm-gutter) + (100% - 2 * var(--mm-gutter)) * 835 / 1240);
		width: calc((100% - 2 * var(--mm-gutter)) * 405 / 1240);
		font-size: min(40px, calc((100vw - 2 * var(--mm-gutter)) * 40 / 1240));
	}

	.home-origin__body {
		left: calc(var(--mm-gutter) + (100% - 2 * var(--mm-gutter)) * 893 / 1240);
		width: calc((100% - 2 * var(--mm-gutter)) * 310 / 1240);
	}

	/* Home "Od naše farme": the two photos scale with their 714 px area (Figma left 15 / 397, 317 square) */
	.home-farm__photo {
		width: calc(100% * 317 / 714);
		height: auto;
		aspect-ratio: 1;
	}

	.home-farm__photo--1 {
		left: calc(100% * 15 / 714);
	}

	.home-farm__photo--2 {
		left: calc(100% * 397 / 714);
	}

	/* The rotated 2nd photo's corner can poke 2–3 px past the edge: clip it at the section, no sideways scroll. */
	.home-farm {
		overflow-x: clip;
	}

	/* Naša priča: lime script under "Porodica iza svakog proizvoda" (heading = content width; Figma left 849) */
	.story-family__script {
		left: calc(100% * 849 / 1240);
		width: auto;
		font-size: min(36px, calc((100vw - 2 * var(--mm-gutter)) * 36 / 1240));
	}
}

/* Footer "M" vs footer text (QA MM-013, 2026-11-24). */
@media (min-width: 1024px) and (max-width: 1439px) {
	/* Laptops: the text columns keep their places, so the M keeps its 1440 px position (left edge at 947 px) and is
	   cut by the screen's right edge instead of sliding over the contact column (footer clips it). */
	.site-footer__trail {
		right: calc(100% - 1440px);
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	/* Tablets: the full-width M grew into the social icons. It stays full width (its cut edges on the screen edges)
	   but sinks as the screen widens, cropped by the footer's bottom edge, so its top stays about where it is at
	   600 px; space below the credit as at 600 px (600 × 255 / 390). */
	.site-footer__inner {
		padding-bottom: 392px;
	}

	.site-footer__trail {
		bottom: calc(600px - 100vw);
	}
}

@media (max-width: 429px) {
	/* Small phones: a little more room so "Developed by Pixels2Pixels" clears the M's tallest arc. */
	.site-footer__inner {
		padding-bottom: calc(100vw * 255 / 390 + (430px - 100vw) * 0.9);
	}
}

/* Kontakt: department cards share the row on laptops too (1024 px: the last card stuck out 17 px because a long
   email address can't break). Cards may shrink; addresses wrap only when there's no room. */
.dept-card {
	min-width: 0;
}

.dept-card a {
	overflow-wrap: anywhere;
}

@media (min-width: 1024px) and (max-width: 1279px) {
	/* …and on narrower laptops the contact lines (14 px) shrink with the screen (≈12.2 px at 1024, 14 px from
	   ~1210), so the longest addresses still fit on one line. */
	.dept-card ul {
		font-size: min(14px, calc(0.95vw + 2.5px));
	}
}

/* Naši proizvodi hero, desktop (new photo 2026-11-24): products sit at the bottom of the photo and there is plenty
   of sky, so the photo is anchored to the bottom (crops sky, never the products). */
@media (min-width: 1024px) {
	.page-template-products .hero--page .hero__bg {
		object-position: center bottom;
	}
}

/* Phones (meeting 2026-11-25): "Slični proizvodi" and "Probajte recepte…" swipe left-right like the Naši proizvodi
   rows (one card + the next peeking) instead of stacking. The Recepti page itself stays a vertical list. */
@media (max-width: 1023px) {
	.product-similar .mm-slider__track {
		flex-direction: row;
		justify-content: flex-start;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.product-similar .mm-slider__slide {
		flex: 0 0 calc(100% - 48px);
		scroll-snap-align: start;
	}

	.product-similar .mm-slider__slide:nth-child(n+4) {
		display: block;
	}

	.product-similar .mm-slider__nav:not([hidden]) {
		display: flex;
		justify-content: center;
		gap: 12px;
		margin-top: 24px;
	}

	.product-similar .mm-slider__nav .btn-arrow {
		display: inline-flex;
		width: 40px;
		height: 40px;
	}

	.product-similar .mm-slider__progress {
		display: block;
		width: 132px;
	}

	.product-recipes__list {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 16px;
		margin-inline: calc(-1 * var(--mm-gutter));
		padding-inline: var(--mm-gutter);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--mm-gutter);
		scrollbar-width: none;
	}

	.product-recipes__list::-webkit-scrollbar {
		display: none;
	}

	.product-recipes__list .recipe-card {
		flex: 0 0 calc(100% - 48px);
		scroll-snap-align: start;
	}

	/* A single card: full width, nothing to swipe. */
	.product-recipes__list .recipe-card:only-child,
	.product-similar .mm-slider__slide:only-child {
		flex-basis: 100%;
	}

	/* Recepti page: the full list stays one under another. */
	.recipe-list .product-recipes__list {
		flex-direction: column;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.recipe-list .product-recipes__list .recipe-card {
		flex: none;
	}
}

@media (max-width: 1023px) {
	/* Home "Naš tim" on phones swipes too (it is a slider on desktop): title, text, the card row, then the arrows. */
	.home-team__intro {
		display: contents;
	}

	.home-team__intro h2 {
		margin-bottom: 0;
	}

	.home-team__track {
		order: 2;
		flex-direction: row;
		gap: 16px;
		margin-inline: calc(-1 * var(--mm-gutter));
		padding-inline: var(--mm-gutter);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--mm-gutter);
	}

	.home-team .card-person {
		flex: 0 0 calc(100% - 48px);
		width: auto;
		scroll-snap-align: start;
	}

	.home-team .mm-slider__nav:not([hidden]) {
		order: 3;
		display: flex;
		justify-content: center;
		gap: 12px;
		margin: 0;
	}

	.home-team .mm-slider__nav .btn-arrow {
		display: inline-flex;
		width: 40px;
		height: 40px;
	}

	.home-team .mm-slider__progress {
		display: block;
		width: 132px;
	}
}

@media (max-width: 1023px) {
	/* Product pages on phones (user 2026-11-25): recipe cards without the preparation time. Only the product page
	   uses <section class="product-recipes">; recipe pages and Recepti keep it. */
	section.product-recipes .recipe-card__body p {
		display: none;
	}
}

@media (max-width: 1023px) {
	/* Recepti on phones (user 2026-11-25): the fixed sketch starts under the page title (header 74 + title), not
	   behind it on short screens. The layer runs from 170 px to the screen bottom and the drawing (bottom half of the
	   SVG) fills exactly that height (SVG at 200 % of the layer height). */
	.recipe-list::before {
		inset: 170px 0 0;
		background-size: auto 200%;
		background-position: center bottom;
	}
}

@media (max-width: 1023px) {
	/* Home slider on phones (user 2026-11-25): "Pogledaj još" always on the arrows' row. All slides share the height
	   of the tallest one (one grid cell), so the text column fills the slide and the button sits at its bottom,
	   level with the arrows (pinned to the slider's bottom), whatever the text length above. */
	.home-products__text {
		flex: 1;
	}

	.home-products__text .btn {
		margin-top: auto;
	}
}

@media (max-width: 1023px) {
	/* "Od naše farme" on phones (user 2026-11-25): the handwritten line under the photos, centred. */
	.home-farm__script,
	.home-farm__script.is-morph {
		align-self: stretch;
		justify-items: center;
		text-align: center;
	}
}

@media (max-width: 1023px) {
	/* Swipe rows on phones scroll sideways only (user 2026-11-25: the partner logos could be nudged ~10 px up/down —
	   a sideways-scrolling box also becomes vertically scrollable when its content sticks out a few px). */
	.home-partners__track,
	.home-team__track,
	.product-similar .mm-slider__track,
	.product-recipes__list,
	.production__photos {
		overflow-y: hidden;
		overscroll-behavior-x: contain;
	}

	.recipe-list .product-recipes__list {
		overflow: visible;
	}
}

@media (max-width: 1023px) {
	/* Phones (user 2026-11-25): the sketch ended exactly at the footer's top, so its bottom edge and white space
	   showed above the mountain ridge (transparent above the ridge, up to 102 of 1495 px deep; the mountain is drawn
	   max(100%, 487px) wide). Sketch sections now run a bit deeper than the ridge under the footer. */
	.home-contact,
	.team-page,
	.quality,
	.partners-page,
	.production,
	.recipe-more,
	.recipe-list,
	.gallery-page {
		margin-bottom: calc(max(487px, 100vw) * -110 / 1495);
	}
}

@media (max-width: 1023px) {
	/* Recepti on phones (user 2026-11-25): less space under the last recipe card (was the desktop 224 px). */
	.recipe-list {
		padding-bottom: 112px;
	}
}

@media (max-width: 1023px) {
	/* Naši partneri on phones (user 2026-11-25): the fixed sketch starts just above the first logo row (title ends at
	   184 px, logos at 254 px), like Recepti: layer from 230 px to the screen bottom, drawing (bottom half of the SVG)
	   filling that height. */
	.partners-page::before {
		inset: 230px 0 0;
		background-size: auto 200%;
		background-position: center bottom;
	}
}

@media (max-width: 1023px) {
	/* Naša priča on phones (user 2026-11-25): title centred vertically in the visible hero (the top 102.5px sit under
	   the header, so the padding keeps the centre in the visible 420px). Still left-aligned. */
	.hero--story {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-top: 102.5px;
		padding-bottom: 0;
	}
}

@media (max-width: 767px) {
	/* Naši proizvodi hero on phones (user 2026-11-25): title 40px lower (32 → 72) and lower still on tall phones
	   (10 % of the screen height: 90px at 900, 110px at 1100), so it doesn't sit too high on big screens. */
	.page-template-products .hero--page {
		padding-top: max(72px, 10vh);
		padding-top: max(72px, 10svh);
	}
}

@media (max-width: 1023px) {
	/* Naša priča hero on phones (user 2026-11-25): the video starts under the header (its top was hidden behind it)
	   and is drawn 1.4× the visible height, top-anchored, so the machine sits in the middle and the floor is cropped.
	   Title centred horizontally. */
	.hero--story .hero__bg {
		top: 102.5px;
		height: calc((100% - 102.5px) * 1.4);
		object-position: center top;
	}

	.hero--story {
		text-align: center;
	}

	.hero--story .hero__title {
		margin-inline: auto;
	}
}

/* Contact form (QA 2026-11-26): the "required" tips sit in the 25px gap under each field instead of adding height.
   CF7 removes a tip when its field is left; the click on "Pošalji upit" did that, the form got shorter, the button
   moved during the click and the first click was lost. Now tips appear/disappear without moving anything. */
.mm-form .wpcf7-form-control-wrap {
	position: relative;
	display: block;
}

.mm-form .wpcf7-not-valid-tip {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	margin: 0;
	white-space: nowrap;
}

@media (max-width: 1023px) {
	/* Naši proizvodi on phones (user 2026-11-26): product name + pack centred on the screen, not on the card. Cards are
	   48px narrower than the row and snap to the left margin, so their centre is 24px left of the screen centre; the
	   last card snaps to the right edge instead (24px right of centre). A single card stays as the first case. */
	.cat-block .mm-slider__slide .product-card__name,
	.cat-block .mm-slider__slide .product-card__pack {
		transform: translateX(24px);
	}

	.cat-block .mm-slider__slide:last-child:not(:first-child) .product-card__name,
	.cat-block .mm-slider__slide:last-child:not(:first-child) .product-card__pack {
		transform: translateX(-24px);
	}
}
