/* Календуй — сайт. Цвета повторяют дизайн-систему приложения (DESIGN_SYSTEM.md). */
:root {
  --bg: #ECE8FF;
  --surface: #FFFFFF;
  --cell: #F6F4FF;
  --text: #1E1B4B;
  --muted: #6B6894;
  --primary: #6366F1;
  --primary-soft: #C3BAFF;
  --cat: #A89CF0;
  --amber: #F2A33A;
  --amber-edge: #C97E1E;
  --day: #F6C768;
  --evening: #2FB8A4;
  --night: #4B46B8;
  --pink: #F7B3C9;
  --shadow: 0 4px 0 rgba(75, 70, 184, .12);
  --radius: 30px;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141239;
    --surface: #242160;
    --cell: #2E2B6E;
    --text: #F1EFFF;
    --muted: #A7A3D8;
    --primary-soft: #4B46B8;
    --shadow: 0 4px 0 rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 16px; line-height: 1; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--primary); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 20px;
  font: 800 17px var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-amber { background: var(--amber); color: #2B1A00; box-shadow: 0 4px 0 var(--amber-edge); }
.btn-ghost { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
.btn svg { width: 20px; height: 20px; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 20px 72px; }
.eyebrow {
  display: inline-block; background: var(--surface); color: var(--primary);
  font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow);
}
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 18px 0 18px; font-weight: 900; letter-spacing: -.02em; }
h1 .accent { color: var(--primary); }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.small-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.blob { position: absolute; inset: 6% 4% 2%; background: var(--surface); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; box-shadow: var(--shadow); }

.bubble {
  position: absolute; top: 4%; right: 0; background: var(--primary); color: #fff;
  font-weight: 800; font-size: 16px; padding: 12px 16px; border-radius: 20px 20px 4px 20px;
  max-width: 220px; box-shadow: 0 4px 0 #4B46B8; animation: float 5s ease-in-out infinite;
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; background: var(--surface);
  padding: 8px 12px; border-radius: 16px; font-weight: 800; font-size: 14px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; }
.chip.c1 { left: 0; top: 34%; animation-delay: -2s; }
.chip.c2 { right: 0; bottom: 18%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Секции */
section { padding: 56px 0; }
h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin: 0 0 12px; font-weight: 900; letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 19px; margin: 0 0 36px; max-width: 52ch; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 21px; font-weight: 900; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  font-size: 26px; background: var(--cell);
}

/* Мини-календарь */
.calendar-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cal { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); max-width: 420px; width: 100%; justify-self: center; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cal-head b { font-size: 22px; font-weight: 900; }
.cal-head span { color: var(--muted); font-size: 14px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .wd { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.cal-grid .d {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; background: var(--cell); color: var(--text);
}
.d.day { background: var(--day); color: #3D2A00; }
.d.eve { background: var(--evening); color: #fff; }
.d.night { background: var(--night); color: #fff; }
.d.today { outline: 3px solid var(--primary); outline-offset: 1px; }
.d.empty { background: transparent; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; }
.checks li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 10px; background: var(--primary);
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 15px; margin-top: 1px;
}

/* Приватность */
.privacy-band {
  background: var(--primary); color: #fff; border-radius: 36px; padding: 44px;
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; box-shadow: 0 6px 0 #4B46B8;
}
.privacy-band h2 { color: #fff; }
.privacy-band p { margin: 0; color: #E4E1FF; font-size: 18px; }
.privacy-band .lock { font-size: 64px; width: 120px; height: 120px; display: grid; place-items: center; background: rgba(255,255,255,.14); border-radius: 36px; }
.privacy-band a { color: #fff; font-weight: 800; }

/* Плюс */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.price { text-align: center; position: relative; }
.price .sum { font-size: 38px; font-weight: 900; margin: 6px 0 2px; }
.price .per { color: var(--muted); font-weight: 700; font-size: 15px; }
.price.best { outline: 3px solid var(--amber); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--amber);
  color: #2B1A00; font-weight: 900; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}

/* Календуй Плюс */
.plus-card { background: linear-gradient(150deg, #2A2768 0%, #4B46B8 100%); color: #fff; border-radius: var(--radius); padding: 44px 40px; text-align: center; box-shadow: 0 6px 0 rgba(75, 70, 184, .25); }
.plus-card h2 { color: #fff; margin-top: 0; }
.plus-card .section-lead { color: rgba(255,255,255,.78); margin: 0 auto 30px; }
.plus-grid { list-style: none; padding: 0; margin: 0 auto 32px; max-width: 920px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 14px; text-align: left; }
.plus-grid li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plus-grid li .pi { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 6px; }
.plus-grid li .pi svg { width: 22px; height: 22px; }
.plus-grid li b { font-size: 19px; font-weight: 900; line-height: 1.2; }
.plus-grid li span { font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.4; }
.plus-cta { display: grid; justify-items: center; gap: 4px; }
.plus-cta .btn { font-size: 18px; padding-left: 34px; padding-right: 34px; }
.plus-cta .small-note { color: rgba(255,255,255,.66); max-width: 46ch; }
@media (max-width: 900px) { .plus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plus-grid { grid-template-columns: 1fr; } .plus-card { padding: 32px 20px; } }

/* Вопросы */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--surface); border-radius: 24px; padding: 4px 22px; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 800; font-size: 18px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }

/* Финал и подвал */
.final { text-align: center; padding: 72px 0 40px; }
.final img { width: 96px; margin: 0 auto 8px; }
footer.wrap { padding-top: 40px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; border-top: 2px solid var(--primary-soft); padding-top: 28px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--primary); }

/* Документы */
.doc { max-width: 760px; margin: 0 auto; padding: 16px 0 40px; }
.doc .card { padding: 36px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-top: 0; }
.doc h2 { font-size: 24px; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 22px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-top: -6px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--cell); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 800; }
.note { background: var(--cell); border-radius: 18px; padding: 14px 18px; font-size: 16px; }

@media (max-width: 860px) {
  .hero, .calendar-demo { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .grid, .prices { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .privacy-band .lock { margin: 0 auto; }
  .prices { gap: 24px; }
}
@media (min-width: 861px) and (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .doc .card { padding: 24px 20px; }
  .chip.c1 { left: 0; }
  .bubble { right: 0; font-size: 14px; max-width: 170px; }
}

/* Поправки для узких экранов */
.chip, .bubble { z-index: 2; }
.doc h1 { hyphens: auto; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 12px 0; }
.table-scroll table { margin: 0; min-width: 520px; }
@media (max-width: 480px) { .doc h1 { font-size: 28px; } }

/* ===== Живой кот ===== */
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.hero-art { overflow: visible; }
.hero-cat {
  position: absolute; left: 50%; bottom: 6%; width: 64%; transform: translateX(-50%);
  background: none; border: 0; padding: 0; cursor: pointer; z-index: 1;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.hero-cat:focus-visible { outline: 3px dashed var(--primary); outline-offset: 8px; border-radius: 40px; }
/* Кот — картинка из приложения: основной кадр, мордочки поверх (моргнуть, подмигнуть, зажмуриться, мурчать, спать)
   и вещи слоями во весь кадр, как в CatArt.swift. */
.cat-svg { display: block; position: relative; width: 100%; aspect-ratio: 440 / 711; }
.cat-root { position: absolute; inset: 0; transform-origin: 50% 100%; animation: breathe 4s ease-in-out infinite; transition: rotate .35s cubic-bezier(.3,1.4,.5,1); }
.cat-svg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.ca-face { opacity: 0; transition: opacity .12s; }
.ca-blink { animation: blink-art 5s infinite 1.2s; }
.ca-wink { animation: wink-art 19s infinite 8s; }
.outfit { opacity: 0; transform: translateY(-3%) scale(.97); transform-origin: 50% 30%; transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.wear-scarf .outfit-scarf, .wear-bow .outfit-bow, .wear-party .outfit-party, .wear-party .outfit-scarf,
.wear-night .outfit-night { opacity: 1; transform: none; }

.cat-svg.happy .ca-happy { opacity: 1; }
.cat-svg.happy .ca-blink, .cat-svg.happy .ca-wink, .cat-svg.sleep .ca-blink, .cat-svg.sleep .ca-wink { animation: none; opacity: 0; }
.cat-svg.purring .ca-purr { opacity: 1; }
.cat-svg.purring .cat-root { animation: purr .12s linear infinite; }
.cat-svg.squish .cat-root { animation: squish .5s cubic-bezier(.3,1.6,.5,1); }
.cat-svg.wake .cat-root { animation: hop .55s cubic-bezier(.3,1.6,.5,1); }
.cat-svg.sleep .ca-sleep { opacity: 1; }
.cat-svg.sleep .cat-root { animation: breathe 2.6s ease-in-out infinite; rotate: -2deg !important; }
@keyframes blink-art { 0%, 93%, 97.5%, 100% { opacity: 0; } 94%, 96.5% { opacity: 1; } }
@keyframes wink-art { 0%, 96%, 99.5%, 100% { opacity: 0; } 96.6%, 99% { opacity: 1; } }

@keyframes breathe { 50% { transform: scale(1.012, .99); } }
@keyframes wag { 50% { transform: rotate(-10deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes twitch { 30% { transform: rotate(-12deg); } 60% { transform: rotate(6deg); } }
@keyframes squish { 0% { transform: scale(1); } 30% { transform: scale(1.08, .9); } 60% { transform: scale(.96, 1.05); } 100% { transform: scale(1); } }
@keyframes hop { 40% { transform: translateY(-14px) scale(.97, 1.04); } 100% { transform: none; } }
@keyframes purr { 50% { transform: translateX(.6px) scale(1.004); } }

.bubble { transition: transform .2s; transform-origin: 90% 100%; }
.bubble.pop { animation: bubble-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bubble-pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }

.particle {
  position: absolute; z-index: 3; pointer-events: none; line-height: 1; font-weight: 900; color: var(--primary);
  animation: rise 1.6s cubic-bezier(.2,.7,.3,1) forwards; transform: translate(-50%, -50%);
}
@keyframes rise {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  15% { opacity: 1; transform: translate(-50%, -80%) scale(1.1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -260%) rotate(var(--rot)) scale(.9); }
}

.cat-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.pill {
  font: 800 15px var(--font); color: var(--text); background: var(--surface); border: 0; cursor: pointer;
  min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: var(--shadow); transition: transform .15s;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(1px); }
.pet-count { width: 100%; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }

/* ===== Календарь-переключалка ===== */
button.d { border: 0; font-family: var(--font); cursor: pointer; transition: transform .15s, background-color .25s, color .25s; -webkit-tap-highlight-color: transparent; }
button.d:hover { transform: scale(1.08); }
.d.bump { animation: bump .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.22) rotate(-4deg); } }
.js .cal.reveal button.d { opacity: 0; transform: scale(.6); }
.js .cal.in button.d { animation: cell-in .45s cubic-bezier(.3,1.5,.5,1) forwards; animation-delay: calc(var(--i) * 18ms + 150ms); }
@keyframes cell-in { to { opacity: 1; transform: none; } }

/* ===== Банка ===== */
.jar-section { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.jar-copy .btn { margin: 0 8px 8px 0; }
.jar-copy .btn:disabled { opacity: .8; cursor: default; }
.jar-wrap { justify-self: center; width: min(320px, 80vw); }
.jar { width: 100%; height: auto; overflow: visible; }
.jar-glass { fill: rgba(255,255,255,.35); stroke: var(--primary-soft); stroke-width: 6; }
.jar-shine { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; opacity: .6; }
.jar-lid { fill: var(--amber); } .jar-lid-top { fill: var(--amber-edge); }
.jar-label { fill: var(--surface); opacity: .92; }
.jar-count { font: 900 26px var(--font); fill: var(--primary); }
.candy { animation: drop .7s cubic-bezier(.3,1.25,.55,1) both; }
@keyframes drop { from { transform: translateY(calc(var(--fall) * -1)); } }
.jar-notes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; min-height: 120px; }
.jar-notes li {
  background: var(--surface); border-radius: 16px; padding: 10px 14px; font-weight: 700; font-size: 16px;
  box-shadow: var(--shadow); animation: note-in .4s cubic-bezier(.3,1.5,.5,1);
}
.jar-notes li:nth-child(2) { opacity: .75; } .jar-notes li:nth-child(3) { opacity: .5; }
@keyframes note-in { from { opacity: 0; transform: translateY(-10px) scale(.95); } }
@media (prefers-color-scheme: dark) { .jar-glass { fill: rgba(255,255,255,.06); } }

/* ===== Появление при прокрутке ===== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.9,.3,1.15); transition-delay: var(--stagger, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.hero > div:first-child > * { animation: hero-in .8s cubic-bezier(.2,.9,.3,1.1) both; }
.hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero > div:first-child > :nth-child(5) { animation-delay: .32s; }
.hero-side { animation: hero-in 1s cubic-bezier(.2,.9,.3,1.1) .2s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }

/* Карточки оживают под курсором */
.card { transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s; }
.js .card.reveal.in:hover, .card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card:hover .icon { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-10deg) scale(1.1); } 75% { transform: rotate(8deg); } }
.icon { transition: transform .2s; }
.btn-amber:hover { transform: translateY(-2px); }
.privacy-band .lock { animation: float 6s ease-in-out infinite; }

/* Кот в финале выглядывает и машет */
.peek-cat { transform-origin: 50% 100%; }
.js .peek-cat { opacity: 0; transform: translateY(40px) scale(.9); transition: opacity .5s, transform .8s cubic-bezier(.3,1.6,.5,1); }
.js .peek-cat.in { opacity: 1; transform: none; animation: sway 4s ease-in-out 1s infinite; }
@keyframes sway { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }

/* Фон: плавающие лапки и звёзды */
.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.float {
  position: absolute; width: 34px; height: 34px; color: var(--primary-soft); fill: var(--primary-soft);
  font-size: 26px; line-height: 34px; text-align: center; opacity: .55;
  animation: drift 18s ease-in-out infinite; transform: scale(var(--s));
}
.float svg { width: 100%; height: 100%; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-10deg) scale(var(--s)); }
  33% { transform: translate(18px, -26px) rotate(8deg) scale(var(--s)); }
  66% { transform: translate(-14px, -10px) rotate(-4deg) scale(var(--s)); }
}
header, main, footer { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .jar-section { grid-template-columns: 1fr; text-align: center; }
  .jar-notes { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .peek-cat, .js .cal.reveal button.d { opacity: 1 !important; transform: none !important; }
}

/* ===== Плитки возможностей: разный размер, цвета смен, кот вместо эмодзи ===== */
:root { --t-day: #FFF3D1; --t-lilac: #F1EDFF; --t-pink: #FFE6EF; --t-teal: #DDF5EF; --t-night: #1B1854; }
@media (prefers-color-scheme: dark) {
  :root { --t-day: #3A3352; --t-lilac: #2E2B6E; --t-pink: #3E2858; --t-teal: #1F3F5C; --t-night: #0E0C2E; }
}
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 230px; }
.tile.wide { grid-column: span 2; }
.tile h3 { margin-top: auto; }
.t-day { background: var(--t-day); } .t-lilac { background: var(--t-lilac); }
.t-pink { background: var(--t-pink); } .t-teal { background: var(--t-teal); }
.t-night { background: var(--t-night); color: #F1EFFF; }
.t-night p { color: #B9B4E8; }
.tile-art { margin-bottom: 18px; }

/* Неделя смен: ячейки «переливаются» по очереди */
.week { display: flex; gap: 8px; }
.week .d {
  flex: 1; aspect-ratio: 1; max-width: 56px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; background: var(--surface); color: var(--muted);
  transform: translateY(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.week .d.day { background: var(--day); color: #3D2A00; }
.week .d.night { background: var(--night); color: #fff; }
.tile:hover .week .d { animation: hop-cell .5s cubic-bezier(.3,1.6,.5,1) both; }
.week .d:nth-child(2) { animation-delay: .05s !important; } .week .d:nth-child(3) { animation-delay: .1s !important; }
.week .d:nth-child(4) { animation-delay: .15s !important; } .week .d:nth-child(5) { animation-delay: .2s !important; }
.week .d:nth-child(6) { animation-delay: .25s !important; } .week .d:nth-child(7) { animation-delay: .3s !important; }
@keyframes hop-cell { 40% { transform: translateY(-8px); } }

/* Фото графика со сканером */
.photo svg { width: 120px; height: 80px; transform: rotate(-4deg); }
.photo .paper { fill: var(--cell); stroke: var(--primary-soft); stroke-width: 2; }
.photo .lines { stroke: var(--primary-soft); stroke-width: 1.5; }
.photo .hit { fill: rgba(99,102,241,.15); stroke: var(--primary); stroke-width: 2; stroke-dasharray: 4 3; opacity: 0; }
.photo .scan { fill: var(--evening); opacity: .7; animation: scan-mini 3s ease-in-out infinite; }
.photo .hit { animation: hit-mini 3s ease-in-out infinite; }
@keyframes scan-mini { 0% { transform: translateY(0); opacity: .8; } 60% { transform: translateY(76px); opacity: .8; } 61%, 100% { opacity: 0; transform: translateY(76px); } }
@keyframes hit-mini { 0%, 55% { opacity: 0; } 65%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* Коты в плитках */
.cat-slot .cat-svg { width: 100%; }
.tile-cat { width: 110px; margin: -6px 0 6px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.mood:hover .tile-cat { transform: rotate(-6deg) translateY(-4px); }
.mood:hover .cat-svg .ca-happy { opacity: 1; }
.duo { display: flex; margin: -4px 0 8px; }
.duo .cat-slot { width: 86px; }
.duo .cat-slot:first-child { transform: rotate(-6deg); margin-right: -16px; z-index: 1; }
.duo .friend { transform: rotate(6deg) scaleX(-1); }
.friend .cat-svg { filter: hue-rotate(155deg) saturate(1.25) brightness(1.04); }

/* Ночная плитка */
.night-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; height: 100%; }
.night-row h3 { margin-top: 0; }
.sleep-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sleep-chips span { background: rgba(255,255,255,.1); border-radius: 12px; padding: 6px 12px; font-size: 14px; color: #CFCBF5; }
.sleep-chips b { color: #F6C768; }
.sleep-art { position: relative; width: 170px; }
.sleep-art .cat-slot { width: 150px; margin-left: 10px; }
.sleep-art .moon { position: absolute; right: 0; top: -6px; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset -12px -3px 0 0 #F6E3A1; transform: rotate(-20deg); }
.sleep-art .zzz { position: absolute; left: 60%; top: 10px; font: 900 20px var(--font); color: #F6C768; }
.sleep-art .zzz i { position: absolute; font-style: normal; opacity: 0; animation: zfloat 3.6s ease-in infinite; }
.sleep-art .zzz i:nth-child(2) { animation-delay: 1.2s; font-size: 16px; } .sleep-art .zzz i:nth-child(3) { animation-delay: 2.4s; font-size: 24px; }
@keyframes zfloat { 0% { opacity: 0; transform: translate(0, 16px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -46px) rotate(10deg); } }

/* Банка в плитке */
.jar-row { display: grid; grid-template-columns: 1fr 170px; gap: 20px; align-items: center; }
.jar-row h3 { margin-top: 0; }
.jar-row p { margin-bottom: 14px; }
.jar-tile .btn { min-height: 46px; font-size: 16px; padding: 0 18px; margin: 0 6px 6px 0; }
.jar-tile .btn-ghost { background: rgba(255,255,255,.7); }
.jar-tile .jar-notes { min-height: 0; margin-top: 8px; }
.jar-tile .jar-notes li { font-size: 14px; padding: 7px 12px; box-shadow: none; }
.jar-tile .jar-notes li:nth-child(n+3) { display: none; }
.jar-tile .jar { width: 170px; }

/* Ссылка «потыкай» под котом и подвал */
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile { min-height: 0; text-align: left; }
  .jar-row { grid-template-columns: 1fr 120px; }
  .jar-tile .jar { width: 120px; }
  .sleep-art { width: 120px; } .sleep-art .cat-slot { width: 110px; }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .jar-row { grid-template-columns: 1fr; }
  .jar-tile .jar { width: 140px; justify-self: center; grid-row: 1; }
  .night-row { grid-template-columns: 1fr; }
  .sleep-art { justify-self: center; grid-row: 1; }
}

[hidden] { display: none !important; }

/* Секции с .wrap: вертикальные отступы не должны теряться из-за `.wrap { padding: 0 20px }` */
section.wrap { padding-top: 56px; padding-bottom: 56px; }
section.wrap.hero { padding-top: 40px; padding-bottom: 72px; }
section.wrap.final { padding-top: 72px; padding-bottom: 40px; }
@media (max-width: 860px) {
  section.wrap { padding-top: 40px; padding-bottom: 40px; }
  section.wrap.hero { padding-top: 16px; }
}
/* Выходной в легенде виден и в тёмной теме */
.legend i[style*="--cell"] { box-shadow: inset 0 0 0 2px var(--primary-soft); }

/* ===== Выверка: единые радиусы, отступы и иконки без эмодзи ===== */
section.wrap { padding-top: 44px; padding-bottom: 44px; }
section.wrap.hero { padding-top: 32px; padding-bottom: 56px; }
section.wrap.final { padding-top: 56px; padding-bottom: 24px; }
h2 { font-size: clamp(30px, 4vw, 40px); }
.section-lead { margin-bottom: 28px; }
.privacy-band { border-radius: var(--radius); padding: 32px 36px; gap: 28px; }
.privacy-band h2 { margin-bottom: 8px; }
.privacy-band .lock { width: 96px; height: 96px; border-radius: 28px; font-size: 0; }
.privacy-band .lock svg { width: 56px; height: 56px; }
.pi { width: 36px; height: 36px; border-radius: 12px; background: var(--c); display: grid; place-items: center; flex: none; }
.pi svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; }
.price { padding: 24px 20px; }
details { border-radius: 22px; }
.final .section-lead { margin-bottom: 24px !important; }
@media (max-width: 860px) {
  section.wrap { padding-top: 32px; padding-bottom: 32px; }
  section.wrap.hero { padding-top: 12px; padding-bottom: 40px; }
  .privacy-band { padding: 28px 22px; }
  .privacy-band .lock { margin: 0 auto; width: 80px; height: 80px; }
}

/* ===== Частицы-фигурки ===== */
.particle svg { width: var(--size, 20px); height: var(--size, 20px); fill: currentColor; display: block; }
.particle.fixed { position: fixed; z-index: 50; }

/* ===== Нажатия: пружинка ===== */
.pressed { animation: press .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes press { 0% { transform: scale(1); } 30% { transform: scale(.92); } 65% { transform: scale(1.04); } 100% { transform: scale(1); } }
.btn:active, .pill:active, .cycle-pick button:active { transform: scale(.94); }
.tile { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(.985) !important; }
.tile.poke { animation: poke .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes poke { 30% { transform: scale(.97) rotate(-.6deg); } 70% { transform: scale(1.015) rotate(.3deg); } }
.t-day.poke .week .d { animation: hop-cell .5s cubic-bezier(.3,1.6,.5,1) both; }
.photo-tile.poke .photo .hit { animation: hit-flash .9s ease both; }
@keyframes hit-flash { 0% { opacity: 0; } 30%, 80% { opacity: 1; } 100% { opacity: 0; } }
.photo-tile.poke .photo svg { animation: wiggle .5s ease; }
.t-pink.poke .duo .cat-slot:first-child { animation: hop-l .5s cubic-bezier(.3,1.6,.5,1); }
.t-pink.poke .duo .friend { animation: hop-r .5s cubic-bezier(.3,1.6,.5,1) .08s; }
@keyframes hop-l { 40% { transform: rotate(-10deg) translateY(-12px); } }
@keyframes hop-r { 40% { transform: rotate(10deg) scaleX(-1) translateY(-12px); } }
.checks li.pressed::before { animation: press .42s cubic-bezier(.3,1.6,.5,1); }
.checks li { cursor: default; }
details[open] > p { animation: note-in .35s cubic-bezier(.3,1.4,.5,1); }

/* ===== Конструктор графика ===== */
.cal-side { display: flex; flex-direction: column; gap: 14px; align-items: stretch; max-width: 420px; width: 100%; justify-self: center; }
.cal-side .cal { max-width: none; }
.cycle-pick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--surface);
  border-radius: 18px; box-shadow: var(--shadow);
}
.cycle-pick button {
  font: 800 14px var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 14px;
  min-height: 44px; padding: 0 6px; cursor: pointer; transition: background .25s, color .25s;
}
.cycle-pick button.on { background: var(--primary); color: #fff; }
.d.full { background: linear-gradient(135deg, var(--day) 0 50%, var(--night) 50% 100%); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.full-swatch { background: linear-gradient(135deg, var(--day) 0 50%, var(--night) 50% 100%); }
.d.flip { animation: flip .5s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes flip { 0% { transform: rotateY(90deg) scale(.8); } 100% { transform: none; } }
.cal-cat { display: flex; align-items: flex-end; gap: 10px; }
.cal-cat .ava { width: 54px; flex: none; }
.cal-cat p {
  margin: 0; background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; line-height: 1.4;
  padding: 10px 14px; border-radius: 18px 18px 18px 6px; box-shadow: var(--shadow); flex: 1;
}
.cal-cat p.pop { animation: bubble-pop .45s cubic-bezier(.3,1.6,.5,1); }
.calendar-demo { align-items: start; }
@media (max-width: 480px) { .cycle-pick button { font-size: 13px; padding: 0 2px; } }

/* ===== Главный кот ===== */
.wear-crown .outfit-crown, .wear-glasses .outfit-glasses, .wear-flower .outfit-flower, .wear-beanie .outfit-beanie,
.wear-crown .outfit-scarf, .wear-glasses .outfit-scarf, .wear-flower .outfit-scarf, .wear-beanie .outfit-scarf { opacity: 1; transform: none; }

.hero-cat { width: 70%; bottom: 3%; }
.cat-svg.poof .cat-root { animation: poof .42s cubic-bezier(.3,1.5,.5,1); }
@keyframes poof { 0% { transform: scale(1); } 35% { transform: scale(.88, 1.1); filter: brightness(1.25); } 100% { transform: scale(1); } }

/* Гардероб */
.wardrobe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 380px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.swatch svg { width: 26px; height: 26px; }
.swatch img { width: 40px; height: 40px; object-fit: contain; pointer-events: none; }
.swatch:hover { transform: translateY(-3px) rotate(-6deg); }
.swatch.on { box-shadow: 0 0 0 3px var(--primary), var(--shadow); transform: scale(1.08); }
.swatch:focus-visible { outline: 3px dashed var(--primary); outline-offset: 3px; }

/* ===== Стикеры ===== */
.sticker-img { display: block; width: 100%; height: auto; }
.tile-cat.sticker-img { width: 132px; margin: -14px 0 2px -8px; }
.sleep-art .sticker-img { width: 180px; }
.sticker-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sticker-pack { background: var(--surface); border-radius: var(--radius); padding: 18px 18px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sticker-pack h3 { margin: 18px 8px 6px; }
.sticker-pack p { margin: 0 8px 18px; color: var(--muted); }
.sticker-pack { min-width: 0; }
.sticker-pack.t-night { background: var(--t-night); color: #F1EFFF; }
.sticker-pack.t-night p { color: #B9B4E8; }
.sticker-pack .btn { margin: auto 8px 0; align-self: flex-start; }
.sticker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sticker-send { display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.sticker-send:focus-visible { outline: 3px dashed var(--primary); outline-offset: 2px; }
.sticker-grid .sticker-img { border-radius: 18px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.sticker-grid .sticker-img:hover { transform: scale(1.12) rotate(-3deg); }
.sticker-grid .sticker-img.pressed { animation: press .42s cubic-bezier(.3,1.6,.5,1); }
[data-stickers][aria-disabled="true"], [data-appstore][aria-disabled="true"] { opacity: .75; cursor: default; }
@media (max-width: 860px) {
  .sticker-packs { grid-template-columns: 1fr; }
  .sticker-grid { gap: 4px; }
}
.wardrobe { display: grid; grid-template-columns: repeat(8, 44px); gap: 6px; max-width: none; }
@media (max-width: 420px) { .wardrobe { grid-template-columns: repeat(4, 44px); } }
/* Образцы гардероба всегда светлые — тёмные иконки (очки, колпак) видны и в тёмной теме. */
.swatch { background: #F4F1FF; }
.section-lead.center { margin-left: auto; margin-right: auto; }

/* ===== Чат со стикерами: как это выглядит в Telegram ===== */
.stickers-head { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 40px; align-items: center; margin-bottom: 28px; }
.tg-try { font-weight: 800; color: var(--primary); margin: -6px 0 0; }
.tg {
  --tg-bg: #0E1621; --tg-head: #17212B; --tg-in: #182533; --tg-out: #2B5278; --tg-text: #F5F5F5; --tg-meta: #7D8B99;
  background: var(--tg-bg); border-radius: 26px; overflow: hidden; box-shadow: 0 10px 0 rgba(20, 18, 57, .18);
  color: var(--tg-text); font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--tg-head); }
.tg-head b { display: block; font-size: 16px; line-height: 1.2; }
.tg-head small { color: var(--tg-meta); font-size: 13px; }
.tg-head small.typing { color: #64B5EF; }
.tg-ava { width: 38px; height: 38px; border-radius: 50%; }
.tg-feed { -webkit-mask-image: linear-gradient(transparent, #000 48px); mask-image: linear-gradient(transparent, #000 48px); height: 340px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; overflow: hidden;
  background: radial-gradient(circle at 20% 10%, rgba(99, 102, 241, .14), transparent 45%), radial-gradient(circle at 90% 90%, rgba(47, 184, 164, .1), transparent 40%), var(--tg-bg); }
.tg-msg { max-width: 78%; padding: 7px 11px 7px; border-radius: 16px; font-size: 15px; line-height: 1.35; position: relative; animation: tg-in .32s cubic-bezier(.3,1.4,.5,1) both; }
.tg-msg.in { align-self: flex-start; background: var(--tg-in); border-bottom-left-radius: 6px; }
.tg-msg.out { align-self: flex-end; background: var(--tg-out); border-bottom-right-radius: 6px; }
.tg-msg .t { float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.tg-msg.sticker { background: none; padding: 0; max-width: 132px; }
.tg-msg.sticker img { width: 132px; height: 132px; }
.tg-msg.sticker .t { position: absolute; right: 2px; bottom: 4px; float: none; margin: 0; padding: 1px 7px; border-radius: 10px; background: rgba(0, 0, 0, .45); color: #fff; }
.tg-msg.out.sticker { transform-origin: bottom right; }
.tg-msg.leave { display: none; }
@keyframes tg-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@media (max-width: 860px) {
  .stickers-head { grid-template-columns: 1fr; gap: 18px; }
  .tg { max-width: 420px; width: 100%; margin: 0 auto; }
  .tg-feed { height: 300px; }
}

/* ===== Как начать: три шага под первым экраном ===== */
section.steps-section { padding-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border-radius: 24px; padding: 18px 20px 20px 70px; box-shadow: var(--shadow); position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 13px;
  display: grid; place-items: center; font-weight: 900; font-size: 19px; background: var(--primary); color: #fff; transform: rotate(-6deg);
}
.steps li:nth-child(2)::before { background: var(--amber); color: #2B1A00; transform: rotate(5deg); }
.steps li:nth-child(3)::before { background: var(--evening); transform: rotate(-3deg); }
.steps b { display: block; font-size: 18px; line-height: 1.25; margin-bottom: 4px; }
.steps span { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 10px; } }

/* ===== Мелочи-вау: мокапы iPhone со скриншотами ===== */
.phone {
  width: 100%; max-width: 240px; aspect-ratio: 600 / 1304; padding: 7px; border-radius: 40px;
  background: #0B0A1F; box-shadow: 0 0 0 2px #3A3770, 0 16px 36px rgba(20, 18, 57, .28);
}
.phone img { width: 100%; height: 100%; border-radius: 33px; object-fit: cover; }
/* Dynamic Island — как на скриншотах с iPhone 16 Pro Max: 28.5% ширины экрана, 1.5% от верха. */
.phone { position: relative; }
.phone::after { content: ""; position: absolute; left: 50%; top: calc(7px + 1.45%); width: 27%; aspect-ratio: 376 / 110; transform: translateX(-50%); border-radius: 999px; background: #000; }

/* Сцена-карусель: телефоны веером (--p от 0 до 1 при прокрутке), тап — следующий экран в центре. Позиции ставит cat.js. */
.wow-stage { --p: 1; --shift: 270px; position: relative; height: 680px; margin-top: 8px; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.wow-stage .phone {
  position: absolute; left: 50%; top: 20px; width: 270px; max-width: none; padding: 7px; border: 0; cursor: pointer;
  transition: transform .65s cubic-bezier(.3, 1.25, .5, 1), translate .3s ease, opacity .45s ease, filter .45s ease;
  transform: translateX(-50%) scale(.7); opacity: 0; z-index: 1; pointer-events: none;
}
.wow-stage .phone.at-center { transform: translateX(-50%); opacity: 1; z-index: 3; pointer-events: auto; }
.wow-stage .phone.at-left, .wow-stage .phone.at-right { opacity: calc(.4 + .5 * var(--p)); filter: brightness(.8); z-index: 2; pointer-events: auto; }
.wow-stage .phone.at-left { transform: translateX(calc(-50% - var(--shift) * var(--p))) translateY(40px) rotate(calc(-9deg * var(--p))) scale(.86); }
.wow-stage .phone.at-right { transform: translateX(calc(-50% + var(--shift) * var(--p))) translateY(40px) rotate(calc(9deg * var(--p))) scale(.86); }
/* Подъём при наведении — отдельным translate и только когда переключение доехало: иначе две анимации дёргают телефон. */
@media (hover: hover) { .wow-stage:not(.switching) .phone.at-center:hover { translate: 0 -8px; } }
.wow-stage .phone:focus-visible { outline: 3px dashed var(--primary); outline-offset: 6px; }
.lupa {
  position: absolute; z-index: 4; left: calc(50% - 235px); top: 60px; width: 150px; height: 150px; border-radius: 50%; overflow: hidden;
  border: 6px solid #fff; box-shadow: 0 10px 0 rgba(75, 70, 184, .25); background: #15123A; pointer-events: none;
  transform: scale(var(--p)); transform-origin: 85% 60%; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s;
}
.wow-stage:not(.airpods) .lupa { transform: scale(0); opacity: 0; }
.lupa img { width: 100%; height: 100%; animation: head-turn 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes head-turn { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 45% { transform: rotate(10deg); } 65% { transform: rotate(-4deg); } }
.wow-caption { text-align: center; max-width: 460px; margin: 4px auto 0; min-height: 84px; }
.wow-caption b { display: block; font-size: 24px; line-height: 1.2; margin-bottom: 4px; }
.wow-caption span { color: var(--muted); font-size: 17px; }
.wow-caption.swap { animation: caption-in .45s ease both; }
@keyframes caption-in { from { opacity: 0; transform: translateY(8px); } }
.wow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.wow-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: var(--primary-soft); cursor: pointer; transition: width .3s, background .3s; }
.wow-dots button.on { width: 26px; background: var(--primary); }
@media (max-width: 860px) {
  /* Телефон 200 px по высоте ≈ 450 + отступ сверху и сдвиг боковых — сцена выше, низ не обрезается. */
  .wow-stage { --shift: 140px; height: 540px; margin: 0 -16px; overflow: hidden; }
  .wow-stage .phone { width: 200px; }
  .lupa { width: 100px; height: 100px; border-width: 5px; left: calc(50% - 150px); top: 36px; }
  .wow-caption b { font-size: 21px; }
  .wow-caption span { font-size: 16px; }
}

/* ===== Первый экран: живой кот внутри iPhone — как экран «Сегодня» в приложении ===== */
.hero-art { aspect-ratio: auto; max-width: 400px; display: flex; justify-content: center; padding: 0 30px; }
.hp-phone {
  position: relative; width: 320px; height: 560px; padding: 9px 9px 0; border-radius: 52px 52px 0 0; background: #0B0A1F;
  box-shadow: 0 0 0 2px #3A3770, 0 24px 60px rgba(20, 18, 57, .35);
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent);
}
.hp-phone::before { content: ""; position: absolute; z-index: 5; left: 50%; top: 20px; width: 100px; height: 29px; border-radius: 99px; background: #000; transform: translateX(-50%); }
.hp-screen {
  position: relative; height: 100%; border-radius: 44px 44px 0 0; overflow: hidden; color: #F1EFFF; text-align: left;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, .35), transparent 55%), linear-gradient(#1D1A5C, #12103A 70%);
  font-family: -apple-system, "SF Pro Rounded", var(--font);
}
.hp-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px 0 30px; height: 44px; font-weight: 700; font-size: 15px; }
.hp-icons svg { width: 54px; height: 12px; fill: currentColor; }
.hp-date { margin: 18px 18px 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #A7A3D8; }
.hp-hello { margin: 2px 18px 0; font-size: 25px; font-weight: 900; line-height: 1.15; font-family: var(--font); }
.hp-phone .hero-cat { position: absolute; left: 6%; right: auto; top: 124px; bottom: auto; width: 43%; transform: none; }
.hp-phone .bubble {
  top: 150px; right: 12px; left: auto; max-width: 46%; font-size: 13px; line-height: 1.3; padding: 10px 12px;
  border-radius: 16px 16px 16px 4px; box-shadow: 0 3px 0 #4B46B8; text-align: left;
}
.hp-card {
  position: absolute; left: 12px; right: 12px; top: 352px; display: flex; gap: 12px; align-items: center; padding: 14px;
  border-radius: 22px; background: linear-gradient(135deg, #F6C768 0%, #8C6E7A 48%, #2E2B6E 100%); box-shadow: 0 0 40px rgba(246, 199, 104, .25);
}
.hp-card small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.hp-card b { display: block; font-size: 20px; line-height: 1.2; }
.hp-card span:not(.hp-sun) { display: block; font-size: 12px; opacity: .85; }
.hp-sun { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .85); border-right-color: rgba(255, 255, 255, .25);
  background: radial-gradient(circle, #FFE08A 0 30%, transparent 32%); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art .chip { z-index: 6; }
.hero-art .chip.c1 { left: 0; top: 40%; }
.hero-art .chip.c2 { right: 0; left: auto; top: 47%; bottom: auto; }
@media (max-width: 480px) {
  .hero-art { padding: 0 8px; }
  .hp-phone { width: 290px; height: 510px; }
  .hp-phone .hero-cat { top: 120px; width: 38%; }
  .hp-card { top: 318px; }
  /* На телефоне плашки смен налезают на экран — там уже есть карточка смены. */
  .hero-art .chip { display: none; }
}

/* Веер: картинку нельзя утащить пальцем или мышью, а при первом показе — подсказка «тыкни». */
.wow-stage .phone img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.wow-stage { user-select: none; -webkit-user-select: none; }
.tap-hint {
  position: absolute; z-index: 5; left: 50%; top: 300px; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; background: rgba(99, 102, 241, .85);
  box-shadow: 0 0 0 0 rgba(99, 102, 241, .6); pointer-events: none; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s;
}
.wow-stage.hint .tap-hint { opacity: 1; transform: scale(1); animation: tap-pulse 1.1s ease-out infinite; }
@keyframes tap-pulse { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .6); } 100% { box-shadow: 0 0 0 26px rgba(99, 102, 241, 0); } }
.wow-stage.hint .phone.at-right { animation: peek 1.4s ease-in-out 2; }
@keyframes peek { 50% { translate: -26px -6px; } }
@media (max-width: 860px) { .tap-hint { top: 210px; } }

/* Гардероб и звук — внутри экрана телефона, как плитки нарядов в приложении. */
.hp-phone { height: 585px; -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent); }
.hp-sound {
  position: absolute; right: 16px; top: 84px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 7px; cursor: pointer;
  background: rgba(99, 102, 241, .35); color: #F1EFFF; -webkit-tap-highlight-color: transparent;
}
.hp-sound svg { width: 100%; height: 100%; }
.hp-sound .mute, .hp-sound.off .wave { display: none; }
.hp-sound.off .mute { display: inline; }
.hp-wardrobe { position: absolute; left: 0; right: 0; top: 448px; }
.hp-wardrobe small { display: block; margin: 0 16px 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #A7A3D8; }
.hp-wardrobe .wardrobe { display: flex; flex-wrap: nowrap; gap: 8px; max-width: none; overflow-x: auto; padding: 2px 14px 8px; scrollbar-width: none; }
.hp-wardrobe .wardrobe::-webkit-scrollbar { display: none; }
.hp-wardrobe .swatch {
  flex: none; width: 46px; height: 46px; border-radius: 15px; background: #F4F1FF; box-shadow: 0 3px 0 rgba(0, 0, 0, .3);
  display: grid; place-items: center; transform: none;
}
.hp-wardrobe .swatch svg { width: 26px; height: 26px; }
.hp-wardrobe .swatch img { width: 38px; height: 38px; }
.hp-wardrobe .swatch:hover { transform: translateY(-2px); }
.hp-wardrobe .swatch.on { background: #C3BAFF; box-shadow: 0 0 0 2.5px var(--primary), 0 3px 0 #4B46B8; transform: none; }
.cat-controls { margin-top: -18px; }
@media (max-width: 480px) {
  .hp-phone { height: 505px; }
  .hp-wardrobe { top: 408px; }
  .hp-sound { top: 80px; right: 14px; }
}

/* Страницы-заглушки (/open/*): кнопки с воздухом вокруг, вторичная — обводкой,
   иначе на карточке того же цвета от неё оставалась одна тень. */
.doc { padding-top: 24px; }
.doc .center .btn { margin-top: 22px; }
.doc .center .small-note { margin: 22px auto 0; max-width: 420px; }
.doc .center .small-note + .btn { margin-top: 14px; }
.card .btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--primary); }

/* Apple Watch: веер, как телефоны в «Фишках» — средние часы крупно и спереди,
   боковые меньше, наклонены наружу, притушены и заходят под средние. */
.watch-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.watch-row { display: flex; justify-content: center; align-items: center; padding: 30px 0; }
.watch { width: 38%; max-width: 220px; padding: 10px; border-radius: 48px; background: #0E0C1A;
  border: 3px solid #8C86AA; box-shadow: 0 28px 60px rgba(20, 12, 60, .45); position: relative; }
.watch::after { content: ""; position: absolute; right: -9px; top: 28%; width: 7px; height: 36px; border-radius: 4px; background: #AAA4C4; }
.watch img { display: block; width: 100%; height: auto; border-radius: 38px; }
.watch:nth-child(1), .watch:nth-child(3) { filter: brightness(.78); z-index: 1; }
.watch:nth-child(1) { transform: translateY(26px) rotate(-10deg) scale(.86); margin-right: -12%; }
.watch:nth-child(3) { transform: translateY(26px) rotate(10deg) scale(.86); margin-left: -12%; }
.watch:nth-child(2) { z-index: 2; }
@media (max-width: 860px) {
  .watch-section { grid-template-columns: 1fr; gap: 20px; }
  .watch { border-radius: 32px; padding: 6px; }
  .watch img { border-radius: 26px; }
}

/* График друга на странице ссылки: сверху свободные дни крупными чипсами, ниже две недели.
   Свободный день — яркий мятный «стикер», рабочие — цветом смены, но притушены. */
.doc .fr-free, .doc .fr-weeks { text-align: left; max-width: 520px; margin: 18px auto 0; padding: 0; }
.doc .fr-h { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px 4px; }
.fr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-chip { background: #7EDDB8; color: #11352A; font-weight: 900; font-size: 16px; padding: 9px 14px; border-radius: 14px;
  box-shadow: 0 3px 0 #4FB38E; }
.fr-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fr-day { border-radius: 14px; padding: 6px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 13px; min-height: 64px; }
.fr-day b { font-size: 19px; font-weight: 900; line-height: 1.1; }
.fr-wd { font-size: 10px; font-weight: 800; opacity: .75; text-transform: capitalize; white-space: nowrap; }
.fr-kind { font-size: 14px; line-height: 1; }
.fr-pad { background: transparent; }
.fr-k-free { background: #7EDDB8; color: #11352A; box-shadow: 0 3px 0 #4FB38E; }
.fr-k-day { background: var(--day); color: #2B1A00; opacity: .55; }
.fr-k-evening { background: var(--evening); color: #fff; opacity: .55; }
.fr-k-night { background: var(--night); color: #fff; opacity: .55; }
.fr-today { outline: 3px solid var(--amber); outline-offset: 2px; opacity: 1; }
.fr-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-size: 13px; color: var(--muted); margin: 12px 0 22px; }
.fr-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.fr-legend span:not(:first-child) i { opacity: .55; }
.fr-sw-free { background: #7EDDB8; }

/* Переключатель языка в шапке */
.lang-switch { padding: 4px 10px; border-radius: 99px; border: 1.5px solid rgba(195,186,255,.45); font-weight: 800; font-size: 13px; }

/* Новое в 1.1: коты ходят в гости */
/* «Коты ходят в гости» — плитка в сетке фишек: текст и два телефона. */
.visits-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.visits-mini { position: relative; height: 300px; }
.visits-mini .vp { width: 130px; border-radius: 22px; border-width: 4px; }
.vp { position: absolute; width: 230px; height: auto; border-radius: 34px; border: 6px solid #0E0C2A; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.vp-left { left: 6%; top: 40px; transform: rotate(-7deg); }
.vp-right { right: 6%; top: 0; transform: rotate(6deg); }
.vp-spark { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: 40px; animation: vp-hop 1.8s ease-in-out infinite; }
@keyframes vp-hop { 0%, 100% { transform: translate(-60%, -40%) rotate(-12deg); } 50% { transform: translate(-40%, -70%) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .vp-spark { animation: none; } }
@media (max-width: 860px) {
  .visits-row { grid-template-columns: 1fr; }
  .visits-mini { height: 280px; }
}

/* Анонс 1.2 «Кот узнаёт тебя»: светлая лиловая карточка рядом с тёмной «Коты ходят в гости». */
.sport-card { --sport-a: var(--surface); --sport-b: #DCD5FF; background: linear-gradient(150deg, var(--sport-a) 0%, var(--sport-b) 100%); border-radius: var(--radius); padding: 44px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; box-shadow: 0 6px 0 rgba(75, 70, 184, .18); overflow: hidden; }
.sport-card h2 { margin: 10px 0 12px; }
.sport-card .section-lead { margin: 0 0 22px; }
.soon-tag { display: inline-block; background: var(--amber); color: #2B1A00; font-weight: 900; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.sport-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sport-list li { background: rgba(255,255,255,.7); border: 1px solid rgba(99,102,241,.16); border-radius: 20px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.sport-list b { font-size: 17px; }
.sport-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.sport-list span { color: var(--muted); font-size: 15px; }
.sport-art { display: flex; justify-content: center; }
.sport-art img { width: min(100%, 320px); height: auto; filter: drop-shadow(0 18px 24px rgba(30, 27, 75, .18)); animation: sport-roll 4s ease-in-out infinite; }
@keyframes sport-roll { 0%, 100% { transform: translateX(-6px) rotate(-1.5deg); } 50% { transform: translateX(6px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .sport-art img { animation: none; } }
@media (prefers-color-scheme: dark) {
  .sport-card { --sport-a: var(--surface); --sport-b: var(--cell); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
  .sport-list li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
}
@media (max-width: 860px) {
  .sport-card { grid-template-columns: 1fr; padding: 32px 22px; }
  .sport-art img { width: min(70%, 260px); }
}

/* Выбор языка в шапке: маленькая пилюля, список поверх всего */
.lang-menu { position: relative; background: none; box-shadow: none; padding: 0; border-radius: 0; z-index: 60; }
.lang-menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; font-weight: 800; border-radius: 99px; border: 1.5px solid rgba(195,186,255,.45); background: rgba(255,255,255,.04); }
.lang-menu > summary::before { content: ""; width: 14px; height: 14px; background: currentColor; opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.lang-menu > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; font-size: 0; transition: transform .2s; }
.lang-menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; display: grid; gap: 2px; background: var(--surface); border-radius: 16px; box-shadow: 0 14px 40px rgba(10, 8, 40, .45); border: 1px solid rgba(195,186,255,.18); }
.lang-list .lang-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; }
.lang-list .lang-switch:hover { background: var(--cell); }
.lang-list .lang-switch.on { color: var(--primary); }
.lang-list .lang-switch.on::after { content: "✓"; font-weight: 900; }
.nav { position: relative; z-index: 50; }

/* Плашка «гость ждёт у двери» */
.visit-bar { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); box-shadow: 0 6px 20px rgba(10,8,40,.25); font-size: 15px; }
.visit-bar b { flex: 1; }
.visit-bar .btn { padding: 8px 16px; font-size: 14px; }
.visit-bar button { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 0 4px; }

/* Смена языка: обычно без перезагрузки (site.js, мягкая смена); view transition — для запасного полного перехода. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
/* no-intro — hero после мягкой смены языка или после снятия instant: анимация появления не повторяется. */
.instant .hero > div:first-child > *, .instant .hero-side, .hero.no-intro > div:first-child > *, .hero.no-intro .hero-side { animation: none; }
.instant .reveal, .instant .peek-cat, .instant .cal.reveal button.d { transition: none; }

/* ===== Наклейки с краем: мультяшный слой, как в приложении =====
   У карточек, плиток, кнопок и пилюль — светлая обводка и тёмный «край» снизу (как у нажимаемой наклейки).
   Нажатие — кнопка уходит вниз на край. Только box-shadow и transform, без фильтров. */
:root {
  --rim: rgba(75, 70, 184, .12);        /* тонкая обводка снаружи */
  --rim-in: rgba(255, 255, 255, .7);    /* светлый кант внутри, как белый край наклейки */
  --lip: rgba(75, 70, 184, .18);        /* край снизу */
  --sticker: inset 0 0 0 2px var(--rim-in), 0 0 0 1.5px var(--rim);
  --shadow: var(--sticker), 0 5px 0 var(--lip);
  --shadow-up: var(--sticker), 0 8px 0 var(--lip);
  --shadow-down: var(--sticker), 0 2px 0 var(--lip);
}
@media (prefers-color-scheme: dark) {
  :root { --rim: rgba(195, 186, 255, .14); --rim-in: rgba(255, 255, 255, .05); --lip: rgba(4, 3, 24, .55); }
}
.t-night, .sticker-pack.t-night { --rim-in: rgba(255, 255, 255, .07); --rim: rgba(20, 18, 57, .3); }

/* Карточки и плитки: при наведении край растёт, при нажатии — прижимается */
.card, .sticker-pack, .steps li, details, .cal, .cal-cat p { box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-up); }
.tile:active { transform: translateY(3px) !important; box-shadow: var(--shadow-down); transition-duration: .08s; }
.lang-menu { box-shadow: none; }

/* Кнопки: объёмный край, нажатие вдавливает на высоту края */
.btn { transition: transform .12s ease, box-shadow .12s ease; }
.btn-amber { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 5px 0 var(--amber-edge); }
.btn-amber:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 7px 0 var(--amber-edge); }
.btn-amber:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), 0 1px 0 var(--amber-edge); }
.btn-ghost { box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.btn-ghost:active { transform: translateY(4px); box-shadow: var(--sticker), 0 1px 0 var(--lip); }
.card .btn-ghost { box-shadow: inset 0 0 0 2px var(--primary), 0 4px 0 var(--lip); }
.card .btn-ghost:active { box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 var(--lip); }
.btn.pressed { animation: none; }

/* Пилюли и чипсы: круглые, жирные, с краем */
.pill, .eyebrow, .chip { font-weight: 900; border-radius: 999px; }
.pill { box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.pill:active { transform: translateY(4px); box-shadow: var(--shadow-down); }
.pill.pressed { animation: none; }
.chip { padding: 8px 14px; }
.chip i { border-radius: 6px; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.sleep-chips span { border-radius: 999px; font-weight: 800; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 3px 0 rgba(0, 0, 0, .28); }
.cycle-pick { border-radius: 20px; }
.cycle-pick button { font-weight: 900; border-radius: 15px; }
.cycle-pick button.on { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22), 0 3px 0 #3B36A0; }
.cycle-pick button:active { transform: translateY(2px); }
.steps li::before { box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.swatch { box-shadow: 0 0 0 1.5px var(--rim), 0 4px 0 var(--lip); }
.swatch.on { box-shadow: 0 0 0 3px var(--primary), 0 4px 0 var(--lip); }
.checks li::before { box-shadow: 0 3px 0 #3B36A0; }

/* ===== Календарь: клетки-наклейки, как плитки дней в приложении ===== */
.cal {
  /* Вечер чуть глубже фирменного бирюзового: белое число читается (контраст ≥ 4.5). */
  --evening: #127F72;
  --off: #EEEBFF; --off-edge: rgba(99, 102, 241, .22); --off-rim: rgba(99, 102, 241, .14);
}
@media (prefers-color-scheme: dark) {
  .cal { --off: #2E2B6E; --off-edge: #17154A; --off-rim: rgba(195, 186, 255, .16); }
}
.cal-grid { gap: 9px 7px; }
.cal-grid .d {
  --edge: var(--off-edge);
  aspect-ratio: 1; border-radius: 13px; font-weight: 900; font-size: 15px;
  background: var(--off); color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--off-rim), 0 3px 0 var(--edge);
}
.cal-grid .d.day { --edge: #C9922E; background: var(--day); color: #3D2A00; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), 0 3px 0 var(--edge); }
.cal-grid .d.eve { --edge: #0B5A51; background: var(--evening); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25), 0 3px 0 var(--edge); }
.cal-grid .d.night { --edge: #2C2780; background: var(--night); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2), 0 3px 0 var(--edge); }
.cal-grid .d.full { --edge: #2C2780; background: linear-gradient(135deg, var(--day) 0 50%, var(--night) 50% 100%); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 3px 0 var(--edge); }
@media (prefers-color-scheme: dark) {
  .cal-grid .d.day { --edge: #A4741F; }
  .cal-grid .d.eve { --edge: #08423B; }
  .cal-grid .d.night, .cal-grid .d.full { --edge: #1D1A5C; }
}
.cal-grid .d.empty { background: transparent; box-shadow: none; }
/* Сегодня — толстое кольцо вокруг плитки */
.cal-grid .d.today { outline: 3px solid var(--primary); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .cal-grid .d.today { outline-color: #C3BAFF; } }
button.d { transition: transform .12s ease, box-shadow .12s ease, background-color .25s, color .25s; }
button.d:hover { transform: translateY(-2px); }
button.d:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px var(--off-rim), 0 0 0 var(--edge); }
.legend i { width: 14px; height: 14px; border-radius: 5px; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.legend i[style*="--cell"] { background: var(--off) !important; box-shadow: inset 0 0 0 1.5px var(--off-rim), 0 2px 0 var(--off-edge); }

/* Неделя смен в плитке — те же наклейки */
.week .d { box-shadow: inset 0 0 0 1.5px var(--rim), 0 3px 0 var(--lip); font-weight: 900; }
.week .d.day { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45), 0 3px 0 #C9922E; }
.week .d.night { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2), 0 3px 0 #2C2780; }

/* ===== Комната кота: настоящий экран из приложения ===== */
.room-mini { margin: -6px -6px 14px; }
.room-mini img {
  display: block; width: 100%; height: auto; border-radius: 22px; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 5px 0 var(--lip);
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
}
.room-tile:hover .room-mini img { transform: translateY(-3px) rotate(-.6deg); }
.room-tile.poke .room-mini img { animation: room-hop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes room-hop { 35% { transform: translateY(-8px) scale(1.02) rotate(-1deg); } 70% { transform: translateY(1px) scale(.995); } }
@media (prefers-color-scheme: dark) { .room-mini img { box-shadow: 0 0 0 2px rgba(195, 186, 255, .2), 0 5px 0 var(--lip); } }

/* ===== Копилка в плитке: плотнее — банка крупно и по центру, под кнопкой 2–3 заметки ===== */
.jar-tile .jar-row { flex: 1; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; align-items: center; }
.jar-tile .jar { width: 230px; justify-self: center; }
.jar-tile .jar-notes { gap: 8px; margin-top: 10px; }
.jar-tile .jar-notes li { display: block; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 1.5px var(--rim), 0 3px 0 var(--lip); }
.jar-tile .jar-notes li:nth-child(n+3) { display: block; }
.jar-tile .jar-notes li:nth-child(n+4) { display: none; }
@media (prefers-color-scheme: dark) { .jar-tile .jar-notes li { background: var(--surface); } }
@media (min-width: 861px) and (max-width: 1000px) {
  .jar-tile .jar-row { grid-template-columns: minmax(0, 1fr) 190px; }
  .jar-tile .jar { width: 190px; }
}
@media (max-width: 860px) {
  .jar-tile .jar-row { grid-template-columns: minmax(0, 1fr) 160px; gap: 16px; }
  .jar-tile .jar { width: 160px; }
}
@media (max-width: 480px) {
  .jar-tile .jar-row { grid-template-columns: 1fr; gap: 6px; }
  .jar-tile .jar { width: 170px; grid-row: 1; }
}

/* Меню языков в шапке — в одну линию со ссылками: без отступов и «края» карточек FAQ, которые достаются всем <details>. */
.nav-links .lang-menu { display: flex; align-items: center; margin: 0; transform: none; }
.nav-links .lang-menu > summary { line-height: 1; margin: 0; }
.nav-links .lang-menu:hover, .nav-links .lang-menu:active { transform: none; box-shadow: none; }

/* Шапка — ниже от верхнего края экрана (на телефоне она прилипала к панели браузера). */
.nav { padding-top: max(24px, env(safe-area-inset-top, 0px)); }
@media (max-width: 860px) { .nav { padding-top: max(20px, env(safe-area-inset-top, 0px)); padding-bottom: 14px; } }
/* Чип над заголовком секции («Apple Watch» и т. п.) — с воздухом до заголовка. */
.eyebrow + h2, .eyebrow + h1 { margin-top: 16px; }

/* Блок «Новое в 1.3»: кот в кадре немого кино */
.reel-art { display: flex; justify-content: center; }
.reel-film { position: relative; width: min(100%, 300px); aspect-ratio: 4 / 5; padding: 0 28px; background: #241C14; border-radius: 22px; box-shadow: 0 18px 28px rgba(30, 27, 75, .22); overflow: hidden; transform: rotate(2deg); }
.reel-film::before, .reel-film::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(to bottom, #F3E7CF 0 12px, transparent 12px 26px); border-radius: 3px; }
.reel-film::before { left: 8px; }
.reel-film::after { right: 8px; }
.reel-frame { position: relative; height: 100%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #F0E0C0 0%, #C9AE82 70%, #8F7650 100%); animation: reel-flicker 1.6s steps(6) infinite; }
.reel-frame img { position: absolute; left: 50%; bottom: 0; width: 86%; height: auto; transform: translateX(-50%); filter: sepia(.75) contrast(1.05); }
@keyframes reel-flicker { 0%, 100% { opacity: 1; } 30% { opacity: .93; } 55% { opacity: .98; } 80% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .reel-frame { animation: none; } }
.sport-tile { grid-column: 1 / -1; min-height: 0; }
.sport-tile-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sport-tile-row img { width: 130px; height: auto; flex: none; }
.sport-tile-row h3 { margin-top: 0; }
@media (max-width: 860px) { .sport-tile { grid-column: auto; } .sport-tile-row img { width: 96px; } }
