View file zip0.ru/assets/css/style.css

File size: 4.02Kb
/* Общие стили для страницы */
body {
    font-family: 'Arial', sans-serif;
    background-color: #fff5fa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Карточки пользователей */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.card.user-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

/* Фото профиля в виде круга */
.user-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
}

.placeholder {
    background: #f2f2f2;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}

/* Информация о пользователе */
.user-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.user-city {
    font-size: 14px;
    color: #777;
    margin-top: 8px;
}

.user-about {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
    height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-age {
    font-size: 14px;
    color: #ff6b9c;
    margin-left: 10px;
}

/* Основная розовая кнопка */
.btn-primary {
    background: linear-gradient(135deg, #ff6b9c, #ff9f7c);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.1s ease;
    font-size: 14px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9f7c, #ff6b9c);
    transform: translateY(-1px);
}

/* Форма фильтров */
.filter-form {
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-top: 24px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-field {
    min-width: 180px;
    flex: 1;
}

.filter-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #666;
}

.filter-field input,
.filter-field select {
    width: 100%;
    box-sizing: border-box;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ----- Глобальный вид ссылок в контенте ----- */
/* чтобы все обычные ссылки по сайту выглядели мягко и одинаково */
main.sl-main a {
    color: #ff4f8b;
    text-decoration: none;
    font-weight: 500;
}

main.sl-main a:hover {
    text-decoration: underline;
}

/* ----- Кнопки действий в карточках анкет / совпадений ----- */
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.inline-form {
    display: inline;
}

.btn-like {
    border-radius: 999px;
    padding: 7px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-like:hover {
    background: #fff5fa;
    border-color: rgba(255, 79, 139, 0.45);
    transform: translateY(-1px);
}

.btn-like-heart {
    font-size: 16px;
}

.btn-text-link {
    font-size: 15px;
    font-weight: 500;
}

.btn-text-link + .btn-text-link {
    margin-left: 4px;
}

/* Респонсивность */
@media (max-width: 768px) {
    .card.user-card {
        padding: 16px;
    }
    .user-photo {
        width: 100px;
        height: 100px;
    }
    .cards-grid {
        gap: 16px;
    }
}