/* 1. Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* 2. Шапка (Navbar) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e2a44;
}

/* Мобильное меню */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e2a44;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #1e2a44;
}

/* Кнопки в шапке */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-phone {
    padding: 12px 20px;
    background: #1e2a44;
    color: white !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(30, 42, 68, 0.2);
}

.btn-phone:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

.btn-whatsapp {
    width: 46px;
    height: 46px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: scale(1.08);
    background: #20b858;
}

/* 3. Hero секция */
.hero {
    height: 100vh;
    min-height: 620px;
    max-height: 850px;
    background: linear-gradient(rgba(30, 42, 68, 0.65), rgba(30, 42, 68, 0.75)),
                url('https://via.placeholder.com/1920x1080/1e2a44/ffffff?text=StroyAMK+Дом') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 0 20px;
}

/* Заголовок и текст */
.hero-content h1 {
    font-size: 4.2rem;
    line-height: 1.08;
    margin-bottom: 1.1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.75);
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 2.2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Блок доверия */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: #f8d568;
    line-height: 1;
}

.trust-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
}

/* Кнопка "Обсудить проект" */
.btn-main {
    display: inline-block;
    padding: 18px 56px;
    background: #1e2a44;
    color: white;
    border-radius: 12px;
    font-size: 1.28rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(30, 42, 68, 0.45);   /* Увеличил тень */
    margin-bottom: 2.8rem;
    border: 2px solid rgba(255,255,255,0.2);         /* Добавил лёгкую обводку */
}

.btn-main:hover {
    background: #2c3e50;
    transform: translateY(-6px);
}

/* Стрелка вниз */
.scroll-down {
    margin-top: 1.5rem;
    font-size: 2.8rem;
    color: rgba(255,255,255,0.75);
    animation: bounce 2.2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20% { transform: translateY(0); }
    50% { transform: translateY(12px); }
    100% { transform: translateY(0); }
}

/* 4. Общие стили секций */
.section {
    padding: 110px 6%;
}

.bg-light {
    background: #f8f9fa;
}

.bg-light-project {
    background: linear-gradient(rgba(30, 42, 68, 0.6), rgba(30, 42, 68, 0.65)) !important;
    color: #ddd;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: #1e2a44;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.25rem;
    color: #555;
}

/* 5. Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.4s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(30, 42, 68, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #1e2a44;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #1e2a44;
}

.service-card p {
    color: #555;
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    color: #1e2a44;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.service-link:hover {
    color: #2c3e50;
    padding-left: 8px;
}

/* 6. Проекты */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(30, 42, 68, 0.15);
}

.project-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #1e2a44;
}

.project-info p {
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.project-year {
    display: inline-block;
    background: #f1f3f5;
    color: #1e2a44;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.projects-cta {
    text-align: center;
    margin-top: 20px;
}

/* 7. Почему выбирают нас */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #555;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.advantage-card {
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 42, 68, 0.12);
}

.advantage-card i {
    font-size: 2.8rem;
    color: #1e2a44;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #1e2a44;
}

.advantage-card p {
    color: #666;
    line-height: 1.5;
}

/* 8. Этапы работы */
#stages {
    background: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1e2a44, #4a6fa5);
    border-radius: 4px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    z-index: 2;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid #1e2a44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1e2a44;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(30, 42, 68, 0.15);
}

.timeline-content {
    background: white;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    flex: 1;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 42, 68, 0.12);
}

.timeline-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e2a44;
    opacity: 0.15;
    margin-bottom: 8px;
    line-height: 1;
}

.timeline-content h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: #1e2a44;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}

/* 9. Контакты */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.contact-btn {
    padding: 16px 24px;
    min-width: 340px;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.phone-btn {
    background: #1e2a44;
    color: white;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.phone-btn:hover { background: #2c3e50; }
.whatsapp-btn:hover { background: #20b858; }

/* Форма */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.05rem;
    color: #333;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e2a44;
    box-shadow: 0 0 0 3px rgba(30, 42, 68, 0.1);
}

.btn-primary {
    padding: 16px 32px;
    background: #1e2a44;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

.policy-label {
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.policy-label a {
    color: #1e2a44;
    text-decoration: underline;
}

/* 10. Финальный CTA */
.cta-section {
    background: linear-gradient(135deg, #1e2a44, #2c3e50);
    color: white;
    text-align: center;
}

.cta-section {
    background: linear-gradient(rgba(30, 42, 68, 0.6), rgba(30, 42, 68, 0.65));   /* Такой же как Hero */
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    color: #ffffff;                    /* Чисто белый */
    text-shadow: 0 4px 20px rgba(0,0,0,0.85);   /* Очень сильная тень */
}

.cta-subtitle {
    font-size: 1.35rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.benefit-item i {
    color: #4ade80;
    font-size: 1.4rem;
}

.cta-big-btn {
    display: inline-block;
    padding: 18px 56px;
    background: #1e2a44;
    color: white;
    border-radius: 12px;
    font-size: 1.28rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.35);   /* Светлая обводка */
    margin-bottom: 2.8rem;
}



/* 11. Отзывы */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 42, 68, 0.1);
}

.testimonial-text {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #444;
    font-style: italic;
    margin-bottom: 28px;
    flex-grow: 1;
}

.testimonial-author {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #555;
}

.testimonial-author strong {
    color: #1e2a44;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: #777;
    font-size: 0.95rem;
}

/* 12. Плавающая кнопка WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* 13. Мобильное меню */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e2a44;
}

/* 14. Footer */
footer {
    background: #1e2a44;
    color: #ddd;
    padding: 70px 0 30px;
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    text-align: center;           /* Центрируем весь контент колонки */
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: #888;
}

.footer-bottom a {
    color: #a3c4ff;
}

/* =============================================
   АДАПТИВНОСТЬ — УНИВЕРСАЛЬНЫЙ АДАПТИВ
   ============================================= */

@media (max-width: 992px) {
    .hero {
        padding-top: 85px;
    }

    .navbar {
        padding: 1rem 5%;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.4s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
        padding: 12px 0;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .section {
        padding: 80px 5%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 75px;
        min-height: 580px;
    }

    .hero-content h1 {
        font-size: 2.6rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .services-grid,
    .projects-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card img {
        height: 220px;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .timeline::before {
        left: 50px;
    }
    
    .timeline-icon {
        margin: 0 auto;
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-btn {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 70px;
        min-height: 520px;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .btn-main {
        padding: 14px 32px;
        font-size: 1.05rem;
    }
    
    h2 {
        font-size: 2.1rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 85px;
        min-height: 560px;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;      /* Ещё меньше */
        line-height: 1.15;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-trust {
        gap: 20px;
        margin-bottom: 1.6rem;
    }
}

/* =============================================
   Модальное окно
   ============================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    color: #333;
    padding: 40px 35px;
    border-radius: 16px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 25px;
    text-align: center;
    color: #1e2a44;
}

.modal-text p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-text strong {
    color: #1e2a44;
}

.modal-close-btn {
    margin-top: 25px;
    width: 100%;
}

#services {
    padding-top: 40px;       /* ← Уменьшаем верхний отступ */
}

/* Разделители между секциями */
.section {
    position: relative;
}

.section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #1e2a44;        /* чёрная полоска */
    opacity: 0.12;
}