/* Мурмэтч — оформление витрины */

@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(fonts/unbounded-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(fonts/unbounded-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1F1A17;
  --ink2: #4A403A;
  --paper: #F1ECE4;
  --bg: #F1ECE4;
  --soft: #E2D8CB;
  --accent: #1F1A17;
  --line: rgba(31, 26, 23, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --display: "Unbounded", "Trebuchet MS", sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --r: 28px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  transition: background-color 0.5s ease;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
svg { flex-shrink: 0; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }

.app { width: 100%; max-width: 1180px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; min-height: 0; outline: none; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: var(--bg); transition: background-color 0.5s ease;
}
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 0; margin-right: auto; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; border-radius: 12px; }
.logo-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.logo-txt b { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.logo-txt small { font-size: 12px; font-weight: 600; color: var(--ink2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-btn { flex-shrink: 0; }
@media (max-width: 639px) { .logo-txt small { font-size: 11px; } }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(31, 26, 23, 0.07); }
.tab { height: 40px; padding: 0 18px; border-radius: 999px; display: flex; align-items: center; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); }
.tab[aria-current="page"] { background: #fff; box-shadow: 0 2px 8px rgba(31, 26, 23, 0.08); }
.fav-btn {
  height: 48px; padding: 0 16px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  background: var(--glass); text-decoration: none; font-weight: 700; font-size: 15px; transition: transform 0.2s ease;
}
.fav-btn svg { width: 20px; height: 20px; fill: var(--ink); }
.fav-btn b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; }
.fav-btn[aria-current="page"] { background: var(--ink); color: #fff; }
.fav-btn[aria-current="page"] svg { fill: #fff; }
.fav-btn[aria-current="page"] b { background: #fff; color: var(--ink); }
.fav-btn.pulse { transform: scale(1.1); }

@media (max-width: 639px) {
  .tabs { order: 3; width: 100%; }
  .tab { flex: 1; justify-content: center; }
  .fav-label { display: none; }
}

/* ---------- Подвал ---------- */
.foot { padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ink2); text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 8px; }
.foot a { font-weight: 600; text-decoration: none; padding: 8px 0; display: inline-block; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 0; }
body.v-swipe .foot { display: none; }

/* ---------- Общие элементы ---------- */
.btn {
  min-height: 56px; padding: 0 26px; border-radius: 999px; border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none; text-align: center;
  background: var(--ink); color: #fff;
}
.btn-accent { background: var(--accent); color: #fff; font-family: var(--display); font-weight: 600; font-size: 17px; box-shadow: 0 10px 24px rgba(31, 26, 23, 0.18); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(31, 26, 23, 0.08); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-soft { background: var(--glass); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 22px; height: 22px; }
.pill-back {
  height: 44px; padding: 0 16px 0 10px; border-radius: 999px; border: none; background: var(--glass);
  display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.pill-back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 4px 16px 24px; }
.wrap-wide { max-width: 1100px; }
.lead { color: var(--ink2); margin: 6px 0 0; }
.ph-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink2); }
.ph-empty svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.6; }
.empty { margin: 40px auto; max-width: 420px; padding: 28px 22px; border-radius: 24px; background: var(--glass); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.empty h2 { font-size: 20px; }
.empty p { margin: 0; color: var(--ink2); }

/* ---------- Свайпы ---------- */
body.v-swipe .app { height: 100vh; height: var(--app-h, 100vh); }
.swipe { flex: 1; min-height: 0; width: 100%; max-width: 470px; margin: 0 auto; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink2); display: flex; justify-content: space-between; gap: 8px; }
.deck { position: relative; flex: 1; min-height: 170px; }
.card {
  position: absolute; inset: 0; border-radius: var(--r); background: #fff; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(31, 26, 23, 0.16);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: transform 0.3s ease;
}
.card.dragging { transition: none; cursor: grabbing; }
.card.under { transform: scale(0.95) translateY(14px); opacity: 0.6; box-shadow: none; pointer-events: none; }
.card .ph { position: relative; flex: 1; min-height: 0; background: var(--soft); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 5px; }
.bars span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); box-shadow: 0 0 3px rgba(0, 0, 0, 0.25); }
.bars span.on { background: #fff; }
.stamp {
  position: absolute; top: 34px; padding: 6px 14px; border-radius: 12px; border: 3px solid;
  font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.88); opacity: 0; pointer-events: none;
}
.s-like { left: 18px; color: #22662C; border-color: #22662C; transform: rotate(-12deg); }
.s-nope { right: 18px; color: #A32A2A; border-color: #A32A2A; transform: rotate(12deg); }
.ph-nav {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.85); display: none; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.ph-nav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ph-prev { left: 10px; } .ph-next { right: 10px; }
@media (hover: hover) and (pointer: fine) { .card:hover .ph-nav { display: grid; } }
.vbadge {
  position: absolute; left: 12px; bottom: 12px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  background: rgba(20, 17, 15, 0.78); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
}
.vbadge svg { width: 16px; height: 16px; fill: #fff; }
.card .info { padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.card h2 { font-size: 28px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card h2 small { font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--ink2); letter-spacing: 0; }
.card .more { font-size: 13px; font-weight: 700; color: var(--ink2); }
.actions { display: flex; align-items: flex-end; justify-content: center; gap: 14px; flex-shrink: 0; }
.act-btn { border: none; background: none; padding: 0; min-width: 84px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink); }
.act-label { font-size: 14px; font-weight: 700; line-height: 1.1; }
.act { border: none; border-radius: 50%; display: grid; place-items: center; transition: transform 0.15s ease; }
.act-btn:active .act { transform: scale(0.92); }
.act-btn:focus-visible { outline: none; }
.act-btn:focus-visible .act { outline: 3px solid var(--ink); outline-offset: 3px; }
.act-nope { width: 70px; height: 70px; background: #fff; box-shadow: 0 8px 20px rgba(31, 26, 23, 0.14); }
.act-nope svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.act-info { width: 58px; height: 58px; background: var(--glass); }
.act-info svg { width: 24px; height: 24px; fill: var(--ink); }
.act-like { width: 86px; height: 86px; background: var(--accent); box-shadow: 0 10px 24px rgba(31, 26, 23, 0.22); }
.act-like svg { width: 38px; height: 38px; fill: #fff; }
.keys { text-align: center; font-size: 13px; color: var(--ink2); margin: -4px 0 0; display: none; }
@media (hover: hover) and (pointer: fine) { .keys { display: block; } }
.done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 0 24px 40px; max-width: 460px; margin: 0 auto; }
.done h1 { font-size: 28px; }
.done p { margin: 0; color: var(--ink2); }
/* Невысокие экраны телефонов (браузер с панелями сверху и снизу) */
@media (max-height: 760px) {
  body.v-swipe .top { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; gap: 8px; }
  body.v-swipe .logo-txt b { font-size: 19px; }
  body.v-swipe .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  body.v-swipe .fav-btn { height: 42px; }
  body.v-swipe .tab { height: 36px; }
  .swipe { gap: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .hint { font-size: 13px; }
  .card h2 { font-size: 24px; }
  .card .info { padding: 10px 16px 12px; gap: 6px; }
  .card .more { display: none; }
  .card .tags { flex-wrap: nowrap; overflow: hidden; }
  .card .tag { white-space: nowrap; }
  .act-nope { width: 60px; height: 60px; } .act-like { width: 70px; height: 70px; } .act-info { width: 52px; height: 52px; }
  .act-nope svg { width: 26px; height: 26px; } .act-like svg { width: 32px; height: 32px; }
  .keys { display: none !important; }
}
@media (max-height: 600px) {
  .hint { display: none; }
  body.v-swipe .top { gap: 6px; }
  .card h2 { font-size: 21px; }
  .card h2 small { font-size: 14px; }
  .act-nope { width: 54px; height: 54px; } .act-like { width: 62px; height: 62px; } .act-info { width: 46px; height: 46px; }
  .act-label { font-size: 13px; }
}

/* ---------- Все коты ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 700; font-size: 14px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; } }
.tile { position: relative; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 6px 18px rgba(31, 26, 23, 0.07); }
.tile-open { display: block; width: 100%; padding: 0; border: none; background: none; text-align: left; }
.tile-ph { aspect-ratio: 4 / 5; background: var(--soft); }
.tile-ph img { width: 100%; height: 100%; object-fit: cover; }
.tile-txt { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile-txt b { font-family: var(--display); font-weight: 700; font-size: 17px; }
.tile-txt span { font-size: 13px; font-weight: 600; color: var(--ink2); }
.tile-fav { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.9); display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); }
.tile-fav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; }
.tile-fav[aria-pressed="true"] svg { fill: var(--c, var(--ink)); stroke: var(--c, var(--ink)); }
.home-badge { position: absolute; top: 10px; left: 10px; padding: 5px 12px; border-radius: 999px; background: #DCEBD5; color: #1F4D25; font-size: 12px; font-weight: 700; }

/* ---------- Избранное ---------- */
.fav-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.fav { background: #fff; border-radius: 26px; box-shadow: 0 6px 18px rgba(31, 26, 23, 0.08); overflow: hidden; }
.fav-top { display: flex; gap: 14px; padding: 14px; align-items: center; }
.fav-ph { width: 96px; height: 96px; flex-shrink: 0; border-radius: 20px; overflow: hidden; border: none; padding: 0; background: var(--soft); }
.fav-ph img { width: 100%; height: 100%; object-fit: cover; }
.fav-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fav-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fav-name b { font-family: var(--display); font-size: 20px; }
.fav-txt .meta { font-size: 14px; font-weight: 600; color: var(--ink2); }
.unfav { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; display: grid; place-items: center; flex-shrink: 0; }
.unfav svg { width: 22px; height: 22px; }
.fav-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 14px 14px; }
.fav-btns .btn { min-height: 48px; font-size: 14px; padding: 0 12px; }
.fav-home { margin: 0 14px 14px; padding: 12px 14px; border-radius: 16px; background: #DCEBD5; color: #1F4D25; font-weight: 700; font-size: 14px; }

/* ---------- Страница кота ---------- */
.detail { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px 28px; }
.dbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.fav-toggle svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; }
.fav-toggle[aria-pressed="true"] svg { fill: var(--accent); }
.dgrid { display: grid; gap: 20px; }
@media (min-width: 820px) { .dgrid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; } .dinfo { position: sticky; top: 90px; } }
.media { display: flex; justify-content: center; }
.media video {
  display: block; width: auto; max-width: 100%; aspect-ratio: 9 / 16;
  height: min(calc(var(--app-h, 100vh) - var(--video-off, 206px)), calc((100vw - 32px) * 16 / 9), 760px);
  min-height: 200px; object-fit: contain; background: #14110F;
  border-radius: var(--r); box-shadow: 0 18px 40px rgba(31, 26, 23, 0.2);
}
.media video:fullscreen { border-radius: 0; height: 100%; width: 100%; max-width: none; }
.media .hero { display: block; width: 100%; border: none; padding: 0; background: var(--soft); border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 40px rgba(31, 26, 23, 0.2); }
.media .hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dinfo { display: flex; flex-direction: column; gap: 14px; }
.dinfo h1 { font-size: 34px; }
.dinfo .meta { margin: -6px 0 0; font-size: 17px; font-weight: 600; color: var(--ink2); }
.story { margin: 0; font-size: 17px; line-height: 1.55; }
.dinfo .tags .tag { background: var(--glass); }
.dinfo .btn-accent { min-height: 64px; width: 100%; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.curator { margin: 0; font-size: 14px; color: var(--ink2); }
.h2 { font-size: 20px; margin: 28px 0 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
@media (min-width: 820px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; } }
.gallery button { padding: 0; border: none; border-radius: 18px; overflow: hidden; background: var(--soft); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery button:hover img { transform: scale(1.04); }

/* ---------- Знакомство ---------- */
.meet { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.meet-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.avatar { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: 0 14px 30px rgba(31, 26, 23, 0.18); background: var(--soft); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.meet-head h1 { font-size: 26px; }
.meet-head p { margin: 0; color: var(--ink2); max-width: 340px; }
.vol-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.7); }
.vol-ph { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(31, 26, 23, 0.12); background: var(--soft); }
.vol-ph img { width: 100%; height: 100%; object-fit: cover; }
.vol-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vol-txt b { font-family: var(--display); font-size: 17px; }
.vol-txt span { font-size: 14px; color: var(--ink2); line-height: 1.35; }
.meet-btns { display: flex; flex-direction: column; gap: 10px; }
.meet-btns .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meet-btns .row2 .btn:only-child { grid-column: 1 / -1; }
.meet-small { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.meet-small a { min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; text-decoration: none; }
.note { font-size: 13px; color: var(--ink2); text-align: center; margin: 0; }
.linkbtn { border: none; background: none; font-weight: 700; font-size: 15px; text-decoration: underline; min-height: 44px; }
.cb { padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.85); display: flex; flex-direction: column; gap: 12px; }
.cb label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.cb input[type="text"], .cb input[type="tel"] { height: 52px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-size: 16px; }
.cb input:focus { border-color: var(--ink); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.consent input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-err { margin: 0; color: #A32A2A; font-weight: 700; font-size: 14px; }
.thanks { padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.85); text-align: center; font-weight: 600; }

/* ---------- Истории и о волонтёре ---------- */
.about { display: grid; gap: 20px; margin-top: 12px; }
@media (min-width: 720px) { .about { grid-template-columns: 220px minmax(0, 1fr); align-items: start; } }
.about-ph { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; background: var(--soft); border: 6px solid #fff; box-shadow: 0 14px 30px rgba(31, 26, 23, 0.15); }
.about-ph img { width: 100%; height: 100%; object-fit: cover; }
.about-txt { display: flex; flex-direction: column; gap: 12px; }
.about-txt p { margin: 0; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { padding: 14px 18px; border-radius: 20px; background: #fff; min-width: 140px; }
.stat b { display: block; font-family: var(--display); font-size: 28px; }
.stat span { font-size: 14px; color: var(--ink2); font-weight: 600; }

/* ---------- Напоминание ---------- */
.reminder { width: calc(100% - 32px); max-width: 640px; margin: 0 auto 12px; padding: 12px 12px 12px 16px; border-radius: 20px; background: #fff; box-shadow: 0 8px 22px rgba(31, 26, 23, 0.12); display: flex; align-items: center; gap: 12px; }
.reminder[hidden] { display: none; }
.reminder .r-ph { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--soft); }
.reminder .r-ph img { width: 100%; height: 100%; object-fit: cover; }
.reminder p { margin: 0; flex: 1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.reminder .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.reminder .x { width: 44px; height: 44px; border: none; background: none; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.reminder .x svg { width: 18px; height: 18px; stroke: var(--ink2); stroke-width: 2.4; stroke-linecap: round; fill: none; }
@media (max-width: 479px) { .reminder { flex-wrap: wrap; } .reminder p { flex-basis: calc(100% - 120px); } .reminder .btn { margin-left: 64px; } }

/* ---------- Фото на весь экран ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: #14110F; color: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); font-weight: 700; }
.lb-img { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px; touch-action: pan-y; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.lb-nav { display: flex; justify-content: center; gap: 16px; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
.lb-btn { width: 60px; height: 60px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { width: 48px; height: 48px; }
.lightbox :focus-visible { outline-color: #fff; }

/* ---------- Всплывающая подсказка ---------- */
.toast { position: fixed; left: 50%; top: 84px; z-index: 70; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 22px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 10px 24px rgba(31, 26, 23, 0.25); text-align: center; }
.toast[hidden] { display: none; }

.noscript { padding: 40px 20px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
[hidden] { display: none !important; }
.media .hero img { max-height: max(300px, calc(var(--app-h, 100vh) - 190px)); }

/* На странице кота и знакомства на телефоне вкладки не нужны — есть «Назад». Место отдаём видео. */
@media (max-width: 639px) {
  body.v-cat .tabs, body.v-meet .tabs { display: none; }
  body.v-cat { --video-off: 150px; }
}

.btn-yt { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(31, 26, 23, 0.08); align-self: flex-start; }
.btn-yt svg { width: 20px; height: 20px; fill: #C4302B; }

/* Логотип крупно на странице «О волонтёре» */
.logo[aria-current="page"] .logo-mark { box-shadow: 0 0 0 3px #fff; }
.brand-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 0 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.brand-big { width: 128px; height: 128px; object-fit: contain; border-radius: 32px; animation: brandIn 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.2) both; }
.brand-hero h1 { font-size: 34px; animation: fadeUp 0.4s 0.1s ease both; }
.brand-slogan { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink2); animation: fadeUp 0.4s 0.18s ease both; }
@keyframes brandIn { from { transform: scale(0.35); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Страница кота: большое фото + лента фото и видео ---------- */
.media { display: block; }
.viewer { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: max(280px, calc(var(--app-h, 100vh) - 250px)); border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 40px rgba(31, 26, 23, 0.2); touch-action: pan-y; user-select: none; }
.viewer .hero { display: block; width: 100%; height: 100%; padding: 0; border: none; background: none; border-radius: 0; box-shadow: none; cursor: zoom-in; }
.viewer .hero img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; -webkit-user-drag: none; }
.viewer video { display: block; width: 100%; height: 100%; max-width: none; min-height: 0; aspect-ratio: auto; object-fit: contain; background: #14110F; border-radius: 0; box-shadow: none; }
.viewer .ph-empty { height: 100%; }
.vw-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.88); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); z-index: 2; }
.vw-nav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vw-prev { left: 10px; } .vw-next { right: 10px; }
.viewer.is-video .vw-nav { top: 40%; }
.vw-count { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 17, 15, 0.7); color: #fff; font-size: 13px; font-weight: 700; z-index: 2; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 68px; height: 68px; padding: 0; border-radius: 16px; overflow: hidden; border: 3px solid transparent; background: var(--soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--accent); }
.thumb-video { background: #14110F; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 700; }
.thumb-video svg { width: 22px; height: 22px; fill: #fff; }
@media (min-width: 820px) { .thumb { flex-basis: 76px; height: 76px; } }

.vw-video { position: absolute; left: 12px; bottom: 12px; z-index: 2; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; border: none; background: rgba(20, 17, 15, 0.8); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.vw-video svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- Счастливые истории: кот в новом доме ---------- */
.story-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 16px 0 18px; }
.story-head h1 { font-size: 34px; }
.story-head .lead { margin: 0; }
.home-badge.static { position: static; }
.story-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.story-gallery.one { grid-template-columns: minmax(0, 560px); }
@media (min-width: 820px) { .story-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.story-gallery button { padding: 0; border: none; border-radius: 22px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; cursor: zoom-in; }
.story-gallery.one button { aspect-ratio: auto; }
.story-gallery img { width: 100%; height: 100%; object-fit: cover; }
.story-quote { margin: 22px 0 0; padding: 18px 20px; border-radius: 22px; background: var(--glass); }
.story-quote p { margin: 0 0 8px; font-size: 18px; line-height: 1.55; }
.story-quote cite { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink2); }
.story-before { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.story-before img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }

/* ---------- Фото на весь экран: увеличение ---------- */
.lb-img { overflow: hidden; touch-action: none; position: relative; }
.lb-img img { transform-origin: center center; will-change: transform; cursor: zoom-in; }
.lb-img.zoomed img { cursor: grab; }
.lb-hint { margin: 6px 0 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) { .lb-hint { display: none; } }
/* ---------- Видео в своём окне с крестиком ---------- */
.lb-video { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 8px calc(16px + env(safe-area-inset-bottom)); }
.lb-video video { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; background: #000; }
.lightbox .lb-close { width: 52px; height: 52px; background: rgba(255, 255, 255, 0.2); }
.lightbox .lb-close svg { width: 28px; height: 28px; stroke-width: 2.8; }
/* кнопка «Смотреть видео» вместо фото, если фото нет */
.vw-play { width: 100%; height: 100%; border: none; background: #14110F; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 16px; }
.vw-play svg { width: 54px; height: 54px; fill: #fff; }
/* плитка видео на странице истории */
.story-video { position: relative; background: #14110F !important; }
.story-video img { opacity: 0.55; }
.story-video span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; }
.story-video span svg { width: 46px; height: 46px; fill: #fff; }

/* ---------- Зум: фото можно увеличивать двумя пальцами и на странице ---------- */
/* Браузер сам увеличивает/уменьшает страницу двумя пальцами — в том числе поверх фото. Ловушки больше нет. */
.card { touch-action: pinch-zoom; }
.viewer { touch-action: pan-y pinch-zoom; }
/* «Каким был у нас» — фото открываются по нажатию */
.story-before button { flex-shrink: 0; padding: 0; border: none; background: none; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.story-before button img { display: block; }
/* Видео в окне: занимает всё свободное место, вертикальное — во всю высоту */
.lb-video { display: block; position: relative; padding: 0 0 calc(12px + env(safe-area-inset-bottom)); }
.lb-video video { position: absolute; inset: 0 0 calc(12px + env(safe-area-inset-bottom)) 0; width: 100%; height: calc(100% - 12px - env(safe-area-inset-bottom)); max-width: none; max-height: none; object-fit: contain; border-radius: 0; background: #000; }
/* Открытое фото всегда целиком помещается в окно (и на компьютере, и на телефоне) */
.lb-img { display: block; position: relative; padding: 0; }
.lb-img img { position: absolute; inset: 0 8px; width: calc(100% - 16px); height: 100%; max-width: none; max-height: none; object-fit: contain; border-radius: 0; }
.lb-zoom { display: none; }
@media (hover: hover) and (pointer: fine) { .lb-zoom { display: grid; } }
.lb-zoom span { font-size: 30px; line-height: 1; color: #fff; font-weight: 400; margin-top: -3px; }

/* ---------- Страница никогда не шире экрана (иначе окно фото на телефоне уезжало вправо) ---------- */
html, body { overflow-x: clip; }
.dgrid { grid-template-columns: minmax(0, 1fr); }
.dgrid > * { min-width: 0; }
@media (min-width: 820px) { .dgrid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } }
.thumbs { max-width: 100%; }

/* ---------- Видео — последний слайд ---------- */
.vw-vtile { position: relative; background: #14110F !important; }
.vw-vtile img { filter: brightness(0.55); }
.vw-vplay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; }
.vw-vplay svg { width: 72px; height: 72px; padding: 18px 14px 18px 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); fill: #fff; }
.vw-vplay b { font-size: 18px; }
.lb-vslide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 0; }
.lb-tovideo { align-self: center; margin: 8px 0 0; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.lb-tovideo svg { width: 16px; height: 16px; fill: #fff; }
.lb-hint-v { display: block !important; }

/* ---------- Плашка про cookie ---------- */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; max-width: 560px; margin: 0 auto; padding: 12px 12px 12px 18px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(31, 26, 23, 0.22); display: flex; align-items: center; gap: 12px; }
.cookie-bar p { margin: 0; font-size: 14px; line-height: 1.35; flex: 1; }
.cookie-bar a { color: inherit; }
.cookie-bar .btn { flex-shrink: 0; min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Соцсети на странице «О волонтёре» ---------- */
.social-title { margin: 8px 0 0; font-weight: 700; color: var(--ink2); }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-row .btn-yt { align-self: auto; }
.btn-tt svg { fill: #111; }
.btn-rt svg { fill: #1F2BDE; }
