/* C:\OSPanel\domains\paisano.local\assets\css\style.css */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #f0f2f5;
    color: #333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a { text-decoration: none; color: inherit; }

/* Header */
.site-header {
    background-color: #ffffff;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center; /* Логотип по центру */
    padding: 0 20px;
    border-bottom: 2px solid #f7e017;
    position: relative;
}

.site-logo {
    color: #000;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-link-hidden {
    position: absolute;
    right: 20px;
    font-size: 12px;
    color: #ccc;
}

/* Layout with Banners */
.page-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
    padding: 0 10px;
}

.top-banner-area, .bottom-banner-area {
    max-width: 1400px;
    margin: 10px auto;
    text-align: center;
    padding: 0 10px;
}

.banner-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.side-banner {
    width: 200px;
    flex-shrink: 0;
}

.main-content {
    flex-grow: 1;
}

/* Grid: 3 in a row */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Ad Card */
.ad-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.ad-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ad-card img {
    width: 100%;
    aspect-ratio: 1/1; /* Квадратные фото часто в 3-в-ряд */
    object-fit: cover;
    display: block;
}

.ad-info {
    padding: 15px;
}

.ad-name {
    font-size: 18px;
    font-weight: 700;
    color: #d35400; /* Акцентный цвет для имени */
    margin-bottom: 5px;
}

.ad-desc-short {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
    white-space: pre-line;
}

.vip-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #f1c40f;
    color: #000;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
}

/* Profile Details */
.profile-container {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

.contact-btn {
    display: block;
    background: #27ae60;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 20px;
    margin: 20px 0;
}

footer {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .side-banner { display: none; }
    .profiles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .profiles-grid { grid-template-columns: 1fr; }
}