/* Kartulikaubamaja — the demo's site.css (comp C "Põllult koju": warm near-black film, yolk accent, white shop), every class
   with the kk- prefix (S-009). Gambetta + Satoshi come from kk_fonts_css(). Breakpoints are single conditions (S-013). */

:root {
  --ink: #17110c;
  --ink-2: #2b2119;
  --cream: #f6efe4;
  --cream-2: #cbbfae;
  --yolk: #f0b429;
  --yolk-hi: #ffc64a;
  --muted: #64584c;
  --line: #b9ab9a;
  --err: #b3261e;
  --ok: #2f6b2f;
  --white: #fff;
  --display: 'Gambetta', Georgia, serif;
  --text: 'Satoshi', system-ui, sans-serif;
  --pad: clamp(16px, 5.6vw, 80px);
  --hd: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); display: flex; flex-direction: column; min-height: 100svh; }
main { flex: 1; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
b, strong, th, dt { font-weight: 700; }
em { font-style: italic; font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.kk-wrap { width: 100%; max-width: calc(1280px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.kk-ico { width: 1.15em; height: 1.15em; flex: none; }
.kk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kk-skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--yolk); color: var(--ink); padding: 12px 18px; font-weight: 700; border-radius: 12px; }
.kk-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; }
.kk-is-page :focus-visible, .kk-shop :focus-visible, .kk-talu :focus-visible, .kk-tell :focus-visible { outline-color: var(--ink); }
.kk-anchor { scroll-margin-top: calc(var(--hd) + 8px); }

/* reveal: hidden only when JS is on and not yet shown (W12, M04) */
html.kk-js .kk-rv:not(.kk-is-in) { opacity: 0; transform: translateY(26px); }
.kk-rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- Buttons ---------- */
.kk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 54px; padding: 0 1.5em; border: 0; border-radius: 999px; font: 700 1.02rem/1 var(--text); cursor: pointer; transition: transform .35s var(--spring), background-color .2s, color .2s, box-shadow .2s; }
.kk-btn:hover { transform: translateY(-3px); }
.kk-btn:active { transform: scale(.97); }
.kk-btn--go { background: var(--yolk); color: var(--ink); }
.kk-btn--go:hover { background: var(--yolk-hi); }
.kk-btn--ink { background: var(--ink); color: var(--cream); }
.kk-btn--ink:hover { background: var(--ink-2); }
.kk-btn--ghost { background: rgba(23, 17, 12, .35); color: var(--cream); box-shadow: inset 0 0 0 2px rgba(246, 239, 228, .75); }
.kk-btn--ghost:hover { background: var(--cream); color: var(--ink); }
.kk-btn--line-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.kk-btn--line-ink:hover { background: var(--ink); color: var(--cream); }

/* add-to-cart: one per pack size */
.kk-addf { display: contents; }
.kk-add { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 54px; padding: 6px 12px 6px 16px; border: 0; border-radius: 16px; background: var(--ink); color: var(--cream); cursor: pointer; text-align: left; transition: transform .35s var(--spring), background-color .2s; }
.kk-add:hover { transform: translateY(-3px) rotate(-1.5deg); background: var(--ink-2); }
.kk-add:active { transform: scale(.95); }
.kk-add.kk-is-busy { opacity: .6; }
.kk-add__kg { font-size: .78rem; color: var(--cream-2); }
.kk-add__pr { grid-row: 2; font: 600 1.15rem/1.1 var(--display); }
.kk-add .kk-ico { grid-row: 1 / 3; grid-column: 2; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--yolk); color: var(--ink); }

/* ---------- Header: fixed from first paint (M58); only its ground changes ---------- */
.kk-hd { position: fixed; top: 0; left: 0; right: 0; z-index: 30; color: var(--cream); transition: background-color .35s, box-shadow .35s; }
.kk-hd.kk-is-solid { background: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.kk-is-page main { padding-top: var(--hd); }
.kk-hd__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 24px; min-height: var(--hd); padding: 0 var(--pad); max-width: calc(1280px + 2 * var(--pad)); margin: 0 auto; }
.kk-hd__logo { justify-self: start; font: 600 1.9rem/1 var(--display); letter-spacing: -.02em; display: inline-block; padding: 8px 0; white-space: nowrap; }
.kk-hd__nav { display: flex; gap: 30px; }
.kk-hd__nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; opacity: .86; transition: opacity .2s, transform .3s var(--spring); }
.kk-hd__nav a:hover, .kk-hd__nav a[aria-current] { opacity: 1; }
.kk-hd__nav a:hover { transform: translateY(-2px); }
.kk-hd__nav a[aria-current]::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--yolk); }
.kk-hd__end { justify-self: end; display: flex; align-items: center; gap: 16px; }
.kk-hd__tel { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 500; }
.kk-hd__basket { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 700; transition: transform .35s var(--spring); }
.kk-hd__basket b { min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px; border-radius: 12px; background: var(--ink); color: var(--cream); font-size: .8rem; }
.kk-hd__basket.kk-is-full b { background: var(--yolk); color: var(--ink); }
.kk-bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.12) rotate(-3deg); } }

/* ---------- Film hero ---------- */
.kk-film { position: relative; min-height: max(640px, 100svh); display: grid; grid-template-rows: 1fr auto; color: var(--cream); background: var(--ink); overflow: hidden; }
.kk-film__media, .kk-film__shade { position: absolute; inset: 0; }
.kk-film__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.kk-film__v.kk-is-on { opacity: 1; }
html.kk-js .kk-film__still.kk-is-on { animation: kb 8s linear both; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.kk-film__shade { background: linear-gradient(180deg, rgba(23, 17, 12, .55) 0%, rgba(23, 17, 12, .05) 30%, rgba(23, 17, 12, .25) 55%, rgba(23, 17, 12, .9) 100%); }
.kk-film__copy { position: relative; align-self: end; padding-top: 140px; padding-bottom: 34px; }
.kk-film h1 { font: 600 clamp(3.4rem, 9.6vw, 9rem)/1.18 var(--display); letter-spacing: -.035em; max-width: 9ch; text-wrap: balance; }
.kk-film h1 em { display: inline-block; transform-origin: left bottom; }
html.kk-js .kk-film h1 em { animation: lean 6s ease-in-out infinite; }
@keyframes lean { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-4px); } }
.kk-film__copy > p { margin-top: 14px; max-width: 34ch; font-size: 1.2rem; }
.kk-film__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kk-film__tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 18px; padding-bottom: 30px; align-items: end; }
.kk-tab { display: grid; gap: 4px; text-align: left; border: 0; background: none; padding: 0 0 4px; cursor: pointer; color: var(--cream-2); transition: color .25s; min-height: 44px; }
.kk-tab b { font: 600 1.35rem/1.18 var(--display); }
.kk-tab small { font-size: .9rem; }
.kk-tab[aria-selected="true"], .kk-tab:hover { color: var(--cream); }
.kk-tab__bar { display: block; height: 3px; background: rgba(246, 239, 228, .28); margin-bottom: 10px; overflow: hidden; border-radius: 2px; }
.kk-tab__bar i { display: block; height: 100%; background: var(--yolk); transform: scaleX(0); transform-origin: left; }
.kk-tab[aria-selected="true"] .kk-tab__bar i { transform: scaleX(1); }
html.kk-js .kk-film.kk-is-auto .kk-tab[aria-selected="true"] .kk-tab__bar i { animation: prog var(--dur, 7s) linear both; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.kk-film__credit { font-size: .75rem; color: var(--cream-2); padding-bottom: 6px; white-space: nowrap; }

/* ---------- Shop by skin group (home) ---------- */
.kk-shop { padding: clamp(70px, 9vw, 130px) 0; overflow-x: clip; }
.kk-shop__in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 70px; align-items: start; }
.kk-shop__side { position: sticky; top: calc(var(--hd) + 30px); display: grid; gap: 16px; justify-items: start; }
.kk-shop h2 { font: 600 clamp(2.8rem, 4.6vw, 4.2rem)/1.18 var(--display); letter-spacing: -.03em; }
.kk-shop__side > p { color: var(--muted); }
.kk-shop__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 10px; padding: 16px 20px; background: var(--ink); color: var(--cream); border-radius: 18px; width: 100%; transition: transform .35s var(--spring); }
.kk-shop__sum:hover { transform: translateY(-3px); }
.kk-shop__sum b { font: 600 1.5rem/1 var(--display); }
.kk-shop__sum b[data-sum] { color: var(--yolk); }
.kk-shop__sum .kk-ico { margin-left: auto; align-self: center; }
.kk-arrowlink { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 700; }
.kk-arrowlink .kk-ico { transition: transform .3s var(--spring); }
.kk-arrowlink:hover .kk-ico { transform: translateX(4px); }
.kk-grp { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 40px 0; }
.kk-grp + .kk-grp { margin-top: 20px; }
.kk-grp__shot { display: grid; place-items: center; min-height: 340px; }
.kk-grp__shot img { max-height: 380px; width: auto; filter: drop-shadow(0 26px 22px rgba(23, 17, 12, .28)); transition: transform .6s var(--spring); }
.kk-grp:hover .kk-grp__shot img { transform: rotate(-4deg) translateY(-8px) scale(1.04); }
.kk-grp h3 { font: 600 2.2rem/1.18 var(--display); letter-spacing: -.02em; margin-bottom: 10px; }
.kk-vr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; padding: 14px 0; }
.kk-vr__name { display: grid; gap: 2px; }
.kk-vr__name a { font: 600 1.45rem/1.2 var(--display); justify-self: start; transition: color .2s; }
.kk-vr__name a:hover { color: #8a5a00; }
.kk-vr__name span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; color: var(--muted); }
.kk-vr__name i, .kk-sw i, .kk-card__meta i, .kk-pd__facts i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; display: inline-block; }
.kk-vr__name small, .kk-card__in, .kk-pd__badge { font-weight: 700; font-size: .85rem; color: #8a5a00; }
.kk-vr__add { display: flex; gap: 8px; }

.kk-note { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--muted); max-width: 52ch; }
.kk-note .kk-ico { margin-top: 2px; color: #8a5a00; }

/* ---------- Varieties side by side (ink band) ---------- */
.kk-sordid { background: var(--ink); color: var(--cream); padding: clamp(70px, 9vw, 130px) 0; overflow-x: clip; }
.kk-sordid__in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: stretch; }
.kk-sordid h2 { font: 600 clamp(2.8rem, 4.6vw, 4.2rem)/1.18 var(--display); letter-spacing: -.03em; margin-bottom: 34px; }
.kk-cmp { width: 100%; border-collapse: collapse; font-size: .98rem; }
.kk-cmp thead th { text-align: left; font: 700 .76rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--cream-2); padding: 0 12px 16px 0; }
.kk-cmp tbody th { text-align: left; padding: 14px 14px 14px 0; white-space: nowrap; }
.kk-cmp tbody th a { font: 600 1.45rem/1.15 var(--display); color: var(--yolk); transition: color .2s; }
.kk-cmp tbody th a:hover { color: var(--cream); }
.kk-cmp td { padding: 14px 12px 14px 0; vertical-align: middle; line-height: 1.35; }
.kk-cmp td[data-l="Koor"], .kk-cmp td[data-l="Sisu"] { white-space: nowrap; }
.kk-sw { display: inline-flex; align-items: center; gap: .5em; }
.kk-sordid__foot { margin-top: 26px; color: var(--cream-2); font-size: .92rem; max-width: 70ch; }
.kk-sordid__film { position: relative; border-radius: 26px; overflow: hidden; min-height: 420px; }
.kk-sordid__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- The farm ---------- */
.kk-talu { padding: clamp(70px, 9vw, 130px) 0; }
.kk-talu__pano { position: relative; border-radius: 26px; overflow: hidden; }
.kk-talu__pano img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.kk-talu__pano::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 17, 12, .7), rgba(23, 17, 12, 0) 55%); }
.kk-talu__h { position: absolute; left: clamp(20px, 4vw, 56px); bottom: clamp(18px, 3.4vw, 46px); z-index: 1; color: var(--cream); font: 600 clamp(2.6rem, 6vw, 5.8rem)/1.18 var(--display); letter-spacing: -.03em; }
.kk-talu__content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 60px; margin-top: -90px; padding: 0 clamp(0px, 4vw, 56px); align-items: start; }
.kk-talu__text { padding-top: 140px; }
.kk-talu__lead { font: 600 clamp(1.5rem, 2.3vw, 2.1rem)/1.32 var(--display); max-width: 30ch; }
.kk-facts { margin-top: 30px; display: grid; gap: 12px; }
.kk-facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; }
.kk-facts dt { color: var(--muted); font-weight: 500; }
.kk-talu__photo { position: relative; z-index: 2; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(23, 17, 12, .28); transform: rotate(2deg); }
.kk-talu__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.kk-talu__photo figcaption { position: absolute; right: 12px; bottom: 10px; font-size: .72rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }

/* ---------- How ordering works (yolk band) ---------- */
.kk-tell { background: var(--yolk); color: var(--ink); padding: clamp(70px, 8vw, 120px) 0; }
.kk-tell__line { display: flex; flex-wrap: wrap; gap: 6px 26px; font: 600 clamp(2rem, 4.4vw, 4rem)/1.2 var(--display); letter-spacing: -.02em; }
.kk-tell__line li { display: inline-flex; align-items: center; gap: .3em; }
.kk-tell__line li:not(:last-child)::after { content: "→"; font-family: var(--text); font-weight: 400; margin-left: .35em; }
.kk-tell__line .kk-ico { width: .8em; height: .8em; stroke-width: 2.2; }
.kk-tell__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 50px; margin-top: 46px; max-width: 1100px; }
.kk-tell__cols b { font-weight: 700; }
.kk-tell__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 44px; }
.kk-tell .kk-note { color: var(--ink); }
.kk-tell .kk-note .kk-ico { color: var(--ink); }

/* ---------- Page heads (inner pages) ---------- */
.kk-ph-head { background: var(--ink); color: var(--cream); padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.kk-ph-head h1 { font: 600 clamp(2.2rem, 6vw, 5.4rem)/1.18 var(--display); letter-spacing: -.03em; overflow-wrap: break-word; }
.kk-ph-head p { margin-top: 10px; color: var(--cream-2); max-width: 60ch; }
.kk-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--cream-2); margin-bottom: 18px; }
.kk-crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
.kk-crumbs a:hover { color: var(--cream); }
.kk-crumbs--ink { color: var(--muted); }
.kk-crumbs--ink a:hover { color: var(--ink); }

/* ---------- Pood: W31 catalogue ---------- */
.kk-cat { padding: clamp(36px, 5vw, 64px) 0 clamp(70px, 8vw, 110px); }
.kk-cat__in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.kk-side { position: sticky; top: calc(var(--hd) + 24px); display: grid; gap: 30px; }
.kk-side h2 { font: 700 .8rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.kk-side__groups a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; font-weight: 500; transition: background-color .2s, color .2s; }
.kk-side__groups a:hover { color: #8a5a00; }
.kk-side__groups a[aria-current] { background: var(--ink); color: var(--cream); }
.kk-side__groups small { font-weight: 700; }
.kk-side__more > summary { display: none; }
.kk-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kk-field { display: grid; gap: 6px; }
.kk-field label, .kk-field .kk-lbl { font-weight: 700; font-size: .92rem; }
.kk-inp, select.kk-inp, textarea.kk-inp { width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .2s; }
textarea.kk-inp { min-height: 110px; resize: vertical; }
.kk-inp:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px rgba(240, 180, 41, .5); }
.kk-inp[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.kk-side__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.kk-side__clear { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.kk-side__clear:hover { color: #8a5a00; }
.kk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 30px; }
.kk-tools__count { color: var(--muted); }
.kk-tools__count b { color: var(--ink); }
.kk-tools__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kk-tools__ctl select.kk-inp { width: auto; min-width: 11rem; }
.kk-views { display: flex; gap: 4px; }
.kk-views a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--muted); transition: background-color .2s, color .2s; }
.kk-views a:hover { color: var(--ink); }
.kk-views a[aria-current] { background: var(--ink); color: var(--cream); }
.kk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; }
.kk-card { display: flex; flex-direction: column; }
.kk-card__shot { height: 220px; display: grid; place-items: end center; margin-bottom: 18px; }
.kk-card__shot img { max-height: 210px; width: auto; max-width: 82%; filter: drop-shadow(0 18px 14px rgba(23, 17, 12, .22)); transition: transform .5s var(--spring); }
.kk-card:hover .kk-card__shot img { transform: translateY(-10px) rotate(-3deg) scale(1.04); }
.kk-card:nth-child(even) .kk-card__shot img { scale: -1 1; }
.kk-card:nth-child(3n) .kk-card__shot img { rotate: 6deg; }
.kk-card__h { font: 600 1.75rem/1.18 var(--display); letter-spacing: -.02em; }
.kk-card__h a:hover { color: #8a5a00; }
.kk-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: .92rem; color: var(--muted); }
.kk-card__note { margin-top: 6px; font-size: .95rem; }
.kk-card__in { margin-top: 8px; }
.kk-card__add { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.kk-card__add .kk-add { flex: 1; }
.kk-cards--list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.kk-cards--list .kk-card { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; grid-template-rows: auto auto auto 1fr; column-gap: 30px; align-items: start; }
.kk-cards--list .kk-card__shot { grid-row: 1 / -1; height: 140px; margin: 0; place-items: center; }
.kk-cards--list .kk-card__shot img { max-height: 130px; }
.kk-cards--list .kk-card__add { grid-column: 3; grid-row: 1 / -1; align-self: center; padding: 0; margin: 0; }
.kk-cards--list .kk-card__add .kk-add { flex: none; }
.kk-empty { padding: 50px 0; font-size: 1.1rem; }
.kk-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 50px; }
.kk-pager a, .kk-pager span { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 12px; font-weight: 700; }
.kk-pager a:hover { color: #8a5a00; }
.kk-pager [aria-current] { background: var(--ink); color: var(--cream); }

/* ---------- Toode ---------- */
.kk-pd { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.kk-pd__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.kk-pd__shot { display: grid; place-items: center; min-height: 460px; }
.kk-pd__shot img { max-height: 500px; width: auto; filter: drop-shadow(0 30px 26px rgba(23, 17, 12, .3)); }
.kk-pd h1 { font: 600 clamp(3rem, 6vw, 5.4rem)/1.18 var(--display); letter-spacing: -.03em; }
.kk-pd__group { margin-top: 6px; color: var(--muted); }
.kk-pd__group a { font-weight: 700; color: var(--ink); }
.kk-pd__facts { display: grid; gap: 10px; margin: 26px 0; }
.kk-pd__facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 14px; align-items: center; }
.kk-pd__facts dt { color: var(--muted); font-weight: 500; }
.kk-pd__facts dd { display: flex; align-items: center; gap: 8px; }
.kk-pd__buy { display: flex; flex-wrap: wrap; gap: 10px; }
.kk-pd__buy .kk-add { min-height: 62px; padding: 8px 16px 8px 20px; }
.kk-pd__badge { margin-top: 12px; }
.kk-pd .kk-note { margin-top: 22px; }
.kk-more { padding: 0 0 clamp(70px, 8vw, 110px); }
.kk-more h2 { font: 600 clamp(2rem, 3.4vw, 3rem)/1.18 var(--display); margin-bottom: 30px; }

/* ---------- Korv + kassa ---------- */
.kk-co { padding: clamp(36px, 5vw, 64px) 0 clamp(70px, 8vw, 110px); }
.kk-co__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: start; }
.kk-lines { display: grid; gap: 4px; }
.kk-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 8px 22px; align-items: center; padding: 14px 0; }
.kk-line__shot img { width: 84px; height: 84px; object-fit: contain; }
.kk-line__name a { font: 600 1.4rem/1.2 var(--display); }
.kk-line__name small { display: block; color: var(--muted); }
.kk-line__qty { display: flex; align-items: center; gap: 6px; }
.kk-line__qty input { width: 4.2rem; text-align: center; }
.kk-line__total { font: 600 1.3rem/1 var(--display); min-width: 4.5rem; text-align: right; }
.kk-qbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--cream); cursor: pointer; transition: background-color .2s, transform .3s var(--spring); }
.kk-qbtn:hover { background: var(--ink-2); transform: scale(1.06); }
.kk-linkbtn { border: 0; background: none; padding: 0; min-height: 44px; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--muted); cursor: pointer; }
.kk-linkbtn:hover { color: var(--err); }
.kk-summary { position: sticky; top: calc(var(--hd) + 24px); background: var(--ink); color: var(--cream); border-radius: 24px; padding: 28px; display: grid; gap: 16px; }
.kk-summary h2 { font: 600 2rem/1.18 var(--display); }
.kk-summary dl { display: grid; gap: 8px; }
.kk-summary dl div { display: flex; justify-content: space-between; gap: 16px; }
.kk-summary dt { font-weight: 400; color: var(--cream-2); }
.kk-summary .kk-total dd { font: 600 2.2rem/1 var(--display); color: var(--yolk); }
.kk-summary .kk-total dt { color: var(--cream); font-weight: 700; align-self: end; }
.kk-summary .kk-note, .kk-summary .kk-note .kk-ico { color: var(--cream-2); }
.kk-summary__lines { display: grid; gap: 6px; font-size: .95rem; }
.kk-summary__lines li { display: flex; justify-content: space-between; gap: 12px; }
.kk-empty-cart { display: grid; gap: 18px; justify-items: start; padding: 30px 0; }
.kk-empty-cart p { font: 600 1.8rem/1.3 var(--display); }

.kk-form { display: grid; gap: 22px; }
.kk-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.kk-form legend { font: 600 1.6rem/1.18 var(--display); margin-bottom: 6px; padding: 0; }
.kk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kk-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 14px 16px; border-radius: 16px; cursor: pointer; transition: background-color .2s; }
.kk-choice:hover { box-shadow: inset 0 0 0 2px var(--line); }
.kk-choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); grid-row: 1 / 3; }
.kk-choice b { font-weight: 700; }
.kk-choice small { color: var(--muted); }
.kk-choice:has(input:checked) { background: var(--ink); color: var(--cream); }
.kk-choice:has(input:checked) small { color: var(--cream-2); }
.kk-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.kk-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.kk-check a { font-weight: 700; color: #8a5a00; }
.kk-err { color: var(--err); font-weight: 700; font-size: .92rem; }
.kk-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--err); color: #fff; }
.kk-alert:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.kk-alert .kk-ico { margin-top: 3px; }
.kk-alert ul { margin-top: 6px; display: grid; gap: 2px; }
.kk-alert a { font-weight: 700; color: #fff; }
.kk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Aitäh, legal, 404 ---------- */
.kk-done { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 8vw, 110px); }
.kk-done__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.kk-done__ok { display: inline-flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 700; }
.kk-done__ok .kk-ico { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--ok); color: #fff; }
.kk-done h2 { font: 600 2rem/1.18 var(--display); margin: 14px 0 12px; }
.kk-done p + p { margin-top: 12px; }
.kk-prose { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 8vw, 110px); }
.kk-prose__in { max-width: 760px; }
.kk-prose h2 { font: 600 1.8rem/1.18 var(--display); margin: 36px 0 10px; }
.kk-prose p, .kk-prose li { color: #3a3027; }
.kk-prose p + p { margin-top: 12px; }
.kk-prose ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; margin-top: 10px; }
.kk-prose a { font-weight: 700; color: #8a5a00; }
.kk-nf { flex: 1; display: grid; place-items: center; padding: calc(var(--hd) + 40px) 0 60px; background: var(--ink); color: var(--cream); }
.kk-nf__in { display: grid; gap: 18px; justify-items: start; }
.kk-nf h1 { font: 600 clamp(3rem, 8vw, 7rem)/1.18 var(--display); letter-spacing: -.03em; }
.kk-nf p { color: var(--cream-2); max-width: 46ch; font-size: 1.15rem; }
.kk-nf__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Drawer, toast, flyer ---------- */
.kk-drawer { position: fixed; top: calc(var(--hd) + 8px); right: max(16px, calc((100vw - 1280px) / 2)); z-index: 40; width: min(420px, calc(100vw - 32px)); max-height: calc(100svh - var(--hd) - 24px); display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); overflow: hidden; }
.kk-drawer:focus { outline: none; }
.kk-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 6px 22px; }
.kk-drawer h2 { font: 600 1.9rem/1 var(--display); }
.kk-drawer__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.kk-drawer__x:hover { background: var(--ink); color: var(--cream); }
.kk-drawer__lines { padding: 0 22px; overflow: auto; flex: 1; }
.kk-drawer__lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 12px; align-items: center; padding: 10px 0; }
.kk-dl__name { font-weight: 700; }
.kk-dl__name small { display: block; font-weight: 400; color: var(--muted); }
.kk-dl__qty { display: flex; align-items: center; gap: 4px; }
.kk-dl__qty form { display: contents; }
.kk-dl__qty b { min-width: 1.8em; text-align: center; }
.kk-dl__qty .kk-qbtn { width: 36px; height: 36px; }
.kk-dl__total { font: 600 1.15rem/1 var(--display); min-width: 3.6rem; text-align: right; }
.kk-drawer__empty { padding: 4px 22px 10px; color: var(--muted); }
.kk-drawer__foot { padding: 14px 22px 22px; display: grid; gap: 14px; }
.kk-drawer__sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.kk-drawer__sum small { font-weight: 400; color: var(--muted); }
.kk-drawer__sum b { font: 600 2rem/1 var(--display); }
.kk-drawer__acts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.kk-drawer__acts .kk-btn { padding: 0 1em; }
.kk-flyer { position: fixed; z-index: 50; width: 72px; height: 72px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .3)); }
.kk-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--cream); padding: 14px 22px; border-radius: 999px; font-weight: 500; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }

/* ---------- Footer ---------- */
.kk-foot { background: var(--ink); color: var(--cream-2); font-size: .95rem; }
.kk-foot__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px 40px; padding-top: 60px; padding-bottom: 40px; }
.kk-foot__logo { font: 600 2.4rem/1 var(--display); color: var(--cream); margin-bottom: 12px; }
.kk-foot__h { font: 700 .78rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--cream-2); margin-bottom: 12px; }
.kk-foot a { color: var(--cream); display: inline-flex; align-items: center; min-height: 32px; }
.kk-foot a:hover { color: var(--yolk); }
.kk-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 28px; font-size: .88rem; }
.kk-footer-credit { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; text-align: right; min-height: 44px; justify-content: center; }
.kk-footer-credit-name { font: 600 1.35rem/1.1 var(--display); background-image: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .9) 50%, transparent 65%), linear-gradient(90deg, var(--yolk), var(--cream)); background-size: 200% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
.kk-footer-credit:hover .kk-footer-credit-name, .kk-footer-credit:focus-visible .kk-footer-credit-name { animation: credit-glimmer .9s var(--ease); }
@keyframes credit-glimmer { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
.kk-footer-credit-sub { font-size: .72rem; letter-spacing: .05em; color: var(--cream-2); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .kk-shop__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .kk-shop__side { position: static; }
  .kk-sordid__in { grid-template-columns: minmax(0, 1fr); }
  .kk-sordid__film { min-height: 0; aspect-ratio: 16 / 7; }
  .kk-cat__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .kk-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; }
  .kk-cards:not(.kk-cards--list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kk-co__in, .kk-done__in { grid-template-columns: minmax(0, 1fr); }
  .kk-summary { position: static; }
  .kk-foot__in { grid-template-columns: 1fr 1fr; }
  .kk-hd__tel span { display: none; }
}
@media (max-width: 899px) {
  :root { --hd: 108px; }
  .kk-hd__in { grid-template-columns: auto 1fr auto; gap: 0 12px; min-height: 64px; padding-top: 4px; }
  .kk-hd__nav { grid-row: 2; grid-column: 1 / -1; gap: 22px; margin-top: -2px; padding-bottom: 4px; }
  .kk-hd__nav a { font-size: .95rem; min-height: 40px; }
  .kk-hd__nav a[aria-current]::before { bottom: 2px; }
  .kk-hd__end { grid-column: 3; gap: 6px; }
  .kk-hd__tel { width: 44px; justify-content: center; }
  .kk-hd__sum { display: none; }
  .kk-film { min-height: max(620px, 94svh); }
  .kk-film__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .kk-tab small { display: none; }
  .kk-tab b { font-size: 1.05rem; }
  .kk-film__credit { grid-column: 1 / -1; }
  .kk-grp { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 0; }
  .kk-grp__shot { min-height: 220px; }
  .kk-grp__shot img { max-height: 230px; }
  .kk-vr { grid-template-columns: minmax(0, 1fr); }
  .kk-vr__add .kk-add { flex: 1; }
  .kk-cmp thead { display: none; }
  .kk-cmp, .kk-cmp tbody, .kk-cmp tr, .kk-cmp th, .kk-cmp td { display: block; }
  .kk-cmp tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; padding: 18px 0; }
  .kk-cmp tbody th { grid-column: 1 / -1; padding: 0 0 4px; }
  .kk-cmp td { padding: 0; white-space: normal !important; }
  .kk-cmp td::before { content: attr(data-l); display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-2); }
  .kk-cmp td:last-child { grid-column: 1 / -1; }
  .kk-talu__pano img { aspect-ratio: 4 / 3; }
  .kk-talu__content { grid-template-columns: minmax(0, 1fr); margin-top: 30px; gap: 30px; padding: 0; }
  .kk-talu__text { padding-top: 0; }
  .kk-talu__photo { max-width: 420px; transform: none; }
  .kk-tell__cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kk-side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kk-side__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .kk-side__more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: 12px; font-weight: 700; cursor: pointer; list-style: none; box-shadow: inset 0 0 0 2px var(--line); }
  .kk-side__more > summary::-webkit-details-marker { display: none; }
  .kk-side__more > summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; }
  .kk-side__more[open] > summary::after { content: "−"; }
  .kk-side__more[open] > summary { margin-bottom: 12px; }
  .kk-side__price-h { display: none; }
  .kk-pd__in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kk-pd__shot { min-height: 280px; }
  .kk-pd__shot img { max-height: 300px; }
  .kk-line { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .kk-line__shot img { width: 64px; height: 64px; }
  .kk-line__total { grid-column: 2 / -1; text-align: left; }
  .kk-line__qty { grid-column: 3; grid-row: 1; }
  .kk-drawer { right: 16px; }
}
@media (max-width: 600px) {
  .kk-cards:not(.kk-cards--list) { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .kk-cards--list .kk-card { grid-template-columns: 96px minmax(0, 1fr); }
  .kk-cards--list .kk-card__shot { height: 96px; }
  .kk-cards--list .kk-card__shot img { max-height: 90px; }
  .kk-cards--list .kk-card__add { grid-column: 1 / -1; grid-row: auto; padding-top: 14px; }
  .kk-cards--list .kk-card__add .kk-add { flex: 1; }
  .kk-row2 { grid-template-columns: minmax(0, 1fr); }
  .kk-foot__in { grid-template-columns: minmax(0, 1fr); }
  .kk-tools__ctl select.kk-inp { min-width: 0; }
  .kk-drawer__acts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .kk-film h1 { font-size: 3rem; }
  .kk-add { padding: 6px 10px 6px 12px; }
  .kk-line { grid-template-columns: 56px minmax(0, 1fr); }
  .kk-line__qty { grid-column: 2; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.kk-js .kk-rv:not(.kk-is-in) { opacity: 1; transform: none; }
}

/* ---------- Platform additions (not in the demo) ---------- */
/* Reveal fail-safe (S-017): if main.js never runs, the gated content still appears after 2.5 s. */
html.kk-js .kk-rv:not(.kk-is-in) { animation: kk-failsafe 0s 2.5s forwards; }
@keyframes kk-failsafe { to { opacity: 1; transform: none; } }
.kk-hd__logo em { font-weight: 500; }
.kk-arrowlink { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 700; }
.kk-arrowlink .kk-ico { transition: transform .3s var(--spring); }
.kk-arrowlink:hover .kk-ico { transform: translateX(4px); }
.kk-note { font-size: .88rem; color: var(--muted); max-width: 52ch; }
.kk-summary .kk-note { color: var(--cream-2); }
.kk-choices { display: grid; gap: 6px; }
.kk-choice__price { grid-column: 2; font-weight: 700; }
.kk-add--out { opacity: .45; cursor: default; }
.kk-add--out:hover { transform: none; background: var(--ink); }
.kk-img-ph { opacity: .5; }
.kk-foot__links { display: grid; justify-items: start; }
.kk-done__form { max-width: 640px; }
.kk-pd__desc { margin-top: clamp(30px, 5vw, 60px); max-width: 760px; }
.kk-pd__desc p + p { margin-top: 12px; }
.kk-cmp-wrap { overflow-x: auto; }
.kk-line__qty output { min-width: 2em; text-align: center; font-weight: 700; }
.kk-line.kk-is-busy, .kk-drawer__lines li.kk-is-busy { opacity: .55; }
.kk-alert p { margin-top: 4px; }
.kk-alert b + p, .kk-alert ul { color: #fff; }
.kk-price-label { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.kk-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 4px 0 8px; }
.kk-bank { display: grid; place-items: center; min-height: 52px; padding: 8px; border: 0; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.kk-bank img { max-height: 28px; width: auto; }
.kk-bank.kk-is-on { box-shadow: inset 0 0 0 3px var(--ink); }
.kk-field small { font-weight: 400; color: var(--muted); }
@media (max-width: 899px) {
  .kk-hd__logo { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .kk-hd__logo { font-size: 1.32rem; }
  .kk-talu__h { font-size: clamp(1.9rem, 9vw, 2.6rem); right: 20px; }
  .kk-foot__logo { font-size: 2rem; }
}
@media (max-width: 400px) {
  .kk-hd__logo { font-size: 1.18rem; }
}
