:root{
  --bg:#FFFBF5;
  --tint:#FBF4E9;
  --card:#FFFFFF;
  --ink:#2A2621;
  --soft:#6E6559;
  --line:#EDE3D4;
  --coral:#E2563F;
  --teal:#17977F;
  --violet:#6E5AC6;
  --amber:#D8930F;
  --pad:18px;
  --r:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:Onest,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;
}
h1,h2,h3{margin:0;line-height:1.12;letter-spacing:-.025em;font-weight:800}
h1{font-size:clamp(28px,7vw,44px)}
h2{font-size:clamp(23px,5.2vw,31px)}
h3{font-size:18px;letter-spacing:-.015em;font-weight:700}
p{margin:.6em 0}
a{color:var(--ink)}
img{max-width:100%;display:block}
.wrap{max-width:800px;margin:0 auto;padding:0 var(--pad)}
.narrow{max-width:56ch}
section{padding:34px 0}
:focus-visible{outline:3px solid var(--coral);outline-offset:2px}
.soft{color:var(--soft)}
.fill{background:#FFEFAF;border-radius:4px;padding:0 4px;font-weight:600}
.center{text-align:center}

/* кнопки */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:15px 22px;border:0;border-radius:12px;cursor:pointer;
  font:inherit;font-weight:700;font-size:17px;text-decoration:none;
  transition:background .15s ease,transform .07s ease;
}
.btn:active{transform:translateY(1px)}
.b-main{background:var(--coral);color:#fff}
.b-main:hover{background:#cf4b35}
.b-line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--line)}
.b-line:hover{background:var(--tint)}
.b-ink{background:var(--ink);color:#fff}
.b-ink:hover{background:#443d34}
.sm{padding:11px 16px;font-size:15px;border-radius:10px}

/* шапка */
header{position:sticky;top:0;z-index:60;background:rgba(255,251,245,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:12px;height:58px}
.logo{display:flex;align-items:center;gap:9px;text-decoration:none;font-weight:800;font-size:16.5px;letter-spacing:-.02em}
.logo i{width:28px;height:28px;flex:none;border-radius:50%;background:var(--coral);display:grid;place-items:center}
.logo i svg{width:18px;height:18px}
.bar nav{margin-left:auto;display:none;gap:20px;font-size:15px;font-weight:600}
.bar nav a{text-decoration:none;color:var(--soft)}
.bar nav a:hover{color:var(--ink)}
.bar nav a.on{color:var(--ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.bar .btn{margin-left:auto}
@media(min-width:860px){.bar nav{display:flex}.bar .btn{margin-left:16px}}
@media(max-width:859px){.bar .btn{display:none}}

/* нижняя навигация на телефоне */
.tabs{display:flex;gap:7px;overflow-x:auto;padding:10px var(--pad) 0;-webkit-overflow-scrolling:touch}
.tabs a{flex:none;text-decoration:none;font-size:14.5px;font-weight:600;color:var(--soft);
  border:1px solid var(--line);background:var(--card);border-radius:100px;padding:7px 14px}
.tabs a.on{background:var(--ink);color:#fff;border-color:var(--ink)}
@media(min-width:860px){.tabs{display:none}}

/* фото-заглушки */
.ph{
  background:var(--tint);border:1px solid var(--line);border-radius:var(--r);
  display:grid;place-items:center;text-align:center;color:#a3927a;
  font-size:13.5px;font-weight:600;padding:16px;line-height:1.35;overflow:hidden;
}
.ph svg{width:38px;height:38px;margin:0 auto 8px;opacity:.5}

/* первый экран */
.hero{padding-top:24px}
.hero h1{max-width:15ch}
.hero .sub{font-size:clamp(17px,4vw,20px);color:var(--soft);max-width:34ch;margin-top:12px}
.hero .ph{aspect-ratio:16/11;margin:20px 0}
.cta{display:grid;gap:10px}
@media(min-width:560px){.cta{grid-template-columns:auto auto;justify-content:start}}
.facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.facts div{background:var(--card);border:1px solid var(--line);border-radius:100px;padding:7px 15px;font-size:15px;font-weight:500}
.facts b{font-weight:800}

/* полоса фотографий */
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.strip .ph{aspect-ratio:1}

/* нужды */
.needs-box{background:var(--tint);border:1px solid var(--line);border-radius:22px;padding:22px 20px}
.tagline{display:inline-block;background:var(--amber);color:#fff;font-size:12.5px;font-weight:700;padding:4px 11px;border-radius:100px;margin-bottom:12px}
.needs{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:8px}
.needs li{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 15px;display:flex;align-items:center;gap:11px;font-weight:500;font-size:16.5px}
.needs li .box{width:19px;height:19px;border:1.8px solid #cdbda4;border-radius:5px;flex:none}
.needs li em{font-style:normal;margin-left:auto;font-size:12.5px;font-weight:700;color:var(--coral);border:1.5px solid var(--coral);padding:2px 9px;border-radius:100px;white-space:nowrap}

/* витрина способов */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:20px}
.tile{
  background:var(--card);border:1px solid var(--line);border-left:5px solid var(--c);
  border-radius:14px;padding:15px 15px 17px;text-decoration:none;display:flex;flex-direction:column;min-height:132px;
}
.tile:hover{border-color:var(--c);border-left-color:var(--c)}
.tile .n{width:25px;height:25px;border-radius:50%;background:var(--c);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13.5px;margin-bottom:auto}
.tile strong{font-size:16.5px;font-weight:700;line-height:1.2;margin-top:12px;letter-spacing:-.015em}
.tile small{font-size:13.5px;color:var(--soft);margin-top:5px;line-height:1.35}

/* секции способов */
.way{border-top:1px solid var(--line);scroll-margin-top:70px}
.way:nth-of-type(even){background:var(--tint)}
.way .head{display:flex;gap:13px;align-items:flex-start;margin-bottom:6px}
.way .num{width:38px;height:38px;flex:none;border-radius:50%;background:var(--c);color:#fff;display:grid;place-items:center;font-weight:800;font-size:17px}
.way .intro{color:var(--soft);max-width:52ch;margin-top:8px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px;margin-top:14px}
.way:nth-of-type(even) .panel{background:#fff}
.panel h3{margin-bottom:9px}
.panel > p:first-of-type{margin-top:0}
.panel ul{padding-left:19px;margin:.5em 0}
.panel li{margin:.35em 0}
.two{display:grid;gap:12px}
@media(min-width:640px){.two{grid-template-columns:1fr 1fr;align-items:start}}
.kv{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line);font-size:16px}
.kv:last-of-type{border:0}
.kv span:first-child{color:var(--soft)}
.kv span:last-child{font-weight:600;text-align:right}
.qr{aspect-ratio:1;max-width:140px;border:1.5px dashed #cdbda4;border-radius:14px;display:grid;place-items:center;text-align:center;font-size:13px;color:var(--soft);padding:10px;font-weight:600}

/* точки сбора: 1 в ряд на телефоне, 2 на компьютере */
.spots{display:grid;gap:10px;margin-top:12px;grid-template-columns:1fr}
@media(min-width:700px){.spots{grid-template-columns:1fr 1fr}}
.spot{border:1px solid var(--line);border-radius:14px;padding:13px 14px;display:flex;gap:11px;align-items:flex-start;background:var(--card)}
.spot .m{width:26px;height:26px;flex:none;border-radius:50%;background:var(--teal);color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px;margin-top:2px}
.spot b{display:block;font-size:15.5px;font-weight:600;line-height:1.3}
.spot span{font-size:14px;color:var(--soft)}

/* питомцы */
.pets{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
@media(min-width:720px){.pets{grid-template-columns:repeat(3,1fr)}}
.pet{background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column;text-align:left;padding:0;font:inherit;color:inherit;cursor:pointer}
.pet:hover{border-color:#d8c8ad}
.pet .pic{aspect-ratio:1;background:var(--tint);display:grid;place-items:center;position:relative;border-bottom:1px solid var(--line)}
.pet .pic svg{width:44px;height:44px;opacity:.4}
.pet .st{position:absolute;left:9px;top:9px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:700;padding:3px 10px;border-radius:100px}
.pet .st.h{color:var(--teal);border-color:var(--teal)}
.pet .st.c{color:var(--violet);border-color:var(--violet)}
.pet .in{padding:13px 14px 15px;display:flex;flex-direction:column;flex:1;gap:2px}
.pet h3{font-size:19px}
.pet .meta{font-size:13.5px;color:var(--soft);font-weight:500}
.pet .ab{font-size:14.5px;margin:5px 0 10px}
.pet .more{margin-top:auto;font-size:14.5px;font-weight:700;color:var(--coral)}

/* попап */
.ov{position:fixed;inset:0;background:rgba(42,38,33,.55);z-index:100;display:none;padding:16px;overflow-y:auto}
.ov.open{display:grid;place-items:center}
.modal{background:var(--bg);border-radius:22px;max-width:520px;width:100%;overflow:hidden;position:relative;margin:auto}
.modal .pic{aspect-ratio:4/3;background:var(--tint);display:grid;place-items:center;border-bottom:1px solid var(--line)}
.modal .pic svg{width:56px;height:56px;opacity:.4}
.modal .in{padding:20px}
.modal .st{display:inline-block;font-size:12.5px;font-weight:700;padding:3px 11px;border-radius:100px;border:1px solid var(--teal);color:var(--teal);margin-bottom:10px}
.modal .st.c{border-color:var(--violet);color:var(--violet)}
.modal h3{font-size:25px;letter-spacing:-.025em}
.modal .meta{color:var(--soft);font-size:15px;font-weight:500;margin-top:2px}
.modal .full{margin:14px 0 18px;font-size:16.5px}
.x{position:absolute;right:12px;top:12px;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.92);
  font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center;color:var(--ink)}
.x:hover{background:#fff}

/* карта-картинка */
.mapbtn{display:block;width:100%;padding:0;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;cursor:pointer;background:none;margin:16px 0}
.mapimg{aspect-ratio:16/11;
  background:repeating-linear-gradient(-45deg,#f7efe2 0 13px,#f2e8d8 13px 26px);
  display:grid;place-items:center;text-align:center;color:#a3927a;font-weight:600;padding:20px;position:relative}
.mapimg .hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:var(--ink);color:#fff;
  font-size:14px;font-weight:700;padding:9px 16px;border-radius:100px;white-space:nowrap}
.routes{display:grid;gap:10px;margin-top:6px}

/* контакты */
.dark{background:var(--ink);color:#fff}
.dark a{color:#fff}
.dark .kv{border-bottom-color:#463f36;font-size:17px}
.dark .kv span:first-child{color:#a89b8c}
.dark .fill{color:var(--ink)}
footer{background:var(--ink);color:#a89b8c;text-align:center;font-size:14px;padding:22px 0 110px}
footer a{color:#a89b8c}
@media(min-width:860px){footer{padding-bottom:32px}}

/* липкая кнопка */
.sticky{position:fixed;left:0;right:0;bottom:0;z-index:70;background:rgba(255,251,245,.97);backdrop-filter:blur(10px);
  border-top:1px solid var(--line);padding:10px var(--pad) calc(10px + env(safe-area-inset-bottom));display:flex;gap:9px}
.sticky .btn{flex:1;padding:14px 12px;font-size:16px}
.sticky .btn:last-child{flex:0 0 40%}
@media(min-width:860px){.sticky{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto}}

/* ═══════════════════════════════════════════════════════════
   МОБИЛЬНАЯ ВЕРСИЯ — ОСНОВНОЙ СЦЕНАРИЙ
   80% заходов с телефона, поэтому телефон здесь не «сжатый
   компьютер», а отдельная раскладка.
   ═══════════════════════════════════════════════════════════ */

/* якоря не заезжают под липкую шапку */
[id]{scroll-margin-top:118px}

@media(max-width:600px){

  /* пальцы, а не курсор: минимальная зона нажатия 44px */
  .tabs a{padding:11px 15px;font-size:15px}
  .tabs{padding-bottom:2px}
  .btn.sm{padding:13px 17px}

  /* карточки питомцев на телефоне — горизонтальные:
     квадратик 2×2 режет и фото, и текст */
  .pets{grid-template-columns:1fr;gap:10px}
  .pet{flex-direction:row;align-items:stretch}
  .pet .pic{aspect-ratio:auto;width:116px;flex:none;border-bottom:0;border-right:1px solid var(--line)}
  .pet .pic svg{width:34px;height:34px}
  .pet .st{left:6px;top:6px;font-size:11px;padding:2px 8px}
  .pet .in{padding:12px 13px}
  .pet h3{font-size:18px}
  .pet .ab{font-size:14px;margin:4px 0 8px}

  /* фото-полосы: 3 в ряд на телефоне — это марки, а не фото */
  .strip{grid-template-columns:1fr 1fr}

  /* плитки способов: на узких экранах в одну колонку,
     чтобы подпись не ломалась по слогам */
  .tiles{gap:9px}
  .tile{min-height:0;padding:13px 14px 15px}
  .tile .n{margin-bottom:8px}
  .tile strong{margin-top:0;font-size:15.5px}
  .tile small{font-size:13px}
}

@media(max-width:380px){
  .tiles{grid-template-columns:1fr}
  .tile{flex-direction:row;align-items:center;gap:12px}
  .tile .n{margin:0}
  .tile div{min-width:0}
}

/* попап на телефоне — шторка снизу, как в приложениях:
   до крестика вверху экрана большим пальцем не дотянуться */
@media(max-width:600px){
  .ov{padding:0}
  .ov.open{align-items:end}
  .modal{max-width:none;border-radius:22px 22px 0 0;max-height:92vh;overflow-y:auto}
  .modal .pic{aspect-ratio:16/10}
  .modal::before{
    content:"";position:sticky;top:8px;display:block;
    width:42px;height:5px;border-radius:100px;background:rgba(255,255,255,.85);
    margin:8px auto -13px;z-index:2;
  }
  .modal .in{padding:18px 18px calc(20px + env(safe-area-inset-bottom))}
  .modal .btn{width:100%}
}

/* высота вьюпорта с учётом адресной строки браузера */
@supports(height:100dvh){
  .ov.open{min-height:100dvh}
}

/* ═══════════════════════════════════════════════════════════
   УДОБСТВО: копирование, крошки, фильтры, уведомления
   ═══════════════════════════════════════════════════════════ */

/* ссылка «сразу к содержимому» для клавиатуры и скринридеров */
.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--ink);color:#fff;
  padding:12px 18px;border-radius:0 0 12px 0;font-weight:700;text-decoration:none}
.skip:focus{left:0}

/* хлебные крошки на внутренних страницах */
.crumbs{display:flex;align-items:center;gap:7px;font-size:14.5px;color:var(--soft);padding-top:16px}
.crumbs a{color:var(--soft);text-decoration:none}
.crumbs a:hover{color:var(--ink)}

/* строка реквизита с кнопкой копирования */
.kv.copyable{align-items:center}
.kv .cp{border:0;background:var(--tint);color:var(--ink);font:inherit;font-size:13.5px;font-weight:700;
  padding:8px 13px;border-radius:9px;cursor:pointer;white-space:nowrap;min-height:38px}
.kv .cp:hover{background:#f3e9d8}
.kv .val{display:flex;align-items:center;gap:10px;justify-content:flex-end;flex-wrap:wrap}

/* точки сбора кликабельны — ведут на маршрут */
.spot[data-address]{cursor:pointer;text-align:left;font:inherit;color:inherit;width:100%}
.spot[data-address]:hover{border-color:var(--teal)}
.spot .go{margin-left:auto;font-size:13.5px;font-weight:700;color:var(--teal);white-space:nowrap;align-self:center}

/* фильтр животных */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.filters button{border:1px solid var(--line);background:var(--card);color:var(--soft);
  font:inherit;font-size:15px;font-weight:600;padding:10px 16px;border-radius:100px;cursor:pointer;min-height:44px}
.filters button.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.empty{grid-column:1/-1;text-align:center;color:var(--soft);padding:26px 10px}

/* кнопки внутри попапа */
.mact{display:grid;gap:9px;grid-template-columns:1fr auto}
.mact .btn{width:100%}
.mnav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;
  border-top:1px solid var(--line);padding-top:12px;font-size:14.5px}

/* всплывающее уведомление о копировании */
.toast{position:fixed;left:50%;bottom:88px;transform:translate(-50%,14px);z-index:120;
  background:var(--ink);color:#fff;font-size:15px;font-weight:600;padding:12px 18px;border-radius:12px;
  max-width:calc(100% - 32px);text-align:center;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:860px){.toast{bottom:28px}}

/* ═══════════════════════════════════════════════════════════
   ИСПРАВЛЕНИЯ ПОСЛЕ ПРОВЕРКИ РЕНДЕРА
   ═══════════════════════════════════════════════════════════ */

/* подсветка не должна рваться на переносах строк */
.fill{
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  padding:1px 5px;line-height:1.7;
}

/* строка «поле — значение»: на телефоне в столбик,
   иначе длинное значение и кнопка копирования ломают строку */
@media(max-width:600px){
  .kv{flex-direction:column;align-items:flex-start;gap:5px;padding:11px 0}
  .kv span:first-child{font-size:14.5px}
  .kv span:last-child,.kv .val{text-align:left;justify-content:flex-start;width:100%}
}

/* точки сбора: часы работы отдельной строкой, «Маршрут» не уезжает */
.spot span{display:block;margin-top:2px}
.spot .go{align-self:center}
@media(max-width:600px){
  .spot{align-items:flex-start}
  .spot .go{align-self:flex-end;margin-top:6px}
}

/* фильтр животных — одна прокручиваемая лента, а не две строки */
.filters{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
  padding-bottom:4px;mask-image:linear-gradient(90deg,#000 88%,transparent)}
.filters button{flex:none}

/* верхние вкладки: видно, что лента прокручивается */
.tabs{mask-image:linear-gradient(90deg,#000 90%,transparent)}

/* плитки в узких экранах остаются столбиком —
   строкой номер и подпись вставали в один ряд */
@media(max-width:380px){
  .tiles{grid-template-columns:1fr 1fr}
  .tile{flex-direction:column}
  .tile .n{margin-bottom:8px}
}

/* фото-заглушки: были слишком крупными и пустыми */
.strip .ph{aspect-ratio:4/3}
.strip .ph:last-child:nth-child(odd){grid-column:1/-1;aspect-ratio:16/7}
.pet .pic svg{width:52px;height:52px;opacity:.5}
@media(max-width:600px){
  .pet .pic{width:124px}
  .pet .pic svg{width:42px;height:42px}
}

/* ——— попап ——— */
/* margin:auto перебивал прижатие к низу — шторка вставала по центру */
@media(max-width:600px){
  .modal{margin:0}
  .ov.open{align-content:end}
  .modal .pic{aspect-ratio:16/9}
  .modal .btn{width:auto}
  .mact .btn{width:100%}
}
/* полоска-хваталка вместо наезжающей на фото линии */
.modal::before{display:none}
@media(max-width:600px){
  .modal{padding-top:10px;background:var(--bg)}
  .modal::before{
    display:block;content:"";position:absolute;left:50%;top:5px;transform:translateX(-50%);
    width:40px;height:4px;border-radius:100px;background:rgba(42,38,33,.25);margin:0;z-index:3;
  }
  .modal .pic{border-radius:14px 14px 0 0;margin:0 0 0}
  .x{top:16px}
}
/* счётчик «1 из 6» сжимался в три строки */
.mnav span{flex:none;white-space:nowrap;font-weight:600}
.mnav .btn{flex:none;min-width:64px}

/* крестик не должен наезжать на заголовок в попапе без фото */
#map-modal .in{padding-right:60px}

/* правка: в столбике на телефоне подпись уезжала в центр,
   а значение растягивалось жёлтой полосой на всю ширину */
@media(max-width:600px){
  .kv,.kv.copyable{align-items:flex-start}
  .kv > span:last-child{width:auto;max-width:100%}
  .kv .val{width:auto;max-width:100%}
}

/* правка: кнопки «Копировать» и вкладки были ниже 44px —
   на планшетах правила для телефона не срабатывали */
.kv .cp{min-height:44px;padding:10px 15px}
@media(max-width:900px){
  .tabs a{padding:11px 15px;font-size:15px;min-height:44px;display:flex;align-items:center}
  .filters button{min-height:44px}
  .btn.sm{padding:13px 17px}
}

/* ═══════════════════════════════════════════════════════════
   БУРГЕР-МЕНЮ (пробуем на главной — класс .burger-nav на <header>)
   ═══════════════════════════════════════════════════════════ */
.burger{
  display:none;width:44px;height:44px;flex:none;border:0;background:none;cursor:pointer;
  align-items:center;justify-content:center;gap:5px;flex-direction:column;border-radius:10px;
}
.burger span{display:block;width:22px;height:2.5px;border-radius:2px;background:var(--ink)}
.burger:hover{background:var(--tint)}

/* в шапке с бургером кнопка «Помочь» видна и на телефоне */
@media(max-width:859px){
  .burger-nav .burger{display:flex}
  .burger-nav .bar .btn{display:inline-flex;margin-left:auto}
  .burger-nav .bar .btn + .burger{margin-left:0}
}
@media(max-width:380px){
  .burger-nav .logo span.name{display:none}
  .burger-nav .bar .btn{padding:11px 13px;font-size:14.5px}
}

/* выезжающая панель */
.menu{
  position:fixed;inset:0;z-index:90;background:var(--bg);
  display:none;flex-direction:column;padding:0 var(--pad) calc(24px + env(safe-area-inset-bottom));
}
.menu.open{display:flex}
.menu-top{display:flex;align-items:center;height:58px;border-bottom:1px solid var(--line);margin:0 calc(var(--pad) * -1);padding:0 var(--pad)}
.menu-top .logo{pointer-events:none}
.menu-close{margin-left:auto;width:44px;height:44px;border:0;background:none;font-size:24px;line-height:1;cursor:pointer;border-radius:10px;color:var(--ink)}
.menu-close:hover{background:var(--tint)}
.menu nav{display:flex;flex-direction:column;margin-top:6px}
.menu nav a{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 0;font-size:25px;font-weight:800;letter-spacing:-.025em;
  text-decoration:none;border-bottom:1px solid var(--line);
}
.menu nav a::after{content:"→";color:var(--soft);font-size:20px;font-weight:600}
.menu nav a.on{color:var(--coral)}
.menu nav a.on::after{color:var(--coral)}
.menu .foot{margin-top:auto;display:grid;gap:10px;padding-top:24px}
.menu .foot .btn{width:100%}
.menu .note{font-size:14.5px;color:var(--soft);text-align:center}
body.locked{overflow:hidden}

/* кнопка «Помочь деньгами» в шапке с бургером — компактнее */
@media(max-width:859px){
  .burger-nav .bar .btn{padding:9px 14px;font-size:14.5px;border-radius:9px}
}
@media(max-width:380px){
  .burger-nav .bar .btn{padding:8px 11px;font-size:13.5px}
}

/* текст в шапке не переносится: на телефоне короткая подпись «Помочь» */
.btn,.logo{white-space:nowrap}
.cta-short{display:none}
@media(max-width:859px){
  .burger-nav .cta-full{display:none}
  .burger-nav .cta-short{display:inline}
  .burger-nav .bar .btn{flex:none}
}

/* ═══════════════════════════════════════════════════════════
   МЕНЮ-ШТОРКА (панель сверху, а не на весь экран)
   ═══════════════════════════════════════════════════════════ */
.menu{position:fixed;inset:0;z-index:90;display:none;background:rgba(42,38,33,.35)}
.menu.open{display:block}
.menu-panel{background:var(--bg);border-bottom:1px solid var(--line);padding:0 var(--pad) 10px}
.menu .foot{display:none}
.menu nav a{padding:18px 0;font-size:23px}
.menu nav a:last-child{border-bottom:0}

/* на самых узких экранах кнопку из шапки убираем — остаются логотип и меню */
@media(max-width:340px){
  .burger-nav .bar .btn{display:none}
}

/* короткое оглавление вместо второго набора плиток */
.toc{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.toc a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:600;font-size:15px;
  border:1px solid var(--line);background:var(--card);border-radius:100px;padding:10px 15px;min-height:44px}
.toc a:hover{border-color:var(--ink)}
.toc a i{width:9px;height:9px;border-radius:50%;background:var(--c);flex:none}

/* кнопка в шапке: компактная, но не ниже 42px — иначе тяжело попасть пальцем */
@media(max-width:859px){
  .burger-nav .bar .btn{min-height:42px;padding:0 14px}
}
@media(max-width:380px){
  .burger-nav .bar .btn{padding:0 12px}
}

/* шторка меню со скруглённым низом */
.menu-panel{
  border-radius:0 0 22px 22px;
  border-bottom:0;
  box-shadow:0 14px 28px -14px rgba(42,38,33,.28);
}
.menu-panel .menu-top{margin:0 calc(var(--pad) * -1);padding:0 var(--pad);border-bottom:1px solid var(--line)}
.menu nav a:last-child{border-bottom:0;padding-bottom:14px}

/* ═══════════════════════════════════════════════════════════
   ДОПОЛНЕНИЯ ДЛЯ WORDPRESS: настоящие фотографии вместо заглушек
   ═══════════════════════════════════════════════════════════ */
.hero-img{width:100%;aspect-ratio:16/11;object-fit:cover;border-radius:var(--r);margin:20px 0}
.hero-ph{aspect-ratio:16/11;margin:20px 0;display:grid;place-items:center;text-align:center}
.pet .pic img{width:100%;height:100%;object-fit:cover;display:block}
.ph-mini{color:#a3927a;font-size:12.5px;font-weight:600}
.modal .pic img{width:100%;height:100%;object-fit:cover}
.qr-img{width:150px;height:150px;border-radius:14px;border:1px solid var(--line);object-fit:contain;background:#fff}
.mapbtn img{width:100%;aspect-ratio:16/11;object-fit:cover;display:block}
.mapbtn{position:relative}
.hint-over{position:absolute;inset:0;display:grid;place-items:end center;padding-bottom:14px;pointer-events:none}
.kv .val{flex-wrap:wrap}

/* пятая плитка — во всю ширину: «взять питомца» это тоже помощь */
.tile.wide{grid-column:1/-1;min-height:0}
.tile.wide .n{margin-bottom:10px}

/* подробный текст питомца, написанный в редакторе WordPress */
.modal .rich{font-size:16.5px;margin:14px 0 18px}
.modal .rich p{margin:.7em 0}
.modal .rich p:first-child{margin-top:0}
.modal .rich img{max-width:100%;height:auto;border-radius:14px;margin:10px 0}
.modal .rich ul,.modal .rich ol{padding-left:20px;margin:.6em 0}
.modal .rich li{margin:.3em 0}
.modal .rich a{text-decoration:underline}

/* содержимое, набранное в редакторе страницы */
.editor-content{font-size:17px}
.editor-content p{margin:.7em 0}
.editor-content img{max-width:100%;height:auto;border-radius:var(--r);margin:14px 0}
.editor-content h2{font-size:clamp(23px,5.2vw,31px);margin:1.2em 0 .5em}
.editor-content h3{margin:1.1em 0 .4em}
.editor-content ul,.editor-content ol{padding-left:20px}
.editor-content .wp-block-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.editor-content figure{margin:14px 0}
.editor-content figcaption{font-size:14px;color:var(--soft);text-align:center;margin-top:6px}


/* ═══════════════════════════════════════════════════════════
   ПОДВАЛ ВСЕГДА ВНИЗУ
   На короткой странице (например, когда питомцев ещё нет)
   он раньше вис посреди экрана, а под ним оставалась пустота.
   ═══════════════════════════════════════════════════════════ */
html,body{min-height:100%}
body{display:flex;flex-direction:column;min-height:100vh}
@supports(min-height:100dvh){body{min-height:100dvh}}
body > main{flex:1 0 auto}
body > footer{flex:none;margin-top:auto}
/* шапка в потоке flex не должна сжиматься */
body > header{flex:none}

/* ═══════════════════════════════════════════════════════════
   ПРАВКИ ПО ЗАМЕЧАНИЯМ ПРИЮТА
   ═══════════════════════════════════════════════════════════ */

/* 8. читаемость: вторичный текст темнее, мелкие подписи не ниже 14px */
:root{--soft:#5A5248}
.tile small{font-size:14px}
.pet .meta{font-size:14px}
.upd,.needs-box .soft{font-size:14.5px}
.spot span{font-size:14.5px}
.crumbs{font-size:15px}
.soft{color:var(--soft)}

/* 3. первый экран: фото ниже, кнопки попадают в экран */
.hero-img,.hero-ph{aspect-ratio:3/2;max-height:36vh;object-fit:cover}
@media(max-width:600px){
  .hero{padding-top:18px}
  .hero h1{font-size:clamp(26px,6.6vw,30px)}
  .hero .sub{margin-top:8px;font-size:16.5px}
  .hero-img,.hero-ph{max-height:30vh;margin:14px 0}
  .cta{gap:9px}
}

/* 4. кнопка «Помочь» в шапке есть на любой ширине (шапка липкая) */
@media(max-width:340px){
  .burger-nav .bar .btn{display:inline-flex}
  .burger-nav .logo span.name{display:none}
}

/* 6. плитки: на телефоне вертикальный список со стрелкой */
.tile{align-items:flex-start}
.tile .chev{display:none}
.tile-text{display:block}
@media(max-width:700px){
  .tiles{grid-template-columns:1fr;gap:9px}
  .tile{
    flex-direction:row;align-items:center;gap:12px;min-height:0;
    padding:14px 14px 14px 15px;
  }
  .tile .n{margin:0;flex:none}
  .tile-text{flex:1;min-width:0}
  .tile strong{margin-top:0;font-size:16px}
  .tile small{margin-top:2px}
  .tile .chev{display:block;font-size:26px;color:var(--soft);line-height:1;flex:none}
  .tile.wide{grid-column:auto}
}

/* 7. питомцы: карусель со свайпом на главной */
.pets.carousel{
  display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;padding-bottom:6px;
  scrollbar-width:thin;
}
.pets.carousel .pet{
  flex:0 0 min(260px, 72vw);scroll-snap-align:start;flex-direction:column;
}
.pets.carousel .pet .pic{width:auto;aspect-ratio:1;border-right:0;border-bottom:1px solid var(--line)}
.pets.carousel .pet .ab{font-size:14.5px}

/* 9. список нужд: обычный список вместо непонятных чекбоксов */
.needs li .dot{
  width:7px;height:7px;border-radius:50%;background:var(--teal);flex:none;
}
.needs li{padding:13px 15px;font-size:16.5px}
.needs li em{font-size:13.5px;padding:4px 11px}

/* 10. кнопки связи */
.contact-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.contact-row .btn{flex:0 1 auto}
@media(max-width:480px){
  .contact-row{display:grid;grid-template-columns:1fr 1fr}
  .contact-row .btn{width:100%}
}

/* блок оплаты на главной */
.donate-box{
  background:var(--card);border:1px solid var(--line);border-radius:22px;padding:20px;
}
.donate-box h2{margin-bottom:6px}
.donate-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
@media(max-width:480px){
  .donate-actions{display:grid}
  .donate-actions .btn{width:100%}
}

/* подвал: контакты, соцсети, реквизиты */
footer{text-align:left;padding:28px 0 32px}
.foot-grid{display:grid;gap:18px}
@media(min-width:720px){.foot-grid{grid-template-columns:1fr 1fr 1fr;gap:24px}}
.foot-name{font-weight:700;color:#fff;margin-bottom:6px}
.foot-line{font-size:14.5px;margin:3px 0}
.foot-line a{color:#fff;text-decoration:underline}
.foot-social{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;font-size:14.5px}
.foot-social a{color:#fff;text-decoration:underline}
.foot-req{font-size:13.5px;white-space:pre-line;line-height:1.5}

/* ═══════════════════════════════════════════════════════════
   ПРАВКИ: ШАПКА И ВЫРАВНИВАНИЕ КОНТЕНТА
   ═══════════════════════════════════════════════════════════ */

/* шапка: логотип слева, меню сразу за ним, кнопка прижата к правому краю */
.bar{gap:0}
.bar .logo{margin-right:28px}
.bar nav{margin-left:0;margin-right:auto;gap:22px}
.bar nav a{font-size:15.5px}
.bar .btn{margin-left:0}
.burger{margin-left:14px}
@media(max-width:859px){
  .bar .logo{margin-right:auto}
  .bar .btn{margin-left:0}
}

/* первый экран: всё по одной сетке, а не вразнобой */
.hero h1{max-width:22ch}
.hero .sub{max-width:46ch}
/* фото во всю ширину колонки; ограничение по высоте — только на телефоне */
.hero-img,.hero-ph{max-height:none;width:100%;aspect-ratio:16/9}
@media(max-width:600px){
  .hero-img,.hero-ph{aspect-ratio:3/2;max-height:30vh}
  .hero h1,.hero .sub{max-width:none}
}

/* плитки: заголовок и подпись каждый на своей строке */
.tile strong,.tile small{display:block}

/* карусель питомцев — только на телефоне, на компьютере обычная сетка */
@media(min-width:701px){
  .pets.carousel{display:grid;grid-template-columns:repeat(3,1fr);overflow:visible}
  .pets.carousel .pet{flex:initial}
}

/* длинные блоки не шире текстовой колонки */
.donate-box,.needs-box{max-width:100%}

/* карточки в сетке — одинаковой высоты, фото не растягивается */
.pets.carousel .pet{height:100%}
.pets .pet .pic{flex:none}
/* кнопка «все питомцы» по левому краю колонки, как остальное */
.center{text-align:left}
/* заголовок первого экрана — по ширине колонки, без рваного правого края */
.hero h1{max-width:28ch}

/* кнопки связи на самых узких экранах — в один столбик,
   иначе «Проложить маршрут» вылезает за край */
@media(max-width:360px){
  .contact-row{grid-template-columns:1fr}
}

/* ═══════════════════════════════════════════════════════════
   ЛОГОТИП ПРИЮТА (собака и кот)
   ═══════════════════════════════════════════════════════════ */
.logo{gap:10px}
.logo .logo-img{height:34px;width:auto;display:block;flex:none}
.logo i{display:none}
@media(max-width:380px){
  .logo .logo-img{height:30px}
}
/* в шторке меню чуть крупнее */
.menu-top .logo .logo-img{height:32px}

/* ═══════════════════════════════════════════════════════════
   АНИМАЦИИ — САМЫЙ МИНИМУМ
   Цель: убрать ощущение бумаги, но ничего не отвлекало.
   Всё отключается при prefers-reduced-motion в самом низу файла.
   ═══════════════════════════════════════════════════════════ */

/* 1. появление секций при прокрутке (класс навешивает скрипт) */
.reveal{opacity:0;transform:translateY(14px)}
.reveal.in{opacity:1;transform:none;transition:opacity .5s ease,transform .5s cubic-bezier(.2,.7,.3,1)}

/* 2. карточки и плитки чуть приподнимаются под курсором */
.tile,.pet,.spot,.panel,.donate-box{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.tile:hover,.spot:hover{transform:translateY(-2px);box-shadow:0 8px 20px -12px rgba(42,38,33,.25)}
.pet:hover{transform:translateY(-3px);box-shadow:0 12px 26px -16px rgba(42,38,33,.3)}
.pet:active{transform:translateY(-1px)}

/* 3. фото в карточке чуть приближается */
.pet .pic img{transition:transform .4s cubic-bezier(.2,.7,.3,1)}
.pet:hover .pic img{transform:scale(1.04)}

/* 4. кнопки: мягче нажатие, плавная заливка */
.btn{transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .1s ease}
.b-main:hover{box-shadow:0 6px 16px -8px rgba(226,86,63,.7)}
.cp{transition:background .15s ease}

/* 5. стрелка в плитке подаётся вперёд */
.tile .chev{transition:transform .18s ease}
.tile:hover .chev{transform:translateX(3px)}

/* 6. меню-шторка выезжает сверху, фон проявляется */
.menu{animation:vz-fade .18s ease}
.menu .menu-panel{animation:vz-drop .26s cubic-bezier(.2,.8,.3,1)}
@keyframes vz-fade{from{opacity:0}to{opacity:1}}
@keyframes vz-drop{from{transform:translateY(-12px);opacity:.4}to{transform:none;opacity:1}}
.menu nav a{transition:color .15s ease,padding-left .18s ease}
.menu nav a:hover{padding-left:6px}

/* 7. попапы: шторка снизу на телефоне, мягкое появление на компьютере */
.ov.open{animation:vz-fade .18s ease}
.ov.open .modal{animation:vz-pop .26s cubic-bezier(.2,.8,.3,1)}
@keyframes vz-pop{from{transform:translateY(16px) scale(.985);opacity:.6}to{transform:none;opacity:1}}
@media(max-width:600px){
  @keyframes vz-pop{from{transform:translateY(100%)}to{transform:none}}
}

/* 8. ссылки в тексте и подвале подчёркиваются плавно */
main a:not(.btn):not(.tile):not(.pet){transition:color .15s ease}
.foot-social a,.foot-line a{transition:opacity .15s ease}
.foot-social a:hover,.foot-line a:hover{opacity:.7}

/* 9. фокус с клавиатуры — без резкого скачка */
:focus-visible{transition:outline-color .15s ease}

/* всё выключается, если человек просил меньше движения */
@media(prefers-reduced-motion:reduce){
  .reveal,.reveal.in{opacity:1;transform:none;transition:none}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .pet:hover,.tile:hover,.spot:hover{transform:none}
}

/* ═══════════════════════════════════════════════════════════
   ШАПКА: ничего не переносится и не наезжает
   Длинное название сайта ломало строку меню и залезало под кнопку.
   ═══════════════════════════════════════════════════════════ */
.bar{flex-wrap:nowrap}
.bar .logo{min-width:0;flex:0 1 auto}
.bar .logo .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar nav{flex:0 0 auto;white-space:nowrap}
.bar nav a{white-space:nowrap}
.bar .btn{flex:0 0 auto;white-space:nowrap}

/* меню в строку — только когда места действительно хватает */
@media(max-width:1023px){
  .bar nav{display:none}
  .burger-nav .burger{display:flex}
  .burger-nav .bar .btn{display:inline-flex;margin-left:auto}
  .bar .logo{margin-right:12px}
}
@media(min-width:1024px){
  .bar nav{display:flex}
  .burger-nav .burger{display:none}
  .bar .logo{margin-right:28px}
}
