/* ============================================================
   «Братья меньшие» — стили сайта
   ============================================================ */
:root {
  --green: #2f6b46;
  --green-dark: #24553a;
  --green-light: #e7f0ea;
  --amber: #ef9f3c;
  --amber-dark: #d9861f;
  --amber-light: #fdf3e2;
  --cream: #faf6ef;
  --white: #ffffff;
  --ink: #2c2a26;
  --muted: #6d665a;
  --border: #e9e1d3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 42, 38, 0.08);
  --shadow-lg: 0 18px 50px rgba(44, 42, 38, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--alt { background: var(--white); }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__title { font-size: clamp(28px, 4vw, 40px); color: var(--ink); }
.section__title .accent { color: var(--green); }
.section__intro { color: var(--muted); font-size: 17px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #4a2c05; box-shadow: 0 8px 20px rgba(239, 159, 60, .35); }
.btn--primary:hover { background: var(--amber-dark); color: #3a2202; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(47,107,70,.3); }
.btn--green:hover { background: var(--green-dark); color: #fff; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo__img { height: 42px; width: auto; flex: none; }
.logo span { line-height: 1.1; }
.logo small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.active { background: var(--green-light); color: var(--green-dark); }
.nav__cta { margin-left: 8px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, #24553a 0%, #2f6b46 55%, #3c8157 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(239,159,60,.35), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; padding: 92px 0; max-width: 760px; }
.hero__tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); margin-bottom: 10px; }
.hero__subtitle { font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: #ffe6b8; margin-bottom: 16px; }
.hero__text { font-size: 18px; color: rgba(255,255,255,.9); max-width: 620px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Списки «чем занимаемся» ---------- */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; color: var(--green-dark); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); }
.check-list li::before { content: "🐾"; position: absolute; left: 0; top: 0; font-size: 15px; }
.check-list--no li::before { content: "✕"; color: #c0563a; font-weight: 700; }

/* ---------- Животные ---------- */
.animals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.animal { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.animal:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.animal__photo { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--border); }
.animal__body { padding: 18px; }
.animal__name { font-size: 19px; font-weight: 800; margin: 0 0 2px; }
.animal__age { display: inline-block; font-size: 13px; font-weight: 700; color: var(--amber-dark); background: var(--amber-light); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.animal__desc { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Программы ---------- */
.programs { display: grid; gap: 20px; }
.program { background: var(--white); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.program h3 { color: var(--green-dark); font-size: 20px; }
.program p { color: var(--muted); margin: 0; }

/* ---------- Документы и отчётность ---------- */
.files { display: grid; gap: 12px; }
.file-item { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; transition: border-color .15s ease, box-shadow .15s ease; }
.file-item:hover { border-color: var(--green); box-shadow: var(--shadow); }
.file-item__icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.file-item__body { flex: 1; min-width: 0; }
.file-item__title { font-weight: 700; color: var(--ink); }
.file-item__meta { font-size: 13px; color: var(--muted); }
.file-item__dl { flex: none; font-weight: 700; color: var(--green); white-space: nowrap; }
.file-empty { color: var(--muted); font-style: italic; padding: 8px 0; }

/* ---------- Пожертвование ---------- */
.donate-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.req-table { width: 100%; border-collapse: collapse; }
.req-table td { padding: 9px 0; border-bottom: 1px dashed var(--border); vertical-align: top; font-size: 15px; }
.req-table td:first-child { color: var(--muted); padding-right: 16px; white-space: nowrap; font-weight: 600; }
.req-table td:last-child { color: var(--ink); font-weight: 600; }
.sbp { text-align: center; }
.sbp__qr { max-width: 240px; margin: 0 auto 14px; border-radius: var(--radius); border: 1px solid var(--border); }
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pay-logos img { height: 40px; width: auto; border-radius: 6px; border: 1px solid var(--border); background: #fff; padding: 4px; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-line { display: flex; gap: 12px; margin-bottom: 14px; }
.contact-line__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.contact-line__body { color: var(--muted); }
.contact-line__body strong { color: var(--ink); display: block; }

/* ---------- Форма ---------- */
.form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form__row { margin-bottom: 16px; }
.form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--cream);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); border-color: transparent; background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form__captcha { display: flex; align-items: center; gap: 12px; }
.form__captcha-question { font-weight: 700; font-size: 18px; color: var(--green-dark); white-space: nowrap; }
.form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.form__consent input { width: auto; margin-top: 2px; }
.form__hint { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form__status { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form__status--ok { display: block; background: var(--green-light); color: var(--green-dark); }
.form__status--err { display: block; background: #fdece7; color: #a33a20; }

/* ---------- Футер ---------- */
.footer { background: var(--green-dark); color: rgba(255,255,255,.85); padding: 48px 0 28px; margin-top: 40px; }
.footer a { color: #ffd9a0; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: rgba(255,255,255,.85); }
.footer__links a:hover { color: #fff; }
.footer__bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .columns, .donate-grid, .contacts-grid, .footer__grid { grid-template-columns: 1fr; }
  .nav {
    position: fixed; inset: 68px 0 0 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px;
    border-top: 1px solid var(--border); overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px; font-size: 17px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__cta { margin: 12px 0 0; }
  .nav-toggle { display: block; }
  .hero__inner { padding: 64px 0; }
  .section { padding: 52px 0; }
}
