:root {
    --card-bg: rgba(255, 255, 255, 0.95);
    --accent-color: #2563eb;
    --accent-dark: #1e40af;
    --text-main: #1e293b;
    --text-light: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background-image: url('../img/back1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

/* === ВЕРХНЯЯ ПАНЕЛЬ === */
.top-controls {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 100;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 300px;
    flex-shrink: 0;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 240px;
    background: transparent;
}

.login-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.login-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* === КОНТЕЙНЕР С КАРТОЧКАМИ === */
.cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 850px;
    padding: 20px;
    z-index: 1;
}

/* === КАРТОЧКИ === */
.card {
    background: var(--card-bg);
    border-radius: 5px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    gap: 35px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

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

/* === ИКОНКА (БЕЗ ФОНА) === */
.card-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* object-fit убираем — он здесь не нужен */
}

    .card-icon img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        display: block;
    }

/* === ТЕКСТ === */
.card-text {
    flex: 1;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 15px;
    color: var(--text-light);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 900px) {
    .top-controls {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 20px 30px;
        width: calc(100% - 40px);
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    body {
        padding-top: 20px;
        background-attachment: scroll;
        align-items: flex-start;
    }

    .search-box {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .search-box input {
        width: 250px;
    }

    .cards-wrapper {
        max-width: 100%;
        padding: 15px 20px;
    }

    .card {
        flex-direction: column;
        text-align: center;
        padding: 35px 30px;
        gap: 25px;
    }

    .card-icon {
        width: 90px;
        height: 90px;
    }

    .custom-icon {
        width: 70px;
        height: 70px;
    }

    .card-title {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .top-controls {
        padding: 15px 20px;
        gap: 12px;
    }

    .search-box input {
        width: 200px;
    }

    .login-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .card {
        padding: 30px 25px;
    }

    .card-title {
        font-size: 20px;
    }
}

