/* tobepopov.ru/karina — Karina's long read. Served under a strict CSP: no inline styles, everything lives here. */

@font-face { font-family: "Dela Gothic One"; font-weight: 400; font-display: swap; src: url(/karina/media/fonts/dela-gothic-one-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Dela Gothic One"; font-weight: 400; font-display: swap; src: url(/karina/media/fonts/dela-gothic-one-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/karina/media/fonts/golos-text-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/karina/media/fonts/golos-text-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(/karina/media/fonts/golos-text-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/karina/media/fonts/golos-text-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/karina/media/fonts/golos-text-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(/karina/media/fonts/golos-text-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/karina/media/fonts/caveat-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/karina/media/fonts/caveat-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --paper: #FFFCF9;
  --ink: #211A16;
  --mute: #6B5F57;
  --flame: #FF5B14;
  --ember: #D3340B;
  --apricot: #FFB07A;
  --blush: #FFE9DC;
  --sand: #F4EEE9;
  --char: #1F1A17;
  --cream: #F6ECE4;
  --line: #E8DAD0;
  --display: "Dela Gothic One", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Golos Text", cursive;
  --col: 41rem;
  --wide: 68rem;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .9 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23211A16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
::selection { background: var(--flame); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sec--dark :focus-visible, .quiz :focus-visible { outline-color: #fff; }
.quiz__box :focus-visible { outline-color: var(--ink); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }
.col { width: min(100% - 2rem, var(--col)); margin-inline: auto; }
.prose p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.muted { color: var(--mute); }
.nw { white-space: nowrap; }
.hand { font: 600 1.45rem/1.15 var(--hand); color: var(--ember); }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 {
  font: 400 clamp(1.7rem, 1.15rem + 2.5vw, 2.9rem)/1.1 var(--display);
  letter-spacing: -.005em;
  margin: 0 0 .75em;
  text-wrap: balance;
}

/* reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--flame); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- hero ---------- */
.hero { padding: clamp(1rem, 3vw, 2rem) 0 0; }
.hero__grid {
  width: min(100% - 2rem, 78rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  min-height: min(100svh, 860px);
}
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .7rem; margin: 0; font-size: .95rem; font-weight: 600; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.byline span { font-weight: 400; color: var(--mute); padding-left: .7rem; border-left: 1.5px solid var(--line); }
.hero h1 {
  font: 400 clamp(2rem, .9rem + 3.5vw, 3.75rem)/1.06 var(--display);
  letter-spacing: -.01em;
  margin: .55em 0 .5em;
  overflow-wrap: break-word;
}
.hero__lead { font-size: clamp(1.15rem, 1rem + .55vw, 1.4rem); line-height: 1.5; max-width: 27em; margin: 0; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: .65rem; margin-top: 2rem;
  font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 2.5px solid var(--flame); padding-bottom: .2rem;
}
.scroll-cue::after {
  content: ""; width: .5em; height: .5em;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
}
.hero__art { position: relative; }
.blob {
  position: absolute; inset: 5% -3% 9% 3%;
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
  background: radial-gradient(110% 95% at 34% 66%, #FFDCC2 0%, #FFA36A 27%, #FF6A26 55%, #E2370C 100%);
  animation: morph 18s ease-in-out infinite alternate;
}
.blob::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grain); opacity: .6; mix-blend-mode: multiply; }
@keyframes morph {
  0% { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
  50% { border-radius: 44% 56% 60% 40% / 46% 58% 42% 54%; }
  100% { border-radius: 52% 48% 40% 60% / 60% 40% 52% 48%; }
}

/* ---------- doodles ---------- */
.dd { display: block; overflow: visible; }
.dd--hero { position: relative; width: 100%; height: auto; }
.dd--clip { overflow: hidden; }
.dd .note { font-family: var(--hand); font-weight: 600; }
.dd text { font-family: var(--text); }
.dd .note, .dd .shake { font-family: var(--hand); }
.dd .shake { font-family: var(--display); }
.dd .eyes { transform-box: fill-box; transform-origin: 50% 55%; animation: blink 5.6s infinite; }
.friend:nth-child(2) .dd .eyes, .dd .peek g:last-child .eyes { animation-delay: 1.7s; }
.friend:nth-child(3) .dd .eyes { animation-delay: 3.1s; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
.dd .tail { transform-box: fill-box; transform-origin: 0 100%; animation: wag .42s ease-in-out infinite alternate; }
@keyframes wag { from { transform: rotate(-10deg); } to { transform: rotate(16deg); } }
.dd .steam { animation: steam 2.8s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.dd .float { animation: bob 3.4s ease-in-out infinite alternate; }
.dd .float--late { animation-delay: -1.6s; }
@keyframes bob { from { transform: translateY(4px); } to { transform: translateY(-8px); } }
.dd .tw { transform-box: fill-box; transform-origin: center; animation: tw 2.6s ease-in-out infinite; }
.dd .tw:nth-of-type(2n) { animation-delay: -1.2s; }
@keyframes tw { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.55) rotate(25deg); } }
.dd .drop { animation: drip 2.2s ease-in infinite; }
@keyframes drip { 0%, 30% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.dd .wave { animation: steam 1.4s ease-in-out infinite; }
.dd .buzz { animation: buzz .9s steps(2) infinite; }
@keyframes buzz { 50% { transform: translateX(2px); } }
.dd .shake { transform-box: fill-box; transform-origin: center; animation: shake 1.6s ease-in-out infinite; }
@keyframes shake { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) scale(1.08); } }
.dd .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dd .bars rect { transform-box: fill-box; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-anim]:not(.is-in) .pop { opacity: 0; transform: translateY(40px); }
  .js [data-anim]:not(.is-in) .peek { opacity: 0; transform: translateY(26px); }
  .js [data-anim]:not(.is-in) .draw { stroke-dashoffset: 1; }
  .js [data-anim]:not(.is-in) .bars rect { transform: scaleY(0); }
  .js [data-anim]:not(.is-in) .wedge { transform: rotate(-60deg) scale(.4); opacity: 0; }
  .js [data-anim]:not(.is-in) .arrow { transform: translate(60px, -60px); opacity: 0; }
  .js .panic:not(.is-in) .bubble { opacity: 0; transform: translateY(14px) scale(.96); }
  .js .stat:not(.is-in) .stat__half { opacity: 0; }
  .dd .pop { transition: opacity .5s ease, transform .9s cubic-bezier(.2, .9, .25, 1.15); }
  .dd .peek { transition: opacity .5s ease .45s, transform .8s cubic-bezier(.2, .9, .25, 1.2) .45s; }
  .dd .draw { transition: stroke-dashoffset 1s ease 1s; }
  .dd .bars rect { transition: transform .8s cubic-bezier(.2, .9, .25, 1.1) .6s; }
  .dd .bars rect:nth-child(2) { transition-delay: .75s; }
  .dd .bars rect:nth-child(3) { transition-delay: .9s; }
  .dd .bars rect:nth-child(4) { transition-delay: 1.05s; }
  .dd .wedge { transform-box: view-box; transform-origin: 110px 110px; transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity .6s; }
  .dd .arrow { transition: transform .5s cubic-bezier(.5, 0, .7, .4) .2s, opacity .2s .2s; }
  .panic .bubble { transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .25, 1.2); }
  .panic .q2 { transition-delay: .35s; }
  .panic .q3 { transition-delay: .7s; }
  .stat__half { transition: opacity .6s ease .8s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- sections ---------- */
.sec { padding-top: clamp(4.5rem, 10vw, 8.5rem); }
/* Stickers peek over the edge on purpose; never let them widen the page (iOS Safari scrolls sideways otherwise). */
.sec, .hero { overflow-x: hidden; overflow-x: clip; }
.sec > * + * { margin-top: clamp(2rem, 4.5vw, 3.25rem); }
.lead { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem); line-height: 1.5; }

.say {
  clear: both;
  font: 400 clamp(1.65rem, 1.15rem + 2.3vw, 2.7rem)/1.14 var(--display);
  margin: 1.3em 0 1em !important;
  text-wrap: balance;
}
.say--small { font-size: clamp(1.3rem, 1.05rem + 1.15vw, 1.85rem); line-height: 1.2; }
.squiggle { display: block; width: min(100%, 11.5em); height: .34em; margin-top: .25em; }
.aside-hand { font: 600 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.15 var(--hand); color: var(--ember); transform: rotate(-2deg); transform-origin: 0 50%; }

/* "nope" list */
.nope { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; max-width: 46rem; }
.nope li {
  position: relative; font: 400 clamp(1.1rem, .95rem + .7vw, 1.5rem)/1.2 var(--display); color: var(--mute);
  padding: .55rem 1.1rem; border: 1.5px dashed #CDBBAE; border-radius: 999px;
}
.nope li::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 50%; height: 4px; border-radius: 4px;
  background: var(--flame); transform: rotate(-6deg);
}
.nope li:nth-child(2)::after { transform: rotate(5deg); }

/* polaroids */
.snaps { display: flex; justify-content: center; align-items: flex-start; gap: clamp(.75rem, 2.5vw, 2rem); max-width: 62rem; padding-top: .75rem; }
.snap {
  position: relative; margin: 0; background: #fff; padding: .55rem .55rem .65rem; border-radius: 6px;
  box-shadow: 0 1px 0 rgba(33, 26, 22, .06), 0 18px 34px -18px rgba(33, 26, 22, .45);
}
.snap::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 82px; height: 22px;
  transform: translateX(-50%) rotate(-4deg); background: rgba(255, 140, 84, .6); mix-blend-mode: multiply;
}
.snap img { width: 100%; border-radius: 3px; object-fit: cover; }
.snap figcaption { font: 600 1.4rem/1 var(--hand); text-align: center; padding: .55rem .25rem 0; }
.snap--a { width: 40%; transform: rotate(-3deg); }
.snap--a img { aspect-ratio: 4 / 3; }
.snap--b { width: 26%; transform: rotate(3deg); margin-top: 2rem; }
.snap--c { width: 26%; transform: rotate(-1.5deg); }
.snap--b img, .snap--c img { aspect-ratio: 3 / 4; }

/* the three friends */
.friends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.friend { padding: 1.25rem 1.25rem 1.5rem; border-radius: 30px; }
.friend .dd { width: 100%; height: auto; margin: 0 0 1rem; }
.friend h3 { font: 600 1.2rem/1.25 var(--text); margin: 0 0 .4rem; }
.friend p { margin: 0; font-size: 1rem; line-height: 1.5; }

/* the warm glow cards (hover on desktop, lit while centred on touch screens). A background layer, not a
   transformed pseudo-element: iOS Safari does not clip those to the rounded corners. */
.glow {
  border: 1.5px solid var(--ink);
  background-color: #fff;
  background-image: radial-gradient(closest-side, #FF5B14 0%, #FF8A4C 36%, #FFC6A0 66%, rgba(255, 214, 190, 0) 100%);
  background-repeat: no-repeat;
  background-size: 170% 150%;
  background-position: 50% -220%;
  transition: background-position .8s cubic-bezier(.2, .75, .2, 1), background-color .5s ease, color .4s ease;
}
.glow.is-lit { background-position: 50% -60%; }
@media (hover: hover) { .glow:hover { background-position: 50% -60%; } }

/* stat */
.stat {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); align-items: center;
  max-width: 52rem; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: 34px; background: var(--blush);
}
.stat .dd { width: 100%; max-width: 200px; }
.stat__text p { margin: 0; }
.stat__num { font: 400 clamp(2.8rem, 2rem + 4vw, 4.8rem)/1 var(--display); margin-bottom: .35rem !important; }
.stat__half { margin-top: 1.1rem !important; font-size: 1.15rem; }

/* empty seats calculator */
.calc { max-width: 56rem; border: 1.5px solid var(--ink); border-radius: 34px; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; }
.calc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.calc__title { margin: 0; font-weight: 600; }
.calc__controls { display: flex; flex-wrap: wrap; gap: .6rem; }
.stepper { display: flex; align-items: center; gap: .35rem; background: var(--blush); border-radius: 999px; padding: .3rem; }
.stepper span { font-size: .95rem; padding: 0 .4rem 0 .7rem; }
.stepper button {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff;
  font: 600 1.25rem/1 var(--text); cursor: pointer; display: grid; place-items: center;
}
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 1.6em; text-align: center; font: 400 1.3rem/1 var(--display); }
.calc__mats { margin: 1.5rem 0; display: grid; gap: .55rem; }
.mats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(.3rem, 1vw, .6rem); }
.mat {
  aspect-ratio: 1 / 1.6; border-radius: clamp(8px, 1.4vw, 14px); border: 1.5px dashed #CDBBAE;
  display: grid; place-items: center; color: var(--ember); font: 400 clamp(1rem, .8rem + 1vw, 1.5rem)/1 var(--display);
  transition: background .3s ease, border-color .3s ease;
}
.mat--on { background: var(--flame); border: 1.5px solid var(--ink); }
.mat--on span {
  width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink);
  background:
    radial-gradient(circle at 34% 52%, var(--ink) 0 11%, transparent 12%),
    radial-gradient(circle at 66% 52%, var(--ink) 0 11%, transparent 12%),
    #fff;
}
.calc__sum {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .2rem 1rem;
  border-top: 1.5px solid var(--line); padding-top: 1.25rem; margin: 0;
}
.calc__sum > b { grid-column: 2; grid-row: 1 / span 2; font: 400 clamp(2.1rem, 1.5rem + 3vw, 3.5rem)/1 var(--display); white-space: nowrap; }
.calc__note { font: 600 1.45rem/1.1 var(--hand); color: var(--ember); }

/* chats */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); max-width: 60rem; }
.chat { margin: 0; padding: 1.4rem; border-radius: 30px; background: var(--sand); display: flex; flex-direction: column; gap: .6rem; }
.chat figcaption { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .98rem; line-height: 1.3; margin-bottom: .5rem; }
.chat figcaption::before {
  content: "✕"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--ink); background: #fff; font-size: .9rem;
}
.chat--ok { background: var(--blush); }
.chat--ok figcaption::before { content: ""; background: var(--flame) var(--check) center / 62% no-repeat; }
.bubble { margin: 0; max-width: 86%; padding: .75rem 1rem; border-radius: 20px; font-size: 1rem; line-height: 1.45; }
.bubble--out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble--in { align-self: flex-start; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-bottom-left-radius: 6px; }

/* term card */
.term {
  display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  max-width: 52rem; background: var(--ink); color: var(--cream); border-radius: 34px; padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.term .dd { width: 100%; max-width: 170px; }
.term p { margin: 0; }
.term__word { font: 400 clamp(1.9rem, 1.4rem + 2vw, 2.6rem)/1 var(--display); color: var(--flame); margin-bottom: .6rem !important; }

/* funnel */
.funnel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 210px); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; max-width: 60rem; margin-inline: auto; }
.funnel__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.funnel__bars li { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: baseline; gap: .3rem .9rem; font-weight: 500; line-height: 1.35; }
.funnel__bars b { font: 400 2.3rem/1 var(--display); }
.funnel__bars li::after {
  content: ""; grid-column: 1 / -1; height: 16px; border-radius: 999px; width: var(--w, 100%);
  background: linear-gradient(90deg, var(--flame), var(--apricot)); border: 1.5px solid var(--ink);
}
.funnel__bars li:nth-child(2) { --w: 30%; }
.funnel__bars li:nth-child(3) { --w: 30%; }
.funnel__bars li:nth-child(3)::after {
  background:
    linear-gradient(90deg, var(--flame) 0 33.3%, transparent 33.3%),
    repeating-linear-gradient(-45deg, #E6D3C6 0 5px, #fff 5px 10px);
}
.funnel__phone { text-align: center; }
.funnel__phone .dd { width: 100%; max-width: 170px; margin: 0 auto .75rem; }
.funnel__phone p { margin: 0; }

/* the find-three-mistakes game */
.game { max-width: 64rem; border-radius: 38px; background: var(--blush); padding: clamp(1rem, 3vw, 2rem); }
.game__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.25rem; }
.game__count { margin: 0; font: 400 1.4rem/1 var(--display); }
.game__count b { font-weight: 400; color: var(--ember); }
.game__how { margin: 0; flex: 1 1 14rem; color: var(--mute); font-size: 1rem; }
.game__board { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.mock { position: relative; background: #fff; border: 1.5px solid var(--ink); border-radius: 24px; overflow: hidden; font-size: .95rem; line-height: 1.4; }
.mock p { margin: 0; }
.mock__cover { position: relative; height: 104px; background: linear-gradient(115deg, #FFD3E1, #FFE9DC 48%, #F6D2EE); overflow: hidden; }
.mock__cover span { position: absolute; width: 46px; height: 42px; background: #fff; opacity: .7; clip-path: path("M23 40 C-8 18 2 -6 23 8 C44 -6 54 18 23 40 Z"); }
.mock__cover span:nth-child(1) { left: 12%; top: 22px; }
.mock__cover span:nth-child(2) { left: 52%; top: 46px; transform: scale(.7) rotate(12deg); }
.mock__cover span:nth-child(3) { left: 80%; top: 14px; transform: scale(1.1) rotate(-10deg); }
.mock__head { position: relative; display: flex; gap: .9rem; padding: 0 1rem .9rem; }
.mock__ava { flex: none; width: 86px; height: 86px; margin-top: -40px; border-radius: 50%; background: #FFE3EC; border: 4px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); overflow: hidden; }
.mock__ava .dd { width: 100%; height: 100%; }
.mock__name { padding-top: .55rem; min-width: 0; }
.mock__title { font-weight: 600; font-size: 1.15rem; }
.mock__status { color: #96697E; }
.mock__meta { font-size: .85rem; color: #998D86; margin-top: .15rem !important; }
.mock__actions { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1rem 1rem; }
.fake { display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1rem; border-radius: 12px; font-weight: 600; font-size: .9rem; }
.fake--main { background: var(--ink); color: #fff; }
.fake--off { background: #EFEAE6; color: #998D86; }
.mock__posts { position: relative; padding: .9rem 1rem 1rem; border-top: 1px solid var(--line); }
.mock__label { font-weight: 600; margin-bottom: .6rem !important; }
.mock__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.mock__grid li { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: linear-gradient(135deg, #F5AFC4, #FBD7C2); }
.mock__grid li:nth-child(2) { background: linear-gradient(135deg, #F8C9B4, #F3A6BD); }
.mock__grid li:nth-child(3) { background: linear-gradient(135deg, #E9B7E0, #FFD9E4); }
.mock__grid li:nth-child(4) { background: linear-gradient(135deg, #FFD2C0, #F6B2C9); }
.mock__grid li:nth-child(5) { background: linear-gradient(135deg, #F3A8BF, #F9CBB9); }
.mock__grid li:nth-child(6) { background: linear-gradient(135deg, #FBDCCB, #EBB4DB); }
.mock__post { margin-top: .7rem !important; color: #96697E; }
.spot { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; margin: 0; background: transparent; border-radius: 16px; cursor: pointer; }
.spot i { display: none; }
@media (hover: hover) { .spot:not(.is-found):hover { background: rgba(255, 91, 20, .07); } }
.spot.is-found { cursor: default; background: rgba(255, 91, 20, .1); box-shadow: inset 0 0 0 3px var(--flame); }
.spot.is-found i {
  display: grid; place-items: center; position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--flame); border: 1.5px solid var(--ink); font: 400 .95rem/1 var(--display); font-style: normal;
  animation: popin .4s cubic-bezier(.2, .9, .25, 1.4);
}
@keyframes popin { from { transform: scale(0); } }
.spot--1 { inset: .4rem .4rem 0; }
.spot--2 { inset: -.2rem .4rem .4rem; }
.spot--3 { inset: .4rem; }
.rivals { display: grid; gap: .75rem; }
.rivals p { margin: 0; }
.rivals__label { font: 600 1.5rem/1.1 var(--hand); color: var(--ember); }
.rival { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 1rem; font-size: .95rem; }
.rival__name { font-weight: 600; }
.rival__rate { color: var(--mute); font-size: .9rem; margin: .1rem 0 .6rem !important; }
.rival ul { list-style: none; margin: 0 0 .8rem; padding: 0; }
.rival li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.rival li b { white-space: nowrap; }
.rival .fake { width: 100%; }
.game__label { margin: 2rem 0 1rem; font: 400 1.5rem/1 var(--display); }
.errs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: err; }
.err { position: relative; counter-increment: err; background: #fff; border: 1.5px solid var(--ink); border-radius: 24px; padding: 1.25rem; overflow: hidden; }
.err::before {
  content: counter(err); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--flame); border: 1.5px solid var(--ink); font: 400 1.1rem/1 var(--display); margin-bottom: .85rem;
}
.err h3 { font: 600 1.1rem/1.3 var(--text); margin: 0 0 .5rem; }
.err p { margin: 0; font-size: .98rem; line-height: 1.5; }
.js .err:not(.is-open) > * { filter: blur(7px); opacity: .55; user-select: none; }
.js .err:not(.is-open)::after {
  content: "Сначала найди сама"; position: absolute; inset: auto 1rem 1.2rem; text-align: center;
  font: 600 1.5rem/1.1 var(--hand); color: var(--ember);
}
.err.is-open > * { transition: filter .5s ease, opacity .5s ease; }

/* dark money section */
.sec--dark {
  position: relative; overflow: clip; margin-top: clamp(4.5rem, 10vw, 8.5rem);
  padding-bottom: clamp(4.5rem, 10vw, 8.5rem); background: var(--char); color: #F3E9E1;
}
.sec--dark::before {
  content: ""; position: absolute; width: 80vmax; height: 80vmax; right: -38vmax; top: -40vmax; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 91, 20, .5), rgba(255, 91, 20, 0));
}
.sec--dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--grain); opacity: .35; mix-blend-mode: soft-light; }
.sec--dark > * { position: relative; z-index: 1; }
.sec--dark h2 { color: #fff; }
.clients { max-width: 60rem; margin-bottom: 0; }
.clients__switch { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; border-radius: 24px; background: rgba(255, 255, 255, .08); margin-bottom: 1.5rem; }
.clients__switch button {
  display: grid; text-align: left; gap: .1rem; border: 0; border-radius: 20px; padding: .65rem 1.2rem;
  background: transparent; color: #F3E9E1; font-size: .9rem; line-height: 1.25; cursor: pointer; transition: background .25s ease, color .25s ease;
}
.clients__switch b { font: 400 1.15rem/1.1 var(--display); }
.clients__switch [aria-pressed="true"] { background: var(--flame); color: var(--ink); }
.clients__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.clients__list li { display: grid; justify-items: center; gap: .45rem; text-align: center; padding: 1.25rem .9rem; border-radius: 26px; }
.glow--dark { background-image: none; background-color: #2B2420; border-color: #4A3E37; color: #F3E9E1; }
.glow--dark.is-lit { background-color: var(--flame); border-color: var(--ink); color: var(--ink); }
@media (hover: hover) { .glow--dark:hover { background-color: var(--flame); border-color: var(--ink); color: var(--ink); } }
.clients__list .dd { width: 86px; height: auto; background: var(--cream); border-radius: 50%; padding: 6px; }
.clients__list span { font-size: .95rem; line-height: 1.3; }
.clients__list b { font: 400 1.3rem/1 var(--display); white-space: nowrap; }
.clients__total {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem;
  margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1.5px solid #4A3E37;
}
.clients__total > span { font-size: 1.1rem; }
.clients__total b { font: 400 clamp(2.5rem, 1.8rem + 3.4vw, 4.4rem)/1 var(--display); color: var(--flame); white-space: nowrap; }
.friday { display: flex; align-items: center; gap: 1.25rem; max-width: 40rem; margin-inline: auto; }
.friday .dd { flex: none; width: 128px; height: auto; background: var(--cream); border-radius: 50%; padding: 6px 4px 0; }
.friday__chat { flex: 1; }
.bubble--loud { display: grid; gap: .45rem; max-width: 100%; padding: 1rem 1.25rem; font: 400 clamp(1.15rem, .95rem + 1.1vw, 1.65rem)/1.2 var(--display); }
.bubble--loud time { justify-self: end; font: 400 .8rem/1 var(--text); color: var(--mute); }

/* first client */
.message { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1rem, 3vw, 2rem); align-items: center; max-width: 60rem; margin-inline: auto; }
.message__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 34px; border: 1.5px solid var(--ink); }
.message__chat { display: flex; flex-direction: column; gap: .6rem; background: var(--sand); border-radius: 30px; padding: 1.25rem; }
.message__chat .bubble--out { max-width: 94%; }
.with-art::after { content: ""; display: table; clear: both; }
.side-art { float: right; width: min(44%, 250px); margin: .25rem -1.5rem 1rem 1.5rem; }
.side-art .dd { width: 100%; height: auto; }
.plan { max-width: 60rem; }
.plan__title { margin: 0 0 1rem; font: 400 1.5rem/1.1 var(--display); }
.plan__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: st; }
.plan__steps li { counter-increment: st; display: flex; flex-direction: column; justify-content: flex-end; min-height: 10rem; padding: 1.25rem; border-radius: 26px; }
.plan__steps b { font: 600 1.08rem/1.35 var(--text); }
.plan__steps b::before { content: counter(st); display: block; margin-bottom: auto; padding-bottom: 1.1rem; font: 400 2.4rem/1 var(--display); color: var(--flame); }
.plan__terms { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.plan__terms span { border: 1.5px solid var(--ink); border-radius: 999px; padding: .45rem 1rem; font-size: .95rem; font-weight: 600; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 60rem; }
.checks li { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-radius: 22px; background: var(--blush); font: 600 1.08rem/1.3 var(--text); }
.checks li::before { content: ""; flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--flame) var(--check) center / 62% no-repeat; }
.contacts { max-width: 25rem; margin-inline: auto; padding: 1.25rem 1.25rem .9rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 34px; transform: rotate(-1.5deg); }
.contacts__title { margin: 0 0 .4rem; font: 400 1.3rem/1.2 var(--display); }
.contacts ul { list-style: none; margin: 0; padding: 0; }
.contacts li { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.contacts i { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--blush); font-style: normal; font-weight: 600; }
.contacts li:first-child i { background: var(--flame); }
.contacts span { flex: 1; display: grid; line-height: 1.25; }
.contacts small { font-size: .85rem; color: var(--mute); }
.contacts em { font-style: normal; font-size: .8rem; font-weight: 600; white-space: nowrap; padding: .3rem .7rem; border-radius: 999px; background: var(--flame); }
.contacts figcaption { margin-top: .8rem; text-align: center; font-size: 1.3rem; }

/* panic */
.panic { position: relative; max-width: 46rem; min-height: 25rem; display: grid; place-items: center; margin-inline: auto; }
.panic .dd { width: min(250px, 60%); height: auto; }
.panic .bubble { position: absolute; max-width: 15.5rem; }
.panic .q1 { top: 0; left: 0; }
.panic .q2 { top: 22%; right: 0; }
.panic .q3 { bottom: 0; left: 8%; }
.path { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 64rem; counter-reset: p; }
.path li { counter-increment: p; display: flex; align-items: flex-end; min-height: 10rem; padding: 1.25rem; border-radius: 26px; }
.path span { display: block; font: 600 1.08rem/1.35 var(--text); }
.path span::before { content: counter(p); display: block; margin-bottom: 1.2rem; font: 400 2.4rem/1 var(--display); color: var(--flame); }

/* about Karina */
.me { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4.5vw, 4rem); align-items: center; max-width: 62rem; }
.me__photo { margin: 0; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 240px 240px 34px 34px; }
.me__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; }
.me__name { margin-bottom: .55em !important; font: 400 clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem)/1.02 var(--display); }
.sticker {
  display: inline-flex !important; align-items: center; gap: .8rem; margin-top: .4rem !important; padding: .45rem 1.4rem .45rem .5rem;
  background: var(--flame); border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; line-height: 1.2; transform: rotate(-3deg);
}
.sticker b { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ink); color: #fff; font: 400 1.4rem/1 var(--display); }
.album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.25rem); align-items: start; max-width: 62rem; padding-top: .75rem; }
.snap--d { grid-row: span 2; align-self: stretch; display: flex; flex-direction: column; transform: rotate(-2deg); }
.snap--d img { flex: 1; min-height: 0; height: 100%; object-position: 50% 30%; }
.snap--e { transform: rotate(2.5deg); }
.snap--f { transform: rotate(-1.5deg); }
.snap--e img, .snap--f img, .snap--g img { aspect-ratio: 4 / 5; }
.snap--g { transform: rotate(1.5deg); }
.album__doodle .dd { width: 100%; height: auto; }

/* quiz */
.sec--quiz { padding-top: clamp(4.5rem, 10vw, 8rem); }
.quiz {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 3vw, 2.5rem); align-items: end; max-width: 64rem; padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) 0;
  border-radius: 42px; background: radial-gradient(120% 120% at 18% 100%, #FFC09A 0%, #FF6E2B 42%, #E2370C 100%);
}
.quiz::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); opacity: .55; mix-blend-mode: multiply; }
.quiz__art .dd { width: 100%; height: auto; }
.quiz__box { align-self: stretch; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 30px 30px 0 0; }
.quiz__box h2 { margin-bottom: .6em; }
.quiz__start p, .quiz__result p { margin: 0 0 1.25rem; }
.quiz__skip { display: inline-block; margin-top: 1rem; color: var(--ink); font-weight: 600; text-decoration-color: var(--flame); text-decoration-thickness: 2px; text-underline-offset: 4px; }
[data-quiz-start], .quiz__steps { display: none; }
.js [data-quiz-start] { display: inline-flex; }
.js .quiz__skip { margin-left: 1.25rem; }
.quiz.is-running .quiz__steps { display: block; }
.quiz.is-running .quiz__start, .quiz.is-done .quiz__start, .quiz.is-done .quiz__steps { display: none; }
.q { display: none; gap: .6rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.q.is-current { display: grid; animation: qin .35s ease; }
@keyframes qin { from { opacity: 0; transform: translateX(16px); } }
.q legend { display: grid; gap: .3rem; padding: 0; margin-bottom: .9rem; font: 600 1.3rem/1.3 var(--text); }
.q legend span { font-size: .9rem; color: var(--mute); }
.q button {
  text-align: left; padding: .9rem 1.1rem; border: 1.5px solid var(--ink); border-radius: 16px; background: #fff;
  font: 500 1.05rem/1.3 var(--text); color: var(--ink); cursor: pointer; transition: background .2s ease;
}
@media (hover: hover) { .q button:hover { background: var(--blush); } }
.q button[aria-pressed="true"] { background: var(--flame); }
.quiz__verdict { font: 400 clamp(1.4rem, 1.1rem + 1.4vw, 2rem)/1.15 var(--display); }
.quiz__result:focus { outline: none; }
.quiz__again { display: block; margin-top: 1rem; padding: 0; border: 0; background: none; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .95rem; }

/* program + pay */
.sec--program { padding-top: clamp(3.5rem, 8vw, 6rem); }
.modules { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 66rem; }
.modules li { display: flex; flex-direction: column; min-height: 15rem; padding: 1.4rem; border-radius: 28px; }
.modules__n { font-size: .9rem; font-weight: 600; color: var(--mute); }
.modules b { margin: auto 0 .6rem; padding-top: 1.5rem; font: 400 1.3rem/1.15 var(--display); }
.modules p { margin: 0; font-size: .98rem; line-height: 1.45; }
.pay { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 8vw, 6rem); }
.pay p { margin: 0; color: var(--mute); font-size: .95rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.5rem;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff;
  font: 600 1.02rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--big { padding: 1.05rem 1.9rem; font-size: 1.12rem; }
.btn--pay { padding: 1.3rem 3rem; background: var(--flame); color: var(--ink); font-size: 1.3rem; box-shadow: 0 20px 40px -20px rgba(211, 52, 11, .9); }
.btn--pay:hover { box-shadow: 0 26px 46px -18px rgba(211, 52, 11, .9); }
.foot { padding: 2rem 1rem 3rem; text-align: center; color: var(--mute); font-size: .9rem; border-top: 1px solid var(--line); }
.foot p { margin: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__art { max-width: 620px; width: 100%; justify-self: center; }
  .game__board { grid-template-columns: minmax(0, 1fr); }
  .rivals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rivals__label { grid-column: 1 / -1; }
  .errs, .plan__steps, .checks { grid-template-columns: minmax(0, 1fr); }
  .plan__steps li { min-height: 0; }
  .path, .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz { grid-template-columns: minmax(0, 1fr); }
  .quiz__art { max-width: 300px; width: 80%; justify-self: center; order: 2; margin-top: -.5rem; }
  .quiz__box { border-radius: 30px; border-bottom: 1.5px solid var(--ink); }
  .quiz { padding-bottom: 0; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .friends { grid-template-columns: minmax(0, 1fr); }
  .friend .dd { max-width: 300px; margin-inline: auto; }
  .stat, .term { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .stat .dd { max-width: 150px; }
  .term .dd { max-width: 130px; }
  .versus { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: minmax(0, 1fr); }
  .funnel__phone { display: flex; align-items: center; gap: 1rem; text-align: left; }
  .funnel__phone .dd { width: 100px; margin: 0; flex: none; }
  .message { grid-template-columns: minmax(0, 1fr); }
  .message__chat { margin: -5rem 1rem 0; position: relative; }
  .side-art { float: none; width: 230px; margin: 0 auto 1.5rem; }
  .me { grid-template-columns: minmax(0, 1fr); }
  .me__photo { max-width: 340px; }
  .album { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album__doodle { align-self: center; }
  .snaps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap--a { grid-column: 1 / -1; width: 86%; justify-self: center; }
  .snap--b, .snap--c { width: auto; margin-top: 0; }
  .panic { min-height: 0; display: flex; flex-direction: column; gap: .6rem; }
  .panic .bubble { position: static; max-width: 88%; }
  .panic .q2 { align-self: flex-end; }
  .panic .dd { width: 200px; margin-top: .5rem; }
  .calc__sum { grid-template-columns: minmax(0, 1fr); }
  .calc__sum > b { grid-column: 1; grid-row: auto; }
}
@media (max-width: 520px) {
  .byline span { border-left: 0; padding-left: 0; flex-basis: 100%; margin-left: calc(44px + .7rem); margin-top: -.6rem; }
  .btn--big { padding: .95rem 1.4rem; }
  .rivals, .path, .modules, .clients__list { grid-template-columns: minmax(0, 1fr); }
  .clients__list li { grid-template-columns: 64px minmax(0, 1fr) auto; justify-items: start; text-align: left; align-items: center; padding: .8rem 1rem; }
  .clients__list .dd { width: 64px; }
  .path li, .modules li { min-height: 0; }
  .modules b { padding-top: .8rem; }
  .clients__switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .friday .dd { width: 96px; }
  .js .quiz__skip { margin-left: 0; display: block; }
}

/* ---------- stickers between paragraphs (second pass: a picture every couple of paragraphs) ---------- */
.prose { display: flow-root; }
.side-art--l { float: left; margin: .25rem 1.5rem 1rem -1.5rem; }
.side-art .hand { margin: .35rem 0 0; text-align: center; }
.dd .big { font-family: var(--display); }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; max-width: 46rem; margin: 0 auto; }
.duo__item { text-align: center; }
.duo__item .dd { width: 100%; max-width: 230px; margin: 0 auto; }
.duo__item .hand { margin: .35rem 0 0; }
.duo__vs { margin: 0; font: 400 1.3rem/1 var(--display); color: var(--mute); }

.stick {
  --r: 4deg; position: relative; float: right; width: 9.5rem; margin: .3rem -2.5rem 1rem 1.25rem !important; padding: 1.1rem .8rem .9rem;
  background: #FFD9C0; font: 600 1.6rem/1.05 var(--hand); text-align: center; transform: rotate(var(--r));
  box-shadow: 0 12px 22px -14px rgba(33, 26, 22, .55);
}
.stick::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; transform: translateX(-50%) rotate(-5deg);
  background: rgba(255, 140, 84, .55); mix-blend-mode: multiply;
}

.shift { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); align-items: center; gap: .5rem; max-width: 46rem; margin-inline: auto; }
.shift__from { position: relative; display: grid; place-items: center; min-height: 8rem; padding: 1rem; border: 1.5px dashed #CDBBAE; border-radius: 28px; }
.shift__scribble { position: absolute; inset: 12% 8%; width: 84%; height: 76%; opacity: .75; }
.shift__from span { position: relative; padding: .1rem .5rem; background: var(--paper); font: 600 1.75rem/1.1 var(--hand); color: var(--mute); }
.shift__to { display: grid; gap: .35rem; align-content: center; min-height: 8rem; padding: 1.2rem 1.4rem; background: var(--flame); border: 1.5px solid var(--ink); border-radius: 28px; }
.shift__to b { font: 400 1.25rem/1.15 var(--display); }
.shift__to span { font-size: .95rem; line-height: 1.35; }
.shift__arrow { width: 100%; height: auto; }

.nope--dark li { color: #BBAEA5; border-color: #5C4E46; }
.yes-chip {
  width: min(100% - 2rem, 34rem); margin-inline: auto; padding: .9rem 1.5rem; text-align: center;
  background: var(--flame); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 26px; font-weight: 600; line-height: 1.35;
}

.notepad {
  position: relative; width: min(100% - 2.5rem, 26rem); margin-inline: auto; padding: 2rem 1.4rem 1.1rem 3rem;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent 2.1rem, #FFB08A 2.1rem, #FFB08A calc(2.1rem + 2px), transparent calc(2.1rem + 2px)),
    repeating-linear-gradient(180deg, transparent 0 2.4rem, #EFDCD0 2.4rem calc(2.4rem + 1px));
  background-position: 0 0, 0 1.65rem;
  border: 1.5px solid var(--ink); border-radius: 8px 8px 22px 22px; transform: rotate(-1.5deg);
  box-shadow: 0 18px 30px -20px rgba(33, 26, 22, .55);
}
.notepad::before {
  content: ""; position: absolute; top: -11px; left: 1.4rem; right: 1.4rem; height: 22px;
  background: radial-gradient(circle, var(--paper) 0 4px, var(--ink) 4.5px 6.5px, transparent 7px) 0 0 / 26px 22px repeat-x;
}
.notepad__title { margin: 0; font: 400 1.1rem/2.4rem var(--display); }
.notepad ol { margin: 0; padding: 0 0 0 1.2rem; font: 600 1.5rem/2.4rem var(--hand); }
.notepad .dd { position: absolute; right: -1.6rem; bottom: -1.4rem; width: 112px; height: auto; }

.replies { display: flex; flex-direction: column; gap: .55rem; max-width: 28rem; margin-inline: auto; }
.replies .bubble { max-width: 82%; }
.bubble--yes { background: var(--flame); font-weight: 600; }

.has-peek { position: relative; }
.peek-dog { position: absolute; top: -.5rem; right: -9rem; width: 118px; transform: rotate(-14deg); }
.peek-dog--l { right: auto; left: -9rem; transform: rotate(12deg); }
.peek-dog .dd { width: 100%; height: auto; }

.pic { max-width: 320px; margin-inline: auto; }
.pic .dd { width: 100%; height: auto; }

.route { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem 0; max-width: 54rem; }
.route { counter-reset: rt; gap: .6rem; }
.route li {
  counter-increment: rt; display: inline-flex; align-items: center; gap: .55rem; padding: .4rem 1rem .4rem .4rem;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .98rem; font-weight: 600; line-height: 1.25;
}
.route li::before {
  content: counter(rt); flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--flame); border: 1.5px solid var(--ink); font: 400 .9rem/1 var(--display);
}
.route li:last-child { background: var(--ink); color: #fff; }

.badges { float: right; display: flex; gap: .4rem; margin: .2rem -1.5rem .8rem 1.25rem; }
.badge {
  --r: -6deg; display: grid; place-content: center; width: 6.2rem; height: 6.2rem; border-radius: 50%; text-align: center;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink); font: 400 2.1rem/1 var(--display); transform: rotate(var(--r));
}
.badge small { display: block; margin-top: .2rem; font: 600 .85rem/1.1 var(--text); }
.badge--o { --r: 8deg; background: var(--flame); color: var(--ink); font: 600 .95rem/1.15 var(--text); padding: .6rem; }

.doubts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 44rem; margin-inline: auto; text-align: center; }
.doubts .dd { width: 100%; max-width: 116px; height: auto; margin: 0 auto .4rem; }
.doubts p { margin: 0; font: 600 1.4rem/1.1 var(--hand); color: var(--ember); }

.arrow-down { width: 150px; margin-inline: auto; }
.arrow-down .dd { width: 100%; height: auto; }

/* idle motion of the new stickers */
.dd .print { animation: print 2.8s ease-in-out infinite; }
@keyframes print { 0% { transform: translateY(18px); } 55%, 100% { transform: translateY(0); } }
.dd .coin-drop { animation: coindrop 2.4s ease-in infinite; }
@keyframes coindrop { 0% { transform: translateY(-8px); opacity: 0; } 15% { opacity: 1; } 72% { transform: translateY(42px); opacity: 1; } 82%, 100% { transform: translateY(46px); opacity: 0; } }
.dd .rise { animation: rise 2.4s ease-out infinite; }
.dd .rise--2 { animation-delay: -.8s; }
.dd .rise--3 { animation-delay: -1.6s; }
@keyframes rise { 0% { transform: translateY(16px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
.dd .stamp { transform-box: fill-box; transform-origin: center; }
.dd .moth { animation: bob 1.5s ease-in-out infinite alternate; }
.dd .wing-l, .dd .wing-r { transform-box: fill-box; animation: flap .2s ease-in-out infinite alternate; }
.dd .wing-l { transform-origin: 100% 60%; }
.dd .wing-r { transform-origin: 0 60%; }
@keyframes flap { to { transform: scaleX(.45); } }
.dd .press { animation: press 1.8s ease-in-out infinite; }
.dd .press--2 { animation-delay: .3s; }
.dd .press--3 { animation-delay: .6s; }
@keyframes press { 0%, 30%, 100% { transform: translateY(0); } 12% { transform: translateY(7px); } }
.dd .reel { animation: reel 1.1s linear infinite; }
.dd .reel--2 { animation-duration: .8s; }
.dd .reel--3 { animation-duration: 1.4s; }
@keyframes reel { to { transform: translateY(-120px); } }
.dd .lever { transform-box: fill-box; transform-origin: 0 100%; animation: lever 2.6s ease-in-out infinite; }
@keyframes lever { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(28deg); } }
.dd .grr { transform-box: fill-box; transform-origin: 50% 100%; animation: grr 1.8s ease-in-out infinite; }
@keyframes grr { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-5deg); } 72% { transform: rotate(5deg); } 78% { transform: rotate(-4deg); } 84% { transform: rotate(3deg); } }
.dd .ring, .dd .flick { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.dd .spin { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dd .bob { animation: bob 1.4s ease-in-out infinite alternate; }
.dd .write { transform-box: fill-box; transform-origin: 20% 80%; animation: write .45s ease-in-out infinite alternate; }
@keyframes write { from { transform: rotate(-4deg) translateX(-3px); } to { transform: rotate(4deg) translateX(3px); } }
.dd .fall { animation: fall 2s ease-in infinite; }
.dd .fall--2 { animation-delay: -.7s; }
.dd .fall--3 { animation-delay: -1.3s; }
@keyframes fall { 0% { transform: translateY(-14px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(58px); opacity: 1; } }
.dd .babywave { transform-box: fill-box; transform-origin: 0 100%; animation: babywave .9s ease-in-out infinite alternate; }
@keyframes babywave { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
.nope li, .sticker, .stick, .badge, .yes-chip { animation: wob 5s ease-in-out infinite; }
.nope li:nth-child(2) { animation-delay: -1.7s; }
.nope li:nth-child(3), .badge--o { animation-delay: -3.3s; }
.sticker { --r: -3deg; }
@keyframes wob { 0%, 100% { transform: rotate(var(--r, 0deg)); } 50% { transform: rotate(calc(var(--r, 0deg) + 2.5deg)) translateY(-3px); } }

@media (prefers-reduced-motion: no-preference) {
  .js [data-anim]:not(.is-in) .stamp { transform: scale(1.8); opacity: 0; }
  .dd .stamp { transition: transform .35s cubic-bezier(.5, 0, .75, 0) .5s, opacity .2s .5s; }
  .js .replies:not(.is-in) .bubble, .js .route:not(.is-in) li, .js .notepad:not(.is-in) li { opacity: 0; transform: translateY(10px) scale(.96); }
  .replies .bubble, .route li, .notepad li { transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .25, 1.25); }
  .replies .bubble:nth-child(2), .route li:nth-child(2), .notepad li:nth-child(2) { transition-delay: .3s; }
  .replies .bubble:nth-child(3), .route li:nth-child(3), .notepad li:nth-child(3) { transition-delay: .6s; }
  .replies .bubble:nth-child(4), .route li:nth-child(4) { transition-delay: 1.1s; }
  .route li:nth-child(5) { transition-delay: 1.2s; }
  .route li:nth-child(6) { transition-delay: 1.4s; }
  .route li:nth-child(7) { transition-delay: 1.6s; }
  .js .peek-dog:not(.is-in) { opacity: 0; transform: translateX(70px) rotate(24deg); }
  .js .peek-dog--l:not(.is-in) { transform: translateX(-70px) rotate(-24deg); }
  .peek-dog { transition: opacity .4s ease .2s, transform .8s cubic-bezier(.2, .9, .25, 1.3) .2s; }
}

@media (max-width: 1180px) {
  .peek-dog { position: relative; top: auto; right: auto; float: right; width: 92px; margin: -.4rem -1.7rem .4rem .8rem; }
  .peek-dog--l { left: auto; float: left; margin: -.4rem .8rem .4rem -1.7rem; }
}
@media (max-width: 760px) {
  .side-art, .side-art--l { float: none; width: min(250px, 74%); margin: 0 auto 1.4rem; }
  .stick { float: none; display: block; margin: 0 auto 1.4rem !important; }
  .badges { float: none; justify-content: center; margin: 0 0 1.4rem; }
  .shift { grid-template-columns: minmax(0, 1fr); max-width: 24rem; }
  .shift__arrow { width: 64px; justify-self: center; transform: rotate(90deg); margin: -.4rem 0; }
}
@media (max-width: 520px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo__vs { display: none; }
  .duo__item .hand { font-size: 1.25rem; }
  .doubts { gap: .5rem; }
  .doubts p { font-size: 1.2rem; }
  .route { justify-content: flex-start; }
}

/* 4 x 50 000 = 200 000 */
.equation {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem .8rem;
  width: min(100% - 2rem, 50rem); margin-inline: auto; text-align: center;
}
.equation span { padding: .55rem 1.1rem; border: 1.5px solid #5C4E46; border-radius: 999px; font: 400 clamp(1.1rem, .9rem + 1vw, 1.5rem)/1.1 var(--display); color: #fff; }
.equation i { font: 400 1.6rem/1 var(--display); font-style: normal; color: #BBAEA5; }
.equation b { padding: .6rem 1.3rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--flame); color: var(--ink); font: 400 clamp(1.3rem, 1rem + 1.6vw, 2.1rem)/1.1 var(--display); }
.side-art--sm { width: min(36%, 190px); }
.dd .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 2.8s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.dd .poke { animation: poke 2.4s ease-in-out infinite; }
@keyframes poke { 0%, 55%, 100% { transform: translate(0, 0); } 70% { transform: translate(-12px, 12px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .equation:not(.is-in) > * { opacity: 0; transform: translateY(12px) scale(.9); }
  .equation > * { transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .25, 1.3); }
  .equation > :nth-child(2) { transition-delay: .15s; }
  .equation > :nth-child(3) { transition-delay: .3s; }
  .equation > :nth-child(4) { transition-delay: .45s; }
  .equation > :nth-child(5) { transition-delay: .7s; }
}
@media (max-width: 760px) {
  .side-art--sm { width: min(190px, 60%); }
}

/* On phones the family drawing gets a full row, so the daughter is easy to see. */
@media (max-width: 760px) {
  .snap--d { grid-row: auto; }
  .album__doodle { grid-column: 1 / -1; width: 100%; max-width: 420px; justify-self: center; }
}
