/* Не мимо: светлая тема по умолчанию, тёмная по настройке системы.
   Форма: фото и плитки 14px, кнопки и чипы 10px. Акцент один: кобальт. */
:root {
  --bg: #f5f6f3;
  --surface: #eaece7;
  --card: #ffffff;
  --ink: #17191c;
  --muted: #555b63;
  --line: #d9dcd5;
  --accent: #2547d0;
  --accent-ink: #ffffff;
  --accent-soft: #dfe5fb;
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316;
    --surface: #181b1f;
    --card: #1e2126;
    --ink: #eef0ec;
    --muted: #a5abb3;
    --line: #2b2f35;
    --accent: #8ea6ff;
    --accent-ink: #0d1330;
    --accent-soft: #1f2846;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: "Unbounded", "Geologica", sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 22ch; }
h3 { font-size: 20px; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 8px 14px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--sm { height: 42px; padding: 0 16px; font-size: 15px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 "Unbounded", sans-serif; letter-spacing: -0.02em; }
.logo__mark { width: 28px; height: 28px; color: var(--accent); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 920px) { .nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 400px) { .top .btn { padding: 0 12px; font-size: 14px; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 6vw, 80px); }
.hero h1 { font-size: clamp(34px, 4.1vw, 54px); max-width: 17ch; }
.hero__lead { margin-top: 22px; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero__photo { aspect-ratio: 4 / 3; } }

/* Finder */
.found { background: var(--accent-soft); padding-block: clamp(56px, 8vw, 104px); }
.found__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.found__intro p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.found__img { margin-top: 32px; width: min(100%, 340px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.finder { background: var(--card); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 60px -40px rgb(23 30 60 / .35); }
.finder fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.finder legend { font: 600 17px/1.3 "Unbounded", sans-serif; margin-bottom: 14px; padding: 0; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 54px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s, background-color .2s; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } }
.result { border-top: 1px solid var(--line); padding-top: 24px; min-height: 120px; }
.result__hint { color: var(--muted); }
.result h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-size: 19px; }
.result h3 .i { color: var(--accent); width: 24px; height: 24px; }
.result h3.is-urgent .i { color: #c2412d; }
.result ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.result li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.result li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; }
.result .warn { margin-top: 18px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); font-size: 15px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .result.is-new ol li { animation: rise .5s var(--ease) both; animation-delay: calc(var(--n) * 60ms); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 860px) { .found__grid { grid-template-columns: 1fr; } .found__img { display: none; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--surface); }
.section__lead { margin-top: 16px; max-width: 58ch; color: var(--muted); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 16px; margin-top: 44px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--card); padding: 26px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.tile p { color: var(--muted); font-size: 16px; }
.tile__icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: auto; padding-bottom: 18px; box-sizing: content-box; }
.tile--tint { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tile--tint p { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.tile--tint .tile__icon { color: var(--accent-ink); }
.tile--photo { padding: 0; min-height: 300px; border: 0; color: #fff; justify-content: flex-end; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(8 10 14 / .82)); }
.tile__body { position: relative; z-index: 1; padding: 24px; }
.tile--photo p { color: rgb(255 255 255 / .86); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.bento > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.bento > :nth-child(2) { grid-column: 2 / span 2; }
.bento > :nth-child(3) { grid-column: 4; grid-row: 1 / span 2; }
.bento > :nth-child(4) { grid-column: 2; }
.bento > :nth-child(5) { grid-column: 3; }
.bento > :nth-child(6) { grid-column: 1 / -1; min-height: 340px; }
.bento > :nth-child(6) img { object-position: 50% 35%; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
  .bento > :nth-child(1), .bento > :nth-child(6) { grid-column: 1 / -1 !important; }
  .bento > :nth-child(1) { min-height: 420px; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* Band */
.band { position: relative; min-height: clamp(520px, 70vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 10 14 / .72), rgb(8 10 14 / .15) 70%); }
.band__card { position: relative; z-index: 1; width: min(100% - 32px, 620px); margin: 0 0 clamp(32px, 6vw, 72px) max(16px, calc((100vw - var(--wrap)) / 2)); color: #fff; }
.band__card h2 { color: #fff; }
.band__card p { margin-top: 16px; color: rgb(255 255 255 / .86); }

/* Myths */
.myths { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); }
.myths__side img { margin-top: 32px; border-radius: var(--r); width: min(100%, 380px); aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); }
.myth { border-bottom: 1px solid var(--line); }
.myth:first-child { border-top: 1px solid var(--line); }
.myth summary { list-style: none; display: grid; grid-template-columns: 1fr 34px; gap: 18px; align-items: center; padding: 22px 0; cursor: pointer; font: 600 clamp(18px, 1.8vw, 22px)/1.3 "Unbounded", sans-serif; letter-spacing: -0.015em; }
.myth summary::-webkit-details-marker { display: none; }
.myth__plus { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease), background-color .3s; }
.myth__plus::before, .myth__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.myth__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.myth[open] .myth__plus { transform: rotate(45deg); background: var(--accent-soft); }
.myth__fact { padding: 0 52px 24px 0; color: var(--muted); }
.myth__fact strong { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .myths { grid-template-columns: 1fr; } .myths__side img { display: none; } }

/* Shelter checklist */
.shelter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.shelter__photo { margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.shelter__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.check { list-style: none; margin: 28px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.check li { break-inside: avoid; margin-bottom: 8px; }
.check label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: 1.5px solid var(--muted); border-radius: 6px; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.check small { display: block; color: var(--muted); font-size: 14px; }
.check__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.check__count { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .shelter { grid-template-columns: 1fr; } .shelter__photo { aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .check { columns: 1; } }

/* Winter */
.winter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.winter__img { border-radius: var(--r); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.winter__tips { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.winter__tips li:first-child { grid-column: 1 / -1; font-size: 19px; padding: 22px 24px; border-radius: var(--r); background: var(--accent-soft); }
.winter__tips strong { display: block; font: 600 17px/1.35 "Unbounded", sans-serif; margin-bottom: 6px; letter-spacing: -0.01em; }
.winter__tips li { color: var(--muted); }
.winter__tips li strong { color: var(--ink); }
@media (max-width: 860px) { .winter { grid-template-columns: 1fr; } .winter__img { aspect-ratio: 16 / 10; } .winter__tips { grid-template-columns: 1fr; } }

/* Adopt */
.adopt__row { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 16px; margin-top: 40px; height: clamp(260px, 32vw, 420px); }
.adopt__row img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
@media (max-width: 720px) { .adopt__row { grid-template-columns: 1fr 1fr; height: auto; } .adopt__row img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } .adopt__row img { aspect-ratio: 1; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 28px 48px; align-items: start; }
.foot p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 52ch; }
.foot__h { font-weight: 600; color: var(--ink) !important; margin-top: 0 !important; }
.foot__credits a { color: var(--muted); }
.foot__credits a:hover { color: var(--ink); }
.foot__up { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 500; font-size: 15px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
