* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #007bff;
    color: #fff;
}

main {
    margin-top: 80px;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.featured {
    padding: 2rem 0;
}

.featured h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.property-card a {
    text-decoration: none;
    color: inherit;
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card h3 {
    padding: 1rem;
    font-size: 1.2rem;
}

.property-card p {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.property-card .price {
    color: #007bff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 1rem;
}

/* Стили для детальной страницы объекта */
.property-details {
    max-width: 1200px;
    margin: 0 auto;
}

.property-details h1 {
    margin-bottom: 2rem;
    color: #007bff;
}

.property-gallery {
    margin-bottom: 2rem;
}

.property-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-thumbs img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-thumbs img:hover {
    opacity: 0.8;
}

.property-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.price-block {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.price-block h2 {
    color: #007bff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.characteristics h3,
.description h3,
.location h3 {
    margin-bottom: 1rem;
    color: #007bff;
}

.characteristics ul,
.description ul,
.location ul {
    list-style: none;
    margin-bottom: 1rem;
}

.characteristics ul li,
.description ul li,
.location ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.characteristics ul li:before,
.description ul li:before,
.location ul li:before {
    content: '•';
    color: #007bff;
    position: absolute;
    left: 0;
}

.contact-block {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.contact-block h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.contact-block button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.contact-block button:hover {
    background-color: #0056b3;
}

/* Стили для формы обратной связи */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info,
.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    margin-top: 3rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .property-gallery .main-image {
        height: 300px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .gallery-thumbs img {
        height: 80px;
    }
}

