* {
    box-sizing: border-box;
}

:root {
    --brand-primary: #8e0000;
    --brand-secondary: #ce0505;
    --brand-deep: #5b0000;
    --surface-dark: rgba(255, 255, 255, 0.08);
    --surface-line: rgba(255, 255, 255, 0.12);
    --surface-soft: rgba(255, 248, 241, 0.96);
    --surface-soft-line: rgba(108, 18, 18, 0.12);
    --text-light: #fff5f5;
    --text-muted: rgba(255, 235, 235, 0.72);
    --text-dark: #281212;
    --text-soft-dark: #6c4a4a;
    --shadow-dark: 0 28px 60px rgba(45, 0, 0, 0.24);
    --shadow-soft: 0 22px 50px rgba(61, 9, 9, 0.14);
}

body.test-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text-light);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #9d0606 0%, #870000 28%, #6a0000 100%);
}

.test-shell {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.test-hero {
    padding-top: 8px;
}

.test-eyebrow,
.catalog-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.test-eyebrow {
    color: rgba(255, 233, 210, 0.88);
}

.test-hero-copy h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.test-subtitle {
    margin: 14px 0 0;
    max-width: 700px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

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

.personnel-card,
.personnel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.personnel-card {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.personnel-card:hover {
    transform: translateY(-3px);
    opacity: 0.94;
}

.personnel-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.personnel-loading {
    min-height: 120px;
    color: rgba(255, 245, 245, 0.86);
    font-weight: 600;
}

.catalog-section {
    margin-top: 28px;
}

.catalog-surface {
    padding: 32px;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 250, 246, 0.98), rgba(255, 244, 235, 0.96));
    border: 1px solid var(--surface-soft-line);
    box-shadow: var(--shadow-soft);
}

.catalog-header {
    margin-bottom: 26px;
}

.catalog-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
}

.catalog-search-actions {
    display: flex;
    gap: 12px;
}

.catalog-search input {
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(142, 0, 0, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search input:focus {
    border-color: rgba(142, 0, 0, 0.34);
    box-shadow: 0 0 0 4px rgba(142, 0, 0, 0.08);
}

.catalog-search button,
.catalog-pagination button {
    border: 0;
    border-radius: 18px;
    padding: 13px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.catalog-search button {
    min-width: 96px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    box-shadow: 0 14px 26px rgba(142, 0, 0, 0.18);
}

.catalog-search-clear {
    background: rgba(142, 0, 0, 0.08) !important;
    color: var(--brand-primary) !important;
    box-shadow: none !important;
    border: 1px solid rgba(142, 0, 0, 0.12) !important;
}

.catalog-search-clear:hover {
    background: rgba(142, 0, 0, 0.12) !important;
}

.catalog-search button:hover,
.catalog-pagination button:hover {
    transform: translateY(-1px);
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 860px;
    margin: 0 auto;
}

.catalog-card,
.catalog-empty {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(142, 0, 0, 0.09);
    box-shadow: 0 18px 34px rgba(82, 13, 13, 0.08);
}

.catalog-card {
    padding: 18px;
}

.catalog-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 244, 235, 0.9), rgba(255, 255, 255, 0.96));
    text-decoration: none;
    cursor: pointer;
}

.catalog-card-link img {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    display: block;
}

.catalog-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-soft-dark);
}

.catalog-total {
    margin-top: 22px;
    text-align: center;
    color: var(--text-soft-dark);
    font-size: 14px;
    font-weight: 600;
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    color: var(--text-soft-dark);
}

.catalog-pagination button {
    background: rgba(142, 0, 0, 0.08);
    color: var(--brand-primary);
}

.catalog-pagination button:disabled {
    opacity: 0.46;
    cursor: not-allowed;
    transform: none;
}

.complaint-section {
    margin-top: 28px;
}

.complaint-surface {
    display: flex;
    justify-content: center;
}

.complaint-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 860px);
    padding: 24px 84px 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: linear-gradient(135deg, #7e0000 0%, #a40000 45%, #d00606 100%);
    color: #fff7f7;
    box-shadow: 0 24px 46px rgba(63, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.complaint-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 52px rgba(63, 0, 0, 0.3);
    filter: saturate(1.05);
}

.complaint-button-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.complaint-button-title {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.complaint-button-subtitle {
    font-size: 14px;
    color: rgba(255, 241, 241, 0.84);
}

.complaint-button-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

@media (max-width: 960px) {
    .catalog-search {
        width: 100%;
    }

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

@media (max-width: 720px) {
    .test-shell {
        width: min(100% - 20px, 100%);
        padding: 16px 0 42px;
    }

    .catalog-surface {
        padding: 20px;
        border-radius: 28px;
    }

    .catalog-card {
        padding: 12px;
    }

    .catalog-card-link {
        min-height: 180px;
        padding: 12px;
    }

    .catalog-card-link img {
        max-height: 420px;
    }

    .catalog-search {
        grid-template-columns: 1fr;
    }

    .catalog-search-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .complaint-button {
        padding: 18px 68px 18px 18px;
        border-radius: 24px;
    }

    .complaint-button-title {
        font-size: 18px;
    }

    .complaint-button-subtitle {
        font-size: 13px;
    }

    .complaint-button-icon {
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .mobile-container {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }

    .mobile-logo {
        max-height: 18vh;
    }

    .mobile-profiles {
        max-height: none;
    }
}
