* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: #11151a;
    color: #fff;
}

body {
    min-height: 100vh;
}

.background {
    position: fixed;
    inset: 0;
    z-index: 0;

    background-image:
        linear-gradient(
            rgba(8, 13, 20, .55),
            rgba(8, 13, 20, .55)
        ),
        url("background.jpg");

    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;
    transform: translateZ(0);

    -webkit-transform: translateZ(0);
}
.overlay {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(29, 33, 39, .96);
    border-bottom: 1px solid #2d333d;
}

#back {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: #2d3440;
    color: white;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: .2s;
}

#back:hover {
    background: #3d4756;
}

.header-title {
    min-width: 0;
}

.header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.header p {
    margin: 5px 0 0;
    color: #9da7b3;
    font-size: 14px;
}

.content {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 40px;
    flex: 1;
}

.controls {
    margin-bottom: 20px;
}

.search-wrapper {
    margin-bottom: 12px;
}

#search {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #343b46;
    border-radius: 10px;
    outline: none;
    background: #1d2127;
    color: white;
    font-size: 16px;
    transition: .2s;
}

#search::placeholder {
    color: #7f8996;
}

#search:focus {
    border-color: #566579;
    background: #20252c;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filters select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #343b46;
    border-radius: 9px;
    outline: none;
    background: #1d2127;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.count {
    margin: 0 0 16px;
    color: #8f9aa8;
    font-size: 14px;
}

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

.talent-card {
    padding: 20px;
    border: 1px solid #303741;
    border-radius: 12px;
    background: rgba(29, 33, 39, .96);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.talent-card h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
}

.room {
    margin-top: 5px;
    color: #8f9aa8;
    font-size: 14px;
}

.category {
    flex: 0 1 auto;
    padding: 6px 9px;
    border-radius: 7px;
    background: #2d3440;
    color: #dce2e8;
    font-size: 12px;
    line-height: 1.25;
    text-align: right;
}

.condition {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 9px;
    border-radius: 7px;
    background: #252b33;
    color: #b8c1cb;
    font-size: 12px;
}

.comment {
    margin-top: 16px;
    color: #d9dee4;
    font-size: 15px;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
}

.contacts {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #303741;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.contact-row:first-child {
    margin-top: 0;
}

.contact-label {
    flex: 0 0 auto;
    color: #8f9aa8;
}

.contact-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-value a {
    color: #b8cfff;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.empty {
    padding: 50px 20px;
    border: 1px dashed #3a424d;
    border-radius: 12px;
    color: #8f9aa8;
    text-align: center;
    background: rgba(29, 33, 39, .7);
}

.footer {
    padding: 20px;
    border-top: 1px solid #2d333d;
    background: rgba(29, 33, 39, .96);
    color: #737e8b;
    text-align: center;
    font-size: 12px;
}


/* Планшеты */
@media (max-width: 900px) {

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

}


/* Телефоны */
@media (max-width: 600px) {

    .header {
        min-height: 76px;
        padding: 12px 16px;
    }

    #back {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .header h1 {
        font-size: 21px;
    }

    .header p {
        font-size: 13px;
    }

    .content {
        width: calc(100% - 24px);
        padding: 18px 0 28px;
    }

    .filters {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .talent-card {
        padding: 16px;
    }

    .card-top {
        display: block;
    }

    .category {
        display: inline-block;
        margin-top: 10px;
        text-align: left;
    }

    .talent-card h2 {
        font-size: 19px;
    }

    .comment {
        font-size: 14px;
    }

    .contact-row {
        display: block;
    }

    .contact-label {
        display: block;
        margin-bottom: 2px;
    }

}
#logout {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: #2d3440;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: .2s;
}

#logout:hover {
    background: #3d4756;
}
@media (max-width: 600px) {

    #logout {
        height: 36px;
        padding: 0 11px;
        font-size: 13px;
    }

}


@media (max-width: 600px) {

    .background {
        background-position: center 70%;
        background-attachment: scroll;
    }

}
