/* =========================================================
   Тебя ждут — clean style.css 1.0.4.14
   Сводная версия после ревизии CSS: без накопленных дублей footer/home/mobile.
   ========================================================= */

/* 1. Base */

* {
    box-sizing: border-box;
}

:root {
    --bg: #fbf7f1;
    --card: #ffffff;
    --text: #27231f;
    --muted: #746b60;
    --line: #eadfd2;
    --accent: #d88445;
    --accent-dark: #9e5728;
    --soft: #f3e8dc;
    --shadow: 0 24px 60px rgba(70, 47, 28, 0.12);
    --shadow-soft: 0 18px 45px rgba(70, 47, 28, 0.08);
    --radius: 28px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

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

.eyebrow {
    color: var(--accent-dark);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    margin-bottom: 14px;
}

.meta,
.form-note,
.staff-user-line {
    color: var(--muted);
}

.lead {
    color: var(--muted);
    font-size: 22px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 14px;
}

.alert,
.success-alert {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 16px;
}

.alert {
    margin-top: 20px;
    background: #fff2f2;
    color: #8c2020;
}

.success-alert {
    background: #eef8ee;
    color: #25602b;
    border: 1px solid #cbe8ce;
}

.nav-muted,
.muted-action {
    color: var(--muted);
    opacity: 0.75;
}

.muted-action {
    font-weight: 800;
    white-space: nowrap;
}

/* 2. Buttons */

.button {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
}

.button.primary {
    color: #fff;
    background: var(--text);
}

.button.secondary {
    background: var(--soft);
    color: var(--text);
}

.button.ghost {
    background: transparent;
    border: 1px solid var(--line);
}

.small-button {
    padding: 11px 16px;
    font-size: 14px;
}

/* 3. Header and navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 247, 241, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(234, 223, 210, 0.8);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 22px;
}

.logo-mark {
    color: var(--accent);
    font-size: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.main-nav a {
    color: var(--muted);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a.active {
    font-weight: 900;
}

.staff-nav {
    gap: 20px;
}

.nav-user-name {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-nav .nav-user-name {
    order: -1;
    background: rgba(255, 255, 255, 0.86);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

/* 4. Footer */

.site-footer {
    padding: 38px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.staff-body .site-footer {
    margin-top: 42px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
}

.footer-inner p {
    max-width: 620px;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 800;
}

/* 5. Shared cards and sections */

.hero-card,
.feature,
.animal-card,
.login-card,
.empty-state,
.staff-form,
.staff-table-wrap,
.promo-link-card,
.shelter-card {
    background: var(--card);
    border: 1px solid rgba(234, 223, 210, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section {
    padding: 56px 0;
}

.section-head {
    max-width: 700px;
    margin-bottom: 28px;
}

.section-head h1,
.section-head h2,
.page-hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.06em;
    line-height: 0.98;
    margin-bottom: 16px;
}

.section-head p,
.page-hero p {
    color: var(--muted);
    font-size: 19px;
}

.page-hero {
    padding: 62px 0 22px;
}

.empty-state {
    padding: 36px;
    text-align: center;
}

.empty-state p {
    color: var(--muted);
}

/* 6. Home page */

.hero {
    padding: 44px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(56px, 9vw, 118px);
    line-height: 0.88;
    letter-spacing: -0.08em;
    margin-bottom: 28px;
}

.hero-text {
    font-size: 22px;
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-card {
    overflow: hidden;
}

.hero-animal-photo {
    height: 280px;
    overflow: hidden;
}

.hero-animal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

.hero-card-body {
    padding: 28px;
}

.hero-card-body h2 {
    font-size: 36px;
    letter-spacing: -0.06em;
    margin-bottom: 8px;
}

.hero-card-body p {
    color: var(--muted);
}

.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-stats div {
    min-width: 135px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(234, 223, 210, 0.92);
    border-radius: 22px;
    padding: 16px 18px;
}

.hero-stats strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--text);
}

.hero-stats span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.featured-section {
    padding-top: 34px;
}

.compact-head {
    margin-bottom: 22px;
}

.compact-head h2 {
    font-size: clamp(34px, 5vw, 56px);
}

.featured-grid {
    margin-top: 10px;
}

.stats-section {
    display: none;
}

.soft-block {
    padding: 70px 0;
}

.soft-inner {
    background: var(--text);
    color: #fff;
    border-radius: 34px;
    padding: clamp(32px, 6vw, 72px);
}

.soft-inner h2 {
    font-size: clamp(36px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    max-width: 850px;
}

.soft-inner p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 20px;
    max-width: 700px;
    margin-bottom: 0;
}

/* 7. Catalog cards */

.animal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.animal-card {
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.animal-card:hover {
    transform: translateY(-3px);
}

.animal-photo {
    aspect-ratio: 4 / 3;
    background: var(--soft);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 800;
}

.animal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.animal-card-body {
    padding: 22px;
}

.animal-card h2 {
    font-size: 28px;
    letter-spacing: -0.05em;
    margin-bottom: 8px;
}

.card-curator-note {
    margin-top: 12px;
    color: var(--accent-dark);
    font-weight: 800;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.filter-tabs a,
.filter-copy-button {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.filter-tabs a.active,
.filter-tabs a:hover {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

/* 8. Public animal page */

.animal-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 44px;
    padding-bottom: 72px;
}

.animal-page-photo {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 14px;
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.08);
}

.animal-page-info {
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 34px;
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.07);
}

.animal-page-info h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.animal-page-info .badge {
    margin-bottom: 16px;
}

.animal-page-info .meta {
    font-size: 16px;
    line-height: 1.5;
    color: var(--muted);
    margin: 8px 0;
}

.animal-page-info .lead {
    margin: 22px 0;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.35;
    color: var(--muted);
    max-width: 620px;
}

.animal-page-info h2 {
    margin: 34px 0 12px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.animal-page-info h2 + p {
    margin-top: 0;
}

.animal-page-info p {
    font-size: 17px;
    line-height: 1.65;
}

.photo-open-button,
.gallery-item {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    background: transparent;
    cursor: zoom-in;
    font: inherit;
}

.photo-open-button {
    border-radius: 26px;
    overflow: hidden;
    background: #efe3d4;
}

.photo-open-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.animal-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}

.animal-share-actions .button,
.curator-links .button {
    min-height: auto;
    padding: 11px 16px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.1;
}

.animal-page-info .hero-actions {
    margin-top: 34px;
    gap: 12px;
}

.animal-page-info .hero-actions .button {
    padding: 14px 22px;
    font-size: 15px;
}

.curator-public-card {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(70, 47, 28, 0.08);
    margin: 26px 0 4px;
    padding: 22px;
    border-radius: 26px;
}

.curator-public-card h2 {
    margin-top: 0;
    font-size: 28px;
}

.curator-links,
.curator-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.curator-public-actions {
    margin-top: 22px;
}

.animal-gallery {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.animal-gallery::-webkit-scrollbar {
    display: none;
}

.animal-gallery .gallery-item {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border-radius: 18px;
    overflow: hidden;
    background: #efe3d4;
}

.animal-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 9. Lightbox */

.site-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(23, 18, 14, 0.88);
    padding: 32px;
}

.site-lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: min(1100px, 90vw);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    background: #fff;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #2b221b;
    cursor: pointer;
}

.lightbox-close {
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 34px;
    line-height: 42px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 72px;
    border-radius: 18px;
    font-size: 58px;
    line-height: 58px;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #2b221b;
    font-weight: 800;
}

/* 10. Shelter pages */

.shelter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.shelter-card {
    display: grid;
    min-height: 190px;
    padding: 24px;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shelter-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(70, 47, 28, 0.12);
}

.shelter-card h2 {
    margin: 18px 0 8px;
    font-size: 30px;
    letter-spacing: -0.05em;
}

.shelter-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

/* 11. Text pages */

.text-page {
    max-width: 780px;
    padding: 42px 0 80px;
    font-size: 20px;
    color: var(--muted);
}

.text-page h2 {
    color: var(--text);
}

/* 12. Login */

.login-wrap {
    min-height: 64vh;
    display: grid;
    place-items: center;
    padding: 52px 16px;
}

.login-card {
    width: min(520px, 100%);
    padding: 34px;
}

.form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.form input {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 16px;
    background: #fafafa;
}

.vk-login-box {
    display: grid;
    gap: 10px;
    margin: 24px 0 18px;
}

.vk-button {
    width: 100%;
}

#vkid-auth-box {
    min-height: 44px;
}

.login-separator {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    color: var(--muted);
    font-weight: 800;
}

.login-separator::before,
.login-separator::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}

/* 13. Staff area */

.staff-page {
    padding: 52px 0 80px;
}

.staff-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.clean-staff-top {
    display: block;
}

.clean-staff-top h1 {
    max-width: 760px;
}

.staff-top h1 {
    font-size: clamp(38px, 5vw, 66px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-bottom: 12px;
}

.staff-top p {
    color: var(--muted);
}

.staff-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.staff-table-wrap {
    overflow-x: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.staff-table th,
.staff-table td {
    text-align: left;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.staff-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.staff-table small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.staff-table a {
    font-weight: 800;
    color: var(--accent-dark);
}

.table-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.staff-form {
    display: grid;
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.staff-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.staff-form input,
.staff-form select,
.staff-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 15px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.staff-form textarea {
    resize: vertical;
}

.checkboxes {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-photo img {
    max-width: 240px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(70, 47, 28, 0.12);
}

.staff-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.staff-gallery-item {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.staff-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.staff-gallery-item a {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    color: #8c2020;
    font-weight: 800;
}

.inline-delete-form {
    display: inline;
    margin: 0;
}

.inline-delete-form button {
    border: 0;
    background: transparent;
    color: #8c2020;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.user-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 22px;
    align-items: start;
}

.user-form h2 {
    font-size: 28px;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.user-table-wrap .staff-table {
    min-width: 680px;
}

/* 14. Curators and promo links */

.curator-compact-box,
.curator-quick-box {
    display: grid;
    gap: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
}

.curator-quick-box h2,
.curator-compact-head h2 {
    margin: 0 0 4px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.curator-compact-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.curator-compact-head p {
    margin: 0;
    color: var(--muted);
}

.curator-self {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    color: var(--text) !important;
    font-weight: 800;
}

.curator-self input {
    width: auto !important;
}

.curator-vk-fields[hidden] {
    display: none !important;
}

.promo-link-card {
    padding: 24px;
    margin: 26px 0;
    box-shadow: 0 16px 42px rgba(70, 47, 28, 0.08);
}

.promo-link-card h2 {
    margin: 6px 0 8px;
    font-size: 32px;
    letter-spacing: -0.05em;
}

.promo-link-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.promo-link-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}

.promo-link-row input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 13px 16px;
    font: inherit;
    background: #fff;
    color: var(--text);
}

/* 15. VK-card generator */

.vkcard-page .staff-top {
    align-items: flex-start;
}

.vkcard-toolbar {
    margin-bottom: 18px;
}

.vkcard-hint {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.vkcard-stage {
    display: grid;
    grid-template-columns: minmax(320px, 780px) minmax(260px, 1fr);
    gap: 26px;
    align-items: start;
}

.vkcard-canvas-wrap {
    overflow-x: auto;
    padding-bottom: 10px;
}

.vkcard-canvas {
    width: 1080px;
    min-width: 1080px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, #fbf3e7 0%, #fffdf8 100%);
    border-radius: 38px;
    overflow: hidden;
    border: 1px solid #eadcc8;
    box-shadow: 0 24px 60px rgba(70, 47, 28, 0.18);
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vkcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.vkcard-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 28px;
    color: #3a2a1e;
}

.vkcard-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #c7874d;
    box-shadow: 0 0 0 8px rgba(199, 135, 77, 0.14);
}

.vkcard-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 22px;
    font-weight: 800;
    background: #fff;
    color: #7a4c22;
    border: 1px solid #ecd6b7;
}

.vkcard-photo {
    width: 100%;
    height: 620px;
    border-radius: 30px;
    overflow: hidden;
    background: #efe6da;
    border: 1px solid #eadcc8;
}

.vkcard-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vkcard-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7d6a56;
    font-size: 34px;
    font-weight: 700;
}

.vkcard-body,
.vkcard-footer-left,
.vkcard-footer-right {
    display: flex;
    flex-direction: column;
}

.vkcard-body {
    gap: 14px;
}

.vkcard-footer-left,
.vkcard-footer-right {
    gap: 8px;
}

.vkcard-title-row h2 {
    margin: 0;
    font-size: 72px;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #2f2218;
}

.vkcard-meta {
    font-size: 28px;
    line-height: 1.3;
    color: #715947;
    font-weight: 700;
}

.vkcard-description {
    margin: 0;
    font-size: 36px;
    line-height: 1.34;
    letter-spacing: -0.02em;
    color: #3a2a1e;
}

.vkcard-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-end;
    padding-top: 10px;
}

.vkcard-curator,
.vkcard-shelter {
    font-size: 24px;
    color: #6d5847;
    font-weight: 700;
}

.vkcard-callout {
    font-size: 26px;
    font-weight: 800;
    color: #7a4c22;
    text-align: right;
}

.vkcard-domain {
    font-size: 34px;
    font-weight: 900;
    color: #2f2218;
    text-align: right;
}

.vkcard-notes {
    background: var(--card);
    border-radius: 24px;
    border: 1px solid var(--line);
    padding: 22px;
    box-shadow: 0 14px 30px rgba(70, 47, 28, 0.08);
}

.vkcard-notes h2 {
    margin-top: 0;
}

.vkcard-notes ol {
    margin: 0 0 18px 20px;
    padding: 0;
}

.vkcard-notes li {
    margin-bottom: 8px;
}

/* 16. Desktop animal layout */

@media (min-width: 980px) {
    .animal-page {
        display: grid;
        grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
        gap: 38px;
        align-items: start;
    }

    .animal-page-photo {
        position: sticky;
        top: 92px;
    }

    .photo-open-button {
        height: min(62vh, 620px);
        min-height: 480px;
    }

    .animal-page-info {
        min-height: 520px;
    }
}

/* 17. Responsive */

@media (max-width: 1180px) {
    .vkcard-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .user-layout {
        grid-template-columns: 1fr;
    }

    .shelter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header {
        background: rgba(250, 246, 240, 0.94);
        backdrop-filter: blur(12px);
    }

    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 14px;
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .logo {
        font-size: 26px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        padding-top: 10px;
        gap: 8px;
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .main-nav a,
    .main-nav .nav-user-name {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.72);
        font-size: 16px;
        line-height: 1.1;
        text-align: center;
    }

    .main-nav .nav-user-name {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .features,
    .animal-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-animal-photo {
        height: 330px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-stats div {
        width: 100%;
    }

    .staff-top,
    .form-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .staff-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        display: grid;
    }
}

@media (max-width: 760px) {
    .promo-link-row {
        grid-template-columns: 1fr;
    }

    .curator-compact-head {
        display: grid;
    }

    .animal-grid,
    .featured-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 18px 18px 0;
        margin-right: -18px;
        scrollbar-width: none;
    }

    .animal-grid::-webkit-scrollbar,
    .featured-grid::-webkit-scrollbar {
        display: none;
    }

    .animal-grid .animal-card,
    .featured-grid .animal-card {
        flex: 0 0 84%;
        max-width: 84%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .animal-grid::after,
    .featured-grid::after {
        content: "";
        flex: 0 0 8px;
    }

    .section-head.compact-head::after,
    .page-hero .container::after {
        content: "Листайте карточки вбок";
        display: inline-flex;
        margin-top: 12px;
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid var(--line);
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
    }
}

@media (min-width: 681px) and (max-width: 979px) {
    .animal-page {
        display: grid;
        gap: 22px;
        width: min(760px, calc(100% - 32px));
        padding-top: 28px;
    }

    .photo-open-button {
        height: 520px;
    }

    .animal-page-info {
        padding: 28px;
    }

    .animal-page-info h1 {
        font-size: clamp(42px, 8vw, 62px);
    }
}

@media (max-width: 680px) {
    .animal-page {
        display: grid;
        gap: 18px;
        width: calc(100% - 24px);
        padding-top: 18px;
        padding-bottom: 44px;
    }

    .animal-page-photo {
        border-radius: 26px;
        padding: 10px;
        order: 1;
    }

    .animal-page-info {
        border-radius: 26px;
        padding: 22px;
        order: 2;
    }

    .photo-open-button {
        height: min(68vh, 430px);
        min-height: 300px;
        border-radius: 20px;
    }

    .animal-page-info h1 {
        font-size: clamp(38px, 14vw, 56px);
        line-height: 0.96;
        margin-bottom: 12px;
    }

    .animal-page-info .lead {
        font-size: 20px;
        line-height: 1.38;
        margin: 18px 0;
    }

    .animal-page-info h2 {
        font-size: 30px;
        margin-top: 28px;
    }

    .animal-page-info p {
        font-size: 16px;
        line-height: 1.58;
    }

    .animal-share-actions,
    .animal-page-info .hero-actions,
    .curator-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .animal-share-actions {
        margin: 18px 0 22px;
    }

    .animal-share-actions .button,
    .animal-page-info .hero-actions .button,
    .curator-links .button {
        width: 100%;
        text-align: center;
    }

    .animal-gallery {
        gap: 8px;
        margin-top: 10px;
    }

    .animal-gallery .gallery-item {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
        border-radius: 14px;
    }

    .curator-public-card {
        padding: 18px;
        border-radius: 22px;
    }

    .site-lightbox {
        padding: 18px;
    }

    .lightbox-nav {
        width: 44px;
        height: 58px;
        font-size: 44px;
        border-radius: 14px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    .lightbox-image {
        max-width: 94vw;
        max-height: 78vh;
    }

    .shelter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .header-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .logo {
        font-size: 24px;
    }

    .main-nav.is-open {
        grid-template-columns: 1fr;
    }

    .main-nav a,
    .main-nav .nav-user-name {
        justify-content: flex-start;
        padding-left: 16px;
        text-align: left;
    }
}

@media (max-width: 420px) {
    .animal-grid .animal-card,
    .featured-grid .animal-card {
        flex-basis: 88%;
        max-width: 88%;
    }
}

@media (max-width: 380px) {
    .photo-open-button {
        height: 340px;
        min-height: 260px;
    }

    .animal-page-info {
        padding: 18px;
    }

    .animal-page-info h1 {
        font-size: 40px;
    }
}

/* 18. Print */

@media print {
    .site-header,
    .site-footer,
    .animal-share-actions,
    .hero-actions,
    .curator-links,
    .animal-gallery,
    .site-lightbox {
        display: none !important;
    }

    .animal-page {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .animal-page-photo,
    .animal-page-info {
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .photo-open-button {
        height: auto !important;
    }

    .photo-open-button img {
        max-width: 320px !important;
        height: auto !important;
    }

    .animal-page-info h1 {
        font-size: 38px !important;
        letter-spacing: -0.03em !important;
    }

    .animal-page-info h2 {
        font-size: 26px !important;
    }

    .animal-page-info p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
}

/* About page v12.2 */

.about-hero {
    padding: 72px 0 46px;
}

.about-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: center;
}

.about-hero h1 {
    max-width: 980px;
    margin-bottom: 22px;
    font-size: clamp(46px, 7vw, 92px);
    line-height: 0.94;
    letter-spacing: -0.075em;
}

.about-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.55;
}

.about-stat-card {
    display: grid;
    gap: 14px;
    padding: 26px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.08);
}

.about-stat-card div {
    padding: 18px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--line);
}

.about-stat-card strong {
    display: block;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.about-stat-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 800;
}

.about-section {
    padding: 44px 0;
}

.about-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.about-card,
.about-important,
.about-two-columns {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: clamp(26px, 4vw, 44px);
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.06);
}

.about-card h2,
.about-important h2,
.about-two-columns h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.about-card p,
.about-important p,
.about-two-columns p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.about-feature {
    box-shadow: 0 18px 45px rgba(70, 47, 28, 0.06);
}

.about-steps-wrap {
    padding: 54px 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(216, 132, 69, 0.12), transparent 34%),
        rgba(255, 255, 255, 0.34);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-steps {
    display: grid;
    gap: 24px;
}

.about-step-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.about-step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(70, 47, 28, 0.06);
}

.about-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-weight: 900;
}

.about-step p {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.about-important {
    background: var(--text);
    color: #fff;
}

.about-important .eyebrow {
    color: #e6a56d;
}

.about-important p {
    color: rgba(255, 255, 255, 0.76);
}

.about-two-columns {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 32px;
    align-items: start;
}

.about-link-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.about-link-examples span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--soft);
    color: var(--accent-dark);
    font-weight: 900;
}

.about-final-block {
    padding-top: 48px;
}

.about-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.about-final-actions .button.secondary {
    background: #fff;
}

@media (max-width: 980px) {
    .about-hero-inner,
    .about-lead-grid,
    .about-feature-grid,
    .about-two-columns {
        grid-template-columns: 1fr;
    }

    .about-step-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-stat-card {
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 42px 0 28px;
    }

    .about-hero h1 {
        font-size: clamp(40px, 13vw, 58px);
    }

    .about-hero p,
    .about-card p,
    .about-important p,
    .about-two-columns p {
        font-size: 18px;
    }

    .about-section {
        padding: 26px 0;
    }

    .about-step-list {
        grid-template-columns: 1fr;
    }

    .about-stat-card {
        padding: 18px;
        border-radius: 26px;
    }

    .about-card,
    .about-important,
    .about-two-columns {
        border-radius: 26px;
        padding: 24px;
    }

    .about-final-actions {
        display: grid;
    }

    .about-final-actions .button {
        width: 100%;
    }
}

/* Patch v14.8 — блок возраста в форме карточки */

.form-grid-full {
    grid-column: 1 / -1;
}

.staff-form .form-grid {
    align-items: start;
}

.staff-form .form-grid > label {
    align-self: start;
}

.animal-age-box {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(250, 246, 240, 0.68);
    border: 1px solid var(--line);
}

.animal-age-head h2 {
    margin: 0 0 4px;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.045em;
}

.animal-age-head p,
.animal-age-note {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.animal-age-note {
    font-size: 14px;
    line-height: 1.45;
}

.animal-age-grid-2 {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 14px;
    align-items: end;
}

@media (max-width: 900px) {
    .animal-age-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Patch v13.1 — кнопка каталога на главной */

.home-catalog-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

@media (max-width: 760px) {
    .home-catalog-action {
        justify-content: stretch;
    }

    .home-catalog-action .button {
        width: 100%;
    }
}

/* Release 0.9b.4 — legal pages */

.legal-page {
    padding: 54px 0 72px;
}

.legal-hero {
    max-width: 960px;
    margin-bottom: 26px;
}

.legal-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.legal-hero p {
    max-width: 820px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

.legal-card {
    padding: clamp(24px, 4vw, 44px);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.07);
}

.legal-card h2 {
    margin: 34px 0 12px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.legal-card ul {
    margin: 12px 0 0;
    padding-left: 22px;
}

.legal-date {
    margin-top: 34px;
    font-weight: 800;
}

.legal-inline-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.legal-inline-note a {
    color: var(--accent-dark);
    font-weight: 900;
}

@media (max-width: 640px) {
    .legal-page {
        padding: 34px 0 54px;
    }

    .legal-card {
        border-radius: 26px;
        padding: 22px;
    }
}

/* Release 0.9b.5 — launch polish */

.launch-page {
    padding: 54px 0 72px;
}

.launch-hero {
    max-width: 980px;
    margin-bottom: 28px;
}

.launch-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.launch-hero p {
    max-width: 820px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
}

.launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.launch-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.launch-card,
.rule-item,
.launch-wide-card,
.launch-tips,
.home-launch-card,
.staff-launch-card,
.animal-edit-guide {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 42px rgba(70, 47, 28, 0.07);
}

.launch-card {
    padding: 22px;
    border-radius: 28px;
}

.launch-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-weight: 900;
}

.launch-card h2,
.rule-item h2,
.launch-wide-card h2,
.launch-tips h2,
.home-launch-card h2,
.staff-launch-card h2 {
    margin: 0 0 10px;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.launch-card h2,
.home-launch-card h2,
.staff-launch-card h2 {
    font-size: 24px;
}

.launch-card p,
.rule-item p,
.launch-wide-card p,
.launch-tips li,
.home-launch-card p,
.staff-launch-card p,
.animal-edit-guide p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.launch-wide-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 28px 0;
    padding: 28px;
    border-radius: 32px;
}

.launch-wide-card h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.launch-tips {
    padding: 28px;
    border-radius: 32px;
}

.launch-tips ul {
    margin: 14px 0 0;
    padding-left: 22px;
}

.rules-list {
    display: grid;
    gap: 16px;
}

.rule-item {
    padding: 24px;
    border-radius: 28px;
}

.rule-item h2 {
    font-size: 28px;
}

.home-launch-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.home-launch-card,
.staff-launch-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 26px;
}

.home-launch-card .button,
.staff-launch-card .button {
    justify-self: start;
}

.staff-launch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
}

.animal-edit-guide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
    padding: 20px;
    border-radius: 26px;
}

.animal-edit-guide strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 20px;
}

@media (max-width: 980px) {
    .launch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .launch-wide-card,
    .animal-edit-guide {
        display: grid;
    }

    .staff-launch-actions,
    .home-launch-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .launch-page {
        padding: 34px 0 54px;
    }

    .launch-grid {
        grid-template-columns: 1fr;
    }

    .launch-actions,
    .launch-wide-card .button,
    .home-launch-card .button,
    .staff-launch-card .button,
    .animal-edit-guide .button {
        width: 100%;
    }

    .launch-actions .button,
    .launch-wide-card .button,
    .home-launch-card .button,
    .staff-launch-card .button,
    .animal-edit-guide .button {
        justify-self: stretch;
        text-align: center;
    }
}

/* Release 0.9b.5.1 — header and footer cleanup */

/* Header */
.site-header {
    background: rgba(250, 246, 239, 0.92);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 72px;
}

.logo {
    flex: 0 0 auto;
    white-space: nowrap;
}

.main-nav {
    gap: 22px;
    align-items: center;
}

.main-nav a {
    white-space: nowrap;
}

.main-nav a.nav-cta {
    padding: 9px 15px;
}

/* Public header should stay light and calm. Important actions live on the page itself. */
.public-body .main-nav a.nav-cta:not(.secondary-cta) {
    background: transparent;
    color: var(--muted) !important;
    padding: 0;
}

.public-body .main-nav a.nav-cta:not(.secondary-cta):hover,
.public-body .main-nav a.active {
    color: var(--text) !important;
}

/* Release 1.0.4.14 — global mobile safety and containers */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

.container,
.header-inner {
    width: min(1120px, calc(100% - 32px));
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.site-header,
.site-footer,
main {
    max-width: 100%;
}

@media (max-width: 760px) {
    .container,
    .site-header .header-inner,
    .site-footer .container,
    .page-hero .container,
    .section .container,
    .launch-page .container,
    .legal-page .container,
    .about-hero .container,
    .about-section .container,
    .catalog-page .container,
    .staff-page .container,
    .home-v2-hero > .container,
    .home-v2-featured > .container,
    .home-v2-volunteer-section > .container {
        width: calc(100% - 32px);
        max-width: 520px;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .animal-page {
        width: calc(100% - 24px);
        max-width: 520px;
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .section-head,
    .page-hero,
    .legal-hero,
    .launch-hero,
    .about-hero,
    .home-v2-section-head {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .container,
    .site-header .header-inner,
    .site-footer .container,
    .page-hero .container,
    .section .container,
    .launch-page .container,
    .legal-page .container,
    .about-hero .container,
    .about-section .container,
    .catalog-page .container,
    .staff-page .container,
    .home-v2-hero > .container,
    .home-v2-featured > .container,
    .home-v2-volunteer-section > .container {
        width: calc(100% - 28px);
    }

    .animal-page {
        width: calc(100% - 24px);
    }
}

/* Release 1.0.4.14 — clean mobile drawer menu */

@media (max-width: 760px) {
    body.nav-open {
        overflow: hidden;
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(34, 29, 24, 0.34);
        backdrop-filter: blur(3px);
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 1105;
        background: rgba(250, 246, 239, 0.96);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
    }

    .header-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 74px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo {
        position: relative;
        z-index: 1110;
        font-size: 28px;
        white-space: nowrap;
    }

    .nav-toggle {
        position: relative;
        z-index: 1120;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 22px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid var(--line);
        color: var(--text);
        font-size: 18px;
        font-weight: 900;
        box-shadow: 0 10px 24px rgba(70, 47, 28, 0.08);
    }

    .main-nav,
    .staff-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;

        z-index: 1115 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;

        width: min(78vw, 340px) !important;
        height: 100dvh !important;
        padding: 96px 22px 24px !important;

        border-radius: 0 !important;
        border: 0 !important;
        border-left: 1px solid var(--line) !important;
        background: rgba(250, 246, 239, 0.98) !important;
        box-shadow: -18px 0 54px rgba(70, 47, 28, 0.20) !important;
        backdrop-filter: blur(16px) !important;

        transform: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .2s ease, visibility .2s ease !important;
        overflow-y: auto !important;
    }

    .main-nav.is-open,
    .staff-nav.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .main-nav a,
    .main-nav .nav-user-name,
    .staff-nav a,
    .staff-nav .nav-user-name {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        min-height: 54px !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(221, 207, 190, 0.82) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;

        color: var(--text) !important;
        font-size: 21px !important;
        line-height: 1.15 !important;
        font-weight: 900 !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .main-nav a::after,
    .staff-nav a::after {
        content: "›";
        color: var(--accent-dark);
        font-size: 28px;
        line-height: 1;
        opacity: .75;
    }

    .main-nav a.active,
    .staff-nav a.active {
        color: var(--accent-dark) !important;
    }

    .main-nav .nav-user-name,
    .staff-nav .nav-user-name {
        min-height: auto !important;
        margin-bottom: 12px !important;
        padding-bottom: 14px !important;
        justify-content: flex-start !important;
        color: var(--muted) !important;
        font-size: 16px !important;
        font-weight: 800 !important;
    }

    .main-nav .nav-user-name::after,
    .staff-nav .nav-user-name::after {
        content: none !important;
    }
}

@media (max-width: 420px) {
    .main-nav,
    .staff-nav {
        width: min(82vw, 330px) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .main-nav a,
    .staff-nav a {
        min-height: 52px !important;
        font-size: 20px !important;
    }
}

/* Release 1.0.4.14 — final public animal meet panel */

.curator-public-card,
.animal-share-actions {
    display: none !important;
}

html body .animal-meet-panel.animal-meet-panel-final,
html body .animal-meet-panel-final {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    margin: 28px 0 34px !important;
    padding: clamp(24px, 4vw, 38px) !important;
    border-radius: 30px !important;

    background: var(--text) !important;
    color: #fff !important;
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.16) !important;
}

html body .animal-meet-panel-final .animal-meet-copy {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

html body .animal-meet-panel-final .animal-meet-copy span {
    display: block !important;
    margin: 0 0 12px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

html body .animal-meet-panel-final .animal-meet-copy h2 {
    max-width: 820px !important;
    margin: 0 0 18px !important;
    color: #fff !important;
    font-size: clamp(36px, 5vw, 62px) !important;
    line-height: 1 !important;
    letter-spacing: -0.06em !important;
}

html body .animal-meet-panel-final .animal-meet-copy p {
    max-width: 820px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
}

html body .animal-meet-panel-final .animal-meet-copy .animal-meet-curator {
    margin-top: 16px !important;
    color: rgba(255, 255, 255, 0.94) !important;
    font-weight: 850 !important;
}

html body .animal-meet-panel-final .animal-meet-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    gap: 10px !important;
}

html body .animal-meet-panel-final .animal-meet-actions .button {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

@media (max-width: 640px) {
    html body .animal-meet-panel.animal-meet-panel-final,
    html body .animal-meet-panel-final {
        padding: 22px !important;
        border-radius: 26px !important;
    }

    html body .animal-meet-panel-final .animal-meet-copy h2 {
        max-width: 100% !important;
        font-size: 36px !important;
        line-height: 1.02 !important;
    }

    html body .animal-meet-panel-final .animal-meet-copy p {
        max-width: 100% !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    html body .animal-meet-panel-final .animal-meet-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    html body .animal-meet-panel-final .animal-meet-actions .button {
        width: 100% !important;
        white-space: normal !important;
    }
}

/* Patch 0.9b.5.18 — исправление просмотра фото в карточке животного

Добавить в самый конец /assets/css/style.css.
Важно: этот блок должен быть последним среди правил .site-lightbox / .lightbox-image.
*/

body.lightbox-open {
    overflow: hidden !important;
}

.site-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;

    display: none !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;

    padding: 32px !important;
    box-sizing: border-box !important;

    background: rgba(34, 29, 24, 0.82) !important;
    backdrop-filter: blur(6px) !important;

    overflow: hidden !important;
}

.site-lightbox.open {
    display: flex !important;
}

.site-lightbox .lightbox-image {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;

    display: block !important;

    width: auto !important;
    height: auto !important;
    max-width: min(94vw, 1180px) !important;
    max-height: 82vh !important;
    max-height: 82dvh !important;

    margin: auto !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    border-radius: 24px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35) !important;
    background: transparent !important;
}

.site-lightbox .lightbox-close,
.site-lightbox .lightbox-nav {
    position: fixed !important;
    z-index: 10001 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 58px !important;
    height: 58px !important;

    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: var(--text) !important;

    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 900 !important;

    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22) !important;
    cursor: pointer !important;
}

.site-lightbox .lightbox-close {
    top: 18px !important;
    right: 18px !important;
}

.site-lightbox .lightbox-prev {
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.site-lightbox .lightbox-next {
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.site-lightbox .lightbox-counter {
    position: fixed !important;
    left: 50% !important;
    bottom: 18px !important;
    z-index: 10001 !important;
    transform: translateX(-50%) !important;

    padding: 8px 14px !important;
    border-radius: 999px !important;

    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--text) !important;

    font-size: 14px !important;
    font-weight: 900 !important;
}

@media (max-width: 760px) {
    .site-lightbox {
        padding: 18px !important;
    }

    .site-lightbox .lightbox-image {
        max-width: 94vw !important;
        max-height: 76vh !important;
        max-height: 76dvh !important;
        border-radius: 20px !important;
    }

    .site-lightbox .lightbox-close,
    .site-lightbox .lightbox-nav {
        width: 50px !important;
        height: 50px !important;
        font-size: 30px !important;
    }

    .site-lightbox .lightbox-close {
        top: 12px !important;
        right: 12px !important;
    }

    .site-lightbox .lightbox-prev {
        left: 10px !important;
    }

    .site-lightbox .lightbox-next {
        right: 10px !important;
    }

    .site-lightbox .lightbox-counter {
        bottom: 12px !important;
    }
}

@media (max-width: 420px) {
    .site-lightbox {
        padding: 12px !important;
    }

    .site-lightbox .lightbox-image {
        max-width: 96vw !important;
        max-height: 72vh !important;
        max-height: 72dvh !important;
    }

    .site-lightbox .lightbox-prev {
        left: 8px !important;
    }

    .site-lightbox .lightbox-next {
        right: 8px !important;
    }
}

/* Release 1.0.4.14 — clean home page */

.home-v2-hero {
    padding: 56px 0 38px;
}

.home-v2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
}

.home-v2-copy .eyebrow {
    margin-bottom: 14px;
}

.home-v2-copy h1 {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--text);
    font-size: clamp(64px, 9vw, 124px);
    line-height: 0.88;
    letter-spacing: -0.085em;
}

.home-v2-lead {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.48;
}

.home-v2-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.home-v2-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.home-v2-stats > div {
    min-width: 118px;
    padding: 15px 17px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(70, 47, 28, 0.06);
    text-align: center;
}

.home-v2-stats strong {
    display: block;
    color: var(--text);
    font-size: 34px;
    line-height: 0.95;
    letter-spacing: -0.055em;
    text-align: center;
}

.home-v2-stats span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.home-v2-visual {
    display: block;
    overflow: hidden;
    border-radius: 34px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 28px 70px rgba(70, 47, 28, 0.14);
    color: var(--text);
}

.home-v2-visual-photo {
    aspect-ratio: 4 / 3.35;
    overflow: hidden;
    background: var(--soft);
}

.home-v2-visual-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.home-v2-visual-photo span,
.home-v2-visual-empty {
    display: grid;
    place-items: center;
    min-height: 320px;
    color: var(--muted);
    font-weight: 900;
}

.home-v2-visual-caption {
    padding: 22px 24px 24px;
}

.home-v2-visual-caption .badge,
.home-v2-visual-caption > span:not(.button):not(.home-v2-visual-cta) {
    margin-bottom: 12px;
}

.home-v2-visual-caption strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.home-v2-visual-caption p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.home-v2-visual-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.home-v2-featured {
    padding-top: 28px;
}

.home-v2-section-head {
    max-width: 720px;
    margin-bottom: 24px;
}

.home-v2-section-head h2 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(42px, 5vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.home-v2-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.home-v2-grid {
    margin-top: 0;
}

.home-v2-catalog-link {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.home-v2-volunteer-section {
    padding: 34px 0 68px;
}

.home-v2-volunteer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(26px, 4vw, 40px);
    border-radius: 34px;
    background: var(--text);
    color: #fff;
    box-shadow: 0 26px 66px rgba(70, 47, 28, 0.14);
    overflow: hidden;
}

.home-v2-volunteer-card .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.home-v2-volunteer-card h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(36px, 4.6vw, 62px);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.home-v2-volunteer-card p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
    line-height: 1.55;
}

.home-v2-volunteer-card .button {
    flex: 0 0 auto;
    background: #fff;
    color: var(--text);
}

.home-launch-panel {
    display: none !important;
}

@media (max-width: 980px) {
    .home-v2-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-v2-visual {
        max-width: 620px;
    }

    .home-v2-volunteer-card {
        display: grid;
    }

    .home-v2-volunteer-card .button {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .home-v2-hero {
        padding: 28px 0 24px;
    }

    .home-v2-hero-grid {
        gap: 18px;
    }

    .home-v2-copy .eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
        line-height: 1.25;
    }

    .home-v2-copy h1 {
        max-width: 360px;
        margin-bottom: 14px;
        font-size: clamp(42px, 12vw, 56px);
        line-height: 0.94;
        letter-spacing: -0.072em;
    }

    .home-v2-lead {
        max-width: 440px;
        font-size: 16px;
        line-height: 1.45;
    }

    .home-v2-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        max-width: 440px;
        margin-top: 18px;
    }

    .home-v2-actions .button {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        justify-content: center;
        font-size: 15px;
    }

    .home-v2-actions .button.secondary {
        min-height: 44px;
        background: rgba(255, 255, 255, 0.52);
        border: 1px solid var(--line);
        color: var(--muted);
    }

    .home-v2-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        max-width: 440px;
        margin-top: 16px;
    }

    .home-v2-stats > div {
        min-width: 0;
        padding: 11px 8px;
        border-radius: 18px;
        box-shadow: none;
    }

    .home-v2-stats strong {
        font-size: 25px;
    }

    .home-v2-stats span {
        margin-top: 4px;
        font-size: 9.5px;
        line-height: 1.15;
    }

    .home-v2-visual {
        display: block;
        max-width: 440px;
        border-radius: 26px;
        box-shadow: 0 18px 46px rgba(70, 47, 28, 0.12);
    }

    .home-v2-visual-photo {
        aspect-ratio: 16 / 10;
    }

    .home-v2-visual-caption {
        padding: 18px;
    }

    .home-v2-visual-caption strong {
        margin-bottom: 6px;
        font-size: 30px;
    }

    .home-v2-visual-caption p {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .home-v2-visual-cta {
        width: 100%;
        min-height: 42px;
    }

    .home-v2-featured {
        padding-top: 26px;
    }

    .home-v2-section-head {
        max-width: 440px;
        margin-bottom: 18px;
    }

    .home-v2-section-head .eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .home-v2-section-head h2 {
        max-width: 380px;
        margin-bottom: 10px;
        font-size: clamp(34px, 9.5vw, 42px);
        line-height: 1;
    }

    .home-v2-section-head p {
        max-width: 440px;
        font-size: 16px;
        line-height: 1.45;
    }

    .home-v2-catalog-link {
        margin-top: 18px;
    }

    .home-v2-catalog-link .button {
        width: 100%;
    }

    .home-v2-volunteer-section {
        padding: 26px 0 48px;
    }

    .home-v2-volunteer-card {
        display: grid;
        gap: 16px;
        padding: 22px;
        border-radius: 26px;
    }

    .home-v2-volunteer-card h2 {
        font-size: clamp(30px, 8.2vw, 40px);
        line-height: 1;
        letter-spacing: -0.055em;
    }

    .home-v2-volunteer-card p {
        font-size: 15.5px;
        line-height: 1.45;
    }

    .home-v2-volunteer-card .button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .home-v2-copy h1 {
        font-size: clamp(40px, 11.5vw, 52px);
    }

    .home-v2-stats {
        gap: 7px;
    }

    .home-v2-stats > div {
        padding: 10px 7px;
    }

    .home-v2-stats strong {
        font-size: 24px;
    }

    .home-v2-stats span {
        font-size: 9px;
    }
}

/* Release 1.0.4.14 — animal cards photos 65/35 mobile */

.animal-card .animal-photo {
    height: clamp(320px, 26vw, 390px);
    min-height: 320px;
    aspect-ratio: auto;
    overflow: hidden;
    background: var(--soft);
}

.animal-card .animal-photo > img,
.animal-card .animal-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 50%;
}

@media (max-width: 760px) {
    .home-v2-grid .animal-card,
    .featured-grid.home-v2-grid .animal-card,
    .featured-grid .animal-card,
    .animal-grid .animal-card {
        display: flex;
        flex-direction: column;
        flex: 0 0 84%;
        max-width: 84%;
        height: min(74vh, 680px);
        min-height: 600px;
        overflow: hidden;
    }

    .home-v2-grid .animal-card .animal-photo,
    .featured-grid.home-v2-grid .animal-card .animal-photo,
    .featured-grid .animal-card .animal-photo,
    .animal-grid .animal-card .animal-photo,
    .animal-card .animal-photo {
        flex: 0 0 65%;
        height: 65%;
        min-height: 0;
        aspect-ratio: auto;
        overflow: hidden;
    }

    .home-v2-grid .animal-card .animal-card-body,
    .featured-grid.home-v2-grid .animal-card .animal-card-body,
    .featured-grid .animal-card .animal-card-body,
    .animal-grid .animal-card .animal-card-body,
    .animal-card .animal-card-body {
        flex: 1 1 35%;
        min-height: 0;
        padding: 18px 20px 20px;
        overflow: hidden;
    }

    .home-v2-grid .animal-card .badge,
    .featured-grid .animal-card .badge,
    .animal-grid .animal-card .badge,
    .animal-card .badge {
        margin-bottom: 12px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .home-v2-grid .animal-card h2,
    .featured-grid.home-v2-grid .animal-card h2,
    .featured-grid .animal-card h2,
    .animal-grid .animal-card h2,
    .animal-card h2 {
        margin-bottom: 8px;
        font-size: 32px;
        line-height: 1;
        letter-spacing: -0.055em;
    }

    .home-v2-grid .animal-card .meta,
    .featured-grid .animal-card .meta,
    .animal-grid .animal-card .meta,
    .animal-card .meta {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.35;
    }

    .home-v2-grid .animal-card p,
    .featured-grid .animal-card p,
    .animal-grid .animal-card p,
    .animal-card p {
        font-size: 15px;
        line-height: 1.35;
    }
}

@media (max-width: 420px) {
    .home-v2-grid .animal-card,
    .featured-grid.home-v2-grid .animal-card,
    .featured-grid .animal-card,
    .animal-grid .animal-card {
        flex-basis: 86%;
        max-width: 86%;
        height: min(73vh, 650px);
        min-height: 570px;
    }

    .home-v2-grid .animal-card .animal-card-body,
    .featured-grid.home-v2-grid .animal-card .animal-card-body,
    .featured-grid .animal-card .animal-card-body,
    .animal-grid .animal-card .animal-card-body,
    .animal-card .animal-card-body {
        padding: 16px 18px 18px;
    }

    .home-v2-grid .animal-card h2,
    .featured-grid.home-v2-grid .animal-card h2,
    .featured-grid .animal-card h2,
    .animal-grid .animal-card h2,
    .animal-card h2 {
        font-size: 30px;
    }
}

/* Release 1.0.4.14 — clean footer, fund at bottom */

.site-footer-compact {
    padding: 34px 0 30px;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.34)),
        var(--bg);
}

.footer-compact-inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.35fr);
    grid-template-areas:
        "brand links"
        "fund fund";
    gap: 24px 48px;
    align-items: start;
    text-align: left;
}

.footer-compact-main {
    grid-area: brand;
    max-width: 460px;
    text-align: left;
}

.footer-compact-links {
    grid-area: links;
}

.footer-compact-fund {
    grid-area: fund;
}

.footer-compact-logo {
    justify-content: flex-start;
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 1;
    text-align: left;
}

.footer-compact-main p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.footer-compact-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: end;
    align-content: start;
    gap: 10px 26px;
    padding-top: 4px;
    text-align: left;
}

.footer-compact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--muted);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
}

.footer-compact-links a:hover {
    color: var(--text);
}

.footer-compact-fund {
    width: 100%;
    margin: 4px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(234, 223, 210, 0.84);
    text-align: center;
}

.footer-compact-fund span {
    display: inline-block;
    margin: 0 10px 0 0;
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    vertical-align: baseline;
}

.footer-compact-fund strong {
    display: inline;
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

@media (max-width: 980px) {
    .footer-compact-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "links"
            "fund";
        gap: 18px;
        text-align: center;
    }

    .footer-compact-main {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-compact-logo {
        justify-content: center;
        text-align: center;
    }

    .footer-compact-main p {
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-compact-links {
        grid-template-columns: repeat(4, max-content);
        justify-content: center;
        gap: 10px 20px;
    }
}

@media (max-width: 700px) {
    .site-footer-compact {
        padding: 28px 0 32px;
    }

    .footer-compact-inner {
        gap: 18px;
    }

    .footer-compact-logo {
        margin-bottom: 9px;
        font-size: 26px;
    }

    .footer-compact-main p {
        font-size: 15px;
        line-height: 1.45;
    }

    .footer-compact-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 420px;
        gap: 8px;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        padding-top: 0;
    }

    .footer-compact-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid rgba(234, 223, 210, 0.82);
        background: rgba(255, 255, 255, 0.48);
        font-size: 13.5px;
        line-height: 1.1;
        text-align: center;
        white-space: normal;
    }

    .footer-compact-fund {
        margin-top: 2px;
        padding-top: 16px;
    }

    .footer-compact-fund span {
        display: block;
        margin: 0 0 5px;
        font-size: 10px;
        text-align: center;
    }

    .footer-compact-fund strong {
        display: block;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        font-size: 15.5px;
        line-height: 1.3;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .footer-compact-links {
        max-width: 100%;
        gap: 7px;
    }

    .footer-compact-links a {
        min-height: 36px;
        padding: 8px 9px;
        font-size: 13px;
    }
}
/* Patch 1.0.4.15 — компактнее блок «Помогаете подопечному?»

Добавить в самый конец /assets/css/style.css.
Важно: этот блок должен быть последним среди правил главной страницы.

Проблема:
после ревизии CSS блок для волонтёров остался слишком крупным на телефоне:
заголовок выглядит как большой баннер и растягивается почти на всю ширину.
*/

/* Общий вид блока — чуть спокойнее */
.home-v2-volunteer-card {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.home-v2-volunteer-card > div {
    min-width: 0 !important;
}

.home-v2-volunteer-card h2 {
    max-width: 560px !important;
}

.home-v2-volunteer-card p {
    max-width: 620px !important;
}

/* Телефон */
@media (max-width: 760px) {
    .home-v2-volunteer-card {
        width: 100% !important;
        max-width: 440px !important;
        margin-left: auto !important;
        margin-right: auto !important;

        padding: 24px 22px !important;
        border-radius: 28px !important;

        display: grid !important;
        gap: 18px !important;
    }

    .home-v2-volunteer-card .eyebrow {
        margin-bottom: 10px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        letter-spacing: 0.13em !important;
    }

    .home-v2-volunteer-card h2 {
        max-width: 340px !important;
        margin-bottom: 14px !important;

        font-size: clamp(30px, 8.2vw, 36px) !important;
        line-height: 1.03 !important;
        letter-spacing: -0.055em !important;
    }

    .home-v2-volunteer-card p {
        max-width: 360px !important;

        font-size: 15.5px !important;
        line-height: 1.48 !important;
    }

    .home-v2-volunteer-card .button {
        width: 100% !important;
        min-height: 48px !important;
        margin-top: 2px !important;
        padding: 12px 18px !important;
        font-size: 15px !important;
    }
}

/* Очень узкие экраны */
@media (max-width: 420px) {
    .home-v2-volunteer-card {
        padding: 22px 20px !important;
        border-radius: 26px !important;
    }

    .home-v2-volunteer-card h2 {
        max-width: 310px !important;
        font-size: clamp(29px, 8vw, 34px) !important;
    }

    .home-v2-volunteer-card p {
        max-width: 320px !important;
        font-size: 15px !important;
    }
}
/* Patch 1.0.4.16 — сделать блок «Помогаете подопечному?» уже

Добавить в самый конец /assets/css/style.css.
Важно: этот блок должен быть последним среди правил главной страницы.

Проблема:
тёмный блок стал компактнее по тексту, но сама карточка всё ещё растянута почти на всю ширину телефона.
*/

/* Телефон: тёмный блок как отдельная аккуратная карточка */
@media (max-width: 760px) {
    .home-v2-volunteer-card {
        width: min(100% - 36px, 380px) !important;
        max-width: 380px !important;
        margin-left: auto !important;
        margin-right: auto !important;

        padding: 24px 22px !important;
        border-radius: 28px !important;
    }

    .home-v2-volunteer-card h2 {
        max-width: 310px !important;
        font-size: clamp(29px, 7.8vw, 35px) !important;
        line-height: 1.04 !important;
    }

    .home-v2-volunteer-card p {
        max-width: 320px !important;
        font-size: 15px !important;
        line-height: 1.48 !important;
    }

    .home-v2-volunteer-card .button {
        width: min(100%, 320px) !important;
        max-width: 320px !important;
        justify-self: start !important;
    }
}

/* Очень узкие экраны */
@media (max-width: 420px) {
    .home-v2-volunteer-card {
        width: calc(100% - 40px) !important;
        max-width: 360px !important;
        padding: 22px 20px !important;
        border-radius: 26px !important;
    }

    .home-v2-volunteer-card h2 {
        max-width: 290px !important;
        font-size: clamp(28px, 7.6vw, 33px) !important;
    }

    .home-v2-volunteer-card p {
        max-width: 300px !important;
        font-size: 14.8px !important;
    }

    .home-v2-volunteer-card .button {
        max-width: 300px !important;
    }
}
/* Patch 1.0.4.17 — компактнее кнопки на главной

Добавить в самый конец /assets/css/style.css.
Важно: этот блок должен быть последним среди правил главной страницы.

Проблема:
на мобильной главной кнопки выглядят слишком длинными и растянутыми почти на всю ширину.
*/

/* Общая логика: кнопка не должна быть длиннее смысла */
.home-v2-actions .button,
.home-v2-catalog-link .button,
.home-v2-volunteer-card .button {
    width: fit-content !important;
    max-width: 100% !important;
}

/* Телефон */
@media (max-width: 760px) {
    /* Верхние кнопки главной */
    .home-v2-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .home-v2-actions .button {
        width: auto !important;
        min-width: 220px !important;
        max-width: 100% !important;
        min-height: 46px !important;
        padding: 12px 24px !important;
        justify-content: center !important;
        font-size: 15px !important;
    }

    .home-v2-actions .button.secondary {
        min-width: 240px !important;
    }

    /* Кнопка под лентой карточек */
    .home-v2-catalog-link {
        justify-content: center !important;
    }

    .home-v2-catalog-link .button {
        width: auto !important;
        min-width: 260px !important;
        max-width: 100% !important;
        min-height: 46px !important;
        padding: 12px 26px !important;
        justify-content: center !important;
        font-size: 15px !important;
    }

    /* Кнопка в тёмном блоке */
    .home-v2-volunteer-card .button {
        width: auto !important;
        min-width: 250px !important;
        max-width: 100% !important;
        min-height: 46px !important;
        padding: 12px 24px !important;
        justify-content: center !important;
        justify-self: start !important;
        font-size: 15px !important;
    }
}

/* Очень узкие экраны */
@media (max-width: 420px) {
    .home-v2-actions .button {
        min-width: 210px !important;
    }

    .home-v2-actions .button.secondary {
        min-width: 230px !important;
    }

    .home-v2-catalog-link .button {
        min-width: 245px !important;
    }

    .home-v2-volunteer-card .button {
        min-width: 235px !important;
    }
}
/* Patch 1.0.4.18 — кнопки на главной: одинаковая ширина и центр

Добавить в самый конец /assets/css/style.css.
Важно: этот блок должен быть последним среди правил главной страницы.

Проблема:
после 1.0.4.17 кнопки стали короче, но разной ширины и сместились влево.
Теперь делаем их одинаковыми, компактными и по центру.
*/

@media (max-width: 760px) {
    /* Верхние кнопки главной */
    .home-v2-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .home-v2-actions .button,
    .home-v2-actions .button.secondary {
        width: min(100%, 320px) !important;
        min-width: 0 !important;
        max-width: 320px !important;
        min-height: 48px !important;
        padding: 12px 22px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 15px !important;
    }

    /* Кнопка под лентой карточек */
    .home-v2-catalog-link {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .home-v2-catalog-link .button {
        width: min(100%, 330px) !important;
        min-width: 0 !important;
        max-width: 330px !important;
        min-height: 48px !important;
        padding: 12px 22px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 15px !important;
    }

    /* Кнопка в тёмном блоке */
    .home-v2-volunteer-card .button {
        width: min(100%, 300px) !important;
        min-width: 0 !important;
        max-width: 300px !important;
        min-height: 48px !important;
        padding: 12px 20px !important;
        justify-content: center !important;
        justify-self: center !important;
        text-align: center !important;
        font-size: 15px !important;
    }
}

@media (max-width: 420px) {
    .home-v2-actions .button,
    .home-v2-actions .button.secondary {
        width: min(100%, 300px) !important;
        max-width: 300px !important;
    }

    .home-v2-catalog-link .button {
        width: min(100%, 310px) !important;
        max-width: 310px !important;
    }

    .home-v2-volunteer-card .button {
        width: min(100%, 285px) !important;
        max-width: 285px !important;
    }
}
/* Patch 1.0.4.19 — вернуть оранжевую и белые кнопки в блоке знакомства

Добавить в самый конец /assets/css/style.css.
Важно: этот блок должен быть последним среди правил карточки животного.

Проблема:
после ревизии CSS основная кнопка в блоке знакомства унаследовала общий стиль .button.primary,
где primary — тёмная кнопка. На тёмном блоке «Написать VK» почти потерялась.

Возвращаем прежнюю логику:
- primary в блоке знакомства — оранжевая кнопка;
- secondary — белые кнопки.
*/

html body .animal-meet-panel-final .animal-meet-actions .button,
html body .animal-meet-panel .animal-meet-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 46px !important;
    padding: 12px 20px !important;
    border-radius: 999px !important;
    border: 0 !important;

    background: #fff !important;
    color: var(--text) !important;

    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

html body .animal-meet-panel-final .animal-meet-actions .button.primary,
html body .animal-meet-panel .animal-meet-actions .button.primary {
    background: var(--accent) !important;
    color: #fff !important;
}

html body .animal-meet-panel-final .animal-meet-actions .button.secondary,
html body .animal-meet-panel .animal-meet-actions .button.secondary {
    background: #fff !important;
    color: var(--text) !important;
}

/* Небольшое наведение для компьютера */
html body .animal-meet-panel-final .animal-meet-actions .button:hover,
html body .animal-meet-panel .animal-meet-actions .button:hover {
    transform: translateY(-1px);
}

html body .animal-meet-panel-final .animal-meet-actions .button.primary:hover,
html body .animal-meet-panel .animal-meet-actions .button.primary:hover {
    background: #e08a45 !important;
}

/* Телефон */
@media (max-width: 640px) {
    html body .animal-meet-panel-final .animal-meet-actions,
    html body .animal-meet-panel .animal-meet-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body .animal-meet-panel-final .animal-meet-actions .button,
    html body .animal-meet-panel .animal-meet-actions .button {
        width: 100% !important;
        min-height: 48px !important;
        padding: 13px 18px !important;
        white-space: normal !important;
    }
}
/* Small logo in header */

.logo.logo-image {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--text) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.logo.logo-image::before {
    content: none !important;
}

.logo.logo-image img {
    display: block !important;
    width: auto !important;
    height: 46px !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}

.logo.logo-image strong {
    display: block !important;
    color: var(--text) !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
}

@media (max-width: 760px) {
    .logo.logo-image {
        gap: 9px !important;
    }

    .logo.logo-image img {
        height: 42px !important;
    }

    .logo.logo-image strong {
        font-size: 28px !important;
    }
}

@media (max-width: 420px) {
    .logo.logo-image img {
        height: 38px !important;
    }

    .logo.logo-image strong {
        font-size: 26px !important;
    }
}
/* Patch 1.0.4.22 — фотоблок карточки не должен раздвигать страницу

Добавить в самый конец /assets/css/style.css.
Важно: этот блок должен быть последним среди правил карточки животного и галереи.

Проблема:
на некоторых карточках животного галерея с фото раздвигает страницу по ширине.
Особенно это видно, когда миниатюр много: ряд миниатюр уходит вправо, а ниже блоки
визуально начинают "ехать".

Решение:
- фотоблок не может быть шире родителя;
- главное фото всегда внутри карточки;
- миниатюры прокручиваются внутри своего ряда;
- ряд миниатюр не раздвигает всю страницу;
- блок знакомства снова получает стабильную ширину.
*/

/* Общая защита страницы карточки */
.animal-page,
.animal-detail,
.animal-profile,
.animal-detail-grid,
.animal-page-grid,
.animal-card-page,
.animal-public-page {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Все внутренние колонки карточки не должны раздвигать layout */
.animal-page *,
.animal-detail *,
.animal-profile *,
.animal-detail-grid *,
.animal-page-grid *,
.animal-card-page *,
.animal-public-page * {
    box-sizing: border-box !important;
}

/* Фотокарточка / галерея */
.animal-gallery,
.animal-photos,
.animal-photo-gallery,
.animal-media,
.animal-photo-card,
.animal-public-photos,
.animal-detail-photos,
.animal-images,
.gallery-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Главное фото */
.animal-main-photo,
.animal-photo-main,
.gallery-main,
.main-photo,
.animal-gallery-main,
.animal-photos-main,
.animal-public-main-photo {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.animal-main-photo img,
.animal-photo-main img,
.gallery-main img,
.main-photo img,
.animal-gallery-main img,
.animal-photos-main img,
.animal-public-main-photo img,
.animal-gallery > img,
.animal-photos > img,
.animal-photo-card > img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Миниатюры: прокрутка внутри, а не расширение страницы */
.animal-thumbs,
.photo-thumbs,
.gallery-thumbs,
.animal-gallery-thumbs,
.animal-photo-thumbs,
.animal-photos-thumbs,
.thumbs-row,
.photo-preview-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding-bottom: 4px !important;
    box-sizing: border-box !important;

    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

.animal-thumbs::-webkit-scrollbar,
.photo-thumbs::-webkit-scrollbar,
.gallery-thumbs::-webkit-scrollbar,
.animal-gallery-thumbs::-webkit-scrollbar,
.animal-photo-thumbs::-webkit-scrollbar,
.animal-photos-thumbs::-webkit-scrollbar,
.thumbs-row::-webkit-scrollbar,
.photo-preview-row::-webkit-scrollbar {
    display: none !important;
}

/* Сами миниатюры не должны сжиматься и ломать ряд */
.animal-thumbs img,
.photo-thumbs img,
.gallery-thumbs img,
.animal-gallery-thumbs img,
.animal-photo-thumbs img,
.animal-photos-thumbs img,
.thumbs-row img,
.photo-preview-row img,
.animal-thumbs a,
.photo-thumbs a,
.gallery-thumbs a,
.animal-gallery-thumbs a,
.animal-photo-thumbs a,
.animal-photos-thumbs a,
.thumbs-row a,
.photo-preview-row a,
.animal-thumb,
.photo-thumb,
.gallery-thumb {
    flex: 0 0 auto !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Телефон */
@media (max-width: 760px) {
    .animal-page,
    .animal-detail,
    .animal-profile,
    .animal-detail-grid,
    .animal-page-grid,
    .animal-card-page,
    .animal-public-page {
        width: calc(100% - 24px) !important;
        max-width: 520px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible !important;
    }

    .animal-gallery,
    .animal-photos,
    .animal-photo-gallery,
    .animal-media,
    .animal-photo-card,
    .animal-public-photos,
    .animal-detail-photos,
    .animal-images,
    .gallery-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .animal-main-photo,
    .animal-photo-main,
    .gallery-main,
    .main-photo,
    .animal-gallery-main,
    .animal-photos-main,
    .animal-public-main-photo {
        border-radius: 24px !important;
        overflow: hidden !important;
    }

    .animal-main-photo img,
    .animal-photo-main img,
    .gallery-main img,
    .main-photo img,
    .animal-gallery-main img,
    .animal-photos-main img,
    .animal-public-main-photo img,
    .animal-gallery > img,
    .animal-photos > img,
    .animal-photo-card > img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .animal-thumbs,
    .photo-thumbs,
    .gallery-thumbs,
    .animal-gallery-thumbs,
    .animal-photo-thumbs,
    .animal-photos-thumbs,
    .thumbs-row,
    .photo-preview-row {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: auto !important;
    }

    .animal-thumbs img,
    .photo-thumbs img,
    .gallery-thumbs img,
    .animal-gallery-thumbs img,
    .animal-photo-thumbs img,
    .animal-photos-thumbs img,
    .thumbs-row img,
    .photo-preview-row img {
        width: 86px !important;
        height: 86px !important;
        min-width: 86px !important;
        object-fit: cover !important;
        border-radius: 14px !important;
    }

    /* После фотоблока тёмная карточка знакомства снова строго внутри родителя */
    html body .animal-meet-panel-final,
    html body .animal-meet-panel.animal-meet-panel-final {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 420px) {
    .animal-page,
    .animal-detail,
    .animal-profile,
    .animal-detail-grid,
    .animal-page-grid,
    .animal-card-page,
    .animal-public-page {
        width: calc(100% - 24px) !important;
    }

    .animal-thumbs img,
    .photo-thumbs img,
    .gallery-thumbs img,
    .animal-gallery-thumbs img,
    .animal-photo-thumbs img,
    .animal-photos-thumbs img,
    .thumbs-row img,
    .photo-preview-row img {
        width: 78px !important;
        height: 78px !important;
        min-width: 78px !important;
    }
}
/* Patch 1.0.4.23 — стабильная карточка животного через отдельные классы

Добавить в самый конец /assets/css/style.css.
Важно: вместе с этим патчем нужно заменить animal.php из архива.

Почему предыдущая правка не помогла:
старые общие селекторы .animal-page / .animal-page-photo / .animal-gallery слишком много раз
переопределялись в CSS. Поэтому добавлены отдельные классы только для публичной карточки:
.animal-public-detail, .animal-public-media, .animal-public-gallery, .animal-public-info, .animal-public-meet.
*/

/* Общая защита именно публичной карточки */
.animal-public-detail,
.animal-public-detail *,
.animal-public-detail *::before,
.animal-public-detail *::after {
    box-sizing: border-box !important;
}

.animal-public-detail {
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
}

.animal-public-media,
.animal-public-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Фото */
.animal-public-media {
    overflow: hidden !important;
}

.animal-public-media .photo-open-button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.animal-public-media .photo-open-button img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
}

/* Миниатюры — прокручиваются внутри фотоблока, не раздвигают страницу */
.animal-public-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    padding: 0 0 4px !important;
    margin: 14px 0 0 !important;

    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.animal-public-gallery::-webkit-scrollbar {
    display: none !important;
}

.animal-public-gallery .gallery-item {
    flex: 0 0 86px !important;
    width: 86px !important;
    height: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;

    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #efe3d4 !important;
}

.animal-public-gallery .gallery-item img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

/* Блок знакомства — больше не зависит от фотогалереи и старых правил */
html body .animal-public-meet.animal-meet-panel-final,
html body .animal-public-meet {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 28px 0 34px !important;
    padding: clamp(24px, 4vw, 38px) !important;
    border-radius: 30px !important;

    background: var(--text) !important;
    color: #fff !important;
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.16) !important;

    overflow: hidden !important;
}

html body .animal-public-meet .animal-meet-copy,
html body .animal-public-meet .animal-meet-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

html body .animal-public-meet .animal-meet-copy span {
    display: block !important;
    margin: 0 0 12px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

html body .animal-public-meet .animal-meet-copy h2 {
    width: 100% !important;
    max-width: 820px !important;
    margin: 0 0 18px !important;

    color: #fff !important;
    font-size: clamp(36px, 5vw, 62px) !important;
    line-height: 1 !important;
    letter-spacing: -0.06em !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
}

html body .animal-public-meet .animal-meet-copy p {
    width: 100% !important;
    max-width: 820px !important;
    margin: 0 !important;

    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 18px !important;
    line-height: 1.55 !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
}

html body .animal-public-meet .animal-meet-curator {
    margin-top: 16px !important;
    color: rgba(255, 255, 255, 0.94) !important;
    font-weight: 850 !important;
}

html body .animal-public-meet .animal-meet-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
}

html body .animal-public-meet .animal-meet-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    min-height: 46px !important;

    padding: 12px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;

    background: #fff !important;
    color: var(--text) !important;

    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

html body .animal-public-meet .animal-meet-actions .button.primary {
    background: var(--accent) !important;
    color: #fff !important;
}

/* Компьютер */
@media (min-width: 980px) {
    .animal-public-detail {
        display: grid !important;
        grid-template-columns: minmax(380px, 500px) minmax(0, 1fr) !important;
        gap: 38px !important;
        align-items: start !important;
    }

    .animal-public-media {
        position: sticky !important;
        top: 92px !important;
    }

    .animal-public-media .photo-open-button {
        height: min(62vh, 620px) !important;
        min-height: 480px !important;
    }
}

/* Планшет и телефон */
@media (max-width: 979px) {
    .animal-public-detail {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .animal-public-media {
        position: static !important;
    }
}

/* Телефон */
@media (max-width: 680px) {
    html,
    body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .animal-public-detail {
        width: calc(100% - 24px) !important;
        max-width: 520px !important;
        min-width: 0 !important;
        gap: 18px !important;
        padding-top: 18px !important;
        padding-bottom: 44px !important;
    }

    .animal-public-media {
        order: 1 !important;
        padding: 10px !important;
        border-radius: 26px !important;
        overflow: hidden !important;
    }

    .animal-public-info {
        order: 2 !important;
        padding: 22px !important;
        border-radius: 26px !important;
        overflow: hidden !important;
    }

    .animal-public-media .photo-open-button {
        height: min(68vh, 430px) !important;
        min-height: 300px !important;
        border-radius: 20px !important;
    }

    .animal-public-gallery {
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .animal-public-gallery .gallery-item {
        flex-basis: 76px !important;
        width: 76px !important;
        height: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        border-radius: 14px !important;
    }

    html body .animal-public-meet.animal-meet-panel-final,
    html body .animal-public-meet {
        width: 100% !important;
        max-width: 100% !important;
        margin: 24px 0 30px !important;
        padding: 22px !important;
        border-radius: 26px !important;
    }

    html body .animal-public-meet .animal-meet-copy h2 {
        max-width: 100% !important;
        font-size: clamp(30px, 8.2vw, 36px) !important;
        line-height: 1.04 !important;
        letter-spacing: -0.055em !important;
    }

    html body .animal-public-meet .animal-meet-copy p {
        max-width: 100% !important;
        font-size: 15.5px !important;
        line-height: 1.5 !important;
    }

    html body .animal-public-meet .animal-meet-curator {
        font-size: 15.5px !important;
        line-height: 1.35 !important;
    }

    html body .animal-public-meet .animal-meet-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    html body .animal-public-meet .animal-meet-actions .button {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        padding: 13px 18px !important;
        white-space: normal !important;
    }
}

@media (max-width: 380px) {
    .animal-public-detail {
        width: calc(100% - 20px) !important;
    }

    .animal-public-info {
        padding: 20px !important;
    }

    html body .animal-public-meet {
        padding: 20px !important;
    }

    .animal-public-gallery .gallery-item {
        flex-basis: 72px !important;
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
    }
}
/* Release 1.0.5 — версия сайта в подвале */

.footer-compact-logo.logo-image {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.footer-compact-logo.logo-image::before {
    content: none;
}

.footer-compact-logo.logo-image img {
    display: block;
    width: auto;
    height: 38px;
    max-width: none;
    flex: 0 0 auto;
}

.footer-compact-logo.logo-image strong {
    display: block;
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.footer-version {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    opacity: 0.72;
}

.footer-version span {
    display: inline;
    margin-left: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 700px) {
    .footer-compact-logo.logo-image {
        justify-content: center;
    }

    .footer-compact-logo.logo-image img {
        height: 34px;
    }

    .footer-compact-logo.logo-image strong {
        font-size: 24px;
    }

    .footer-version {
        margin-top: 9px;
        font-size: 11.5px;
    }

    .footer-version span {
        display: block;
        margin: 3px 0 0;
        font-size: 11.5px;
    }
}
/* Release 1.0.6 — удобное подключение VK-уведомлений после входа */

.vk-connect-page {
    padding-top: 44px;
}

.vk-connect-card {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(26px, 5vw, 46px);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.08);
}

.vk-connect-card h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.vk-connect-card p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.vk-connect-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--soft);
    color: var(--accent-dark) !important;
    font-weight: 850;
}

.vk-connect-widget {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin: 22px 0 18px;
}

.vk-connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.vk-pending-state .button {
    margin: 6px 5px;
}

.vk-notify-inline-card .button.primary {
    color: #fff;
    background: var(--text);
}

@media (max-width: 640px) {
    .vk-connect-page {
        padding-top: 26px;
    }

    .vk-connect-card {
        padding: 24px;
        border-radius: 28px;
    }

    .vk-connect-card h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .vk-connect-card p {
        font-size: 16px;
        line-height: 1.5;
    }

    .vk-connect-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .vk-connect-actions .button,
    .vk-pending-state .button {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
/* Patch 1.0.6.4 — куратор должен помещаться в мобильной карточке каталога

Добавить в самый конец /assets/css/style.css.
Важно: этот блок должен быть последним среди правил карточек каталога.

Проблема:
если у подопечного длинное короткое описание, в мобильной карточке каталога оно занимает
всё место в текстовой части, и строка "Куратор: ..." уходит вниз/обрезается.

Решение:
- пропорцию мобильной карточки 65% фото / 35% текст не ломаем;
- текстовую часть делаем flex-колонкой;
- описание ограничиваем двумя строками;
- строку куратора прижимаем вниз и всегда оставляем видимой.
*/

@media (max-width: 760px) {
    .home-v2-grid .animal-card .animal-card-body,
    .featured-grid.home-v2-grid .animal-card .animal-card-body,
    .featured-grid .animal-card .animal-card-body,
    .animal-grid .animal-card .animal-card-body,
    .animal-card .animal-card-body {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .home-v2-grid .animal-card .badge,
    .featured-grid.home-v2-grid .animal-card .badge,
    .featured-grid .animal-card .badge,
    .animal-grid .animal-card .badge,
    .animal-card .badge,
    .home-v2-grid .animal-card h2,
    .featured-grid.home-v2-grid .animal-card h2,
    .featured-grid .animal-card h2,
    .animal-grid .animal-card h2,
    .animal-card h2,
    .home-v2-grid .animal-card .meta,
    .featured-grid.home-v2-grid .animal-card .meta,
    .featured-grid .animal-card .meta,
    .animal-grid .animal-card .meta,
    .animal-card .meta {
        flex: 0 0 auto !important;
    }

    /* Метаданные не должны съедать половину карточки */
    .home-v2-grid .animal-card .meta,
    .featured-grid.home-v2-grid .animal-card .meta,
    .featured-grid .animal-card .meta,
    .animal-grid .animal-card .meta,
    .animal-card .meta {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 8px !important;
    }

    /* Короткое описание ограничиваем, чтобы осталось место под куратора */
    .home-v2-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
    .featured-grid.home-v2-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
    .featured-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
    .animal-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
    .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note) {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;

        flex: 0 1 auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;

        font-size: 15px !important;
        line-height: 1.34 !important;
    }

    /* Куратор всегда видим внизу текстовой части */
    .home-v2-grid .animal-card .card-curator-note,
    .featured-grid.home-v2-grid .animal-card .card-curator-note,
    .featured-grid .animal-card .card-curator-note,
    .animal-grid .animal-card .card-curator-note,
    .animal-card .card-curator-note {
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;

        flex: 0 0 auto !important;
        margin-top: auto !important;
        padding-top: 8px !important;

        color: var(--accent-dark) !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        font-weight: 900 !important;
    }
}

@media (max-width: 420px) {
    .home-v2-grid .animal-card .animal-card-body,
    .featured-grid.home-v2-grid .animal-card .animal-card-body,
    .featured-grid .animal-card .animal-card-body,
    .animal-grid .animal-card .animal-card-body,
    .animal-card .animal-card-body {
        padding: 15px 17px 17px !important;
    }

    .home-v2-grid .animal-card .badge,
    .featured-grid.home-v2-grid .animal-card .badge,
    .featured-grid .animal-card .badge,
    .animal-grid .animal-card .badge,
    .animal-card .badge {
        margin-bottom: 9px !important;
        padding: 6px 11px !important;
        font-size: 11.5px !important;
    }

    .home-v2-grid .animal-card h2,
    .featured-grid.home-v2-grid .animal-card h2,
    .featured-grid .animal-card h2,
    .animal-grid .animal-card h2,
    .animal-card h2 {
        margin-bottom: 7px !important;
        font-size: 28px !important;
    }

    .home-v2-grid .animal-card .meta,
    .featured-grid.home-v2-grid .animal-card .meta,
    .featured-grid .animal-card .meta,
    .animal-grid .animal-card .meta,
    .animal-card .meta {
        margin-bottom: 7px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .home-v2-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
    .featured-grid.home-v2-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
    .featured-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
    .animal-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
    .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note) {
        font-size: 14.5px !important;
        line-height: 1.3 !important;
    }

    .home-v2-grid .animal-card .card-curator-note,
    .featured-grid.home-v2-grid .animal-card .card-curator-note,
    .featured-grid .animal-card .card-curator-note,
    .animal-grid .animal-card .card-curator-note,
    .animal-card .card-curator-note {
        padding-top: 7px !important;
        font-size: 12.5px !important;
    }
}
/* Patch 1.0.6.5 — публичный блок «Условия пристройства» */

.animal-public-terms {
    margin: 24px 0 28px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(248, 236, 222, 0.62);
    box-shadow: 0 14px 34px rgba(70, 47, 28, 0.06);
}

.animal-public-terms span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.animal-public-terms p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .animal-public-terms {
        margin: 20px 0 24px;
        padding: 16px 18px;
        border-radius: 22px;
    }

    .animal-public-terms p {
        font-size: 16px;
        line-height: 1.5;
    }
}
/* Patch 1.0.7 — аккуратный блок «Поделиться VK» в карточке животного */

.animal-public-share-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin: 22px 0 32px;
    padding: 20px 22px;

    border-radius: 26px;
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 34px rgba(70, 47, 28, 0.06);
}

.animal-share-help-copy {
    min-width: 0;
}

.animal-share-help-copy span {
    display: block;
    margin-bottom: 7px;

    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.animal-share-help-copy p {
    max-width: 560px;
    margin: 0;

    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.animal-public-share-help .button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 20px;

    background: var(--accent);
    color: #fff;
}

.animal-public-share-help .button:hover {
    background: #e08a45;
}

@media (max-width: 760px) {
    .animal-public-share-help {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;

        margin: 20px 0 28px;
        padding: 18px;
        border-radius: 24px;
    }

    .animal-share-help-copy p {
        max-width: 100%;
        font-size: 15.5px;
        line-height: 1.45;
    }

    .animal-public-share-help .button {
        width: min(100%, 280px);
        justify-self: start;
        min-height: 46px;
    }
}

@media (max-width: 420px) {
    .animal-public-share-help {
        padding: 17px;
        border-radius: 22px;
    }

    .animal-public-share-help .button {
        width: 100%;
        justify-self: stretch;
    }
}
/* Patch 1.0.8 — публичная страница куратора */

.curator-page {
    padding: 54px 0 76px;
}

.curator-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 42px;
}

.curator-hero-copy,
.curator-hero-card {
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.07);
}

.curator-hero-copy {
    padding: clamp(26px, 4vw, 44px);
    border-radius: 34px;
}

.curator-hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.curator-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.58;
}

.curator-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.curator-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border-radius: 34px;
}

.curator-hero-card > span {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.curator-hero-card > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 68px;
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.curator-hero-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 750;
}

.curator-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.curator-mini-stats div {
    padding: 14px;
    border-radius: 20px;
    background: var(--soft);
}

.curator-mini-stats strong {
    display: block;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.curator-mini-stats span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.curator-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.curator-section-head h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

@media (max-width: 900px) {
    .curator-hero {
        grid-template-columns: 1fr;
    }

    .curator-hero-card {
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .curator-page {
        padding: 34px 0 56px;
    }

    .curator-hero {
        gap: 18px;
        margin-bottom: 34px;
    }

    .curator-hero-copy,
    .curator-hero-card {
        border-radius: 26px;
        padding: 22px;
    }

    .curator-hero-copy h1 {
        font-size: clamp(38px, 12vw, 56px);
    }

    .curator-hero-copy p {
        font-size: 16px;
        line-height: 1.5;
    }

    .curator-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .curator-hero-actions .button {
        width: 100%;
    }

    .curator-hero-card > strong {
        font-size: 54px;
    }

    .curator-section-head {
        display: grid;
        align-items: start;
    }

    .curator-section-head .button {
        width: 100%;
    }
}
/* Patch 1.0.10 — публичная страница приюта */

.shelter-public-page {
    padding: 54px 0 76px;
}

.shelter-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 42px;
}

.shelter-public-copy,
.shelter-public-card {
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.07);
}

.shelter-public-copy {
    padding: clamp(26px, 4vw, 44px);
    border-radius: 34px;
}

.shelter-public-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.shelter-public-copy p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.58;
}

.shelter-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.shelter-public-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border-radius: 34px;
}

.shelter-public-card > span {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.shelter-public-card > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 68px;
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.shelter-public-card > p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 750;
}

.shelter-public-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.shelter-public-stats div {
    padding: 14px 12px;
    border-radius: 20px;
    background: var(--soft);
}

.shelter-public-stats strong {
    display: block;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.shelter-public-stats span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.shelter-public-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.shelter-public-section-head h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

@media (max-width: 900px) {
    .shelter-public-hero {
        grid-template-columns: 1fr;
    }

    .shelter-public-card {
        max-width: 560px;
    }
}

@media (max-width: 760px) {
    .shelter-public-page {
        padding: 34px 0 56px;
    }

    .shelter-public-hero {
        gap: 18px;
        margin-bottom: 34px;
    }

    .shelter-public-copy,
    .shelter-public-card {
        border-radius: 26px;
        padding: 22px;
    }

    .shelter-public-copy h1 {
        font-size: clamp(38px, 12vw, 56px);
    }

    .shelter-public-copy p {
        font-size: 16px;
        line-height: 1.5;
    }

    .shelter-public-actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .shelter-public-actions .button {
        width: 100%;
    }

    .shelter-public-card > strong {
        font-size: 54px;
    }

    .shelter-public-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shelter-public-section-head {
        display: grid;
        align-items: start;
    }

    .shelter-public-section-head .button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .shelter-public-stats {
        gap: 8px;
    }

    .shelter-public-stats div {
        padding: 12px 8px;
    }

    .shelter-public-stats strong {
        font-size: 24px;
    }

    .shelter-public-stats span {
        font-size: 11px;
    }
}
/* Patch 1.0.11 — заявка на добавление приюта */

.shelter-request-section {
    padding-top: 8px;
}

.shelter-request-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: start;

    padding: clamp(24px, 4vw, 38px);
    border-radius: 34px;
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.07);
}

.shelter-request-copy h2 {
    max-width: 540px;
    margin: 0 0 16px;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.shelter-request-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.shelter-request-form {
    display: grid;
    gap: 14px;
}

.shelter-request-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.shelter-request-form input,
.shelter-request-form textarea,
.shelter-request-review-form select,
.shelter-request-review-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px 15px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 650;
}

.shelter-request-form textarea,
.shelter-request-review-form textarea {
    resize: vertical;
}

.shelter-request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.request-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.request-filter-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.request-filter-tabs a.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.shelter-request-list {
    display: grid;
    gap: 16px;
}

.shelter-request-item {
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(70, 47, 28, 0.06);
}

.shelter-request-item-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.shelter-request-item-head h2 {
    margin: 10px 0 4px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.shelter-request-item-head p,
.shelter-request-item-head small,
.shelter-request-details p {
    color: var(--muted);
}

.shelter-request-details {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.shelter-request-details p {
    margin: 0;
    line-height: 1.45;
}

.shelter-request-review-form {
    display: grid;
    gap: 12px;
}

.shelter-request-review-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 860px) {
    .shelter-request-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shelter-request-panel {
        padding: 22px;
        border-radius: 26px;
    }

    .shelter-request-copy h2 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .shelter-request-grid {
        grid-template-columns: 1fr;
    }

    .shelter-request-item {
        padding: 18px;
        border-radius: 24px;
    }

    .shelter-request-item-head {
        display: grid;
    }
}
/* Patch 1.0.11 — заявка на добавление приюта */

.shelter-request-section {
    padding-top: 8px;
}

.shelter-request-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: start;

    padding: clamp(24px, 4vw, 38px);
    border-radius: 34px;
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 52px rgba(70, 47, 28, 0.07);
}

.shelter-request-copy h2 {
    max-width: 540px;
    margin: 0 0 16px;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.shelter-request-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.shelter-request-form {
    display: grid;
    gap: 14px;
}

.shelter-request-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.shelter-request-form input,
.shelter-request-form textarea,
.shelter-request-review-form select,
.shelter-request-review-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 13px 15px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 650;
}

.shelter-request-form textarea,
.shelter-request-review-form textarea {
    resize: vertical;
}

.shelter-request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.request-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.request-filter-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.request-filter-tabs a.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.shelter-request-list {
    display: grid;
    gap: 16px;
}

.shelter-request-item {
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(70, 47, 28, 0.06);
}

.shelter-request-item-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.shelter-request-item-head h2 {
    margin: 10px 0 4px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.shelter-request-item-head p,
.shelter-request-item-head small,
.shelter-request-details p {
    color: var(--muted);
}

.shelter-request-details {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.shelter-request-details p {
    margin: 0;
    line-height: 1.45;
}

.shelter-request-review-form {
    display: grid;
    gap: 12px;
}

.shelter-request-review-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 860px) {
    .shelter-request-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .shelter-request-panel {
        padding: 22px;
        border-radius: 26px;
    }

    .shelter-request-copy h2 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .shelter-request-grid {
        grid-template-columns: 1fr;
    }

    .shelter-request-item {
        padding: 18px;
        border-radius: 24px;
    }

    .shelter-request-item-head {
        display: grid;
    }
}


/* Patch 1.0.11.1 — маленький блок заявки на странице приютов */

.shelter-add-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-top: 28px;
    padding: 18px 20px;

    border-radius: 26px;
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 34px rgba(70, 47, 28, 0.05);
}

.shelter-add-small span {
    display: block;
    margin-bottom: 5px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.shelter-add-small p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.45;
}

.shelter-request-panel-single {
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
}

@media (max-width: 700px) {
    .shelter-add-small {
        display: grid;
        gap: 14px;
        padding: 17px;
        border-radius: 24px;
    }

    .shelter-add-small .button {
        width: 100%;
    }
}
/* Patch 1.0.12 — регион в шапке и поля местонахождения */

.logo-region-brand {
    gap: 10px;
}

.logo-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-copy strong {
    line-height: 0.98;
}

.logo-region {
    display: block;
    margin-top: 4px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.shelter-public-location {
    margin: -8px 0 18px !important;
    color: var(--accent-dark) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-grid-full .form-note {
    display: block;
    margin-top: 6px;
}

@media (max-width: 760px) {
    .logo-region {
        margin-top: 3px;
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .logo-region-brand {
        gap: 8px;
    }
}
/* Patch 1.0.12.5 — ровная статистика на главной после удаления волонтёров */

.home-v2-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 520px;
    gap: 14px;
}

.home-v2-stats div {
    min-width: 0;
    text-align: center;
}

@media (max-width: 760px) {
    .home-v2-stats {
        max-width: none;
        gap: 12px;
    }

    .home-v2-stats div {
        padding: 16px 14px;
    }
}

@media (max-width: 380px) {
    .home-v2-stats {
        gap: 10px;
    }

    .home-v2-stats strong {
        font-size: 34px;
    }

    .home-v2-stats span {
        font-size: 13px;
    }
}
/* Patch 1.0.13.4 — настоящий процент загрузки фото в форме карточки */

.upload-files-hint {
    margin-top: -2px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(216, 132, 69, 0.28);
    background: rgba(248, 236, 222, 0.72);
    color: var(--accent-dark);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 850;
}

.upload-progress-open {
    overflow: hidden !important;
}

.upload-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 22px;
    background: rgba(34, 29, 24, 0.46);
    backdrop-filter: blur(8px);
}

.upload-progress-overlay.is-visible {
    display: flex;
}

.upload-progress-card {
    width: min(520px, 100%);
    padding: clamp(24px, 5vw, 36px);
    border-radius: 32px;
    border: 1px solid rgba(234, 223, 210, 0.92);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 90px rgba(34, 29, 24, 0.28);
    text-align: center;
}

.upload-progress-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    margin-bottom: 18px;

    border-radius: 999px;
    background: var(--text);
    color: #fff;

    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.upload-progress-overlay.has-error .upload-progress-icon {
    background: #8c2020;
}

.upload-progress-copy h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.upload-progress-copy p {
    max-width: 420px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 750;
}

.upload-progress-percent {
    margin-top: 20px;
    color: var(--text);
    font-size: clamp(34px, 7vw, 54px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.upload-progress-bar {
    position: relative;
    overflow: hidden;

    height: 16px;
    margin: 14px 0 14px;

    border-radius: 999px;
    background: var(--soft);
    border: 1px solid rgba(234, 223, 210, 0.92);
}

.upload-progress-bar span {
    position: absolute;
    inset: 0 auto 0 0;

    width: 0;
    min-width: 0;
    border-radius: inherit;
    background:
        linear-gradient(90deg, var(--accent), #e8a76e),
        var(--accent);

    transition: width 0.18s linear;
}

.upload-progress-note {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
    font-weight: 750;
}

@media (max-width: 520px) {
    .upload-progress-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    .upload-progress-card {
        border-radius: 28px;
        padding: 24px 20px;
    }

    .upload-progress-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
        font-size: 27px;
    }

    .upload-progress-copy p {
        font-size: 15px;
    }

    .upload-progress-percent {
        margin-top: 18px;
        font-size: 44px;
    }

    .upload-progress-bar {
        height: 14px;
        margin: 12px 0;
    }
}

/* Patch 1.0.13.5 — каталог: куратор прижат к низу карточки

Что исправляет:
- на больших экранах строка "Куратор: ..." больше не висит сразу после короткого описания;
- карточка остаётся цельной flex-колонкой, а куратор аккуратно уходит в нижнюю часть белого блока;
- мобильную пропорцию карточек 65/35 не трогаем.
*/

.animal-grid .animal-card,
.featured-grid .animal-card,
.home-v2-grid .animal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.animal-grid .animal-card .animal-photo,
.featured-grid .animal-card .animal-photo,
.home-v2-grid .animal-card .animal-photo {
    flex: 0 0 auto;
}

.animal-grid .animal-card .animal-card-body,
.featured-grid .animal-card .animal-card-body,
.home-v2-grid .animal-card .animal-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.animal-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
.featured-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note),
.home-v2-grid .animal-card .animal-card-body > p:not(.meta):not(.card-curator-note) {
    flex: 0 0 auto;
}

.animal-grid .animal-card .card-curator-note,
.featured-grid .animal-card .card-curator-note,
.home-v2-grid .animal-card .card-curator-note {
    margin-top: auto;
    padding-top: 14px;
}
