/* === Герой каталога === */
.catalog-hero {
    background: linear-gradient(180deg, var(--surface-2) 0%, transparent 100%);
    padding: clamp(50px, 7vw, 90px) 0 40px;
    text-align: center;
}
.catalog-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 14px;
}
.catalog-hero-lead {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
}

/* === Секция каталога === */
.catalog-section { padding-top: 30px; }

/* === Уведомления === */
.lead-success, .lead-error {
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid;
}
.lead-success {
    background: color-mix(in srgb, #4a8a3a 12%, var(--surface));
    border-color: color-mix(in srgb, #4a8a3a 30%, transparent);
}
.lead-success-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #4a8a3a;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700;
}
.lead-success h3 { font-size: 1.1rem; margin-bottom: 2px; }
.lead-success p { font-size: 0.9rem; color: var(--muted); }
.lead-error {
    background: color-mix(in srgb, #c0392b 8%, var(--surface));
    border-color: color-mix(in srgb, #c0392b 25%, transparent);
    color: #a02818;
}

/* === Панель фильтров === */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; flex: 1; }
.filter-label {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--muted);
}
.filter-select {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a6b60' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.filter-select:hover { border-color: var(--accent); }
.filter-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

.catalog-count {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 24px;
}
.catalog-count strong { color: var(--brand); }

/* === Карточка котёнка: дополнения === */
.kitten-breed-line {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: -4px;
}
.kitten-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.kitten-badge-featured {
    left: 12px; right: auto; top: 12px;
    background: var(--brand);
    color: #fff;
}

/* === Пустое состояние === */
.catalog-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.catalog-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.catalog-empty h3 { font-size: 1.3rem; margin-bottom: 8px; }
.catalog-empty p { color: var(--muted); margin-bottom: 20px; }

/* === Модальное окно === */
.modal-overlay {
    position: fixed; inset: 0;
    background: color-mix(in srgb, #1a0f0a 55%, transparent);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .25s;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal {
    background: var(--surface);
    border-radius: 18px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px -20px rgba(42,31,26,.5);
    transform: translateY(20px) scale(.98);
    transition: transform .3s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-sm { max-width: 460px; }
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    z-index: 5;
    transition: background .2s, color .2s;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--accent); color: #fff; }

/* Детальное модальное: контент */
.modal-detail-photo {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
}
.modal-detail-body { padding: 28px 32px 32px; }
.modal-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}
.modal-detail-header h2 { font-size: 1.8rem; }
.modal-detail-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
}
.modal-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.modal-meta-tag {
    padding: 7px 14px;
    border-radius: 50px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--brand);
    font-weight: 500;
}
.modal-detail-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 28px;
}
.modal-detail-actions {
    display: flex;
    gap: 12px;
}
.modal-detail-actions .btn { flex: 1; }

/* === Форма бронирования === */
.modal-title { font-size: 1.6rem; margin-bottom: 6px; }
.modal-subtitle { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.reserve-form { display: flex; flex-direction: column; gap: 16px; padding: 0 32px 32px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-size: 0.85rem; font-weight: 600;
    color: var(--brand);
}
.form-field input, .form-field textarea {
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.btn-block { width: 100%; }
.form-note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

/* === Адаптив === */
@media (max-width: 768px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-group { min-width: 100%; }
    .modal-detail-body { padding: 20px; }
    .reserve-form { padding: 0 20px 24px; }
    .modal-detail-header { flex-direction: column; }
    .modal-detail-actions { flex-direction: column; }
}
@media (max-width: 480px) {
    .kitten-bottom { flex-direction: column; gap: 10px; align-items: stretch; }
    .kitten-bottom .btn { width: 100%; }
}