:root{
  /* Lightened base */
  --page: #f6f7fb;
  --page-2: #eef1f7;
  --text: #101522;
  --muted: rgba(16,21,34,.72);
  --muted-2: rgba(16,21,34,.56);
  --line: rgba(16,21,34,.10);

  /* Malta vibe */
  --sand: #f2d6a3;
  --sand-2: #e7b87a;
  --sea: #24b7d6;
  --sea-2: #1a7fb8;

  --panel: rgba(255,255,255,.82);
  --panel-2: rgba(255,255,255,.92);

  --shadow: 0 18px 45px rgba(16,21,34,.12);
  --shadow-soft: 0 12px 28px rgba(16,21,34,.10);

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;

  --container: 1140px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 12% 0%, rgba(242,214,163,.35), transparent 62%),
    radial-gradient(1000px 520px at 92% 10%, rgba(36,183,214,.25), transparent 60%),
    linear-gradient(180deg, var(--page), var(--page-2));
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246,247,251,.78);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(242,214,163,.65), rgba(36,183,214,.30));
  border: 1px solid rgba(16,21,34,.12);
  box-shadow: var(--shadow-soft);
  font-size: 18px;
}
.brand__text{ display: grid; line-height: 1.05; }
.brand__name{ font-weight: 900; letter-spacing: .2px; }
.brand__tag{ font-size: 12px; color: var(--muted); }

.nav{ position: relative; }
.nav__toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  cursor: pointer;
}
.nav__toggle-lines{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  position: relative;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.nav__toggle-lines::before{ top: -6px; }
.nav__toggle-lines::after{ top: 6px; }

.nav__list{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.nav__link{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(16,21,34,.70);
  border: 1px solid transparent;
  transition: .2s ease;
  font-weight: 750;
  font-size: 14px;
}
.nav__link:hover{
  color: var(--text);
  background: rgba(255,255,255,.65);
  border-color: rgba(16,21,34,.10);
}
.nav__link.is-active{
  color: var(--text);
  background: rgba(36,183,214,.14);
  border-color: rgba(36,183,214,.26);
}
.nav__link--cta{
  color: rgba(16,21,34,.95);
  background: linear-gradient(135deg, rgba(242,214,163,1), rgba(36,183,214,1));
  border-color: transparent;
}
.nav__link--cta:hover{ filter: brightness(1.03); }

/* Hero */
.hero{
  position: relative;
  padding: 62px 0 28px;
  overflow: hidden;
}
.hero__backdrop{
  position: absolute;
  inset: -120px -60px auto -60px;
  height: 420px;
  background:
    radial-gradient(680px 220px at 18% 30%, rgba(242,214,163,.45), transparent 72%),
    radial-gradient(640px 240px at 70% 30%, rgba(36,183,214,.30), transparent 68%);
  pointer-events: none;
  filter: blur(2px);
}
.hero__grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: start;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(16,21,34,.10);
  color: rgba(16,21,34,.74);
  font-weight: 750;
  font-size: 13px;
}
.badge__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--sea));
  box-shadow: 0 0 0 4px rgba(242,214,163,.22);
}
.hero__title{
  margin: 16px 0 12px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.8px;
}
.text-gradient{
  background: linear-gradient(135deg, #b97a1d, var(--sea-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* FIX: buttons not stuck */
.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 6px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16,21,34,.12);
  background: rgba(255,255,255,.80);
  color: rgba(16,21,34,.92);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .1px;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: 0 12px 22px rgba(16,21,34,.10);
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn--primary{
  border: none;
  color: rgba(16,21,34,.95);
  background: linear-gradient(135deg, rgba(242,214,163,1), rgba(36,183,214,1));
}
.btn--ghost{ background: rgba(255,255,255,.62); }
.btn--small{
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
}

.hero__stats{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.stat{
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(16,21,34,.10);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
}
.stat__value{ font-weight: 950; letter-spacing: .2px; }
.stat__label{
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 750;
}

.hero__media{ display: grid; gap: 12px; }
.media-card{
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(16,21,34,.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.60);
}
.media-card__img{ width: 100%; height: 360px; object-fit: cover; }
.media-card__overlay{
  position: absolute;
  inset: auto 16px 16px 16px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.50);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
}
.media-card__title{ font-weight: 950; }
.media-card__subtitle{ color: rgba(16,21,34,.70); font-size: 13px; font-weight: 750; margin-top: 2px; }

.mini-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(16,21,34,.12);
  background: rgba(255,255,255,.65);
  box-shadow: var(--shadow-soft);
}
.mini img{ height: 140px; width: 100%; object-fit: cover; }

/* Sections */
.section{ padding: 64px 0; }
.section--alt{
  background: rgba(255,255,255,.55);
  border-top: 1px solid rgba(16,21,34,.08);
  border-bottom: 1px solid rgba(16,21,34,.08);
}
.section__head{ display: grid; gap: 10px; margin-bottom: 20px; }
.h2{ margin: 0; font-size: 30px; letter-spacing: -0.4px; }
.h3{ margin: 0; font-size: 18px; letter-spacing: -0.2px; }
.muted{ color: var(--muted); line-height: 1.65; }
.tiny{ font-size: 12px; color: var(--muted-2); }
.section__kicker{
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(242,214,163,.45);
  border: 1px solid rgba(185,122,29,.22);
  color: rgba(16,21,34,.88);
  font-weight: 950;
  font-size: 12px;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card{
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(16,21,34,.10);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.card p{ margin: 10px 0 0; color: var(--muted); line-height: 1.65; }

.link{
  display: inline-flex;
  margin-top: 10px;
  font-weight: 950;
  border-bottom: 1px dashed rgba(16,21,34,.25);
}

/* Features */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(16,21,34,.10);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.feature__icon{
  width: 52px; height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(242,214,163,.70), rgba(36,183,214,.26));
  border: 1px solid rgba(16,21,34,.10);
  font-size: 22px;
}
.feature__body p{ margin: 8px 0 0; color: var(--muted); line-height: 1.65; }

/* Banner */
.banner{
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(16,21,34,.10);
  background: linear-gradient(135deg, rgba(242,214,163,.35), rgba(36,183,214,.18));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}
.banner__text p{ margin: 6px 0 0; }
.banner--wide{ margin-top: 0; }

/* Split */
.split{
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  align-items: center;
}
.rounded-img{
  border-radius: var(--r-xl);
  border: 1px solid rgba(16,21,34,.12);
  box-shadow: var(--shadow);
  height: 430px;
  width: 100%;
  object-fit: cover;
}

.checklist{
  list-style: none;
  padding: 0;
  margin: 14px 0 14px;
  display: grid;
  gap: 10px;
}
.checklist li{
  position: relative;
  padding-left: 30px;
  color: rgba(16,21,34,.88);
  font-weight: 750;
}
.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(16,21,34,.92);
  background: linear-gradient(135deg, rgba(52,211,153,.85), rgba(36,183,214,.55));
}

.note{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(16,21,34,.10);
  background: rgba(255,255,255,.72);
}
.note__icon{
  width: 38px; height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(36,183,214,.10);
  border: 1px solid rgba(36,183,214,.18);
}
.note__text{ color: rgba(16,21,34,.75); line-height: 1.65; }
.note__text strong{ color: rgba(16,21,34,.92); }

/* FIX: actions not stuck to note */
.actions-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Support */
.support-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
}
.support-card{
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(16,21,34,.10);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.support-card p{
  margin-bottom: 0;
}

/* smaller boxes for volunteer/foster */
.support-card--compact{
  min-height: 190px; /* можно 180–220 по вкусу */
}
/* Push actions to the bottom */
.card-actions{
  margin-top: auto;      /* ключевое */
  padding-top: 14px;     /* воздух между текстом и кнопкой */
}

/* Center actions (as before) */
.card-actions--center{
  display: flex;
  justify-content: center;
}

/* Donate */
.donate-box{
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(16,21,34,.10);
  background: rgba(255,255,255,.70);
}
.donate-row{
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(16,21,34,.08);
}
.donate-label{ color: var(--muted-2); font-weight: 900; font-size: 12px; }
.donate-value{ font-weight: 750; color: rgba(16,21,34,.84); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy{
  border-radius: 12px;
  border: 1px solid rgba(16,21,34,.12);
  background: rgba(255,255,255,.85);
  color: rgba(16,21,34,.92);
  padding: 8px 10px;
  font-weight: 950;
  cursor: pointer;
}
.copy:hover{ filter: brightness(1.02); }

/* Contact */
.contact{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  align-items: start;
}
.form{
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(16,21,34,.10);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field{ display: grid; gap: 8px; margin-bottom: 12px; }
.field__label{
  font-size: 12px;
  font-weight: 950;
  color: rgba(16,21,34,.84);
}
.field__input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(16,21,34,.12);
  background: rgba(255,255,255,.88);
  color: rgba(16,21,34,.92);
  outline: none;
}
.field__input:focus{
  border-color: rgba(36,183,214,.40);
  box-shadow: 0 0 0 4px rgba(36,183,214,.12);
}
.field__textarea{ resize: vertical; min-height: 140px; }

.form__actions{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.toast{
  margin-top: 12px;
  display: none;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(52,211,153,.30);
  background: rgba(52,211,153,.16);
  color: rgba(16,21,34,.92);
  font-weight: 900;
}

.contact__aside{ display: grid; gap: 12px; }
.aside-card{
  padding: 18px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(16,21,34,.10);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.aside-card--soft{ background: rgba(255,255,255,.72); }
.aside-list{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.aside-item{
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(16,21,34,.08);
}
.aside-key{ color: var(--muted-2); font-weight: 950; font-size: 12px; }
.aside-val{ font-weight: 900; color: rgba(16,21,34,.88); }
.aside-cta{ margin-top: 12px; }

.bullets{ margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.bullets li{ margin: 6px 0; }

/* Footer */
.footer{ padding: 26px 0 34px; }
.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(16,21,34,.10);
  padding-top: 20px;
}
.brand--footer .brand__mark{ width: 36px; height: 36px; border-radius: 14px; }
.footer__right{ color: rgba(16,21,34,.70); }

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .media-card__img{ height: 320px; }
  .cards{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .rounded-img{ height: 320px; }
  .support-grid{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .form__row{ grid-template-columns: 1fr; }
}

@media (max-width: 820px){
  .nav__toggle{ display: inline-flex; align-items: center; justify-content: center; }
  .nav__list{
    position: absolute;
    right: 0;
    top: 56px;
    width: min(320px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(16,21,34,.12);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav__list.is-open{ display: flex; }
  .nav__link{ justify-content: space-between; }
}
