
    :root {
      --color-bg: #f7f8f0;
      --color-green: #107709;
      --color-red: #d21409;
      --color-ink: #20301d;
      --color-on-accent: #fffdf8;
      --color-muted: #66715f;
      --color-surface: #e8ecdf;
      --color-girl: #a65274;
      --color-boy: #4d719a;
      --page-x: clamp(22px, 4.5vw, 88px);
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; background: var(--color-bg); }
    body { margin: 0; min-width: 320px; color: var(--color-ink); background: var(--color-bg); font-family: "Onest", sans-serif; -webkit-font-smoothing: antialiased; }
    img { display: block; width: 100%; height: 100%; object-fit: cover; }
    a { color: inherit; }
    button { font: inherit; }
    .page { overflow: hidden; }
    .shell { width: 100%; padding-inline: var(--page-x); }
    .header { background: var(--color-green); color: var(--color-on-accent); }
    .header__inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #ffffff26; }
    .brand { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
    .brand__logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; }
    .header__nav { display: flex; gap: 32px; align-items: center; font-size: 13px; }
    .header__city { opacity: .7; }
    .header__nav a { text-decoration: none; }
    .hero { background: var(--color-green); color: var(--color-on-accent); }
    .hero__inner { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 6vw; padding-top: 52px; padding-bottom: 64px; }
    .hero__content { min-width: 0; }
    .hero__label { display: flex; align-items: center; gap: 10px; margin: 0 0 32px; font-size: 12px; letter-spacing: .04em; }
    .hero__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-on-accent); }
    .title { margin: 0; font-size: clamp(56px, 6.7vw, 128px); line-height: 1.02; font-weight: 500; letter-spacing: -.07em; }
    .title__line { display: block; }
    .title__line--soft { color: #dce8d4; }
    .hero__description { max-width: 34ch; margin: 28px 0 0; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.65; color: #e4eedf; }
    .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
    .button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 10px; font-size: 14px; font-weight: 500; text-decoration: none; transition: transform 180ms ease, background 180ms ease; }
    .button--primary { background: var(--color-on-accent); color: var(--color-green); }
    .button--secondary { padding-inline: 0; border-radius: 0; border-bottom: 1px solid #ffffff50; }
    .collage { position: relative; margin: 0; min-width: 0; }
    .portrait { margin: 0; overflow: hidden; }
    .portrait--main { width: 100%; aspect-ratio: .98; border-radius: 180px 180px 14px 14px; background: var(--color-surface); }
    .portrait--main img { object-position: 50% 40%; }
    .hero__photo-caption { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0 0; font-size: 12px; color: #e4eedf; }
    .hero__photo-caption span:last-child { opacity: .65; }
    .pets { padding-top: 64px; padding-bottom: 88px; }
    .pets__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
    .pets__title { margin: 0; font-size: clamp(32px, 3.8vw, 64px); font-weight: 500; letter-spacing: -.055em; line-height: 1.1; }
    .pets__title-brand, .pets__title-accent { color: var(--color-ink); }
    .pets__all { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; text-decoration: none; }
    .pets__all-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #20301d30; }
    .pets__all-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
    .pets__carousel { position: relative; }
    .pets__viewport { overflow: hidden; }
    .pets__grid { display: flex; gap: 24px; transition: transform 450ms cubic-bezier(.22,1,.36,1); }
    .pet-card { flex: 0 0 calc((100% - 48px)/3); min-width: 0; }
    .pet-card__link { display: block; text-decoration: none; }
    .pet-card__media { aspect-ratio: 1.2; overflow: hidden; border-radius: 12px; background: var(--color-surface); }
    .pet-card__image { transition: transform 400ms ease; }
    .pet-card__body { padding-top: 20px; }
    .pet-card__topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .pet-card__name { margin: 0; font-size: clamp(25px, 2.3vw, 38px); font-weight: 500; letter-spacing: -.045em; }
    .pet-card__status { color: var(--color-green); font-size: 11px; border: 1px solid #10770930; border-radius: 30px; padding: 7px 10px; white-space: nowrap; }
    .pet-card__facts { display: flex; gap: 18px; margin-top: 14px; }
    .pet-card__fact { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-muted); }
    .pet-card__fact-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
    .pet-card__description { color: var(--color-muted); font-size: 14px; line-height: 1.6; max-width: 38ch; }
    .pets__controls { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
    .pets__nav { position: absolute; top: var(--pets-nav-y, 160px); transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--color-on-accent); color: var(--color-ink); display: grid; place-items: center; cursor: pointer; pointer-events: auto; box-shadow: 0 2px 12px #20301d12; }
    .pets__nav--prev { left: 12px; }
    .pets__nav--next { right: 12px; }
    .pets__nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
    .pets__nav:disabled { opacity: 0; pointer-events: none; }
    a:focus-visible, button:focus-visible { outline: 3px solid var(--color-green); outline-offset: 5px; }
    .hero a:focus-visible, .header a:focus-visible { outline-color: var(--color-on-accent); }
    @media (hover: hover) {
      .button--primary:hover { transform: translateY(-2px); background: #e8ecdf; }
      .pet-card__link:hover .pet-card__image { transform: scale(1.035); }
    }
    @media (max-width: 860px) {
      .header__inner { height: 80px; }
      .hero__inner { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
      .title { font-size: clamp(44px, 7vw, 68px); }
      .portrait--main { border-radius: 120px 120px 12px 12px; aspect-ratio: .8; }
      .hero__label { margin-bottom: 22px; font-size: 11px; }
      .hero__description { font-size: 14px; margin-top: 22px; }
      .actions { gap: 16px; margin-top: 26px; }
      .button { min-height: 48px; padding-inline: 18px; font-size: 12px; }
      .button--secondary { padding-inline: 0; }
      .header__nav { gap: 18px; font-size: 12px; }
      .pet-card { flex-basis: calc((100% - 24px)/2); }
      .hero__photo-caption { font-size: 10px; }
    }
    @media (max-width: 560px) {
      .header__city { display: none; }
      .header__nav { font-size: 11px; }
      .brand { font-size: 18px; gap: 8px; }
      .brand__logo { width: 36px; height: 36px; flex-basis: 36px; }
      .hero__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 30px; }
      .title { font-size: clamp(54px, 12vw, 72px); }
      .hero__description { max-width: 33ch; font-size: 15px; }
      .hero__label { margin-bottom: 24px; }
      .portrait--main { aspect-ratio: 1.15; border-radius: 100px 100px 12px 12px; }
      .hero__photo-caption { font-size: 11px; }
      .pets { padding-top: 40px; padding-bottom: 56px; }
      .pets__head { align-items: start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
      .pets__grid { gap: 20px; }
      .pet-card { flex-basis: 100%; }
      .pet-card__name { font-size: 30px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; }
    }
    .hero .collage { aspect-ratio: 1; }
    .hero .portrait--main {
      position: absolute;
      inset: 2% 0 auto auto;
      width: 83%;
      aspect-ratio: .97;
      border-radius: 46% 46% 12% 46%;
      rotate: 4deg;
    }
    .hero .portrait--main img { scale: 1.1; rotate: -4deg; }
    .portrait--companion {
      position: absolute;
      left: 0;
      bottom: 2%;
      width: 37%;
      aspect-ratio: 1;
      border: 7px solid var(--color-green);
      border-radius: 50%;
      rotate: -8deg;
      z-index: 2;
    }
    .portrait--companion img { scale: 1.12; rotate: 8deg; }

    .hero__photo-caption {
      position: absolute;
      right: 3%;
      bottom: -2%;
      margin: 0;
      line-height: 1.6;
      font-size: 13px;
      text-align: right;
    }
    .pets__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 24px; }
    .pet-card { min-width: 0; }
    .pets__footer { display: flex; justify-content: center; margin-top: 44px; }
    .pets__more { border: 1px solid #10770940; color: var(--color-green); gap: 24px; min-height: 58px; padding-inline: 28px; }
    .pets__more:hover { background: var(--color-surface); }
    @media (max-width: 860px) {
      .pets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .hero__photo-caption { font-size: 10px; }
    }
    @media (max-width: 560px) {
      .hero .collage { aspect-ratio: 1; margin-bottom: 12px; }
      .hero .portrait--main { aspect-ratio: .97; }
      .hero__photo-caption { font-size: 12px; }
      .pets__grid { grid-template-columns: 1fr; gap: 32px; }
      .pets__more { width: 100%; font-size: 13px; }
    }
    .header {
      position: fixed;
      inset: 12px 20px auto;
      z-index: 100;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 16px;
      transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
    }
    .header__inner {
      height: 64px;
      padding-inline: 22px;
      border-bottom: 0;
    }
    .brand { font-size: 19px; }
    .brand__logo { width: 36px; height: 36px; flex-basis: 36px; }
    .header__nav { font-size: 15px; gap: 24px; }
    .header.is-scrolled {
      color: var(--color-ink);
      background: rgb(247 248 240 / 78%);
      border-color: rgb(32 48 29 / 9%);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }
    .header.is-scrolled a:focus-visible { outline-color: var(--color-green); }
    .hero { min-height: 100svh; }
    .hero__inner {
      min-height: 100svh;
      padding-top: 112px;
      padding-bottom: 44px;
      align-content: center;
    }
    .hero .collage {
      width: min(100%, calc(100svh - 180px));
      justify-self: end;
      margin-bottom: 0;
      aspect-ratio: 1;
    }
    #pets { scroll-margin-top: 100px; }
    @media (max-width: 860px) and (min-width: 561px) {
      .hero .collage { width: 100%; }
      .hero__inner { padding-top: 104px; padding-bottom: 40px; }
    }
    @media (max-width: 560px) {
      .header { inset: 8px 10px auto; border-radius: 12px; }
      .header__inner { height: 56px; padding-inline: 12px; gap: 12px; }
      .brand { font-size: 17px; }
      .brand__logo { width: 32px; height: 32px; flex-basis: 32px; }
      .header__nav { font-size: 12px; }
      .hero__inner { padding-top: 92px; padding-bottom: 28px; gap: 28px; }
      .hero .collage { width: min(82vw, 34svh); justify-self: center; }
      .hero__description { margin-top: 20px; }
      .actions { margin-top: 24px; }
    }
    .header {
      inset: 0 0 auto;
      border: 0;
      border-bottom: 0;
      border-radius: 0;
    }
    .header__inner {
      height: 76px;
      padding-inline: var(--page-x);
    }
    .header.is-scrolled { border-color: rgb(32 48 29 / 9%); }
    .hero .button--secondary {
      min-height: 54px;
      padding: 0 26px;
      border: 1px solid rgb(255 253 248 / 45%);
      border-radius: 10px;
      background: transparent;
      color: var(--color-on-accent);
    }
    @media (hover: hover) {
      .hero .button--secondary:hover {
        background: rgb(255 253 248 / 8%);
        border-color: var(--color-on-accent);
      }
    }
    @media (max-width: 860px) {
      .hero .button--secondary { min-height: 48px; padding-inline: 18px; }
    }
    @media (max-width: 560px) {
      .header { inset: 0 0 auto; border-radius: 0; }
      .header__inner { height: 64px; padding-inline: var(--page-x); }
    }
    .pets__layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: clamp(28px, 3vw, 56px); align-items: start; }
    .pet-filters { position: sticky; top: 100px; padding: 22px; background: var(--color-surface); border-radius: 16px; }
    .pet-filters__heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 24px; }
    .pet-filters__heading h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.04em; }
    .pet-filters__reset { border: 0; background: transparent; padding: 4px 0; color: var(--color-muted); font-size: 11px; cursor: pointer; }
    .pet-filters__reset:hover { color: var(--color-green); }
    .pet-filters__search { display: block; }
    .pet-filters__search > span, .pet-filters legend { display: block; font-size: 12px; font-weight: 500; margin-bottom: 10px; }
    .pet-filters__search input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; font: inherit; font-size: 12px; border: 1px solid transparent; border-radius: 8px; background: var(--color-on-accent); color: var(--color-ink); }
    .pet-filters input:focus-visible { outline: 2px solid var(--color-green); outline-offset: 3px; }
    .pet-filters__group { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
    .pet-filters__choices { display: flex; flex-wrap: wrap; gap: 6px; }
    .pet-filters__choices label { position: relative; cursor: pointer; }
    .pet-filters__choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .pet-filters__choices span { display: block; padding: 9px 11px; border-radius: 7px; background: var(--color-on-accent); font-size: 11px; transition: background 160ms ease, color 160ms ease; }
    .pet-filters__choices input:checked + span { background: var(--color-green); color: var(--color-on-accent); }
    .pet-filters__choices input:focus-visible + span { outline: 2px solid var(--color-green); outline-offset: 3px; }
    .pet-filters__ages label { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 12px; cursor: pointer; }
    .pet-filters__ages input { width: 15px; height: 15px; margin: 0; accent-color: var(--color-green); }
    .pet-filters__count { border-top: 1px solid #20301d15; padding-top: 18px; margin: 24px 0 0; font-size: 11px; color: var(--color-muted); }
    .pets__results { min-width: 0; }
    .pet-card[hidden], .pets__empty[hidden] { display: none; }
    .pets__empty { margin: 0; padding: 48px 20px; text-align: center; color: var(--color-muted); font-size: 15px; }
    @media (max-width: 1180px) { .pets__layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } .pets__results .pets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pet-filters { padding: 18px; } }
    @media (max-width: 700px) { .pets__layout { grid-template-columns: 1fr; } .pet-filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px; } .pet-filters__heading, .pet-filters__count { grid-column: 1 / -1; margin: 0; } .pet-filters__group { margin: 0; } .pet-filters__ages { grid-column: 1 / -1; } .pet-filters__ages label { display: inline-flex; margin-right: 14px; } }
    @media (max-width: 560px) { .pets__results .pets__grid { grid-template-columns: 1fr; } .pet-filters { grid-template-columns: 1fr; gap: 20px; } }
    .pet-filters__ages input {
      appearance: none;
      -webkit-appearance: none;
      position: relative;
      flex: 0 0 20px;
      width: 20px;
      height: 20px;
      border: 1px solid rgb(32 48 29 / 22%);
      border-radius: 6px;
      background: var(--color-on-accent);
      cursor: pointer;
      transition: background-color 180ms ease, border-color 180ms ease;
    }
    .pet-filters__ages input::after {
      content: "";
      position: absolute;
      left: 6px;
      top: 3px;
      width: 6px;
      height: 10px;
      border: solid var(--color-on-accent);
      border-width: 0 2px 2px 0;
      transform: rotate(45deg) scale(.6);
      opacity: 0;
      transition: transform 180ms ease, opacity 180ms ease;
    }
    .pet-filters__ages input:checked {
      background: var(--color-green);
      border-color: var(--color-green);
    }
    .pet-filters__ages input:checked::after {
      opacity: 1;
      transform: rotate(45deg) scale(1);
    }
    @media (hover: hover) {
      .pet-filters__ages label:hover input { border-color: var(--color-green); }
    }
    @media (forced-colors: active) {
      .pet-filters__ages input { appearance: auto; -webkit-appearance: auto; }
      .pet-filters__ages input::after { display: none; }
    }
    .hero__description, .header__nav, .pet-card__description,
    .pet-card__fact, .pet-filters__search input, .pet-filters__ages label,
    .pet-filters__choices span, .pet-filters__count, .pet-filters__reset,
    .pets__more, .pets__empty {
      font-weight: 500;
    }
    .pet-card__description, .pet-card__fact,
    .pet-filters__count, .pet-filters__reset { color: #4d5b46; }
    .pet-card__fact { font-size: 13px; }
    .pet-filters__count, .pet-filters__reset { font-size: 12px; }
    .pet-filters__ages label { font-size: 13px; gap: 10px; }
    .pet-filters__ages input { border-radius: 4px; border-width: 2px; }
    .pet-filters__ages input::after { left: 5px; top: 2px; }
    .catalog .header { background: rgb(247 248 240 / 88%); color: var(--color-ink); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
    .catalog .header a:focus-visible { outline-color: var(--color-green); }
    .catalog-main { padding-top: 118px; padding-bottom: 80px; }
    .catalog-heading { margin-bottom: 42px; }
    .catalog-back { display: inline-block; margin-bottom: 24px; color: var(--color-muted); text-decoration: none; font-size: 13px; font-weight: 500; }
    .catalog-heading h1 { margin: 0; font-size: clamp(44px, 5vw, 78px); line-height: 1.05; font-weight: 500; letter-spacing: -.06em; }
    .catalog-heading p { max-width: 50ch; margin: 18px 0 0; color: var(--color-muted); font-size: 15px; font-weight: 500; line-height: 1.6; }
    .catalog .pets__layout { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; }
    .catalog-filters { padding: 26px; max-height: calc(100svh - 120px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #10770950 transparent; }
    .catalog-filters .pet-filters__heading h3 { font-size: 18px; }
    .catalog-filters .pet-filters__group { padding-top: 22px; margin-top: 22px; border-top: 1px solid #20301d12; }
    .catalog-filters .pet-filters__choices { gap: 6px; }
    .catalog-filters .pet-filters__choices span { padding: 10px 12px; font-size: 12px; }
    .catalog-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
    .catalog-total { margin: 0; color: var(--color-muted); font-size: 14px; font-weight: 500; }
    .catalog-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--color-muted); }
    .catalog-sort select { max-width: 100%; height: 40px; padding: 0 32px 0 12px; border: 1px solid #20301d20; border-radius: 8px; background: var(--color-on-accent); color: var(--color-ink); font: inherit; }
    .catalog-sort select:focus-visible { outline: 2px solid var(--color-green); outline-offset: 3px; }
    .catalog .pets__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; }
    .catalog-filters__toggle { display: none; }
    @media (max-width: 1180px) { .catalog .pets__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 26px; } .catalog .pets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog-filters { padding: 22px; } }
    @media (max-width: 800px) {
      .catalog .pets__layout { grid-template-columns: 1fr; }
      .catalog-filters { position: static; max-height: none; overflow: visible; display: block; }
      .catalog-filters__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 18px; border: 1px solid #10770930; background: var(--color-surface); border-radius: 10px; color: var(--color-ink); font-weight: 500; cursor: pointer; margin-bottom: 16px; }
      .catalog-filters[hidden] { display: none; }
      .catalog-main { padding-top: 96px; }
      .catalog-heading { margin-bottom: 28px; }
      .catalog-filters .pet-filters__ages label { display: flex; }
    }
    @media (max-width: 560px) { .catalog .pets__grid { grid-template-columns: 1fr; } .catalog-toolbar { align-items: start; } .catalog-heading h1 { font-size: 44px; } .catalog-sort { width: 100%; justify-content: space-between; } }
    .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
    .catalog .catalog-home {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 40px;
      padding: 0 14px;
      border: 1px solid rgb(32 48 29 / 13%);
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
    }
    .catalog-home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .catalog-home:hover { background: var(--color-surface); }
    .catalog-toolbar { min-height: 48px; margin-bottom: 22px; gap: 16px; }
    .catalog-total { font-size: 14px; color: var(--color-ink); letter-spacing: -.02em; }
    .catalog-sort { position: relative; display: inline-flex; gap: 0; width: auto; border-radius: 8px; color: var(--color-ink); background: var(--color-surface); }
    .catalog-sort select { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 36px 0 38px; border: 0; background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 8px; }
    .catalog-sort__icon, .catalog-sort__chevron { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    .catalog-sort__icon { left: 12px; }
    .catalog-sort__chevron { right: 10px; }
    @media (max-width: 560px) {
      .catalog .catalog-home { font-size: 12px; padding-inline: 10px; min-height: 36px; }
      .catalog-toolbar { flex-wrap: nowrap; align-items: center; gap: 10px; }
      .catalog-total { font-size: 13px; flex-shrink: 0; }
      .catalog-sort { width: auto; justify-content: initial; }
      .catalog-sort select { font-size: 12px; max-width: 190px; }
    }
    .custom-sort { position: relative; }
    .custom-sort__trigger { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--color-ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
    .custom-sort__trigger svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    .custom-sort__arrow { transition: transform 180ms ease; }
    .custom-sort__trigger[aria-expanded="true"] .custom-sort__arrow { transform: rotate(180deg); }
    .custom-sort__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 224px; padding: 6px; border: 1px solid rgb(32 48 29 / 9%); border-radius: 12px; background: var(--color-on-accent); box-shadow: 0 12px 32px rgb(32 48 29 / 10%); }
    .custom-sort__menu[hidden] { display: none; }
    .custom-sort__menu button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px; border: 0; border-radius: 7px; background: transparent; color: var(--color-ink); text-align: left; font-size: 13px; font-weight: 500; cursor: pointer; }
    .custom-sort__menu button svg { width: 16px; height: 16px; fill: none; stroke: var(--color-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
    .custom-sort__menu button[aria-checked="true"] { color: var(--color-green); background: var(--color-surface); }
    .custom-sort__menu button[aria-checked="true"] svg { opacity: 1; }
    .custom-sort__menu button:hover, .custom-sort__menu button:focus-visible { background: var(--color-surface); }
    @media (max-width: 560px) { .custom-sort__trigger { gap: 7px; font-size: 12px; padding-inline: 10px; } }
    .catalog-filters .pet-filters__group {
      display: block;
      position: relative;
      padding: 22px 0 0;
      margin: 22px 0 0;
      border: 0;
      min-inline-size: 0;
    }
    .catalog-filters .pet-filters__group::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 1px;
      background: rgb(32 48 29 / 9%);
    }
    .catalog-filters .pet-filters__group legend {
      float: left;
      width: 100%;
      padding: 0;
      margin: 0 0 12px;
      font-size: 12px;
      line-height: 18px;
    }
    .catalog-filters .pet-filters__group > :nth-child(2) { clear: both; }
    .catalog-filters .pet-filters__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .catalog-filters .pet-filters__choices label { min-width: 0; }
    .catalog-filters .pet-filters__choices span { padding: 10px 3px; text-align: center; font-size: 11px; line-height: 16px; }
    .catalog-filters .pet-filters__ages label {
      display: flex;
      align-items: center;
      min-height: 32px;
      margin: 0;
      gap: 10px;
      font-size: 13px;
      line-height: 20px;
    }
    .catalog-filters .pet-filters__ages input { flex: 0 0 18px; width: 18px; height: 18px; border-width: 1px; border-radius: 5px; }
    .catalog-filters .pet-filters__ages input::after { left: 5px; top: 2px; width: 5px; height: 9px; }
    .custom-sort__menu { min-width: 188px; padding: 4px; border-radius: 9px; top: calc(100% + 6px); }
    .custom-sort__menu button { padding: 9px 10px; gap: 10px; font-size: 12px; line-height: 18px; border-radius: 6px; }
    .custom-sort__menu button svg { width: 14px; height: 14px; }
    @media (prefers-reduced-motion: no-preference) {
      .custom-sort__menu:not([hidden]) { animation: sort-open 160ms cubic-bezier(.2,.8,.2,1) both; transform-origin: top right; }
      @keyframes sort-open { from { opacity: 0; transform: translateY(-5px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
    }

    :root {
      --copy-size: clamp(18px, 1.7vw, 22px);
      --card-name-size: clamp(32px, 3vw, 44px);
    }
    .hero__description, .about__text, .impact__description,
    .pet-card__description, .story__text, .wet-noses__text, .catalog-heading p {
      font-size: var(--copy-size); font-weight: 500; line-height: 1.5;
    }
    .pet-card__name, .story h3 {
      font-size: var(--card-name-size); font-weight: 500; line-height: 1.1;
    }
    .wet-noses__text { max-width: 40ch; }
    @media (max-width: 760px) {
      :root { --copy-size: 19px; --card-name-size: 32px; }
    }
  
[hidden]{display:none!important}
