body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
    color: #333;
}

/* ШАПКА */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0078d7;
    color: white;
    padding: 10px 20px;
}
.header-left img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.header-center {
    text-align: center;
    flex: 1;
}
.header-center h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}
.header-center p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}
.header-right select {
    padding: 5px;
    font-size: 14px;
    width: 50px;
}

/* ОБ'ЯВИ */
#ads-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}
.ad-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 15px;
    transition: transform 0.2s;
}
.ad-card:hover {
    transform: scale(1.02);
}

/* === КАРУСЕЛЬ === */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}
.slides {
    display: flex;
    transition: transform 0.3s ease-in-out;
}
.slides img {
    width: 100%;
    flex-shrink: 0;
    border-radius: 8px;
}
.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
}
.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

.ad-card h2 { margin: 10px 0 5px; }
.ad-card p { margin: 5px 0; }
.ad-card span { font-weight: bold; color: #0078d7; }


.contact-footer {
    text-align: center;
    padding: 20px;
    background: #f1f1f1;
    margin-top: 30px;
    border-top: 2px solid #ddd;
}
.contact-footer p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}
.phone-button {
    display: inline-block;
    padding: 12px 25px;
    background: #0078d7;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}
.phone-button:hover {
    background: #005a9e;
}