/* ============ CatsBaku — сначала телефон ============ */

:root {
  color-scheme: light;
  --stone:   #F3EBDD;  /* известняк Ичеришехер — фон */
  --stone-2: #E9DECB;
  --card:    #FFFBF5;
  --ink:     #221A14;
  --muted:   #6F665B;
  --pom:     #A3243A;  /* гранат — сердечки и главные кнопки */
  --pom-2:   #C23450;
  --saffron: #D9981E;  /* шафран — метки */
  --caspian: #1F6E8C;  /* Каспий — районы и карта */
  --night:   #16110E;  /* тёмные блоки */
  --on-night:#F6EFE3;
  --line:    rgba(34, 26, 20, .12);
  --shadow:  0 10px 30px rgba(60, 40, 20, .14);
  --shadow-lg: 0 24px 60px rgba(30, 20, 10, .28);

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand:    "Marck Script", "Segoe Script", cursive;

  --r: 18px;
  --r-sm: 12px;
  --gutter: 16px;
  --bottom-nav: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-color: var(--stone);
  background-image: url("../img/ornament.svg");
  background-size: 120px 120px;
  padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: 40px; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--pom); }
.h2 { font-size: 36px; margin-top: 4px; }
.sub { color: var(--muted); margin-top: 6px; max-width: 52ch; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.count { color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 15px; text-decoration: none;
  background: var(--ink); color: #fff; transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--pom { background: var(--pom); }
.btn--light { background: rgba(255,255,255,.92); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--block { width: 100%; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.18); font-size: 20px;
}

/* сердечко */
.like { display: inline-flex; align-items: center; gap: 6px; }
.like svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.like[aria-pressed="true"] svg { fill: var(--pom); stroke: var(--pom); }
.like.pop svg { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }

/* полоса ковра */
.carpet { height: 12px; background:
  linear-gradient(135deg, var(--pom) 25%, transparent 25%) -6px 0 / 12px 12px,
  linear-gradient(225deg, var(--pom) 25%, transparent 25%) -6px 0 / 12px 12px,
  linear-gradient(315deg, var(--pom) 25%, transparent 25%) 0 0 / 12px 12px,
  linear-gradient(45deg,  var(--pom) 25%, transparent 25%) 0 0 / 12px 12px,
  var(--saffron);
  border-block: 3px solid var(--night);
}

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(243, 235, 221, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 24px; text-decoration: none; }
.logo img { width: 26px; height: 31px; }
.logo b { color: var(--pom); }
.topnav { display: none; }
.langs { display: flex; background: var(--card); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.langs button { border: 0; background: none; min-width: 38px; height: 32px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Нижнее меню ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: rgba(255, 251, 245, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottomnav ul { list-style: none; margin: 0 auto; padding: 0 6px; max-width: 560px; height: var(--bottom-nav); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.bottomnav a, .bottomnav button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none;
  font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 6px 0; width: 100%;
}
.bottomnav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav .is-active { color: var(--pom); }
.bottomnav .add span.plus {
  width: 54px; height: 54px; margin-top: -26px; border-radius: 50%;
  background: var(--pom); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(163, 36, 58, .45), 0 0 0 5px var(--card);
}
.bottomnav .add span.plus svg { stroke: #fff; width: 26px; height: 26px; stroke-width: 2.4; }
.bottomnav .add { color: var(--pom); }

/* ---------- Кот дня (первый экран) ---------- */
.hero { position: relative; height: min(78svh, 720px); min-height: 480px; background: var(--night); color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 14s ease-out both; }
@keyframes zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 25%, transparent 45%, rgba(10,7,5,.88) 100%); pointer-events: none; }
.hero__top { position: absolute; z-index: 2; top: 14px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.chip-glass { background: rgba(0,0,0,.38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero__body { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 22px; }
.hero__district { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; color: #FFE3A8; }
.hero__name { font-size: clamp(64px, 18vw, 120px); margin: 2px 0 6px; }
.hero__name a { text-decoration: none; }
.hero__quote { font-family: var(--display); font-style: italic; font-size: 22px; line-height: 1.25; max-width: 30ch; color: #F1E6D6; }
.hero__actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.hero__actions .btn--light { flex: 1; max-width: 240px; }
.hero__state { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--on-night); font-family: var(--display); font-size: 26px; }

/* ---------- Районы как сторис ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 16px var(--gutter) 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 74px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start; }
.story__ring { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--pom), var(--saffron), var(--caspian), var(--pom)); }
.story[aria-pressed="true"] .story__ring { background: var(--ink); }
.story__img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--stone); overflow: hidden; background: var(--stone-2); display: grid; place-items: center; font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--pom); }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story span { font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Фильтры ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Карточки котов ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { position: relative; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.card__link { display: block; text-decoration: none; }
.card__photo { aspect-ratio: 4 / 5; background: var(--stone-2); overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__photo img { transform: scale(1.04); }
.card__body { padding: 10px 12px 12px; }
.card__name { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__district { font-size: 12px; font-weight: 700; color: var(--caspian); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__new { position: absolute; top: 10px; left: 10px; background: var(--saffron); color: #2A1B05; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; }
.card .like { position: absolute; top: 8px; right: 8px; border: 0; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 13px; font-weight: 800; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.card .like svg { width: 20px; height: 20px; }
.empty { grid-column: 1 / -1; background: var(--card); border-radius: var(--r); padding: 28px 20px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; justify-items: center; }
.skeleton { background: linear-gradient(90deg, var(--stone-2), #F1E7D6, var(--stone-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Кот месяца ---------- */
.month { background: var(--night); color: var(--on-night); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.month::before { content: ""; position: absolute; inset: 0; background: url("../img/ornament.svg") 0 0 / 120px; opacity: .5; filter: invert(1); pointer-events: none; }
.month > * { position: relative; }
.month .eyebrow { color: var(--saffron); }
.month .h2 { color: #fff; }
.month .sub { color: #CFC3B2; }
.podium { display: grid; gap: 10px; margin-top: 18px; }
.rank { display: grid; grid-template-columns: 30px 56px 1fr auto; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border-radius: var(--r-sm); padding: 8px 12px 8px 10px; text-decoration: none; }
.rank b { font-family: var(--display); font-size: 28px; color: var(--saffron); text-align: center; }
.rank img, .rank .ph { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #2a211b; }
.rank .rank__name { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; }
.rank small { display: block; color: #BFB3A2; font-size: 12px; font-weight: 600; margin-top: 3px; }
.rank .like { border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; height: 40px; padding: 0 12px; font-weight: 800; font-size: 14px; }
.rank:first-child { background: linear-gradient(90deg, rgba(217,152,30,.28), rgba(255,255,255,.06)); }

/* ---------- Карта ---------- */
.map-box { position: relative; }
.map { height: 380px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); z-index: 1; background: var(--stone-2); }
.map-box .btn { position: absolute; z-index: 500; right: 12px; bottom: 12px; min-height: 44px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.pin { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; background: var(--pom) center / cover no-repeat; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2F80ED; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(47,128,237,.25); }
.leaflet-container { font-family: var(--body); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.popup { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; min-width: 190px; }
.popup img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.popup b { font-family: var(--display); font-size: 22px; display: block; line-height: 1; }
.popup small { color: var(--muted); display: block; margin: 2px 0 4px; }
.popup a { color: var(--pom); font-weight: 800; text-decoration: none; }

/* ---------- Магазин ---------- */
.shop { background: var(--night); color: var(--on-night); }
.shop .eyebrow { color: var(--saffron); }
.shop .h2 { color: #fff; }
.shop .sub { color: #CFC3B2; }
.products { display: flex; gap: 16px; overflow-x: auto; padding: 22px 4px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.products::-webkit-scrollbar { display: none; }
.product { flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; text-align: center; }
.product__name { font-family: var(--display); font-size: 26px; margin-top: 16px; font-weight: 700; }
.product small { color: var(--saffron); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.postcard { background: #F8F2E7; color: #1B1B1B; padding: 10px; border-radius: 4px; transform: rotate(-2deg); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; aspect-ratio: 3 / 2; }
.postcard img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.postcard div { display: flex; flex-direction: column; justify-content: space-between; text-align: left; border-left: 1px dashed #BCB09A; padding-left: 10px; }
.postcard p { font-family: var(--hand); font-size: 20px; line-height: 1.05; color: #8A1C30; }
.postcard i { display: block; height: 1px; background: #BCB09A; margin-top: 8px; }
.sticker { width: 78%; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; border: 9px solid #fff; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(5deg); position: relative; }
.sticker img { width: 100%; height: 100%; object-fit: cover; }
.sticker span { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); background: #fff; color: #8A1C30; font-family: var(--display); font-weight: 700; font-size: 18px; padding: 1px 12px; border-radius: 999px; white-space: nowrap; }
.tee { position: relative; aspect-ratio: 1; margin: 0 auto; width: 92%; }
.tee svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tee svg path { fill: #F4EEE4; }
.tee__print { position: absolute; left: 33%; top: 30%; width: 34%; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.tee__print img { width: 100%; height: 100%; object-fit: cover; }
.tee__label { position: absolute; left: 30%; right: 30%; top: 71%; text-align: center; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: #1B1B1B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- О проекте, подвал ---------- */
.about { text-align: center; padding-block: 48px 40px; }
.about img { width: 64px; height: 76px; margin: 0 auto 14px; }
.about .h2 { max-width: 16ch; margin-inline: auto; }
.about .sub { margin-inline: auto; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px var(--gutter) 28px; }
.footer b { font-family: var(--display); font-size: 18px; color: var(--ink); }

/* ---------- Нижние панели (добавить кота, поделиться) ---------- */
.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; max-height: 92svh; position: fixed; inset: auto 0 0 0; border-radius: 24px 24px 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -20px 60px rgba(0,0,0,.3); overflow: auto; }
.sheet[open] { animation: up .28s ease; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet::backdrop { background: rgba(20, 14, 10, .55); backdrop-filter: blur(3px); }
.sheet__in { padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
.sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sheet__head h2 { font-size: 32px; }
.sheet__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--stone); font-size: 22px; line-height: 1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.steps i { height: 4px; border-radius: 2px; background: var(--stone-2); }
.steps i.on { background: var(--pom); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 800; font-size: 14px; }
.input { width: 100%; min-height: 50px; border-radius: 14px; border: 0; background: var(--stone); padding: 12px 14px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); }
textarea.input { min-height: 96px; resize: vertical; }
.drop { position: relative; display: grid; place-items: center; text-align: center; gap: 8px; min-height: 260px; border-radius: 18px; background: var(--stone); box-shadow: inset 0 0 0 2px var(--line); padding: 20px; overflow: hidden; cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--pom); color: #fff; display: grid; place-items: center; font-size: 28px; }
.drop__hint { color: var(--muted); font-size: 14px; max-width: 28ch; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .drop__change { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 1; pointer-events: none; }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet__actions { display: flex; gap: 10px; margin-top: 8px; }
.sheet__actions .btn { flex: 1; }
.msg { min-height: 22px; font-size: 14px; font-weight: 700; color: var(--pom); margin-top: 10px; text-align: center; }
.done { text-align: center; padding: 20px 0 8px; }
.done__icon { font-size: 56px; }
.done h2 { font-size: 40px; margin-top: 8px; }
.done p { color: var(--muted); margin: 8px 0 20px; }

.share-preview { width: 58%; max-width: 240px; margin: 0 auto 16px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--stone-2); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.share-preview img { width: 100%; height: 100%; object-fit: cover; }
.share-list { display: grid; gap: 10px; }
.share-list .btn { justify-content: flex-start; padding-left: 18px; }
.share-list .btn span:first-child { width: 26px; text-align: center; }
.btn--wa { background: #1FA855; }
.btn--tg { background: #2AA0DA; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bottom-nav) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2000; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center; }

/* ---------- Страница кота ---------- */
.cat-hero { position: relative; background: var(--night); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; max-height: 76svh; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.cat-hero__top { position: absolute; top: 12px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; z-index: 2; }
.passport { position: relative; z-index: 3; margin-top: -34px; background: var(--card); border-radius: 26px 26px 0 0; padding: 22px var(--gutter) 8px; }
.passport__no { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.passport__name { font-size: clamp(56px, 16vw, 96px); margin: 4px 0 6px; }
.passport__district { font-weight: 800; color: var(--caspian); }
.passport__quote { font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.25; margin-top: 16px; padding-left: 16px; border-left: 3px solid var(--saffron); }
.passport__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.passport__actions .like { background: var(--pom); color: #fff; }
.passport__actions .like[aria-pressed="true"] svg { fill: #fff; stroke: #fff; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin-top: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.facts div { background: var(--card); padding: 12px 14px; }
.facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 22px; font-weight: 700; }
.cat-map { height: 220px; margin-top: 10px; }
.note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.shop-cta { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px; border-radius: 16px; background: var(--night); color: var(--on-night); text-decoration: none; }
.shop-cta img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.shop-cta b { font-family: var(--display); font-size: 22px; display: block; line-height: 1.05; }
.shop-cta small { color: var(--saffron); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }

/* ---------- Компьютер ---------- */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topbar__in { height: 70px; }
  .topnav { display: flex; align-items: center; gap: 22px; }
  .topnav a { text-decoration: none; font-weight: 700; font-size: 15px; }
  .topnav a:hover { color: var(--pom); }
  .topnav .btn { min-height: 42px; color: #fff; }
  .section { padding-block: 64px; }
  .h2 { font-size: 52px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .card__name { font-size: 30px; }
  .hero { height: min(84vh, 760px); }
  .hero__body { left: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter))); bottom: 48px; }
  .hero__quote { font-size: 28px; }
  .stories { justify-content: center; padding-top: 22px; }
  .story { width: 88px; }
  .story__ring { width: 84px; height: 84px; }
  .month-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .month { padding: 32px; }
  .map { height: 520px; }
  .products { justify-content: center; overflow: visible; gap: 40px; }
  .product { flex: 0 0 260px; }
  .sheet { max-width: 520px; inset: 0; margin: auto; border-radius: 24px; max-height: 90vh; }
  .toast { bottom: 28px; }
  .cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 32px; }
  .cat-hero { border-radius: var(--r); overflow: hidden; position: sticky; top: 90px; }
  .gallery { max-height: 80vh; }
  .passport { margin-top: 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 32px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================================================================
   Версия 2: красная шапка, секции котов, мерч, эмблема, бута
   ================================================================ */
:root { --gold: #E7B94A; --gold-2: #FFF4CF; --pom-dark: #6E0F22; }

.logo img.emblem-logo { width: 38px; height: 38px; }

/* ---------- Красная шапка ---------- */
.hero-red { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 70% 30%, #C23450 0%, var(--pom) 45%, var(--pom-dark) 100%); isolation: isolate; }
.hero-red__towers { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; opacity: .5; mix-blend-mode: screen; }
.hero-red__carpet { position: absolute; inset: 0; z-index: -2; background: url("../img/carpet.jpg") center / 240px auto repeat; opacity: .16; mix-blend-mode: multiply; }
.hero-red::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(110,15,34,.35) 0%, rgba(110,15,34,.15) 40%, rgba(60,6,18,.85) 100%), url("../img/ornament.svg") 0 0 / 120px; }
.hero-red__in { display: grid; gap: 22px; padding-block: 26px 34px; }
.hero-red__media { position: relative; width: min(78%, 330px); margin: 0 auto; }
.arch { display: block; position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 22px 22px; overflow: hidden; border: 4px solid var(--gold); box-shadow: 0 0 0 6px rgba(110,15,34,.6), 0 0 0 7px rgba(231,185,74,.55), 0 30px 60px rgba(0,0,0,.45); background: var(--pom-dark); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch__chip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; background: rgba(22,17,14,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #FFE3A8; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stamp { position: absolute; left: -26px; bottom: 36px; width: 96px; height: 96px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); animation: spin 40s linear infinite; }
.buta-float { position: absolute; right: -22px; top: 10%; width: 64px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); animation: float 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-6deg); } }
.hero-red__text { text-align: center; }
.hero-red__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.hero-red__brand img { width: 20px; height: 23px; }
.hero-red__name { font-size: clamp(64px, 18vw, 128px); margin: 6px 0 4px; }
.hero-red__name a { text-decoration: none; }
.hero-red__district { font-weight: 800; color: #FFE3A8; }
.hero-red__quote { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.25; margin: 12px auto 0; max-width: 28ch; color: #FFEFF1; }
.hero-red__actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.hero-red__actions .like { width: auto; padding: 0 16px; border-radius: 999px; }
.hero-red__tagline { margin-top: 22px; font-family: var(--hand); font-size: 26px; color: var(--gold-2); }

/* ---------- Секции котов ---------- */
.cat-section { padding-block: 36px 8px; }
.cat-section + .cat-section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; }
.sec-head img { width: 38px; height: 44px; }
.sec-head h2 { font-size: 30px; }
.sec-head p { color: var(--muted); font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.2; margin-top: 2px; }
.sec-head .count { align-self: start; margin-top: 6px; }
.row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row .card { flex: 0 0 min(64%, 260px); scroll-snap-align: start; }
.card__caption { font-family: var(--display); font-style: italic; font-size: 17px; line-height: 1.2; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sections-intro { text-align: center; padding-top: 34px; }
.sections-intro img { width: 46px; height: 54px; margin: 0 auto 6px; }
.fav-section .sec-head h2 { color: var(--pom); }

/* ---------- Мерч ---------- */
.merch { position: relative; isolation: isolate; color: #fff; background: var(--pom-dark); overflow: hidden; }
.merch::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/carpet.jpg") center / 300px auto repeat; opacity: .22; }
.merch::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 0%, rgba(163,36,58,.55), rgba(40,4,12,.92) 75%); }
.merch__head { text-align: center; }
.merch__head img { width: 88px; height: 88px; margin: 0 auto 12px; }
.merch .eyebrow { color: var(--gold); }
.merch .h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.merch .sub { color: #F2D6DB; margin-inline: auto; }
.goods { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px var(--gutter) 12px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.goods::-webkit-scrollbar { display: none; }
.good { flex: 0 0 min(78%, 300px); scroll-snap-align: center; background: #FFF8EE; color: var(--ink); border-radius: 20px; padding: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.good__stage { aspect-ratio: 1; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #FFFFFF, #EFE3CF); display: grid; place-items: center; overflow: hidden; position: relative; }
.good h3 { font-size: 28px; margin-top: 14px; }
.good p { color: var(--muted); font-size: 14px; margin-top: 2px; flex: 1; }
.good .btn { margin-top: 14px; }
.good .badge { display: inline-block; align-self: start; margin-top: 14px; background: var(--stone); color: var(--pom); border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.good .tee { width: 88%; }
.good .tee svg path { fill: #FFFFFF; stroke: #E4D8C4; stroke-width: .6; }
.tee__emblem { position: absolute; left: 60%; top: 26%; width: 11%; }
.good .postcard { width: 92%; transform: rotate(-3deg); }
.sticker-emblem { width: 70%; border-radius: 50%; background: #fff; padding: 8px; box-shadow: 0 12px 24px rgba(0,0,0,.2); transform: rotate(-8deg); }
.tote { position: relative; width: 70%; aspect-ratio: .85; }
.tote svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tote__print { position: absolute; left: 22%; right: 22%; top: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid var(--pom); }
.tote__print img { width: 100%; height: 100%; object-fit: cover; }
.merch__note { text-align: center; color: #F2D6DB; font-size: 14px; margin-top: 8px; }

/* ---------- Подвал с эмблемой ---------- */
.footer--brand { background: var(--night); color: #CFC3B2; padding: 34px var(--gutter) 30px; }
.footer--brand img { width: 84px; height: 84px; margin: 0 auto 10px; }
.footer--brand b { color: #fff; }

@media (min-width: 760px) {
  .hero-red__in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding-block: 56px 64px; }
  .hero-red__media { order: 2; width: min(100%, 400px); }
  .hero-red__text { text-align: left; }
  .hero-red__quote { margin-left: 0; font-size: 30px; }
  .hero-red__actions { justify-content: flex-start; }
  .stamp { width: 124px; height: 124px; left: -54px; }
  .buta-float { width: 84px; right: -40px; }
  .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 4px 0 18px; gap: 20px; }
  .row .card { flex: none; }
  .sec-head h2 { font-size: 46px; }
  .goods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 32px 0 12px; gap: 20px; }
  .good { flex: none; }
}
@media (min-width: 1100px) { .row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .stamp, .buta-float { animation: none; } }
