/* ═══════════════════════════════════════════════════════════════════════
   Кормовед — дизайн-система v2
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --surface-2: #F1EEE6;
  --surface-3: #E9E5DA;
  --ink: #1E2A2B;
  --ink-2: #3B4A4C;
  --muted: #6B7779;
  --line: #E4E0D6;
  --line-2: #D6D1C4;
  --brand: #1F6F5C;
  --brand-dark: #164F42;
  --brand-soft: #E3F1EC;
  --brand-soft-2: #CFE6DC;
  --accent: #F0A83A;
  --accent-dark: #C9851B;
  --accent-soft: #FCEFD7;
  --coral: #E8735A;
  --ok: #2E9E6B;
  --ok-soft: #E4F4EC;
  --warn: #E0A030;
  --warn-soft: #FDF3DE;
  --bad: #D9534F;
  --bad-soft: #FBE5E4;
  --r: 16px;
  --r-sm: 10px;
  --r-xs: 6px;
  --shadow: 0 1px 2px rgba(30,42,43,.05), 0 10px 30px rgba(30,42,43,.06);
  --shadow-2: 0 2px 6px rgba(30,42,43,.08), 0 18px 40px rgba(30,42,43,.10);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(1.55rem, 2.4vw + .5rem, 2.25rem); }
h2 { font-size: clamp(1.25rem, 1.4vw + .6rem, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
button, input, select { font: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.3em; display: inline-block; }

/* ── кнопки и чипы ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem; border: 0; cursor: pointer; line-height: 1.1; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand-soft-2); }
.btn--ghost:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn--accent { background: var(--accent); color: #2A1C00; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--sm { padding: 7px 13px; font-size: .85rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent; line-height: 1.2; white-space: nowrap; }
a.chip:hover { text-decoration: none; border-color: var(--line-2); background: var(--surface-3); }
.chip--brand { background: var(--brand-soft); color: var(--brand-dark); }
.chip--class { background: var(--accent-soft); color: #7A4B00; }
.chip--ok { background: var(--ok-soft); color: #1F6F4A; }
.chip--warn { background: var(--warn-soft); color: #8A5A05; }
.chip--bad { background: var(--bad-soft); color: #9A2F2B; }
.chip--on { background: var(--brand); color: #fff; }
.chip img { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── шапка ─────────────────────────────────────────────────────────── */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 40px; height: 40px; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: .92rem; }
.nav a img { width: 22px; height: 22px; }
.nav a:hover, .nav a.is-active { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
form.search { display: flex; margin-left: auto; }
form.search input { border: 1px solid var(--line-2); border-right: 0; border-radius: 999px 0 0 999px; padding: 9px 16px; min-width: 240px; background: var(--bg); color: var(--ink); }
form.search input:focus { outline: 2px solid var(--brand-soft-2); outline-offset: -1px; }
form.search button { border: 0; border-radius: 0 999px 999px 0; background: var(--brand); color: #fff; padding: 0 16px; cursor: pointer; font-weight: 700; }
.burger { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .nav, form.search { display: none; }
  .burger { display: block; order: 2; }
  .logo { order: 1; }
  .site-header.is-open .search { display: flex; order: 3; width: 100%; margin: 4px 0 10px; }
  .site-header.is-open .search input { min-width: 0; flex: 1; }
  .site-header.is-open .nav { display: flex; flex-direction: column; order: 4; width: 100%; margin: 0 0 14px; gap: 2px; }
  .site-header.is-open .nav a { padding: 11px 12px; font-size: 1rem; border-radius: 10px; }
  .site-header.is-open .nav a img { width: 24px; height: 24px; }
  .site-header.is-open .burger { background: var(--brand-soft); border-color: var(--brand-soft-2); }
}

/* ── подвал ────────────────────────────────────────────────────────── */
.site-footer { margin-top: 64px; background: var(--ink); color: #B9C4C2; padding: 44px 0 36px; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer strong { color: #fff; display: block; margin-bottom: 8px; font-size: 1rem; }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; gap: 22px; } }

/* ── крошки ────────────────────────────────────────────────────────── */
.crumbs { font-size: .82rem; color: var(--muted); margin: 18px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs a { color: var(--muted); }
.crumbs span + span::before { content: "›"; margin: 0 8px; color: var(--line-2); }
.crumbs span:last-child { color: var(--ink-2); max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── сетки ─────────────────────────────────────────────────────────── */
body { overflow-x: hidden; }
.site-main { overflow-x: clip; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.layout > * { min-width: 0; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
h1, h2, h3, .food-card__title, .compare__title { overflow-wrap: anywhere; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card--pad { padding: 22px 24px; }
@media (max-width: 560px) { .card--pad { padding: 16px; } }
.section { margin: 40px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.section__sub { color: var(--muted); margin: -8px 0 16px; }

/* ── балл Кормометра ───────────────────────────────────────────────── */
.score { display: inline-flex; align-items: center; gap: 12px; }
.score__ring { position: relative; width: 84px; height: 84px; flex: 0 0 auto; }
.score__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score__ring circle { fill: none; stroke-width: 8; }
.score__ring .bg { stroke: var(--surface-2); }
.score__ring .fg { stroke: var(--ok); stroke-linecap: round; }
.score__num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.55rem; line-height: 1; }
.score__num small { font-size: .62rem; color: var(--muted); font-weight: 700; margin-top: 3px; letter-spacing: .04em; }
.score__label { font-weight: 800; font-size: 1.05rem; }
.score__label small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.score--sm .score__ring { width: 46px; height: 46px; }
.score--sm .score__num { font-size: .95rem; }
.score--sm .score__ring circle { stroke-width: 7; }
.score--lg .score__ring { width: 128px; height: 128px; }
.score--lg .score__num { font-size: 2.4rem; }
.v-excellent .fg { stroke: var(--ok); } .v-excellent .score__num { color: #1F6F4A; }
.v-good .fg { stroke: #6DB66B; } .v-good .score__num { color: #3E7A3C; }
.v-average .fg { stroke: var(--warn); } .v-average .score__num { color: #8A5A05; }
.v-weak .fg { stroke: var(--bad); } .v-weak .score__num { color: #9A2F2B; }

/* ── карточка корма в списке ───────────────────────────────────────── */
.food-card { display: flex; flex-direction: column; overflow: hidden; position: relative; transition: transform .15s, box-shadow .15s; }
.food-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.food-card__rank { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--surface); color: var(--ink); font-weight: 800; font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.food-card__rank.is-top { background: var(--accent); color: #2A1C00; border-color: transparent; }
.food-card__rank.is-1 { background: var(--brand); color: #fff; }
.food-card__score { position: absolute; right: 10px; top: 10px; z-index: 2; background: var(--surface); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.food-card__img { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.food-card__img img { max-height: 100%; width: auto; object-fit: contain; transition: transform .25s; }
.food-card:hover .food-card__img img { transform: scale(1.03); }
.food-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.food-card__brand { font-size: .78rem; font-weight: 800; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .04em; }
.food-card__title { font-weight: 700; font-size: .98rem; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.food-card__title a { color: var(--ink); }
.food-card__title a::after { content: ""; position: absolute; inset: 0; }
.food-card__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.food-card__meta .chip { font-size: .74rem; padding: 3px 9px; }
.food-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
.food-card__verdict { font-weight: 800; font-size: .85rem; }
.price { font-weight: 800; }
.price small { font-weight: 600; color: var(--muted); }
/* Мобильный вид: карточка горизонтальная — картинка слева, текст справа; список в одну колонку без гигантских фото */
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .food-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto; }
  .food-card__img { aspect-ratio: 1 / 1; padding: 10px; border-bottom: 0; border-right: 1px solid var(--line); align-self: start; }
  .food-card__body { padding: 10px 12px 10px; gap: 5px; }
  .food-card__title { font-size: .9rem; -webkit-line-clamp: 2; padding-right: 48px; }
  .food-card__brand { font-size: .7rem; padding-right: 48px; }
  .to-top { right: auto; left: 12px; }
  .food-head__full { display: none; }
  .food-head .btn--cmp { padding: 7px 12px; font-size: .85rem; }
  .crumbs span:last-child { max-width: 100%; white-space: normal; }
  .food-card__meta .chip { font-size: .68rem; padding: 2px 7px; }
  .food-card__rank { left: 8px; top: 8px; font-size: .68rem; padding: 3px 8px; }
  .food-card__score { right: 8px; top: 8px; }
  .food-card__score .score__ring { width: 40px; height: 40px; }
  .food-card__score .score__num { font-size: .85rem; }
  .food-card__foot { padding-top: 4px; gap: 6px; }
  .food-card__verdict { font-size: .78rem; }
  .food-card__foot .price { font-size: .9rem; }
  .food-card__cmp { height: 28px; padding: 0 9px; font-size: .72rem; }
  .food-card__foot { flex-wrap: wrap; }
}

/* ── карточка корма: страница ──────────────────────────────────────── */
.food-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: start; margin-bottom: 18px; }
.food-head > * { min-width: 0; }
@media (max-width: 720px) { .food-head { grid-template-columns: minmax(0, 1fr); } }
.food-hero > * { min-width: 0; }
@media (max-width: 760px) { .food-hero { grid-template-columns: minmax(0, 1fr); } }
.grid > * { min-width: 0; }
.components, .component { min-width: 0; }
.reasons-details summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; margin-top: 22px; list-style: none; display: flex; align-items: center; gap: 8px; }
.reasons-details summary::after { content: "показать"; font-size: .8rem; font-weight: 700; color: var(--brand); border: 1.5px solid var(--brand-soft-2); border-radius: 999px; padding: 3px 10px; }
.reasons-details[open] summary::after { content: "скрыть"; }
.reasons-details .reasons { margin-top: 12px; }
.food-head h1 { margin-bottom: 8px; }
.food-head .chips { margin-top: 6px; }
.food-head__full { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.food-hero { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .food-hero { grid-template-columns: 1fr; } }
.food-hero__gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; align-self: start; }
.food-hero__gallery .main img { aspect-ratio: 1/1; object-fit: contain; width: 100%; }
.food-hero__thumbs { display: flex; gap: 8px; margin-top: 12px; }
.food-hero__thumbs img { width: 58px; height: 58px; object-fit: contain; border: 1.5px solid var(--line); border-radius: 10px; padding: 4px; cursor: pointer; background: #fff; }
.food-hero__thumbs img.is-active { border-color: var(--brand); }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(135deg, #fff 0%, var(--brand-soft) 100%); border: 1px solid var(--brand-soft-2); }
.verdict.v-weak { background: linear-gradient(135deg, #fff, var(--bad-soft)); border-color: #F2C9C7; }
.verdict.v-average { background: linear-gradient(135deg, #fff, var(--warn-soft)); border-color: #F3DDB0; }
.verdict__text { flex: 1 1 220px; min-width: 0; }
.verdict__text h2 { margin: 0 0 4px; font-size: 1.25rem; }
.verdict__text p { margin: 0; }
@media (max-width: 560px) {
  .verdict { flex-wrap: nowrap; align-items: flex-start; gap: 12px; padding: 14px; }
  .verdict .score { flex: 0 0 auto; }
  .verdict .score--lg .score__ring { width: 74px; height: 74px; }
  .verdict .score--lg .score__ring circle { stroke-width: 7; }
  .verdict .score--lg .score__num { font-size: 1.45rem; }
  .verdict .score--lg .score__num small { font-size: .55rem; }
  .verdict .score__label { display: none; }
  .verdict__text { flex: 1 1 auto; }
  .verdict__text h2 { font-size: 1.05rem; margin-bottom: 4px; }
  .verdict__text p { font-size: .88rem; line-height: 1.45; }
  .food-hero__gallery { padding: 12px; }
  .food-hero__gallery .main img { max-height: 260px; }
  .food-hero__thumbs img { width: 50px; height: 50px; }
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; }
.fact b { display: block; font-size: 1.1rem; line-height: 1.2; }
.fact span { font-size: .78rem; color: var(--muted); }
.fact--wide { grid-column: 1 / -1; }
.fact--wide b { font-size: .98rem; }

/* якорная навигация по карточке */
.subnav { position: sticky; top: 0; z-index: 30; margin: 22px 0 0; background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.subnav a { display: block; padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.subnav a:hover, .subnav a.is-active { background: var(--surface); color: var(--brand-dark); text-decoration: none; box-shadow: var(--shadow); }

/* компоненты Кормометра */
.components { display: grid; gap: 12px; }
.component { display: grid; grid-template-columns: 200px 1fr 64px; gap: 14px; align-items: center; font-size: .95rem; }
@media (max-width: 640px) {
  .component { grid-template-columns: 1fr auto; grid-template-areas: "name pts" "bar bar"; gap: 6px 10px; }
  .component__name { grid-area: name; }
  .component__pts { grid-area: pts; }
  .component .bar { grid-area: bar; height: 10px; }
  .components { gap: 14px; }
}
.component__name { font-weight: 700; }
.component__name small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.bar { display: block; height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #4FA88E); border-radius: 999px; }
.component__pts { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reasons li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; padding: 8px 12px; border-radius: var(--r-xs); background: var(--surface-2); }
.reasons .pts { flex: 0 0 48px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.pts.pos { color: var(--ok); } .pts.neg { color: var(--bad); } .pts.zero { color: var(--muted); }
.reasons--compact { max-height: 0; overflow: hidden; }
.reasons-toggle { margin-top: 10px; }

/* состав с подсветкой */
.ingredients { display: flex; flex-wrap: wrap; gap: 7px; counter-reset: ing; }
.ing { padding: 6px 12px; border-radius: 999px; font-size: .9rem; background: var(--surface-2); border: 1px solid transparent; }
.ing::before { counter-increment: ing; content: counter(ing); font-size: .7rem; font-weight: 800; color: var(--muted); margin-right: 6px; }
.ing--good { background: var(--ok-soft); border-color: #CBE8D8; }
.ing--so-so { background: var(--warn-soft); border-color: #F3DDB0; }
.ing--bad { background: var(--bad-soft); border-color: #F2C9C7; }
.ing small { color: var(--muted); }
.ingredients.is-collapsed .ing--more { display: none; }
.ing-toggle { margin-top: 12px; }
@media (max-width: 560px) { .ing { font-size: .84rem; padding: 5px 10px; } .ingredients { gap: 6px; } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; border: 1px solid rgba(0,0,0,.06); }

/* таблицы */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 800; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.table--hover tbody tr:hover td { background: var(--surface-2); }

/* фасовки */
.offers { display: grid; gap: 8px; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.offer__w { font-weight: 800; }
.offer__per { color: var(--muted); font-size: .85rem; }
.offer .btn { white-space: nowrap; }
@media (max-width: 480px) { .offer { flex-wrap: wrap; } .offer .btn { width: 100%; justify-content: center; } }

/* плюсы и минусы */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pc { border-radius: var(--r-sm); padding: 14px 16px; }
.pc--pros { background: var(--ok-soft); } .pc--cons { background: var(--bad-soft); }
.pc h3 { margin-bottom: 8px; font-size: 1rem; }
.pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pc li { padding-left: 22px; position: relative; font-size: .93rem; }
.pc--pros li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.pc--cons li::before { content: "–"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }

/* сайдбар */
.side-block { margin-bottom: 22px; }
.side-block h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 12px; }
.side-block h3 img { width: 22px; height: 22px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-list li { display: grid; grid-template-columns: 26px 46px 1fr auto; gap: 10px; align-items: center; }
.side-list .n { font-weight: 800; color: var(--muted); font-size: .85rem; text-align: center; }
.side-list img { width: 46px; height: 46px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.side-list a { color: var(--ink); font-size: .88rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list .s { font-weight: 800; color: var(--brand-dark); font-size: .95rem; }
.side-cta { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; padding: 22px; border-radius: var(--r); }
.side-cta h3 { color: #fff; }
.side-cta img { width: 96px; margin: -8px auto 8px; }
.side-cta .btn { background: #fff; color: var(--brand-dark); }

/* ── главная ───────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 32px; align-items: center; padding: 36px 0 12px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } .hero__art { order: -1; max-width: 360px; margin: 0 auto; } }
.hero h1 { font-size: clamp(1.9rem, 3.6vw + .4rem, 3rem); margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 1.12rem; color: var(--ink-2); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__art img { width: 100%; }
.hero__art--sm { max-width: 240px; justify-self: center; }
@media (max-width: 860px) { .hero__art--sm { max-width: 150px; margin: 0 auto; } }
.stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
.stat b { display: block; font-size: 1.5rem; line-height: 1; color: var(--brand-dark); }
.stat span { font-size: .82rem; color: var(--muted); }
.pets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 26px 0 0; }
.pet-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font-weight: 800; transition: border-color .15s, transform .15s; }
.pet-tile:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.pet-tile img { width: 52px; height: 52px; }
.pet-tile small { display: block; font-weight: 600; color: var(--muted); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.how__item { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.how__item .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; margin-bottom: 10px; }
.how__item h3 { font-size: 1.02rem; }
.how__item p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.need-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font-weight: 700; font-size: .88rem; text-align: center; }
.need-tile:hover { border-color: var(--brand); text-decoration: none; }
.need-tile img { width: 44px; height: 44px; }

/* ── архив / фильтры ───────────────────────────────────────────────── */
.archive-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; margin-bottom: 8px; }
@media (max-width: 720px) { .archive-head { grid-template-columns: 1fr; } .archive-head img { display: none; } }
.archive-head img { width: 96px; height: 96px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 14px 0 20px; }
.filters select { padding: 8px 32px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2A2B' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-weight: 700; font-size: .88rem; color: var(--ink); }
.filters__count { margin-left: auto; color: var(--muted); font-size: .88rem; }
.filters .btn { padding: 8px 14px; font-size: .88rem; }
.quick { margin: 10px 0 16px; }

/* ── сравнение ─────────────────────────────────────────────────────── */
.food-card__cmp { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; flex: 0 0 auto; font-size: .76rem; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
.food-card__cmp.is-on .food-card__cmp-txt::before { content: "✓ "; }
.food-card__cmp:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-soft-2); }
.food-card__cmp.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.food-card__cmp.is-on:hover { background: var(--brand-dark); }
.food-card__cmp-txt { display: inline; }
.food-card__foot { gap: 6px; }
.food-card__foot .price { margin-left: auto; }
.cmp-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: none; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; background: var(--ink); color: #fff; border-radius: 999px; box-shadow: var(--shadow-2); font-weight: 700; font-size: .92rem; }
.cmp-bar.is-visible { display: flex; }
@media (max-width: 560px) { .cmp-bar { left: 12px; right: 12px; transform: none; bottom: 12px; padding: 8px 10px 8px 14px; font-size: .85rem; justify-content: space-between; } .cmp-bar .btn { padding: 7px 12px; font-size: .82rem; white-space: nowrap; } }
.cmp-bar .btn { background: var(--accent); color: #2A1C00; padding: 8px 14px; }
.cmp-bar button.clear { background: none; border: 0; color: #B9C4C2; cursor: pointer; font-weight: 700; }
.compare th, .compare td { vertical-align: top; min-width: 150px; }
.compare tbody th { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: none; letter-spacing: 0; width: 200px; }
.compare thead th:first-child, .compare tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; }
@media (max-width: 560px) { .compare tbody th { width: 110px; min-width: 110px; font-size: .74rem; padding: 8px; } .compare th, .compare td { min-width: 140px; } .compare thead th:first-child { min-width: 110px; } }
body.page-sravnenie .cmp-bar { display: none !important; }

/* бренды */
.brands-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.brand-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; color: var(--ink); }
.brand-card:hover { text-decoration: none; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.brand-card__top { display: flex; align-items: center; gap: 12px; }
.brand-card__name { flex: 1; min-width: 0; }
.brand-card__name h3 { margin: 0; font-size: 1.05rem; }
.brand-card__rank { font-weight: 800; color: var(--muted); font-size: .9rem; }
.brand-card__best { display: flex; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); }
.brand-card__best img { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; flex: 0 0 auto; }
@media (max-width: 560px) { .brands-grid { grid-template-columns: 1fr; } .brand-card { display: flex; } }
.compare__head { text-align: left; }
.compare__head img { width: 90px; height: 90px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin-bottom: 8px; }
.compare__brand { font-size: .74rem; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .04em; }
.compare__title { display: block; color: var(--ink); font-weight: 700; font-size: .9rem; text-transform: none; letter-spacing: 0; margin: 2px 0 8px; }
.compare td.is-best { background: var(--ok-soft); font-weight: 800; }
.compare__comp { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; padding: 2px 0; border-bottom: 1px dashed var(--line); }
.btn--cmp { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.btn--cmp:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-soft-2); }
.btn--cmp.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--cmp.is-on:hover { background: var(--brand-dark); color: #fff; }

/* ── методика ──────────────────────────────────────────────────────── */
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.criterion__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.criterion__head h3 { margin: 0; }
.criterion__w { font-size: .82rem; color: var(--brand-dark); font-weight: 700; }
.criterion p { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
.example { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 720px) { .example { grid-template-columns: 1fr; } }
.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 560px) { .verdicts { grid-template-columns: repeat(2, 1fr); } }
.verdict-tile { padding: 16px; border-radius: var(--r-sm); text-align: center; background: var(--surface-2); }
.verdict-tile b { display: block; font-size: 1.4rem; }
.verdict-tile.v-excellent { background: var(--ok-soft); color: #1F6F4A; }
.verdict-tile.v-good { background: #EAF4E6; color: #3E7A3C; }
.verdict-tile.v-average { background: var(--warn-soft); color: #8A5A05; }
.verdict-tile.v-weak { background: var(--bad-soft); color: #9A2F2B; }

/* ── подборка ──────────────────────────────────────────────────────── */
.coll-head { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 20px; align-items: center; margin-bottom: 8px; }
@media (max-width: 720px) { .coll-head { grid-template-columns: 1fr; } .coll-head img { display: none; } }
.coll-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; margin: 8px 0 16px; }
.coll-meta b { color: var(--ink); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
@media (max-width: 860px) { .podium { grid-template-columns: 1fr; } }
.podium__item { position: relative; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.podium__item > * { min-width: 0; }
.podium__body { min-width: 0; overflow-wrap: anywhere; }
.podium__item.is-1 { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow-2); }
.podium__rank { position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--accent); color: #2A1C00; font-weight: 800; padding: 5px 12px; border-radius: 999px; font-size: .85rem; }
.podium__item.is-1 .podium__rank { background: var(--brand); color: #fff; }
.podium__score { position: absolute; right: 12px; top: 12px; z-index: 2; background: var(--surface); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.podium__img { background: #fff; padding: 22px; display: grid; place-items: center; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.podium__img img { max-height: 100%; width: auto; object-fit: contain; }
.podium__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.podium__body h3 { margin: 0; font-size: 1.05rem; }
.podium__why { font-size: .93rem; color: var(--ink-2); }
.podium__pc { display: grid; gap: 4px; font-size: .86rem; }
.podium__pc li { list-style: none; padding-left: 18px; position: relative; }
.podium__pc .p::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.podium__pc .c::before { content: "–"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
.podium__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rank-list { display: grid; gap: 10px; }
.rank-item { display: grid; grid-template-columns: 36px 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; }
@media (max-width: 560px) { .rank-item { grid-template-columns: 30px 56px minmax(0, 1fr); } .rank-item__right { grid-column: 2 / -1; display: flex; gap: 12px; align-items: center; } }
.rank-item__n { font-weight: 800; color: var(--muted); font-size: 1.05rem; text-align: center; }
.rank-item img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
@media (max-width: 560px) { .rank-item img { width: 56px; height: 56px; } }
.rank-item__title { font-weight: 700; margin: 0 0 4px; font-size: .98rem; }
.rank-item__title a { color: var(--ink); }
.rank-item__why { font-size: .88rem; color: var(--ink-2); margin: 0; }
.rank-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.coll-card { display: flex; flex-direction: column; color: var(--ink); overflow: hidden; }
.coll-card:hover { text-decoration: none; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.coll-card__imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; background: #fff; border-bottom: 1px solid var(--line); }
.coll-card__imgs img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.coll-card__body { padding: 12px 14px 14px; }
.coll-card__body h3 { font-size: 1rem; margin-bottom: 4px; }
.coll-criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.coll-criteria div { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; font-size: .9rem; }
.coll-criteria b { display: block; font-size: 1.05rem; }

/* ── статьи ────────────────────────────────────────────────────────── */
.post__head { max-width: 800px; }
.post__head h1 { font-size: clamp(1.7rem, 2.8vw + .4rem, 2.5rem); margin: 12px 0 10px; }
.post__lead { font-size: 1.15rem; color: var(--ink-2); line-height: 1.5; }
.post__cover { margin: 18px 0 22px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.post__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 0 0 24px; max-width: 800px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.toc a { color: var(--ink-2); font-weight: 600; }
.article { max-width: 800px; font-size: 1.06rem; line-height: 1.65; }
.article p { margin-bottom: 1.1em; }
.article > p:first-child::first-letter { font-size: 3.1em; font-weight: 800; float: left; line-height: .85; margin: 6px 10px 0 0; color: var(--brand); }
.article h2 { margin-top: 1.9em; padding-top: .3em; font-size: 1.5rem; position: relative; }
.article h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 10px; }
.article h3 { margin-top: 1.4em; font-size: 1.15rem; }
.article ul, .article ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.article li { margin-bottom: .45em; }
.article ul li::marker { color: var(--brand); }
.article a { color: var(--brand-dark); text-decoration: underline; text-decoration-color: var(--brand-soft-2); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.article a:hover { text-decoration-color: var(--brand); }
.article blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-weight: 600; font-size: 1.02rem; }
.article blockquote p:last-child { margin: 0; }
.article blockquote.callout { border: 1px solid var(--brand-soft-2); border-left-width: 4px; background: linear-gradient(135deg, #fff, var(--brand-soft)); position: relative; padding-top: 30px; }
.callout__label { position: absolute; top: 10px; left: 20px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.article strong { color: var(--ink); }
.post__cta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 32px; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(135deg, #fff, var(--accent-soft)); border: 1px solid #F3DDB0; max-width: 800px; }
.post__cta > div { flex: 1; min-width: 220px; }
.post-card { display: flex; flex-direction: column; color: var(--ink); overflow: hidden; padding: 0; }
.post-card:hover { text-decoration: none; box-shadow: var(--shadow-2); transform: translateY(-2px); }
.post-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.post-card__body h3 { margin: 0; font-size: 1.05rem; }
.post-card__body p { margin: 0; }
.posts-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
@media (max-width: 720px) { .post-card--lead { grid-template-columns: 1fr; } }
.post-card--lead .post-card__body { justify-content: center; padding: 22px 26px; }
.post-card--lead h3 { font-size: 1.5rem; }

/* ── наверх ────────────────────────────────────────────────────────── */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.9); color: var(--brand-dark); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; backdrop-filter: blur(6px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
body.has-cmp .to-top { bottom: 76px; }
@media (max-width: 560px) { .to-top { right: 12px; bottom: 12px; width: 38px; height: 38px; } body.has-cmp .to-top { bottom: 70px; } }

/* ── прочее ────────────────────────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface-2); }
.notice { padding: 12px 16px; border-radius: var(--r-sm); background: var(--accent-soft); font-size: .92rem; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
details.spoiler summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); list-style: none; }
details.spoiler summary::before { content: "▸ "; }
details.spoiler[open] summary::before { content: "▾ "; }
.empty { text-align: center; padding: 40px 20px; }
.empty img { width: 180px; margin: 0 auto 12px; }
.calc { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.calc label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.calc input, .calc select { display: block; margin-top: 4px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.calc-out { margin: 12px 0 0; font-weight: 700; }
.brand-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.brand-head__logo { width: 84px; height: 84px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; }

/* цена и «/100 г» не переносятся */
.price,.price small,.fact b,.offer__per{white-space:nowrap}
/* подвал карточки на компе: если вердикт + цена + «Сравнить» не помещаются в строку, кнопка уходит на вторую строку вправо */
@media (min-width: 561px) {
  .food-card__foot { flex-wrap: wrap; row-gap: 6px; }
  .food-card__cmp { margin-left: auto; }
}

/* предварительный балл (нет гарантированного анализа) */
.food-card__prelim { font-size: .66rem; font-weight: 700; color: var(--muted); border: 1px dashed var(--line-2, var(--line)); border-radius: 999px; padding: 1px 6px; vertical-align: middle; }

/* уведомление о cookie: компактная плашка */
.cookie-note { position: fixed; left: 14px; bottom: 14px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; background: var(--ink); color: #E6ECEA; border-radius: 999px; box-shadow: var(--shadow-2); font-size: .78rem; line-height: 1.2; }
.cookie-note[hidden] { display: none; }
.cookie-note a { color: #fff; text-decoration: underline; }
.cookie-note button { border: 0; border-radius: 999px; padding: 5px 11px; background: var(--accent); color: #2A1C00; font-weight: 800; font-size: .76rem; cursor: pointer; }
body.has-cmp .cookie-note { bottom: 72px; }
@media (max-width: 560px) { .cookie-note { left: 10px; bottom: 10px; } body.has-cmp .cookie-note { bottom: 66px; } }

/* ── отзывы владельцев ───────────────────────────────────────────── */
.reviews__avg { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.stars { --v: 0%; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; color: #D8DED9; position: relative; white-space: nowrap; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--v); overflow: hidden; color: var(--accent); }
.reviews__list, .reviews__list .children { list-style: none; margin: 0; padding: 0; }
.reviews__list .children { margin: 12px 0 0 28px; }
.review { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review__meta { margin-top: 2px; }
.review__text { margin-top: 8px; }
.review__text p { margin: 0 0 8px; }
.review__photo { display: inline-block; margin-top: 6px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.review__photo img { display: block; width: 180px; height: 180px; object-fit: cover; }
.review__reply a { color: var(--muted); }
.review-form { padding: 18px 20px; margin-top: 8px; position: relative; }
.review-form h3 { margin: 0 0 12px; }
.review-form h3 small a { font-weight: 600; font-size: .8rem; margin-left: 8px; }
.review-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.review-form__field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.review-form__label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.review-form__label em { color: #E8735A; font-style: normal; }
.review-form__label small { font-weight: 500; color: var(--muted); }
.review-form input[type=text], .review-form input[type=email], .review-form select, .review-form textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font: inherit; color: var(--ink); }
.review-form textarea { resize: vertical; }
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { outline: 2px solid var(--brand-soft-2); border-color: var(--brand); }
.review-form__file input[type=file] { font-size: .8rem; }
.review-form__consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; }
.review-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.review-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 0; height: 0; }
.rate label { font-size: 1.7rem; line-height: 1; color: #D8DED9; cursor: pointer; transition: color .1s; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--accent); }
@media (max-width: 560px) { .review { padding: 12px 14px; } .review-form { padding: 14px; } .review__photo img { width: 140px; height: 140px; } }

/* отзывы: кнопка загрузки фото и галерея */
.upload { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload__btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1.5px dashed var(--brand); color: var(--brand-dark); background: var(--brand-soft); font-weight: 700; font-size: .84rem; transition: background .15s, border-style .15s; }
.upload:hover .upload__btn, .upload input:focus-visible + .upload__btn { background: var(--brand-soft-2); border-style: solid; }
.upload__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upload__item { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.upload__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload__item span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(30,42,43,.7); color: #fff; font-size: .62rem; padding: 2px 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload__err { color: #E8735A; font-size: .8rem; }
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review__photo { margin-top: 0; }
.review__photo img { width: 132px; height: 132px; }
.review__photo:hover img { transform: scale(1.03); transition: transform .15s; }
.review + .review { margin-top: 0; }
.review__author::before { content: ""; display: inline-block; width: 30px; height: 30px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--brand-soft-2) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%231F6F5C%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M5 11c0-3 2-6 4-6s3 2 3 5-1 4-3 4-4-1-4-3zm14 0c0-3-2-6-4-6s-3 2-3 5 1 4 3 4 4-1 4-3zM12 20c-3 0-5-2-5-4s2-3 5-3 5 1 5 3-2 4-5 4z%27/%3E%3C/svg%3E") center/18px no-repeat; }
.review.byuser .review__author::before { background-color: var(--accent); }
@media (max-width: 560px) { .review__photo img { width: 96px; height: 96px; } }

/* главная: подборки строго по 4 в ряд на широком экране, по 2 на планшете и мобиле */
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grid--4 .coll-card__imgs { padding: 8px; gap: 4px; } .grid--4 .coll-card__body { padding: 10px 12px 12px; } .grid--4 .coll-card__body h3 { font-size: .9rem; } }
/* шапка не закреплена: в ней нет ничего, что нужно держать перед глазами постоянно */
.site-header { position: static; }

/* главная: SEO-текст и FAQ */
.front-about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.front-about .prose h2, .front-faq h2 { margin-top: 0; }
.front-faq .spoiler { margin-bottom: 8px; }
.front-faq .spoiler summary { font-weight: 700; }
@media (max-width: 900px) { .front-about__grid { grid-template-columns: 1fr; gap: 18px; } }

/* шапка: при двух и более питомцах в меню не переносим пункты, иконки питомцев прячем на средних экранах */
.nav a { white-space: nowrap; }
@media (max-width: 1200px) { .nav a img { display: none; } .nav a { padding: 8px 9px; font-size: .88rem; } form.search input { min-width: 170px; } }

/* лайтбокс */
.kv-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,28,29,.92); display: flex; align-items: center; justify-content: center; }
.kv-lightbox[hidden] { display: none; }
.kv-lightbox figure { margin: 0; max-width: min(92vw, 1100px); max-height: 92vh; text-align: center; }
.kv-lightbox img { max-width: 100%; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.kv-lightbox figcaption { color: #cfd8d6; font-size: .85rem; margin-top: 10px; }
.kv-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.kv-lightbox button:hover { background: rgba(255,255,255,.25); }
.kv-lightbox__close { top: 14px; right: 14px; font-size: 20px !important; }
.kv-lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.kv-lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
body.has-lightbox { overflow: hidden; }
.food-hero__gallery .main img, .review__photo img { cursor: zoom-in; }
.upload__item { overflow: visible; }
.upload__item img { border-radius: 10px; }
.upload__del { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: #E8735A; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.upload__del:hover { background: #c95a42; }
@media (max-width: 560px) { .kv-lightbox button { width: 38px; height: 38px; } .kv-lightbox__prev { left: 6px; } .kv-lightbox__next { right: 6px; } }

.needs__pet { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 1.05rem; }
.needs + .needs__pet { margin-top: 20px; }

.food-head__kicker { margin: 0 0 2px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* цены по магазинам */
.shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.shop { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); position: relative; }
.shop:hover { text-decoration: none; border-color: var(--brand); }
.shop--best { border-color: var(--brand); background: var(--brand-soft); }
.shop__name { font-weight: 800; font-size: .92rem; }
.shop__per { font-size: .85rem; color: var(--ink-2); }
.shop__tag { position: absolute; top: -9px; right: 10px; background: var(--accent); color: #2A1C00; font-size: .66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.offer__shop { display: inline-block; margin-left: 6px; font-size: .74rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.offer--best .price { color: var(--brand-dark); }

/* лента отзывов */
.review__target { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--ink); }
.review__target img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.review__target span { display: flex; flex-direction: column; }
.review__target:hover { text-decoration: none; color: var(--brand-dark); }

/* что пишут владельцы */
.owners-say__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.owners-say__head h2 { margin: 0; }
.owners-say__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0; }
.owners-say__cols ul { margin: 6px 0 0; padding-left: 18px; }
.owners-say__cols li { margin-bottom: 4px; }
.owners-say .ok { color: var(--brand-dark); }
.owners-say .bad { color: #B8503B; }
@media (max-width: 560px) { .owners-say__cols { grid-template-columns: 1fr; } }

.owners-say__sub { margin: 12px 0 4px; font-size: 1rem; }
.owners-say__sub small { font-weight: 500; font-size: .8rem; }

/* чекбокс согласия: текст одной строкой с переносами, ссылка внутри текста */
.review-form__consent { display: flex; gap: 8px; align-items: flex-start; }
.review-form__consent input { flex: 0 0 auto; margin-top: 3px; }
.review-form__consent span { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
/* строка с оценкой покупателей: звёзды и число вместе, подпись отдельной строкой на мобиле */
.reviews__avg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.reviews__avg .reviews__avg-note { color: var(--muted); }
@media (max-width: 560px) {
  .owners-say__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .reviews__avg { font-size: .84rem; }
  .reviews__avg .reviews__avg-note { flex-basis: 100%; }
}
