@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
/* Общие стили и сброс */
:root {
    --primary-color: #515151; /* Синий */
    --dark-color: #1a1a1a;     /* Темно-серый (почти черный) */
    --light-color: #ffffff;   /* Белый */
    --grey-color: #f4f4f4;    /* Светло-серы�� фон */
    --text-color: #333;       /* Основной цвет текста */
    --font-family: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--dark-color);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--grey-color);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left span, .top-bar-left a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
}

.top-bar-left a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.request-call-link {
    cursor: pointer;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    border: none;
}

.request-call-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.request-call-link:hover {
    background: #003d99;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.4);
}

.request-call-link:hover::before {
    left: 100%;
}

.request-call-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    animation: subtle-wave 3s ease-in-out infinite;
    animation-delay: 0.5s;
    pointer-events: none;
    border-radius: 6px;
}


/* Шапка и меню */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
}

a.logo img {
    max-width: 90px;
    border-radius: 100px;
    margin-right: 15px;
}

.menu-list {
    display: flex;
    list-style: none;
}

.menu-list li {
    margin-left: 30px;
}

.menu-list a {
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.menu-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.menu-list a:hover {
    color: var(--primary-color);
}

.menu-list a:hover::after {
    width: 100%;
}

/* Burger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--dark-color);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Секция Hero (О нас) */
.hero {
     background: var(--grey-color);
     padding: 50px 0;
     position: relative;
     overflow: hidden;
     min-height: 80vh;
     display: flex;
     align-items: center;
 }

 .hero-background {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: var(--light-color);
     opacity: 0.3;
 }

 .hero .container {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 60px;
     position: relative;
     z-index: 2;
 }

 .hero-content {
     flex: 1;
     padding-right: 40px;
 }

 .hero-badge {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     background: var(--primary-color);
     color: var(--light-color);
     padding: 8px 16px;
     border-radius: 20px;
     font-size: 0.85rem;
     font-weight: 500;
     margin-bottom: 25px;
     box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
 }

 .hero-badge i {
     font-size: 0.8rem;
 }

 .hero h1 {
     font-size: 3.5rem;
     line-height: 1.1;
     margin-bottom: 20px;
     color: var(--dark-color);
 }

 .hero-subtitle {
     font-size: 1.3rem;
     line-height: 1.6;
     color: #666;
     margin-bottom: 40px;
     max-width: 600px;
 }

 .hero-stats {
     display: flex;
     gap: 30px;
     margin-bottom: 40px;
 }

 .stat-item {
     text-align: center;
     padding: 20px;
     background: var(--light-color);
     border-radius: 15px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s, box-shadow 0.3s;
 }

 .stat-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
 }

 .stat-number {
     font-size: 2.5rem;
     font-weight: 700;
     color: var(--primary-color);
     line-height: 1;
     margin-bottom: 5px;
 }

 .stat-label {
     font-size: 0.9rem;
     color: #666;
     font-weight: 500;
 }

 .hero-features {
     margin-bottom: 40px;
 }

 .feature-item {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 15px;
     font-size: 1.1rem;
     color: #555;
 }

 .feature-item i {
     color: #4CAF50;
     font-size: 1.2rem;
 }

 .hero-actions {
     display: flex;
     gap: 20px;
     flex-wrap: wrap;
 }

 .cta-button {
     display: inline-block;
     padding: 18px 40px;
     border-radius: 8px;
     font-weight: 600;
     font-size: 1.1rem;
     text-decoration: none;
     transition: all 0.3s;
     border: 2px solid transparent;
     cursor: pointer;
     position: relative;
     overflow: hidden;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }
 
 .cta-button.primary {
     background: var(--primary-color);
     color: var(--light-color);
     box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3);
 }
 
 .cta-button.primary:hover {
     background: #003d99;
     transform: translateY(-3px);
     box-shadow: 0 10px 30px rgba(0, 86, 179, 0.4);
 }
 
 .cta-button.secondary {
     background: var(--primary-color);
     color: var(--light-color);
     border-color: var(--primary-color);
     box-shadow: 0 6px 20px rgba(0, 86, 179, 0.3);
 }
 
 /* Убраны лишние эффекты для строгого дизайна */
 
 .cta-button.secondary:hover {
     background: #003d99;
     transform: translateY(-3px);
     box-shadow: 0 10px 30px rgba(0, 86, 179, 0.4);
 }
 
 /* Убраны лишние эффекты для строгого дизайна */
 
 /* Убраны лишние анимации для строгого дизайна */

 .hero-image {
     flex: 1;
     max-width: 600px;
     position: relative;
 }

 .image-container {
     position: relative;
     border-radius: 20px;
     overflow: hidden;
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
 }

 .hero-image img {
     width: 100%;
     height: 400px;
     object-fit: cover;
     transition: transform 0.3s;
 }

 .hero-image:hover img {
     transform: scale(1.05);
 }

 .image-overlay {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
     color: var(--light-color);
     padding: 30px 25px 25px;
 }

 .overlay-text {
     font-size: 1.3rem;
     font-weight: 600;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
 }

 .image-decoration {
     position: absolute;
     top: 30px;
     right: 30px;
     width: 60px;
     height: 60px;
     background: var(--primary-color);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.5rem;
     color: var(--light-color);
     box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
     /* animation: float 3s ease-in-out infinite; */
 }

 @keyframes float {
     0%, 100% { transform: translateY(0px); }
     50% { transform: translateY(-10px); }
 }
 
 @keyframes wave {
     0% {
         background-position: -200px 0;
     }
     100% {
         background-position: 200px 0;
     }
 }
 
 @keyframes subtle-wave {
     0% {
         transform: translateX(-100%) scale(1);
         opacity: 0.15;
     }
     50% {
         transform: translateX(0%) scale(1.05);
         opacity: 0.25;
     }
     100% {
         transform: translateX(100%) scale(1);
         opacity: 0.15;
     }
 }

/* Секция "Каталог домов" */
#catalog {
    background: var(--light-color);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.house-card {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.house-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.house-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.house-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.house-card p {
    margin-bottom: 5px;
}

.house-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.request-button {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-button:hover {
    background: #003d99;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

/* Преимущества */
#advantages {
    background: var(--light-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
    max-width: 350px;
    margin: 0 auto;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-color);
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
    transition: transform 0.3s;
    overflow: hidden;
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.advantage-icon:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-content h2 {
    color: var(--light-color);
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: transform 0.3s;
}

.contact-icon:hover {
    transform: scale(1.1);
}

.contact-icon.whatsapp {
    background: #25d366;
    color: var(--light-color);
}

.contact-icon.form {
    background: var(--primary-color);
    color: var(--light-color);
}

.contact-icon i {
    color: var(--light-color);
}

.contact-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-info a {
    color: var(--light-color);
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-form-btn {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form-btn:hover {
    background: #003d99;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

/* Кнопка наверх */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background: #003d99;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--light-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.modal-content p {
    margin-bottom: 30px;
    text-align: center;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.submit-button:hover {
    background: #003d99;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

#form-status,
#house-form-status,
#footer-form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-actions {
        justify-content: center;
    }

    .menu-list {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 15px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

.hidden {
    display: none;
}