:root {
  --bg: #fbf7f1;
  --bg-tint: #f3ebdf;
  --card: #ffffff;
  --text: #2b2420;
  --muted: #7a6c60;
  --accent: #b5652b;
  --accent-soft: #f0dcc8;
  --gold: #c9a24a;
  --line: #e6dccf;
  --road: #e9dccb;
  --road-edge: #d8c6af;
  --shadow: 0 10px 30px rgba(70, 45, 20, 0.1);
  --radius: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

/* Тёмная тема: по настройке устройства или по кнопке ☀️/🌙 (data-theme на <html>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1815;
    --bg-tint: #24201b;
    --card: #2b2621;
    --text: #f2ebe2;
    --muted: #b3a595;
    --accent: #e0915a;
    --accent-soft: #4a3526;
    --line: #3a332c;
    --road: #3a322a;
    --road-edge: #4a4036;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --tagline: #fff;
    --gold-grad: linear-gradient(120deg, #7a5a14 0%, #c9a24a 18%, #f7e7a1 32%, #d4af37 48%, #fff4c2 60%, #b8902f 78%, #7a5a14 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1815;
  --bg-tint: #24201b;
  --card: #2b2621;
  --text: #f2ebe2;
  --muted: #b3a595;
  --accent: #e0915a;
  --accent-soft: #4a3526;
  --line: #3a332c;
  --road: #3a322a;
  --road-edge: #4a4036;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --tagline: #fff;
  --gold-grad: linear-gradient(120deg, #7a5a14 0%, #c9a24a 18%, #f7e7a1 32%, #d4af37 48%, #fff4c2 60%, #b8902f 78%, #7a5a14 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 56px 16px 0;
  background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 62%);
}
.hero > * { position: relative; z-index: 1; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 8.5vw, 5.6rem); line-height: 1; margin: 0 0 34px; }
h1 .gold-text { font-style: italic; }
h1:has(+ .hero-tagline) { margin-bottom: 14px; }
.hero-tagline {
  margin: 0 0 34px; color: var(--tagline); font-family: var(--serif); font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem); letter-spacing: .02em;
}
.hero-tagline:empty { display: none; }
/* на светлой теме белый не виден — там текст тёмный */
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 40ch; margin: 58px 0 0; }
.scroll-hint { margin-top: 28px; color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; }
.scroll-hint span { font-size: 1.4rem; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(8px); } }

/* Золото: на светлом фоне — насыщеннее и темнее, на тёмном — ярче */
:root {
  --tagline: var(--text);
  --gold-grad: linear-gradient(120deg, #5e420b 0%, #9a7019 18%, #d2a83f 32%, #8a6312 48%, #e0bd5a 60%, #8f6a17 78%, #5e420b 100%);
}
.gold-text {
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 220% 0; } }

.jubilee {
  position: relative;
  padding: 3px; border-radius: 22px;
  background: var(--gold-grad); background-size: 220% 100%; animation: shimmer 6s linear infinite;
  box-shadow: 0 0 40px color-mix(in srgb, var(--gold) 35%, transparent), 0 18px 40px rgba(0,0,0,.18);
}
.jubilee-frame {
  position: relative; border-radius: 19px; background: var(--bg);
  padding: clamp(22px, 4vw, 34px) clamp(36px, 7vw, 70px) clamp(22px, 4vw, 30px);
}
.jubilee-frame::before {
  content: ""; position: absolute; inset: 8px; border-radius: 13px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
}
.corner { position: absolute; font-size: 15px; line-height: 1; color: #e2bf5a; text-shadow: 0 0 8px rgba(240, 200, 90, .7); }
.corner.tl { top: 1px; left: 3px; } .corner.tr { top: 1px; right: 3px; }
.corner.bl { bottom: 1px; left: 3px; } .corner.br { bottom: 1px; right: 3px; }
.jubilee-age { display: flex; align-items: baseline; justify-content: center; gap: 10px; font-family: var(--serif); font-weight: 600; line-height: .9; }
/* lining-цифры: у «5» в этом шрифте по умолчанию хвост уходит под строку и обрезается золотой заливкой */
.jubilee-age span { font-size: clamp(6rem, 22vw, 10rem); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; padding: 0 .04em .12em; filter: drop-shadow(0 4px 10px rgba(120, 85, 20, .3)); }
.jubilee-age small { font-size: clamp(1.8rem, 5vw, 2.6rem); font-style: italic; }
.jubilee-divider { display: flex; align-items: center; gap: 12px; margin: 10px auto 12px; max-width: 280px; }
.jubilee-divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.jubilee-divider b { font-size: 1.1rem; }
.jubilee-date { font-weight: 700; letter-spacing: .26em; text-transform: uppercase; font-size: clamp(.95rem, 2.6vw, 1.25rem); }

.hero-stars { position: absolute; inset: -46px -120px; pointer-events: none; z-index: -1; }
@media (max-width: 699px) { .hero-stars { inset: -40px -14px; } }
.hero-star { position: absolute; transform: translate(-50%, -50%); animation: twinkle 3s ease-in-out infinite; }
.hero-star svg { width: 100%; height: 100%; fill: #e6c35c; filter: drop-shadow(0 0 4px rgba(245, 205, 95, .85)); }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: translate(-50%, -50%) scale(.6) rotate(0deg); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(25deg); } }

/* Road */
.road { position: relative; overflow: clip; }
.road-svg { position: absolute; inset: 0; overflow: visible; }
.road-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road-edge { stroke: var(--road-edge); stroke-width: 62; }
.road-base { stroke: var(--road); stroke-width: 54; }
.road-trail { stroke: var(--gold); stroke-opacity: .35; stroke-width: 54; }
.road-dash { stroke: #fff; stroke-opacity: .7; stroke-width: 3; stroke-dasharray: 14 16; }
@media (max-width: 699px) {
  .road-edge { stroke-width: 44; }
  .road-base, .road-trail { stroke-width: 38; }
}

.cp-dot {
  position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--card); border: 3px solid var(--road-edge);
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow); transition: border-color .4s, transform .4s;
}
.cp-dot.reached { border-color: var(--gold); transform: scale(1.15); }

.cp-card {
  position: absolute; transform: translateY(-50%) translateY(24px);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px; opacity: .4;
  transition: opacity .6s, transform .6s;
  border-left: 4px solid var(--line);
}
.cp-card.reached { opacity: 1; transform: translateY(-50%); border-left-color: var(--gold); }
.cp-year { color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: .8rem; }
.cp-card h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; margin: 4px 0 8px; }
.cp-card p { margin: 0; color: var(--muted); }
.cp-photos { display: flex; gap: 8px; margin-top: 14px; }
.cp-thumb { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; transition: transform .2s; }
.cp-thumb:hover { transform: scale(1.08) rotate(-2deg); }
.cp-photos img { display: block; width: 64px; height: 64px; object-fit: cover; object-position: 50% 25%; }
.cp-thumb span {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20, 14, 8, .55); color: #fff; font-weight: 700; font-size: 1.05rem;
}
@media (max-width: 699px) {
  .cp-card { padding: 14px 14px; }
  .cp-card h3 { font-size: 1.35rem; }
  .cp-card p { font-size: .85rem; }
  .cp-photos img { width: 46px; height: 46px; }
  .cp-photos { gap: 6px; }
}

/* Characters */
.char {
  position: absolute; left: 0; top: 0;
  pointer-events: none; user-select: none; -webkit-tap-highlight-color: transparent;
  will-change: transform; transition: opacity .5s;
}
/* нажимать на героев можно только в финале, когда все выстроились в ряд */
.road.interactive .char { pointer-events: auto; cursor: pointer; }
.char.unborn, .char.gone { opacity: 0; pointer-events: none !important; }
.char.pop .char-fig { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(.2); } 100% { transform: scale(1); } }
.char-fig { width: 100%; height: 100%; transition: transform .2s; }
.road.interactive .char:hover .char-fig { transform: scale(1.06); }
.char svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 6px rgba(0,0,0,.18)); }
.char-name {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px;
  background: var(--card); color: var(--text); font-size: .72rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
.char.active .char-name { background: var(--accent); color: #fff; }

.leg-l { transform-origin: 34px 94px; }
.leg-r { transform-origin: 46px 94px; }
.arm-l { transform-origin: 17px 56px; }
.arm-r { transform-origin: 63px 56px; }
.eyes { transform-origin: 40px 31px; animation: blink 4.5s infinite; }
.bob { animation: breathe 3s ease-in-out infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes breathe { 50% { transform: translateY(1.2px); } }

.char.walking .bob { animation: bob .26s ease-in-out infinite alternate; }
.char.walking .leg-l { animation: swing .52s ease-in-out infinite alternate; }
.char.walking .leg-r { animation: swing .52s ease-in-out infinite alternate-reverse; }
.char.walking .arm-l { animation: swing .52s ease-in-out infinite alternate-reverse; }
.char.walking .arm-r { animation: swing .52s ease-in-out infinite alternate; }
@keyframes swing { from { transform: rotate(16deg); } to { transform: rotate(-16deg); } }
@keyframes bob { to { transform: translateY(-3px); } }

.road.interactive .char:not(.walking):hover .arm-r,
.char.playing:not(.walking) .arm-r { animation: wave .5s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-150deg); } to { transform: rotate(-115deg); } }
.char.playing .bob { animation: talk .35s ease-in-out infinite alternate; }
@keyframes talk { to { transform: translateY(-2px) rotate(1.5deg); } }

.char-bubble {
  position: absolute; bottom: 100%; left: 50%; margin-bottom: 8px;
  transform: translateX(calc(-50% + var(--shift, 0px))) scale(.6); opacity: 0; pointer-events: none;
  background: var(--card); color: var(--text); border-radius: 14px; box-shadow: var(--shadow);
  padding: 7px 12px; font-size: .8rem; font-weight: 600; white-space: nowrap;
  transition: opacity .25s, transform .25s;
}
.char-bubble::after {
  content: ""; position: absolute; top: 100%; left: calc(50% - var(--shift, 0px)); margin-left: -6px;
  border: 6px solid transparent; border-top-color: var(--card);
}
.char-bubble.show { opacity: 1; transform: translateX(calc(-50% + var(--shift, 0px))) scale(1); }
.char-bubble.hint { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translateX(calc(-50% + var(--shift, 0px))) scale(1.08); } }

.note {
  position: absolute; pointer-events: none; font-size: 1.1rem; color: var(--accent);
  animation: note 1.6s ease-out forwards;
}
@keyframes note { to { transform: translate(var(--dx), -70px) rotate(20deg); opacity: 0; } }

/* Bursts */
.burst {
  position: absolute; pointer-events: none; font-size: 1.6rem; z-index: 3000;
  animation: burst 1.6s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--rot)); opacity: 0; }
}


/* Finale */
.finale {
  position: absolute; left: 50%; transform: translate(-50%, 30px); width: min(600px, calc(100% - 32px));
  text-align: center; opacity: 0; transition: opacity .8s, transform .8s;
}
.finale.show { opacity: 1; transform: translate(-50%, 0); }
.finale h2 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3rem); margin: 4px 0 8px; line-height: 1.1; }
.finale p { color: var(--muted); margin: 0; }

/* Sections */
section:not(.road) { padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px); }
section:not(.road) > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.tinted { background: var(--bg-tint); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; line-height: 1.1; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.center { text-align: center; margin-top: 32px; }

/* Разделитель между финалом дорожки и семейными приколами */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 560px; margin: 0 auto; padding: clamp(40px, 7vw, 70px) 16px clamp(48px, 8vw, 84px);
}
.divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { font-size: 1.1rem; }
.divider b { color: #e0524f; font-size: 1.3rem; font-weight: 400; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1.05); } 45% { transform: scale(1.18); } }

/* Блок приколов — как отдельная «карточка» со скруглённым верхом и золотой кромкой */
#memes { border-radius: 36px 36px 0 0; border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: 0 -18px 40px rgba(0, 0, 0, .12); }

/* Карусель семейных приколов */
.carousel { position: relative; }
.car-track {
  scroll-padding-left: 4px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 14px; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide {
  flex: 0 0 min(340px, 78%); margin: 0; scroll-snap-align: start; cursor: zoom-in;
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s;
}
.car-slide:hover { transform: translateY(-4px); }
.car-slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #111; } /* снимок целиком: на мемах подписи внизу */
.car-slide figcaption { padding: 12px 16px 14px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.car-btn {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--card); color: var(--text); font-size: 1.8rem; line-height: 1; box-shadow: var(--shadow);
  transition: opacity .2s;
}
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: -10px; } .car-next { right: -10px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .2s, transform .2s; }
.car-dots button.on { background: var(--gold); transform: scale(1.3); }
@media (max-width: 699px) { .car-btn { width: 36px; height: 36px; font-size: 1.4rem; } .car-prev { left: -4px; } .car-next { right: -4px; } }


.footer { text-align: center; padding: 48px 16px; font-family: var(--serif); font-size: 1.5rem; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(15,10,6,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img, .lightbox video { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 8px; background: #000; }
.lightbox [hidden] { display: none; }
.cp-thumb.is-video::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.1rem; background: rgba(0, 0, 0, .3); text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.lightbox figcaption { color: #eee; margin-top: 12px; }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; padding: 8px 16px; opacity: .8; }
.lb-btn:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Голова с настоящим лицом: покачивается, как у фигурки-болванчика */
.photo-head { transform-origin: 40px 50px; animation: head-sway 3.2s ease-in-out infinite; }
.char.walking .photo-head { animation-duration: .52s; }
.char.playing .photo-head { animation-duration: .7s; }
@keyframes head-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

@media (max-width: 699px) {
  .char-name { font-size: .6rem; padding: 1px 6px; white-space: normal; text-align: center; width: max-content; max-width: 62px; line-height: 1.2; }
}

/* ---------- Финал: колпак, торт, свечи, фейерверк ---------- */
.party-hat { opacity: 0; transform: translateY(-170px); }
.char.party .party-hat { animation: hat-drop 1s cubic-bezier(.35, 1.35, .55, 1) forwards; }
@keyframes hat-drop {
  0% { opacity: 0; transform: translateY(-170px) rotate(-25deg); }
  15% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
.char.blow .photo-head { animation: blow .45s ease-in-out; }
@keyframes blow { 50% { transform: translateY(3px) scale(1.06); } }

.cake {
  position: absolute; left: 0; top: 0; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25));
}
.cake.show { opacity: 1; }
.cake svg { width: 100%; height: auto; display: block; overflow: visible; }
.cake .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .35s ease-in-out infinite alternate; filter: drop-shadow(0 0 3px #ffb347); transition: opacity .25s; }
@keyframes flicker { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.88, 1.1) rotate(3deg); } }
.cake.out .flame { opacity: 0; }
.cake .smoke { opacity: 0; }
.cake.out .smoke circle { animation: smoke 1.6s ease-out forwards; }
.cake.out .smoke { opacity: 1; }
@keyframes smoke { 0% { opacity: .8; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-16px) scale(2.4); } }

.puff { position: absolute; z-index: 3000; font-size: 1.3rem; pointer-events: none; animation: puff .8s ease-out forwards; }
@keyframes puff { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-6px, 34px) scale(1.2) rotate(70deg); } }

.fw-shell {
  position: absolute; z-index: 50; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px;
  pointer-events: none; transition: top .6s cubic-bezier(.2, .6, .3, 1); box-shadow: 0 6px 8px rgba(255, 220, 150, .6);
}
.fw-p {
  position: absolute; z-index: 50; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  pointer-events: none; animation: fw-burst 1.2s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes fw-burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1.2); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx), calc(var(--ty) + 22px)) scale(.6); }
}
.char.party .char-bubble { margin-bottom: 30px; } /* над колпаком */

/* Мини-плеер поздравления над героем */
.char-bubble.player { display: flex; align-items: center; gap: 6px; padding: 6px 10px; pointer-events: auto; cursor: default; }
.pl-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--accent-soft); color: var(--text); font: 600 .72rem/1 var(--sans);
}
.pl-btn:hover { background: var(--gold); color: #fff; }
.pl-restart { font-size: .95rem; }
.pl-bar { position: relative; width: 110px; height: 18px; cursor: pointer; touch-action: none; }
.pl-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 5px; border-radius: 3px; background: var(--line); }
.pl-bar i { position: absolute; left: 0; top: 6.5px; height: 5px; width: 0; border-radius: 3px; background: var(--gold); }
.pl-bar i::after { content: ""; position: absolute; right: -6px; top: -3.5px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.pl-time, .pl-n { font-variant-numeric: tabular-nums; font-size: .72rem; color: var(--muted); }

/* Лица разных лет — плавная смена */
.face { opacity: 0; transition: opacity .7s; }
.face.on { opacity: 1; }

/* выбранное фото карусели — яркое, с золотой рамкой; остальные чуть приглушены */
.car-slide { opacity: .55; transition: transform .25s, opacity .3s, box-shadow .3s; }
.car-slide.on { opacity: 1; box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

/* Кнопка темы ☀️/🌙 — в правом верхнем углу, всегда на виду */
.theme-toggle {
  position: fixed; top: 14px; right: 14px; z-index: 9000;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(8px);
  font-size: 1.25rem; line-height: 1; box-shadow: var(--shadow);
  transition: transform .2s;
}
.theme-toggle:hover { transform: scale(1.08) rotate(-12deg); }
body { transition: background-color .4s, color .4s; }
