/* ==========================================================================
   ЛИМКОРМ × RED SOLUTION — «Подарки каждому»
   Mobile-first. Breakpoints: 600 / 900 / 1200.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --orange: #f5a211;
  --orange-soft: #fcc77a;
  --orange-tint: #fff3df;
  --graphite: #1a1a1a;
  --graphite-deep: #121212;
  --ink: #151515;
  --heading: #2b2b2b;
  --text: #4a4a4a;
  --muted: #666;
  --line: #ebe4d8;
  --card: #fbf5ec;
  --white: #fff;
  --on-dark: #fff;
  --on-dark-muted: #c4c4c4;
  --danger: #b3261e;

  /* type */
  --font: "Onest", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-hero: clamp(3rem, 1.5rem + 4.6vw, 5.5rem);        /* 48 → 88 */
  --fs-h2: clamp(1.875rem, 1.5rem + 1.1vw, 2.5rem);      /* 30 → 40 */
  --fs-h3: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem); /* 17 → 21 */
  --fs-lead: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); /* 17 → 22 */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  /* layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(48px, 6vw, 88px);
  --band-y: clamp(36px, 4.5vw, 56px);
  --gap: clamp(12px, 1.8vw, 24px);
  --header-h: 64px;

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--ink);
}

@media (min-width: 900px) {
  :root { --header-h: 92px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(245, 162, 17, 0.25);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:where(ul[role="list"], ol) { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.band--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--orange); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

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

/* ---------- Paw cursor (mouse / trackpad only) ---------- */
@media (pointer: fine) {
  html { cursor: url("../assets/cursor/paw.svg") 12 4, auto; }
  a, button, summary, label, select, [role="tab"], .option, .option input, .dropzone, .dropzone__input, .gift__box {
    cursor: url("../assets/cursor/paw-pointer.svg") 12 4, pointer;
  }
  input:not([type="radio"], [type="checkbox"], [type="file"]), textarea { cursor: text; }
  /* while the button is held the paw curls its toes in */
  html.is-pressing { cursor: url("../assets/cursor/paw-press.svg") 12 6, auto; }
  html.is-pressing :is(a, button, summary, label, select, [role="tab"], .option, .option input, .dropzone, .dropzone__input, .gift__box) {
    cursor: url("../assets/cursor/paw-pointer-press.svg") 12 6, pointer;
  }
}
/* print left where you click */
.paw-print {
  position: fixed;
  z-index: 400;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  pointer-events: none;
  background: url("../assets/cursor/paw.svg") center / contain no-repeat; /* graphite + white edge reads on every band */
  animation: paw-print 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes paw-print {
  0% { opacity: 0.9; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.4); }
  35% { opacity: 0.9; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) - 10px)) rotate(var(--r)) scale(1); }
}

/* ---------- Typography ---------- */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--heading);
  text-wrap: balance;
}
/* marker highlight behind section titles on light backgrounds */
.title-mark {
  padding: 0.02em 0.14em 0.06em;
  margin-inline: -0.14em;
  background: var(--orange);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section-title:has(.title-mark) { line-height: 1.3; }
.band--dark .section-title { color: var(--on-dark); }
.band--accent .section-title { color: var(--ink); }

.section-lead {
  margin-top: 10px;
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--text);
  text-wrap: pretty;
}

.section-aside {
  max-width: 24em;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease-out);
}
.btn .icon { transition: transform 0.2s var(--ease-out); }
.btn:active { transform: scale(0.98); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--accent { background: var(--orange); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--lg { min-height: 56px; padding-inline: 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding-inline: 16px; font-size: 0.9375rem; }
.btn--block { width: 100%; }

@media (hover: hover) {
  .btn--dark:hover { background: #333; }
  .btn--accent:hover { background: #ffb43a; }
  .btn--ghost:hover { background: var(--ink); color: var(--white); }
  .btn:hover .icon { transform: translateX(3px); }
}

.link-btn,
.link-plain {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-btn:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}
/* shadow fades in via opacity only */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -20px 0;
  height: 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(rgba(21, 21, 21, 0.07), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.site-header.is-scrolled::after { opacity: 1; }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  /* all-caps mark: trim to cap height so it centres optically */
  text-box: trim-both cap alphabetic;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark--light { color: var(--white); }

.site-header__cta { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--white);
}
.menu-toggle .icon { grid-area: 1 / 1; width: 22px; height: 22px; }
.menu-toggle .icon--close,
.menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* mobile panel */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(21, 21, 21, 0.12);
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s 0.25s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s;
}
.site-nav__list { list-style: none; padding: 0; }
.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.site-nav__list a[aria-current="true"] { color: var(--ink); box-shadow: inset 4px 0 0 var(--orange); padding-left: 12px; }
.site-nav__cta { width: 100%; margin-top: 20px; }

@media (min-width: 1024px) {
  .menu-toggle,
  .site-nav__cta { display: none; }
  .wordmark { font-size: 1.875rem; }
  .site-header__cta { display: inline-flex; min-height: 54px; padding-inline: 26px; font-size: 1.0625rem; }
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav__list { display: flex; gap: clamp(14px, 1.9vw, 34px); }
  .site-nav__list a {
    position: relative;
    min-height: 48px;
    border: 0;
    font-size: clamp(0.875rem, 0.55rem + 0.5vw, 1.0625rem);
    font-weight: 500;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 8px;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__list a[aria-current="true"] { box-shadow: none; padding-left: 0; }
  .site-header__cta { margin-left: clamp(12px, 2vw, 32px); }
  .site-nav__list a { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .wordmark { font-size: 1.625rem; }
  .site-nav__list { gap: 16px; }
  .site-nav__list a { font-size: 0.875rem; }
  .site-header__cta { min-height: 48px; padding-inline: 18px; font-size: 0.9375rem; }
}

/* ---------- Bands & sections ---------- */
.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--card); }
.band { padding-block: var(--band-y); }
.band--dark { background: var(--graphite); color: var(--on-dark-muted); }
.band--accent { background: var(--orange); color: var(--ink); }

.section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.section-head--split { display: grid; gap: 12px; }
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 48px;
  }
  .section-head--split .section-aside { padding-top: 10px; }
}

/* ---------- Promo card (hero + gift) ---------- */
.promo-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(21, 21, 21, 0.14);
}
.promo-card__label {
  max-width: 9em;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.promo-card__code {
  display: grid;
  justify-items: start;
  gap: 6px;
}
.promo-tag {
  display: inline-block;
  padding: 3px 12px 4px;
  border-radius: 6px;
  background: var(--orange-soft);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.promo-code {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.promo-code--lg { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); }
.promo-card__terms {
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--text);
}
.promo-card__terms b { display: block; font-size: 1.125rem; font-weight: 750; color: var(--ink); }

/* label on its own row; code | terms side by side */
@media (min-width: 600px) {
  .promo-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px 24px;
    padding: 20px 28px;
  }
  .promo-card__label { grid-column: 1 / -1; max-width: none; }
  .promo-card__terms {
    padding-left: 24px;
    border-left: 2px solid var(--line);
  }
}
/* wide hero: label | code | terms in one row */
@media (min-width: 1200px) {
  .hero__promo { grid-template-columns: auto auto minmax(12em, 1fr); }
  .hero__promo .promo-card__label { grid-column: auto; max-width: 9em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(32px, 5vw, 56px);
}
.hero__grid { display: grid; gap: 28px; }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero__lead {
  margin-block: 20px 32px;
  max-width: 22em;
  font-size: clamp(1.125rem, 0.95rem + 0.75vw, 1.625rem); /* 18 → 26 */
  line-height: 1.4;
  color: var(--ink);
}
/* background: kibble + paw texture (static), sunburst behind the pets (endless slow turn) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23a85f00' fill-opacity='.09'%3E%3Cellipse cx='34' cy='38' rx='11' ry='8' transform='rotate(-25 34 38)'/%3E%3Cellipse cx='146' cy='60' rx='9' ry='7' transform='rotate(30 146 60)'/%3E%3Cellipse cx='92' cy='150' rx='10' ry='7.5' transform='rotate(-10 92 150)'/%3E%3Ccircle cx='160' cy='158' r='5'/%3E%3Ccircle cx='70' cy='92' r='4'/%3E%3Cg transform='translate(110 104) rotate(18)'%3E%3Cellipse cx='0' cy='8' rx='9' ry='8'/%3E%3Cellipse cx='-11' cy='-4' rx='3.6' ry='4.6'/%3E%3Cellipse cx='-4' cy='-11' rx='3.6' ry='4.6'/%3E%3Cellipse cx='5' cy='-11' rx='3.6' ry='4.6'/%3E%3Cellipse cx='12' cy='-4' rx='3.6' ry='4.6'/%3E%3C/g%3E%3Cg transform='translate(30 130) rotate(-22) scale(.8)'%3E%3Cellipse cx='0' cy='8' rx='9' ry='8'/%3E%3Cellipse cx='-11' cy='-4' rx='3.6' ry='4.6'/%3E%3Cellipse cx='-4' cy='-11' rx='3.6' ry='4.6'/%3E%3Cellipse cx='5' cy='-11' rx='3.6' ry='4.6'/%3E%3Cellipse cx='12' cy='-4' rx='3.6' ry='4.6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
}
.hero > .container { position: relative; }
.hero__burst {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 38%;
  width: 190%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 214, 120, 0.95) 0 14%, rgba(255, 196, 77, 0.55) 26%, transparent 46%),
    repeating-conic-gradient(rgba(255, 205, 100, 0.55) 0deg 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%);
  mask: radial-gradient(circle, #000 18%, transparent 66%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__burst {
    /* endless slow turn without a pause control, by client request (deviates from WCAG 2.2.2) */
    will-change: transform;
    animation: burst-turn 120s linear infinite;
  }
}
@keyframes burst-turn { to { transform: rotate(1turn); } }

.hero__pets { position: relative; z-index: 1; }

.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding-bottom: clamp(28px, 4vw, 40px);
}
.hero__pets {
  width: min(100%, 520px);
  margin-bottom: -44px;
}
.hero__promo {
  position: relative;
  z-index: 1;
  width: 100%;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 24px;
  }
  .hero__copy .btn { min-height: 64px; padding-inline: 34px; font-size: 1.1875rem; }
  .hero__visual { justify-items: end; padding-bottom: 0; }
  /* pets scale with viewport height so the whole banner fits one screen */
  .hero__pets {
    width: min(100%, 720px, calc((100svh - var(--header-h) - 280px) * 1.157));
    margin-right: 3%;
    margin-bottom: -56px;
  }
  .hero__promo { padding: 24px 32px; }
  .hero__promo .promo-card__label { font-size: 1.1875rem; }
  .hero__promo .promo-code { font-size: clamp(2.25rem, 1.6rem + 1.2vw, 2.75rem); }
  .hero__promo .promo-card__terms { font-size: 1.0625rem; }
  .hero__promo .promo-card__terms b { font-size: 1.3125rem; }
}
@media (min-width: 1200px) {
  /* the card reaches into the copy column, as in the layout */
  .hero__promo { width: calc(100% + 140px); max-width: 860px; }
}

/* single orchestrated entrance; transform/opacity only */
@media (prefers-reduced-motion: no-preference) {
  .hero__title,
  .hero__lead,
  .hero__copy .btn,
  .hero__pets,
  .hero__promo {
    animation: rise 0.7s var(--ease-out) both;
  }
  .hero__lead { animation-delay: 0.08s; }
  .hero__copy .btn { animation-delay: 0.16s; }
  .hero__pets { animation-delay: 0.12s; animation-duration: 0.9s; }
  .hero__promo { animation-delay: 0.3s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Steps ----------
   A path of three real objects: the food, the receipt, the prize.
   Paw-print trail links the cards; the last step is the dark payoff. */
.steps {
  --step-gap: 44px;
  display: grid;
  gap: var(--step-gap);
  margin-top: clamp(24px, 3vw, 40px);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 380px;
  padding: 24px 24px 0;
  border-radius: var(--r-lg);
  background: var(--card);
}
.step__head { display: flex; align-items: center; gap: 14px; }
.step__num {
  flex: none;
  font-size: clamp(4rem, 3rem + 3vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--orange);
  text-box: trim-both cap alphabetic;
}
.step__title {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.step__text { max-width: 26em; font-size: 1rem; line-height: 1.45; color: var(--text); }
.step__cta { align-self: flex-start; margin-top: 4px; }

/* illustration sits on the card floor and is cropped by it */
.step__art {
  position: relative;
  flex: 1;
  min-height: 170px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  margin-inline: -24px;
}

.packs-fan { container-type: inline-size; }
.packs-fan img {
  position: absolute;
  bottom: -26px;
  left: 50%;
  width: auto;
  height: min(42cqi, 170px);
  mix-blend-mode: multiply;
  box-shadow: 0 10px 20px rgba(21, 21, 21, 0.12);
  border-radius: 6px;
}
.packs-fan img:nth-child(1) { translate: -150% 0; rotate: -12deg; }
.packs-fan img:nth-child(2) { translate: -95% -14px; rotate: -4deg; }
.packs-fan img:nth-child(3) { translate: -5% -14px; rotate: 4deg; }
.packs-fan img:nth-child(4) { translate: 50% 0; rotate: 12deg; }

.receipt {
  position: absolute;
  left: 50%;
  bottom: -30px;
  width: 190px;
  padding: 16px 16px 40px;
  translate: -50% 0;
  rotate: -4deg;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(21, 21, 21, 0.12);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.receipt__shop {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed #cfc7ba;
  font-weight: 700;
  text-align: center;
}
.receipt__row { display: flex; justify-content: space-between; gap: 8px; padding-block: 3px; }
.receipt__row--total { margin-top: 6px; padding-top: 8px; border-top: 1.5px dashed #cfc7ba; font-weight: 750; }
.receipt__stamp {
  position: absolute;
  top: -16px;
  right: -16px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  rotate: 8deg;
}
.receipt__stamp .icon { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 3; }

.step--final { background: var(--graphite); }
.step--final .step__title { color: var(--white); }
.step--final .step__text { color: var(--on-dark-muted); }
.step__prize {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: auto;
  height: min(88%, 210px);
  translate: -50% 0;
}

/* paw trail between cards: vertical on phones, horizontal on desktop */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 22px;
  height: var(--step-gap);
  translate: -50% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='-11 -11 22 22'%3E%3Cg fill='%23f5a211' transform='rotate(180)'%3E%3Cellipse cx='0' cy='3.5' rx='4.6' ry='4'/%3E%3Cellipse cx='-5.6' cy='-2.4' rx='1.8' ry='2.3'/%3E%3Cellipse cx='-2' cy='-6' rx='1.8' ry='2.3'/%3E%3Cellipse cx='2.4' cy='-6' rx='1.8' ry='2.3'/%3E%3Cellipse cx='6' cy='-2.4' rx='1.8' ry='2.3'/%3E%3C/g%3E%3C/svg%3E") center / 22px 22px space;
  transform-origin: top;
}

@media (min-width: 600px) and (max-width: 899px) {
  .step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-rows: auto auto auto 1fr;
    column-gap: 24px;
    min-height: 230px;
    padding-bottom: 24px;
  }
  .step > :not(.step__art) { grid-column: 1; }
  .step__cta { justify-self: start; }
  .step__art {
    grid-column: 2;
    grid-row: 1 / 5;
    min-height: 206px;
    margin: -24px -24px -24px 0;
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
  }
}
@media (min-width: 900px) {
  .steps { --step-gap: 56px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { min-height: 440px; padding: 28px 28px 0; }
  .step__art { margin-inline: -28px; min-height: 190px; }
  .step:not(:last-child)::after {
    left: 100%;
    top: 46px;
    width: var(--step-gap);
    height: 22px;
    translate: 0 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='-11 -11 22 22'%3E%3Cg fill='%23f5a211' transform='rotate(90)'%3E%3Cellipse cx='0' cy='3.5' rx='4.6' ry='4'/%3E%3Cellipse cx='-5.6' cy='-2.4' rx='1.8' ry='2.3'/%3E%3Cellipse cx='-2' cy='-6' rx='1.8' ry='2.3'/%3E%3Cellipse cx='2.4' cy='-6' rx='1.8' ry='2.3'/%3E%3Cellipse cx='6' cy='-2.4' rx='1.8' ry='2.3'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: space;
    background-size: 22px 22px;
    transform-origin: left;
  }
}

/* one reveal: the trail walks from card to card when the section enters view */
@media (prefers-reduced-motion: no-preference) {
  .steps.js-reveal .step:not(:last-child)::after { transform: scaleY(0); transition: transform 0.7s var(--ease-out); }
  .steps.js-reveal .step:nth-child(2)::after { transition-delay: 0.6s; }
  .steps.js-reveal.is-visible .step:not(:last-child)::after { transform: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .steps.js-reveal .step:not(:last-child)::after { transform: scaleX(0); }
  .steps.js-reveal.is-visible .step:not(:last-child)::after { transform: none; }
}

/* ---------- Guaranteed gift ----------
   A gift box on the dark band: open it and the LIMKORM coupon rises out. */
.gift { overflow-x: clip; } /* the flying lid must not widen the page */
.gift__grid { display: grid; gap: 64px; align-items: center; }
.gift__copy { display: grid; justify-items: start; gap: 20px; }
.gift__note {
  max-width: 30em;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.gift__stage {
  --box-w: min(100%, 360px);
  --body-h: 190px;
  --lid-h: 44px;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  height: calc(var(--body-h) + var(--lid-h) + 92px); /* box + bow + room for the opened coupon */
  /* clip only below the box, so the coupon can hide inside it */
  clip-path: inset(-100vh -100vw 0 -100vw);
}
.gift__coupon {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(var(--body-h) - 14px);
  width: min(88%, 330px);
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 16px 20px 26px;
  translate: -50% 0;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color: var(--ink);
}
.gift__terms { font-size: 0.875rem; line-height: 1.4; color: var(--text); }
.gift__terms b { display: block; font-size: 1.125rem; color: var(--ink); }
.gift__code { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.gift__copy-code {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--orange-tint);
  color: var(--ink);
}
.gift__copy-code .icon { width: 20px; height: 20px; }
.gift__copy-code.is-done { background: var(--orange); }
@media (hover: hover) { .gift__copy-code:hover { background: var(--orange-soft); } }

.gift__box {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: var(--box-w);
  height: calc(var(--body-h) + var(--lid-h));
  translate: -50% 0;
  transform-origin: 50% 100%;
}
.gift__body,
.gift__lid {
  position: absolute;
  display: block;
  /* white ribbon down the middle */
  background:
    linear-gradient(90deg, transparent calc(50% - 17px), #fff calc(50% - 17px) calc(50% + 17px), transparent calc(50% + 17px)),
    var(--orange);
}
.gift__body {
  inset: auto 0 0 0;
  height: var(--body-h);
  border-radius: 0 0 10px 10px;
  background:
    linear-gradient(90deg, transparent calc(50% - 17px), #fff calc(50% - 17px) calc(50% + 17px), transparent calc(50% + 17px)),
    linear-gradient(#e08f06, var(--orange) 26px);
}
.gift__lid {
  z-index: 1;
  left: -12px;
  right: -12px;
  top: 0;
  height: var(--lid-h);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 19px), #fff calc(50% - 19px) calc(50% + 19px), transparent calc(50% + 19px)),
    linear-gradient(#ffb93a, var(--orange));
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
  transform-origin: 20% 100%;
}
.gift__bow {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 10px);
  width: 120px;
  translate: -50% 0;
}

.gift__confetti { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gift__confetti i {
  position: absolute;
  left: 50%;
  bottom: calc(var(--body-h) + var(--lid-h));
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
}

.gift__open {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(var(--body-h) / 2 - 24px);
  translate: -50% 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
/* closed state (set by JS): coupon tucked inside, box invites a click */
.gift__stage.is-closed .gift__box { cursor: pointer; }
.gift__stage.is-closed .gift__open { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 2px var(--white), 0 8px 22px rgba(0, 0, 0, 0.3); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gift__stage.is-closed .gift__box:hover { animation: gift-wiggle 0.6s ease-in-out; }
}
@keyframes gift-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  50% { transform: rotate(2.5deg); }
  75% { transform: rotate(-1.5deg); }
}

@media (max-width: 599px) {
  .gift__stage { --box-w: calc(100% - 32px); --body-h: 150px; --lid-h: 38px; height: calc(var(--body-h) + var(--lid-h) + 116px); }
}
@media (min-width: 900px) {
  .gift__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; }
  .gift__stage { justify-self: end; }
}

/* ---------- Prizes ----------
   A showroom: each prize stands on an orange podium under a soft spotlight. */
.prizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.prize {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 18px;
  overflow: hidden;
  border-radius: var(--r-lg);
  /* spotlight from above onto the podium */
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(var(--card), #f6ead8);
  text-align: center;
}
.prize__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
}
/* podium: lit top disc + front face */
.prize__podium {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 4%;
  height: 22%;
  border-radius: 0 0 50% 50% / 0 0 34% 34%;
  background: linear-gradient(#e08f06, #c97c03);
}
.prize__podium::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(70% 90% at 50% 30%, #ffc04a, var(--orange));
}
/* contact shadow under the product */
.prize__podium::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -14%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 45, 0, 0.45), transparent);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
/* square product shots: size by height so every prize stands on the podium at the same scale */
.prize__img {
  position: absolute;
  left: 0;
  bottom: 12%;
  width: 100%;
  height: 80%;
  object-fit: contain;
  object-position: 50% 100%;
  transition: transform 0.35s var(--ease-out);
}
.prize__title {
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
/* how many units are drawn and when */
.prize__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
}
.prize__qty {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 650;
  white-space: nowrap;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .prize:hover .prize__img { transform: translateY(-10px) scale(1.03); }
  .prize:hover .prize__podium::after { transform: scale(0.75); opacity: 0.6; }
}

@media (max-width: 899px) {
  .prize:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .prize:last-child:nth-child(odd) .prize__stage { max-width: calc(50% - var(--gap) / 2); }
}
@media (min-width: 600px) {
  .prize { padding: 14px 18px 22px; }
  .prize__title { font-size: var(--fs-h3); }
  .prize__meta { font-size: var(--fs-caption); }
}
@media (min-width: 900px) {
  .prizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prize__stage { aspect-ratio: 4 / 3; }
  .prize { padding: 18px 24px 26px; }
  .prize__title { margin-top: 8px; }
}

/* ---------- Brands ----------
   A pet-store shelf: packs stand on an orange shelf, logos hang below as price tags. */
/* stage = cream wall; the running pets live on a layer between the wall and the shelf */
.brands-stage {
  position: relative;
  margin-top: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--card);
}
.brands-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.runner {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  will-change: transform;
}
.runner__svg { display: block; width: 100%; height: auto; overflow: visible; }
.runner--cat .runner__svg { transform: scaleX(-1); }
.brands-scene.is-live .runner { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .brands-scene { display: none; } }

.brands {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 32px;
  padding: 28px 0 32px;
}
.brand {
  display: grid;
  justify-items: center;
  align-content: end;
}
.brand__stack {
  position: relative;
  display: block;
  margin-bottom: -4px;
  transform-origin: 50% 100%;
  transition: transform 0.35s var(--ease-out);
}
.brand__pack {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: clamp(170px, 24vw, 300px);
}

/* hover: a pet climbs up behind the pack, rests its paws on the edge and looks at you */
.peek {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: calc(100% - 22px);
  width: 64%;
  translate: -50% 0;
  transform: translateY(100%);
  transition: transform 0.25s ease-in;
}
.peek svg, .peek-paws svg { display: block; width: 100%; height: auto; }
.peek-paws {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: -14px;
  width: 58%;
  translate: -50% 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.15s, transform 0.2s ease-in;
}
.brand:is(:hover, :focus-within) .peek {
  transform: translateY(0) rotate(-5deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s;
}
.brand:nth-child(even):is(:hover, :focus-within) .peek { transform: translateY(0) rotate(5deg); }
.brand:is(:hover, :focus-within) .peek-paws {
  opacity: 1;
  transform: none;
  transition: opacity 0.15s 0.22s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.22s;
}
@media (prefers-reduced-motion: reduce) {
  .peek, .peek-paws { transition: opacity 0.15s !important; }
  .peek { opacity: 0; transform: none; }
  .brand:is(:hover, :focus-within) .peek { opacity: 1; transform: none; }
}
/* continuous shelf: columns have no gap, so the pieces join */
.brand__shelf {
  justify-self: stretch;
  height: 20px;
  background: linear-gradient(#ffc14d 0 6px, var(--orange) 6px 15px, #d98a06 15px);
  box-shadow: 0 10px 14px -8px rgba(21, 21, 21, 0.35);
}
@media (max-width: 899px) {
  .brand:nth-child(odd) .brand__shelf { margin-left: 16px; border-radius: 4px 0 0 4px; }
  .brand:nth-child(even) .brand__shelf { margin-right: 16px; border-radius: 0 4px 4px 0; }
}

/* price tag hanging from the shelf edge */
.brand__tag {
  position: relative;
  display: grid;
  place-items: center;
  width: min(84%, 230px);
  height: 84px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(21, 21, 21, 0.1);
  rotate: -2deg;
  transition: transform 0.35s var(--ease-out);
}
.brand:nth-child(even) .brand__tag { rotate: 2deg; }
.brand__tag::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 2px;
  height: 14px;
  translate: -50% 0;
  background: #b9b2a6;
}
.brand__logo {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand__logo--ajo { height: 46px; }
.brand__logo--sirius { height: 28px; }
.brand__logo--meat { height: 60px; }
.brand__logo--nash { height: 40px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .brand__stack { transform: translateY(-12px) rotate(-2deg); }
  .brand:hover .brand__tag { transform: translateY(3px); }
}
.brand__tag:focus-visible { outline-offset: 4px; }

@media (min-width: 900px) {
  .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 40px 0 44px; }
  .brand:first-child .brand__shelf { margin-left: 28px; border-radius: 4px 0 0 4px; }
  .brand:last-child .brand__shelf { margin-right: 28px; border-radius: 0 4px 4px 0; }
  .brand__shelf { height: 24px; background: linear-gradient(#ffc14d 0 7px, var(--orange) 7px 18px, #d98a06 18px); }
  .brand__tag { height: 104px; margin-top: 16px; }
  .brand__logo--ajo { height: 62px; }
  .brand__logo--sirius { height: 36px; }
  .brand__logo--meat { height: 78px; }
  .brand__logo--nash { height: 52px; }
}

/* ---------- Stores ----------
   Tear-off coupons, in the same shop vernacular as the shelf price tags. */
.stores__grid { display: grid; gap: 24px; align-items: center; }
.stores__lead { margin-top: 10px; max-width: 22em; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.stores__list { display: grid; gap: 14px; }
.stores__list li { filter: drop-shadow(0 6px 10px rgba(120, 60, 0, 0.18)); }

.store {
  --stub: 64px;
  --notch: 9px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--stub);
  min-height: 92px;
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  /* half-circle notches where the stub tears off */
  -webkit-mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, #0000 var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.store__main {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: 14px 20px;
}
.store__mark { display: flex; align-items: center; gap: 10px; height: 34px; }
.store__ozon { font-size: 1.75rem; font-weight: 900; letter-spacing: 0.02em; line-height: 1; color: #005bff; }
.store__wb { width: 34px; height: 34px; }
.store__name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; color: #7a1fd6; }
.store__market { width: auto; height: 28px; }
.store__note { font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }

/* stub, separated by a perforation */
.store__stub {
  position: relative;
  display: grid;
  place-items: center;
  border-left: 2px dashed #e2d8c8;
  margin-block: 12px;
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease-out);
}
.store__stub .icon {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  stroke-width: 2.4;
  transition: transform 0.3s var(--ease-out);
}
.store:focus-visible { outline: none; }
.stores__list li:has(.store:focus-visible) { filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(0 0 2px var(--ink)); }
@media (hover: hover) {
  .store:hover { transform: translateY(-4px) rotate(-1deg); }
  .store:hover .store__stub { transform: rotate(4deg) translateX(2px); }
  .store:hover .store__stub .icon { transform: translateX(3px); }
}

@media (min-width: 900px) {
  .stores__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stores__list li:nth-child(2) .store { rotate: 1deg; }
  .stores__list li:nth-child(odd) .store { rotate: -0.6deg; }
  .store { min-height: 104px; }
  .store__name { font-size: 1.125rem; }
}
@media (min-width: 1200px) {
  .stores__grid { grid-template-columns: minmax(0, 0.6fr) minmax(0, 2.2fr); gap: 40px; }
}

/* ---------- Winners + teaser ----------
   A split-flap results board: empty state reads as a promise, not a void. */
.winners__grid { display: grid; gap: 28px; align-items: center; }
.badge-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange);
}
.badge-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.winners__status { display: grid; justify-items: start; gap: 16px; }
.winners__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.winners__trophy {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.winners__text { font-size: 1rem; color: var(--on-dark-muted); }

.flapboard {
  --flap: clamp(24px, 6.2vw, 50px);
  display: flex;
  gap: clamp(3px, 0.5vw, 6px);
  padding: 10px;
  border-radius: 12px;
  background: #0f0f0f;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  perspective: 400px;
}
.flap {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--flap);
  height: calc(var(--flap) * 1.35);
  border-radius: 5px;
  background: linear-gradient(#2c2c2c 50%, #242424 50%);
  font-size: calc(var(--flap) * 0.82);
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}
/* hinge line across the middle */
.flap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: #0f0f0f;
}
.flap--gap { width: calc(var(--flap) * 0.45); background: none; }
.flap--gap::after { display: none; }
.flap__char { display: block; backface-visibility: hidden; transform-origin: 50% 50%; }

.teaser {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 16px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--orange);
  color: var(--ink);
}
.teaser .badge-icon { background: var(--ink); }
.teaser .badge-icon svg { stroke: var(--orange); }
.teaser__title { font-size: var(--fs-h3); font-weight: 750; line-height: 1.2; }
.teaser__text { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--ink); }
.teaser .btn { grid-column: 1 / -1; }

@media (min-width: 600px) {
  .teaser { grid-template-columns: auto 1fr auto; padding: 22px 26px; }
  .teaser .btn { grid-column: auto; }
}
@media (min-width: 900px) {
  .flapboard { --flap: clamp(30px, 3.1vw, 46px); }
  .winners__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

/* ---------- Quiz ---------- */
.quiz { display: grid; gap: 24px; }
.quiz__card {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border-radius: var(--r-lg);
  background: var(--card);
}
.quiz__progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--line);
}
.quiz__bar {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0.04);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.quiz__step fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz__question {
  padding: 0;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.quiz__count {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.quiz__options { display: grid; gap: 10px; margin-block: 20px 24px; }
.option { position: relative; display: block; cursor: pointer; }
.option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.option > span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600;
  color: var(--ink);
}
.option > span::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #b9b2a6;
}
.option input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); }
.option input:checked + span::before { box-shadow: inset 0 0 0 6px var(--orange), inset 0 0 0 20px var(--ink); }
.option input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .option:hover > span { box-shadow: inset 0 0 0 2px #b9b2a6; } .option input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); } }

.quiz__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz__result { display: grid; justify-items: start; gap: 12px; }
.quiz__result:focus { outline: none; }
.quiz__result-title { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 750; line-height: 1.2; color: var(--ink); }
.quiz__result-text { max-width: 36em; color: var(--text); }
.quiz__result .quiz__actions { margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .quiz__step:not([hidden]),
  .quiz__result:not([hidden]) { animation: fade-in 0.35s var(--ease-out); }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) {
  .quiz__card { padding: 36px 32px 32px; }
}
@media (min-width: 900px) {
  .quiz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
  /* card grows to the height of the passport column, content centred inside */
  .quiz__card { display: grid; align-content: center; padding: 40px; }
}

/* pet passport: fills in while answering, stamped at the end */
.quiz__intro { display: grid; gap: 0; }
.passport {
  position: relative;
  max-width: 400px;
  margin-top: 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(21, 21, 21, 0.12), 0 0 0 1.5px var(--line);
  overflow: hidden;
  rotate: -1.5deg;
}
.passport__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--orange);
  font-size: 0.9375rem;
  font-weight: 750;
  color: var(--ink);
}
.passport__head .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.passport__body { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 18px; }
.passport__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px dashed #d9cdb9;
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.passport__unknown { font-size: 2.5rem; font-weight: 900; color: #d9cdb9; }
.passport__pet {
  position: absolute;
  width: 84%;
  height: auto;
  aspect-ratio: 120 / 100;
  opacity: 0;
  transform: translateY(30%) scale(0.8);
  transition: opacity 0.2s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.passport[data-pet="кошка"] .passport__pet--cat,
.passport[data-pet="собака"] .passport__pet--dog { opacity: 1; transform: none; }
.passport[data-pet="кошка и собака"] .passport__pet--cat { opacity: 1; transform: translate(-22%, 8%) scale(0.62); }
.passport[data-pet="кошка и собака"] .passport__pet--dog { opacity: 1; transform: translate(22%, 14%) scale(0.66); }
.passport[data-pet]:not([data-pet=""]) .passport__unknown { opacity: 0; }
.passport__fields { display: grid; align-content: center; gap: 10px; margin: 0; }
.passport__fields div { display: grid; gap: 1px; padding-bottom: 6px; border-bottom: 1.5px dotted #d9cdb9; }
.passport__fields dt { font-size: 0.75rem; color: var(--muted); }
.passport__fields dd { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.passport__fields dd.is-new { animation: pp-write 0.35s var(--ease-out); }
@keyframes pp-write { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.passport__stamp {
  position: absolute;
  right: 12px;
  top: 8px;
  display: grid;
  justify-items: center;
  padding: 6px 12px 5px;
  border: 3px solid var(--ink);
  background: var(--orange);
  border-radius: 10px;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0;
  transform: rotate(-8deg) scale(1.8);
  pointer-events: none;
}
.passport__stamp small { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; }
.passport.is-complete .passport__stamp {
  opacity: 1;
  transform: rotate(-8deg) scale(1);
  transition: opacity 0.15s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* option tiles for the first question carry the pets */
.option__pet { width: 30px; height: 25px; flex: none; }
.option__pair { display: inline-flex; flex: none; }
.option__pair .option__pet { width: 26px; height: 22px; }
.option__pair .option__pet + .option__pet { margin-left: -6px; }

@media (max-width: 899px) {
  .passport { max-width: 360px; }
  .passport__body { grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; }
}

/* ---------- Rules ----------
   A document folder: divider tabs on top, a stamped sheet below. */
.folder__tabs { display: flex; gap: 6px; padding-left: 14px; overflow-x: auto; scrollbar-width: none; }
.folder__tabs::-webkit-scrollbar { display: none; }
.folder__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: #efe3cf;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  transform: translateY(6px);
  transition: transform 0.2s var(--ease-out);
}
.folder__tab .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.folder__tab[aria-selected="true"] { background: var(--orange); color: var(--ink); transform: none; }
.folder__tab:focus-visible { outline-offset: -4px; }
@media (hover: hover) { .folder__tab[aria-selected="false"]:hover { transform: translateY(2px); color: var(--ink); } }

.folder__sheet {
  position: relative;
  padding: 26px 20px 24px;
  border-top: 6px solid var(--orange);
  border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(120, 80, 20, 0.12);
  overflow: hidden;
}
.folder__stamp {
  position: absolute;
  top: 22px;
  right: 18px;
  padding: 6px 12px;
  border: 3px solid #a85f00;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a85f00;
  rotate: 8deg;
}
.folder__panel:focus-visible { outline: none; }
.folder__title { max-width: calc(100% - 150px); font-size: var(--fs-h3); font-weight: 750; color: var(--ink); }
.folder__text { max-width: 34em; margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .folder__panel:not([hidden]) { animation: sheet-in 0.3s var(--ease-out); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* timeline: the four stages, in order */
.timeline { position: relative; display: grid; gap: 18px; margin-top: 24px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  border-left: 2px dashed #e2d3bb;
}
.timeline li { position: relative; display: grid; gap: 2px; padding-left: 34px; counter-increment: stage; }
.timeline__dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: var(--white);
}
.timeline b { font-size: 1rem; color: var(--ink); }
.timeline li > span:last-child { font-size: 0.875rem; color: var(--muted); }

.checklist { display: grid; gap: 12px; margin: 20px 0 24px; }
.checklist li { position: relative; padding-left: 30px; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #d9cdb9;
  border-radius: 5px;
}
.checklist a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 599px) {
  .folder__tabs { gap: 4px; padding-left: 0; }
  .folder__tab { flex: 1 1 0; justify-content: center; gap: 6px; padding: 0 8px; font-size: 0.9375rem; }
  .folder__tab .icon { display: none; }
  .folder__stamp { position: static; display: inline-block; margin: 0 0 14px; font-size: 0.75rem; rotate: -3deg; }
  .folder__title { max-width: none; }
}
@media (min-width: 900px) {
  .folder__sheet { padding: 40px 44px 40px; }
  .folder__stamp { top: 32px; right: 40px; font-size: 1rem; }
  /* stages laid out left to right */
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
  .timeline::before { left: 10px; right: 10px; top: 9px; bottom: auto; border-left: 0; border-top: 2px dashed #e2d3bb; }
  .timeline li { padding: 34px 0 0; }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-areas: "intro" "list";
  gap: 24px;
}
.faq__intro { grid-area: intro; }
.faq__list { grid-area: list; }
.faq__art { grid-area: art; }

.faq__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 0.6em;
  color: var(--white);
}
.faq__intro .section-lead { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.faq__intro .link-btn { margin-top: 8px; }

/* pets peek out of an orange panel; the image's straight right edge meets the panel edge.
   Decorative: hidden on narrow phones, beside the intro on tablets, under it on desktop. */
.faq__art {
  display: none;
  position: relative;
  justify-self: start;
  width: 200px;
}
@media (min-width: 600px) {
  .faq__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "intro art" "list list";
  }
  .faq__art { display: block; align-self: end; }
}
.faq__art::before {
  content: "";
  position: absolute;
  inset: 22% 0 0 0;
  border-radius: var(--r-lg);
  background: var(--orange);
}
.faq__art img {
  position: relative;
  width: 72%;
  margin-left: auto;
  border-bottom-right-radius: var(--r-lg);
}

.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 4px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
}
.qa__mark svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  transition: transform 0.25s var(--ease-out);
}
.qa__q { flex: 1; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.qa__chevron {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}
.qa[open] .qa__chevron { transform: rotate(180deg); }
.qa[open] .qa__mark svg { transform: rotate(45deg); }
/* answers arrive as a chat reply from one of the pets */
.qa__a { display: flex; align-items: flex-end; gap: 10px; padding: 2px 4px 20px 0; }
.qa__avatar { flex: none; width: 40px; height: 34px; }
.qa__bubble {
  position: relative;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--card);
}
.qa__typing { display: none; gap: 4px; padding: 6px 2px; }
.qa__typing i { width: 7px; height: 7px; border-radius: 50%; background: #c9b89c; animation: typing 0.9s infinite ease-in-out; }
.qa__typing i:nth-child(2) { animation-delay: 0.15s; }
.qa__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.qa.is-typing .qa__typing { display: inline-flex; }
.qa.is-typing .qa__bubble p { display: none; }

.qa__a p { max-width: 42em; font-size: 0.9375rem; line-height: 1.6; color: var(--ink); }
.qa__a a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (hover: hover) { .qa summary:hover .qa__q { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; } }
@media (prefers-reduced-motion: no-preference) {
  .qa[open] .qa__a { animation: fade-in 0.3s var(--ease-out); }
}

@media (min-width: 900px) {
  .faq__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro list" "art list";
    column-gap: clamp(40px, 5vw, 80px);
    row-gap: 0;
  }
  .faq__art { align-self: start; margin-top: 48px; width: min(100%, 340px); } /* stays put while answers open */
  .qa summary { min-height: 64px; }
  .qa__q { font-size: 1.0625rem; }
}

/* ---------- Final CTA ---------- */
.cta { overflow: hidden; padding-block: 32px 0; }
.cta__grid {
  display: grid;
  justify-items: start;
  gap: 20px;
}
.cta__title { max-width: 12em; }
/* sticker outline, as in the client key visual */
.cta__pets {
  justify-self: center;
  width: min(78%, 300px);
  filter:
    drop-shadow(3px 0 0 var(--orange))
    drop-shadow(-3px 0 0 var(--orange))
    drop-shadow(0 3px 0 var(--orange))
    drop-shadow(0 -3px 0 var(--orange));
}
.cta .btn { order: -1; }
.cta__title { order: -2; }

@media (min-width: 900px) {
  .cta { padding-block: 24px 0; }
  .cta__grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 32px;
  }
  .cta__title, .cta .btn { order: 0; align-self: center; }
  .cta .btn { justify-self: end; }
  .cta__pets { width: 280px; margin-top: 8px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 28px;
  background: var(--graphite-deep);
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}
.site-footer__grid {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.site-footer__partner { width: 120px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__links a,
.site-footer__links .link-plain {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  color: var(--white);
  text-decoration: none;
}
.site-footer__links a:hover,
.site-footer__links .link-plain:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.site-footer__note { font-size: var(--fs-caption); line-height: 1.5; color: #a3a3a3; }

@media (min-width: 900px) {
  .site-footer__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
  }
  .site-footer__partner { padding-left: 32px; border-left: 1px solid #3a3a3a; box-sizing: content-box; }
  .site-footer__links { flex-wrap: nowrap; padding-left: 32px; border-left: 1px solid #3a3a3a; }
  .site-footer__note { max-width: 22em; margin-left: auto; text-align: right; }
}

/* ---------- Modal ---------- */
.modal {
  width: min(100% - 32px, 480px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(18, 18, 18, 0.62); }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in 0.28s var(--ease-out); }
  .modal[open]::backdrop { animation: fade 0.28s; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__body { display: grid; gap: 16px; padding: 24px 20px; }
@media (min-width: 600px) { .modal__body { padding: 32px; } }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__title { font-size: 1.625rem; font-weight: 750; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.modal__subtitle { font-size: 1.25rem; font-weight: 750; color: var(--ink); }
.modal__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -8px -8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
}
.modal__close .icon { width: 22px; height: 22px; }
.modal__done { display: grid; justify-items: start; gap: 14px; }
.modal__done:focus { outline: none; }

.demo-note {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--orange-tint);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink);
}

.receipt-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #cfc7ba;
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 1rem;
}
.field__input::placeholder { color: #8a8a8a; }
.field__input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: var(--fs-caption); color: var(--muted); }
.field__error { font-size: var(--fs-small); font-weight: 500; color: var(--danger); }

.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1.5px dashed #b9b2a6;
  border-radius: var(--r-md);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.dropzone .icon { width: 24px; height: 24px; }
.dropzone__input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.dropzone__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dropzone:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.dropzone.is-filled { border-style: solid; border-color: var(--ink); }
.dropzone.is-invalid { border-color: var(--danger); }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-small); line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }

/* ---------- Countdown to start (fixed, bottom right) ---------- */
.countdown {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.countdown[hidden] { display: none; }
.countdown__num {
  min-width: 1.6em;
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--orange);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown__text { display: grid; line-height: 1.15; }
.countdown__label { font-size: 0.8125rem; color: var(--on-dark-muted); }
.countdown__text b { font-size: 1.0625rem; font-weight: 750; }
.countdown__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.countdown__close .icon { width: 16px; height: 16px; }
@media (hover: hover) { .countdown__close:hover { background: rgba(255, 255, 255, 0.2); } }
.countdown:focus-within { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .countdown:not([hidden]) { animation: countdown-in 0.5s var(--ease-out) 0.8s both; }
}
@keyframes countdown-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .countdown { gap: 10px; padding: 8px 8px 8px 12px; }
  .countdown__num { font-size: 1.375rem; }
  .countdown__label { font-size: 0.75rem; }
  .countdown__text b { font-size: 0.9375rem; }
}
/* keep the toast above the counter */
.toast { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reduced motion ----------
   Tier 1 (hero rise, slides, arrow nudges, smooth scroll) is removed;
   Tier 2 overlays keep a short fade so they don't pop in. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .toast { transform: translate(-50%, 0); transition: opacity 150ms ease-out !important; }
  .site-nav { transform: none; transition: opacity 150ms ease-out, visibility 0s 150ms !important; }
  .site-nav.is-open { transition: opacity 150ms ease-out, visibility 0s !important; }
  .site-header::after { transition: opacity 150ms ease-out !important; }
  .modal[open] { animation: fade 150ms ease-out !important; }
}
