* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    background-color: #1a5276;
    color: #ffffff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: medium;
}

.btn:hover {
    background: #327abd;
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background-color: #1a5276;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #3498db;
}

.block {
    padding: 80px 0;
}

.title-block {
    text-align: center;
    margin-bottom: 50px;
}

.title-block h2 {
    font-size: 2.5rem;
    color: #154360;
    margin-bottom: 15px;
}

.title-block p {
    color: #5dade2;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    margin-top: 10px;
}


.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.a-link {
    text-decoration: none;
    color: #154360;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links {
    text-decoration: none;
    color: #c57777;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #1a5276;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img//main-fon.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.search-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.houses-block {
    background: #d6eaf8;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.location {
    color: #5dade2;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.features {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.feature {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 15px;
}

.feature img {
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 5px;
    justify-content: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5276;
    margin-bottom: 15px;
}

/* Как это работает */
.steps-block {
    background: white;
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #1a5276;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.step h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Отзывы */
.otzivi-block {
    background: linear-gradient(to right, #1a5276, #1d7870);
    color: white;
}

.otzivi-block .title-block h2,
.otzivi-block .title-block p {
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.main-otzivi {
    display: grid;
    margin-top: 40px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.otziv-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.otziv-text {
    font-style: italic;
    margin-bottom: 20px;
}

.otziv-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

/* Футер */
footer {
    background: #154360;
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #3498db;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #1a5276;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .owners-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .title-block h2 {
        font-size: 2rem;
    }

    .block {
        padding: 60px 0;
    }
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #eee;
    justify-content: space-around;

}

.modal-header h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.modal-header p {
    color: #718096;
    font-size: 1.1rem;
}

/* Стили карусели */
.carousel {
    margin: 0;
}

.carousel-inner {
    border-radius: 0;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.carousel-indicators {
    bottom: 15px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Стили тела модального окна */
.modal-body {
    padding: 25px 30px;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.modal-feature:hover {
    transform: translateY(-2px);
    background: #e9ecef;
}

.modal-feature i {
    color: #1a5276;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.modal-feature span {
    color: #4a5568;
    font-weight: 500;
}

.price-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #e8f4fe;
    border-radius: 10px;
    border: 2px solid #bee5eb;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #1a5276;
    margin-bottom: 5px;
}

.price-note {
    color: #666;
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #1a5276;
    color: white;
}

.btn-primary:hover {
    background: #327abd;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.close-btn:hover {
    background: white;
}