/* ---------- Fonts ---------- */

@font-face {
  font-family: "DIN Pro Condensed";
  src: url("fonts/DINPro-CondensedRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DIN Pro Condensed";
  src: url("fonts/DINPro-CondensedMedium.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DIN Pro Condensed";
  src: url("fonts/DINPro-CondensedBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --orange: #E37222;
  --black: #000000;
  --chicken: #ED8B00;
  --beef: #B53041;
  --fish: #36A2BC;
  /* Light flavor colors behind the carousels: flavor + 16% white (light table rows), then tuned by eye */
  --chicken-light: #F2AF4E; /* +16% +3% +5% +8% +3% white */
  --beef-light: #D17F8A; /* +16% +10% +4% +5% +8% +3% white */
  --fish-light: #7FC3D5; /* +16% +10% +5% +8% +3% white */
  --white: #FFFFFF;
  --cream: #FFF6EC;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;

  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 18px 40px -12px rgb(0 0 0 / 0.35);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, table { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; }

html { scroll-behavior: smooth; }

/* No hanging single words on the last line of paragraphs; even line lengths in headings */
p, li, td { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

body {
  font-family: "DIN Pro Condensed", "Arial Narrow", sans-serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* ---------- Browser surfaces ---------- */

::selection { background: var(--black); color: var(--orange); }

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
  border-radius: 2px;
}
.game :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.product-carousel :focus-visible {
  outline-color: var(--white);
}

html { scrollbar-color: var(--orange) var(--cream); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 8px; border: 3px solid var(--cream); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.49em 1.07em;
  font-family: inherit;
  font-weight: 400;
  font-size: 0.874rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out-strong), background-color 0.2s ease;
}

@media (min-width: 768px) {
  .btn { font-size: 0.952rem; padding: 0.549em 1.25em; }
}

@media (min-width: 1440px) {
  .btn { font-size: 1.008rem; padding: 0.59em 1.43em; }
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.14); }

/* ---------- Header ---------- */

.site-header {
  background: var(--orange);
  padding-top: 0;
  text-align: center;
}

.site-logo { display: block; height: 90px; width: auto; margin: 0 auto; }

.site-nav {
  display: none;
}

@media (min-width: 768px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    padding: 0 20px;
  }

  .site-logo { grid-column: 2; margin: 0 auto; }

  .site-nav {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 0.6em 1.1em;
    margin-top: 22px;
    font-weight: 800;
    font-size: clamp(0.72rem, 1.15vw, 1.05rem);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-align: right;
  }
  .site-nav a { text-decoration: none; opacity: 0.92; transition: opacity 0.2s ease; white-space: nowrap; }
  .site-nav a:hover { opacity: 1; }
  .site-logo { height: 130px; }
}

@media (min-width: 1440px) {
  .site-header { padding: 0 56px; }
  .site-nav { font-size: 1rem; gap: 0.6em var(--space-4); }
  .site-logo { height: 144px; }
}

/* ---------- Game (Screen 1) ---------- */

/* The whole game (orange + black parts) must fit the first screen together with the header.
   The cat stage keeps its natural size and only shrinks when the viewport is too short. */
:root {
  --header-h: 90px;
  --stage-w: min(94vw, 620px);
}
@media (min-width: 768px) {
  :root { --header-h: 130px; --stage-w: min(46vw, 620px); }
}
@media (min-width: 1440px) {
  :root { --header-h: 144px; }
}

.game {
  background: var(--orange);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
}

.game-head { position: relative; z-index: 1; flex: none; text-align: center; padding: 1.2vw 2vw 0; }

/* Title sits a little lower, closer to the cat (visual shift only, layout is unchanged) */
.game-title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(1.7rem, 7vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-transform: uppercase;
  transform: translateY(0.12em);
}

.cat-stage-wrap {
  flex: 0 1 calc(var(--stage-w) * 540 / 582);
  min-height: 150px;
  container-type: size;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 2vw;
}

.cat-stage {
  position: relative;
  width: min(var(--stage-w), 100cqh * 582 / 540);
  aspect-ratio: 582 / 540;
}

.cat-photo-clip {
  position: absolute;
  inset: 0;
}

/* Cats are 5% larger than their box and grow upward from the black strip,
   towards the title; the box itself (and the fit on the first screen) is unchanged */
.cat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* +2px down: the cat tucks under the black strip, so no orange hairline
     shows at fractional-pixel edges (the strip is painted on top) */
  transform: translateY(2px) scale(1.05);
  transform-origin: center bottom;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}
.cat-photo.is-active { opacity: 1; }

.game-bubble {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 50%;
  margin-top: 14px;
  background: var(--white);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  width: max-content;
  max-width: 200px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.game-bubble.is-visible { opacity: 1; transform: translate(-50%, 0); }
.game-bubble .bubble-text { font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.game-bubble.is-success .bubble-text { color: var(--orange); }
.game-bubble.is-fail .bubble-text { color: var(--black); }

@media (min-width: 768px) {
  .game-bubble {
    top: 50%;
    left: 100%;
    margin-top: 0;
    margin-left: 18px;
    transform: translate(-10px, -50%);
  }
  .game-bubble.is-visible { transform: translate(0, -50%); }
}

@media (min-width: 1440px) {
  .game-title { font-size: 3.2rem; }
  .game-bubble { max-width: 260px; padding: 0.8rem 1.3rem; }
  .game-bubble .bubble-text { font-size: 1rem; }
}

.game-picks {
  flex: none;
  position: relative;
  background: var(--black);
  padding: 1vw var(--space-3) var(--space-3);
  text-align: center;
}

.game-picks-title {
  color: var(--orange);
  font-weight: 800;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-wrap: balance;
}

.flavor-picks {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0.6rem;
}

.flavor-pick { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 1 1 0; min-width: 0; }
/* Same box for all three photos (they differ in height), so the captions line up */
.flavor-pick img { width: 100%; max-width: 112px; height: auto; aspect-ratio: 500 / 329; object-fit: contain; object-position: center bottom; }
.flavor-label { font-weight: 700; font-size: 0.9rem; line-height: 1.2; text-transform: uppercase; }
.flavor-name { text-wrap: balance; }
.flavor-sub { display: block; text-transform: none; }
/* Tap feedback: the meat piece gives a short wobble */
@keyframes pick-wobble {
  0%, 100% { transform: rotate(0) scale(1); }
  15% { transform: rotate(-4deg) scale(1.04); }
  35% { transform: rotate(3.5deg) scale(1.04); }
  55% { transform: rotate(-2.5deg) scale(1.02); }
  75% { transform: rotate(1.5deg) scale(1.01); }
}
.flavor-pick img.is-wobbling { animation: pick-wobble 0.5s ease-in-out; }

/* First-visit hint: white cat paw "нажми на кусочек" above the black strip.
   Fades in, pulses three times, holds for a second, then melts away. */
.paw-hint {
  /* Text is the size of the "Узнать состав" buttons; the paw is built around it */
  position: absolute;
  z-index: 6;
  left: 50%;
  /* the pad dips into the black strip by ~90% of the strip's top padding, still clear of the title */
  bottom: calc(100% - var(--picks-pad, 10px) * 0.9);
  font-size: 0.874rem;                    /* = .btn */
  height: 5.26em;
  aspect-ratio: 200 / 172;
  margin-left: -3.06em;                   /* half the width; transform is left free for the animations */
  pointer-events: none;
  opacity: 0;
  transform-origin: 50% 80%;
  visibility: hidden;
}
@media (min-width: 768px) { .paw-hint { font-size: 0.952rem; } }
@media (min-width: 1440px) { .paw-hint { font-size: 1.008rem; } }
.paw-hint-shape {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* 65% transparent white, no outline */
  fill: rgb(255 255 255 / 0.35);
}

.paw-hint-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 64%;
  transform: translateY(-50%);
  color: var(--black);
  font-weight: 700;
  line-height: 1.02;
  text-align: center;
  white-space: nowrap;
}
.paw-hint.is-on {
  visibility: visible;
  /* fade in 0.8s → 3 pulses × 0.75s → hold 1s → fade out 0.8s (4.85s in total) */
  animation:
    paw-in 0.8s ease-out both,
    paw-pulse 0.75s ease-in-out 0.8s 3,
    paw-out 0.8s ease-in 4.05s forwards;
}
.paw-hint.is-gone {
  visibility: visible;
  animation: paw-melt 0.7s ease forwards;
}
@keyframes paw-in {
  from { opacity: 0; filter: blur(3px); }
  to   { opacity: 1; filter: blur(0); }
}
@keyframes paw-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
@keyframes paw-out {
  from { opacity: 1; filter: blur(0); }
  to   { opacity: 0; filter: blur(3px); }
}
@keyframes paw-melt {
  from { opacity: 1; filter: blur(0); }
  to   { opacity: 0; filter: blur(4px); }
}

.flavor-pick--chicken .flavor-label { color: var(--chicken); }
.flavor-pick--beef .flavor-label { color: var(--beef); }
.flavor-pick--fish .flavor-label { color: var(--fish); }

@media (min-width: 768px) {
  .flavor-picks { gap: var(--space-5); }
  .flavor-pick img { max-width: 170px; }
  .flavor-label { font-size: 1.25rem; }
}

@media (min-width: 1440px) {
  .game-picks-title { font-size: 2.7rem; margin-bottom: 0.8rem; }
  .flavor-pick img { max-width: 306px; }
  .flavor-label { font-size: 1.8rem; }
  .flavor-picks { gap: var(--space-6); }
}

/* ---------- First screen: scale the reference layouts to the screen ----------
   Header + game are built from the reference screenshots and scaled as one piece,
   so proportions (cat height, orange vs black, font sizes) stay the same on every screen.
   Portrait  → mobile reference, 390 × 748 px (header included), scaled by width or height.
   Landscape → desktop reference, 1916 × 1116 px viewport, scaled by height;
               the first screen always ends with the black strip. */

@media (orientation: portrait) {
  :root {
    --m: min(calc(100vw / 390), calc(100vh / 748));
    --m: min(calc(100vw / 390), calc(100svh / 748));
    --header-h: calc(90 * var(--m));
    --stage-w: calc(366 * var(--m));
  }
  .site-logo { height: var(--header-h); }
  .game-head { padding: calc(5 * var(--m)) calc(8 * var(--m)) 0; }
  .game-title { font-size: calc(27.3 * var(--m)); }
  .cat-stage-wrap { padding: 0; }
  .game-picks { --picks-pad: calc(10 * var(--m)); padding: var(--picks-pad) calc(12 * var(--m)) calc(20 * var(--m)); }
  .game-picks-title { font-size: calc(23.4 * var(--m)); line-height: 1.25; margin-bottom: calc(19 * var(--m)); }
  .flavor-picks { gap: calc(10 * var(--m)); }
  .flavor-pick { gap: calc(8 * var(--m)); }
  .flavor-pick img { max-width: calc(115 * var(--m)); }
  .flavor-label { font-size: calc(17 * var(--m)); line-height: 1.2; }

  /* Narrow screens: the result bubble sits on the bottom of the cat photo,
     just above the black strip, so it never covers "Угадай, какой вкус…" */
  .game-bubble {
    top: auto;
    bottom: calc(10 * var(--m) + 2px);
    left: 50%;
    margin: 0;
    max-width: calc(220 * var(--m));
    transform: translate(-50%, 8px);
  }
  .game-bubble.is-visible { transform: translate(-50%, 0); }
  .game-bubble .bubble-text { font-size: calc(15 * var(--m)); }
}

@media (orientation: landscape) {
  :root {
    --u: min(calc(100vh / 1116), calc(100vw / 1250));
    --u: min(calc(100svh / 1116), calc(100vw / 1250));
    --header-h: calc(144 * var(--u));
  }
  .site-header { padding: 0 calc(56 * var(--u)); }
  .site-logo { height: var(--header-h); }
  /* Menu keeps the reference size (16px) and never grows on big screens */
  .site-nav {
    margin-top: calc(22 * var(--u));
    font-size: clamp(0.72rem, calc(16 * var(--u)), 1rem);
    gap: 0.6em 2.75em;
  }

  .game {
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    max-height: none;
  }
  .game-head { padding: calc(23 * var(--u)) calc(38 * var(--u)) 0; }
  .game-title { font-size: calc(51.2 * var(--u)); }
  .cat-stage-wrap { flex: 1 1 0; min-height: 0; }
  .cat-stage { width: calc(100cqh * 582 / 540); }
  .game-picks { --picks-pad: calc(14 * var(--u)); padding: var(--picks-pad) calc(28 * var(--u)) calc(22 * var(--u)); }
  .game-picks-title { font-size: calc(43.2 * var(--u)); margin-bottom: calc(13 * var(--u)); }
  .flavor-picks { gap: calc(112 * var(--u)); }
  .flavor-pick { gap: calc(5 * var(--u)); }
  .flavor-pick img { max-width: calc(306 * var(--u)); }
  .flavor-label { font-size: calc(34 * var(--u)); line-height: 1.1; }

  .game-bubble {
    margin-left: calc(18 * var(--u));
    max-width: max(180px, calc(260 * var(--u)));
    padding: 0.8em 1.3em;
  }
  .game-bubble .bubble-text { font-size: clamp(0.8rem, calc(17 * var(--u)), 1.1rem); }
}

/* Landscape phones: no desktop menu, the bubble sits on the bottom of the cat to stay on screen */
@media (orientation: landscape) and (max-width: 767px) {
  .game-bubble { top: auto; bottom: 8px; left: 50%; margin: 0; transform: translate(-50%, 8px); }
  .game-bubble.is-visible { transform: translate(-50%, 0); }
}

.game-tagline {
  background: var(--orange);
  text-align: center;
  padding: var(--space-4) var(--space-3);
}

.game-tagline-intro {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.game-tagline-outro {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}

@media (min-width: 1440px) {
  .game-tagline { padding: var(--space-5) var(--space-3); }
  .game-tagline-intro { font-size: 2.7rem; }
  .game-tagline-outro { font-size: 2.7rem; }
}

/* ---------- Product sections (Screens 2-4) ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "carousel" "actions";
}
.product-copy { grid-area: copy; }
.product-carousel { grid-area: carousel; }
.product-actions { grid-area: actions; }

.product-copy {
  padding: var(--space-4) var(--space-3);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-copy h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.product-copy p {
  max-width: 42ch;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.3rem var(--space-3) var(--space-4);
}
/* Phones: buttons continue the carousel block, so they share its light background */
.product--chicken .product-actions { background: var(--chicken-light); }
.product--beef .product-actions { background: var(--beef-light); }
.product--fish .product-actions { background: var(--fish-light); }

.product { --copy-x: var(--space-5); } /* checkerboard: text block and buttons share this side padding */

/* One-column layout (no checkerboard): flavor descriptions centered both ways */
@media (max-width: 767px) {
  .product-copy {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-5) var(--space-3);
  }
  .product-copy p { margin-inline: auto; }
}

.product--chicken .product-copy { background: var(--chicken); }
.product--beef .product-copy { background: var(--beef); }
.product--fish .product-copy { background: var(--fish); }

@media (min-width: 768px) {
  .product--chicken .product-actions { background: var(--chicken); }
  .product--beef .product-actions { background: var(--beef); }
  .product--fish .product-actions { background: var(--fish); }
  .product-actions { justify-content: flex-start; padding: 0 var(--copy-x) var(--space-6); }
}

.product--chicken .product-carousel { background: var(--chicken-light); }
.product--beef .product-carousel { background: var(--beef-light); }
.product--fish .product-carousel { background: var(--fish-light); }

.product-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) 0;
}

.carousel-arrow {
  display: none;
}

@media (min-width: 1024px) {
  .product-carousel {
    flex-direction: row;
    gap: 1rem;
  }
  .carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.25);
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1;
    transition: background-color 0.2s ease;
  }
  .carousel-arrow:hover { background: rgb(255 255 255 / 0.4); }
}

/* Card text scales with the card: 0.95rem on the 390px card (mobile look),
   growing on bigger cards but never above the flavor description text */
.carousel-square {
  container-type: inline-size;
  --card-text: clamp(0.95rem, 3.9cqi, 1.1rem);
  position: relative;
  width: 390px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out-strong);
}

.carousel-card {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1.3rem 2.2rem;
  color: var(--white);
  text-align: center;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.5) transparent;
}
.carousel-card::-webkit-scrollbar { width: 3px; }
.carousel-card::-webkit-scrollbar-track { background: transparent; }
.carousel-card::-webkit-scrollbar-thumb { background: transparent; border: 1px solid rgb(255 255 255 / 0.55); border-radius: 3px; }

.carousel-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

.carousel-card--mockup { padding: 0 0.8rem; }

.carousel-card--foodzone { padding: 0; }
.carousel-card--foodzone img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.carousel-card--storage p {
  max-width: 34em;
  font-size: min(var(--card-text), 3.9cqi);
  font-weight: 700;
  line-height: 1.5;
}

.carousel-card--feeding {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.carousel-card--feeding img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.carousel-card--feeding .feeding-text {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--white);
}
.carousel-card--feeding .feeding-text p {
  max-width: 59%;
  /* on cards narrower than 390px the text shrinks with the card, so it never runs onto the bowl */
  font-size: min(var(--card-text), 3.9cqi);
  font-weight: 700;
  line-height: 1.5;
}
.carousel-card--feeding .feeding-text p:first-child {
  margin-bottom: 0.7rem;
}

.carousel-wrap {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  border: none;
  background: rgb(255 255 255 / 0.45);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active { background: var(--white); transform: scale(1.3); }

/* Ingredients table (Card 3) */

.carousel-card--table { padding: min(0.6rem, 2.46cqi) min(0.9rem, 3.7cqi); align-items: stretch; }
/* Same text size as the storage/feeding cards; spacing is tight so the whole table fits without scrolling */
.ingredients-table { width: 100%; max-width: 90%; text-align: center; margin: auto; font-size: min(var(--card-text), 3.9cqi); }
.ingredients-lead { font-weight: 800; text-transform: uppercase; font-size: 1em; line-height: 1.3; margin-bottom: 0.4em; }
.ingredients-comp { font-weight: 600; font-size: 1em; line-height: 1.3; margin-bottom: 0.45em; opacity: 0.95; }
.ingredients-table h3 { font-weight: 800; font-size: 1em; margin-bottom: 0.3em; }
.ingredients-table table { width: 100%; font-size: 1em; text-align: left; }
.ingredients-table td { padding: 0.12em 0.4em; font-weight: 600; line-height: 1.3; }
.ingredients-table td:last-child { text-align: right; font-weight: 700; }
.ingredients-table tr:nth-child(odd) { background: rgb(255 255 255 / 0.16); }
.ingredients-table tr:nth-child(even) { background: rgb(255 255 255 / 0.05); }
.ingredients-footnote { margin-top: 0.4em; line-height: 1.3; font-size: 1em; font-weight: 600; opacity: 0.9; }
.ingredients-netto { display: block; white-space: nowrap; }

@media (min-width: 768px) {
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas: "copy carousel" "actions carousel";
    min-height: 560px;
  }
  .product--beef { grid-template-areas: "carousel copy" "carousel actions"; }
  .product-copy { justify-content: center; padding: var(--space-6) var(--copy-x) var(--space-4); }
  .product-carousel { padding: var(--space-4); height: 100%; }
  .product-actions { align-self: start; }
}

@media (min-width: 1440px) {
  .product { min-height: 780px; }
  .product { --copy-x: 6rem; }
  .product-copy h2 { font-size: 3.4rem; max-width: 15ch; }
  .product-copy p { font-size: 1.35rem; max-width: 40ch; }
  .carousel-square { width: 680px; --card-text: clamp(0.95rem, 3.9cqi, 1.35rem); }
}

/* ---------- Advantages (Screen 5) ---------- */

.advantages {
  background: var(--orange);
  padding: var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.advantage-block {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out-strong), transform 0.5s var(--ease-out-strong);
}
.advantage-block.is-visible { opacity: 1; transform: none; }

.advantage-block h2 {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .advantages { flex-direction: row; align-items: flex-start; gap: 0; }
  .advantage-block { flex: 1; max-width: none; }
}

@media (min-width: 1440px) {
  .advantages { padding: 4rem var(--space-5); }
  .advantage-block h2 { font-size: 2rem; }
}

/* ---------- Footer (Screen 6) ---------- */

.footer-main {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 1.5rem var(--space-3) var(--space-4); /* little black above the cats */
}

.footer-cats { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.footer-cats img { max-width: 320px; width: 100%; }

.footer-main h2 {
  color: var(--orange);
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1rem;
}

.support-pill {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  max-width: 100%;
  padding: 0.55em 1.7em;
  border: 1px solid var(--white);
  border-radius: 1.8em;
  color: var(--white);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
}
/* Footnote mark on the e-mail button: refers to the disclaimer at the bottom of the page */
.support-mail::after {
  content: "*";
  position: absolute;
  top: 0.05em;
  right: -0.45em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
}

.nowrap { white-space: nowrap; }
/* contacts are plain text (no links), so no hover effect */
.support-main { font-weight: 700; }
.support-note { font-size: 0.85em; opacity: 0.8; }

.footer-legal {
  background: var(--orange);
  text-align: center;
  padding: 0 var(--space-3) var(--space-3);
}

.footer-logo { height: 88px; width: auto; margin: 0 auto; }

.footer-legal-text {
  margin-top: var(--space-2);
  color: rgb(255 255 255 / 0.9);
  font-size: 0.72rem;
  line-height: 1.4;
}
.footer-legal-text a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-text a:hover { color: var(--black); }

.cookie-settings-link {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-settings-link:hover { color: var(--black); }

/* ---------- Cookie banner ----------
   Small card in the corner, shown only after the visitor engages, never over the game */

.cookie-banner {
  position: fixed;
  z-index: 50;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.7rem 0.8rem 0.7rem 1rem;
  background: rgb(0 0 0 / 0.92);
  color: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out-strong);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: none; }

.cookie-text { flex: 1 1 auto; }
.cookie-text a { color: var(--orange); text-underline-offset: 2px; }
.cookie-actions { display: flex; flex: none; align-items: center; gap: 0.3rem; }

.cookie-btn {
  padding: 0.5em 1em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.cookie-btn--accept { background: var(--orange); color: var(--white); }
.cookie-btn--accept:hover { background: #F08A3E; }
.cookie-btn--decline { opacity: 0.7; }
.cookie-btn--decline:hover { opacity: 1; }

@media (max-width: 480px) {
  .cookie-banner { flex-wrap: wrap; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}

@media (min-width: 768px) {
  .cookie-banner { right: auto; max-width: 440px; left: 20px; bottom: 20px; }
}

@media (min-width: 768px) {
  .footer-cats img { max-width: 420px; }
}

@media (min-width: 1440px) {
  .footer-main { padding: 2.25rem var(--space-3) 5.5rem; }
  .footer-cats { margin-bottom: 1.5rem; }
  .footer-cats img { max-width: 460px; }
  .footer-main h2 { font-size: 2.4rem; margin-bottom: 0.8rem; }
  .support-pill { padding: 0.65em 2.2em; font-size: 1.15rem; }
  .footer-logo { height: 106px; }
}
