/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ===== RESET & GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.logo-icon {
    font-size: 20px;
}

.cta-button {
    background: #fff;
    border: 1px solid #000;
    padding: 12px 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #000;
    color: #fff;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1541976590-713941681591?w=1920&h=1080&fit=crop') center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    padding: 414px 557px 171px 77px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.hero-button {
    background: #fff;
    border: 1px solid #fff;
    color: #000;
    padding: 16px 40px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: transparent;
    color: #fff;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 30px;
}

.about-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background: #F5F4F3;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    margin-bottom: 20px;
    text-align: left;
}

.section-subtitle {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    text-align: left;
    max-width: 800px;
    margin: 0 0 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    text-align: left;
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.service-title {
    font-size: 16px;
    font-weight: 400;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('assets/images/ЮгСтройПрогресс-4.webp') center/cover no-repeat;
    background-attachment: fixed;  /* Параллакс */
    color: #fff;
}

.section-title-white {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    margin-bottom: 60px;
    text-align: left;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    text-align: left;
}

.portfolio-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
}

.portfolio-name {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #fff;
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 80px 0;
    background: #9B9B9B;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-title {
    font-size: 46px;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #000;
}

.stat-number {
    font-size: 46px;
    font-weight: 300;
    color: #fff;
}

/* ===== PARTNERS SECTION ===== */
.partners {
    padding: 60px 0;
    background: #F6F6F6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
}

.partner-logo {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 150px;        /* Максимальная ширина */
    max-height: 60px;        /* Максимальная высота */
    width: auto;
    height: auto;
    object-fit: contain;     /* Сохраняет пропорции */
    filter: grayscale(100%); /* Чёрно-белые логотипы (опционально) */
    opacity: 0.7;            /* Прозрачность (опционально) */
    transition: all 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%);   /* Цветные при наведении */
    opacity: 1;              /* Полная непрозрачность */
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 100px 0;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 500;
    color: #000;
}

/* ===== FOOTER ===== */
.footer {
    min-height: 100vh;
    padding: 100px 0 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('assets/images/ЮгСтройПрогресс-3.webp') center/cover no-repeat;
    background-attachment: fixed;  /* Параллакс эффект */
    color: #fff;
    display: flex;
    align-items: center;
}

.footer .container {
    max-width: 100%;
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    width: 100%;
}

.footer-info {
    justify-self: start;
}

.footer-form {
    justify-self: end;
    max-width: 500px;
    width: 100%;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
}

.contact-item {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 10px;
}

.social-title {
    font-size: 14px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #fff;
    color: #000;
}

/* ===== COPYRIGHT ===== */
.footer-copyright {
    text-align: center;
    padding-top: 60px;
    margin-top: auto;
    border-top: 1px solid #333;
    color: #888;
    font-size: 14px;
}

.footer-copyright p {
    margin: 0;
}

/* ===== CONTACT FORM ===== */
.form-title {
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-input,
.form-textarea {
    background: transparent;
    border: 1px solid #777;
    color: #fff;
    padding: 15px;
    font-size: 18px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
}

.form-textarea {
    resize: vertical;
}

.form-submit {
    background: #fff;
    border: 1px solid #fff;
    color: #000;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.form-submit:hover {
    background: transparent;
    color: #fff;
}

.form-success {
    margin-top: 20px;
    padding: 15px;
    background: #4CAF50;
    color: #fff;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}

.form-success.show {
    display: block;
}

/* ===== RESPONSIVE ===== */

/* Планшеты и ноутбуки */
@media (max-width: 1200px) {
    .hero-content {
        padding: 100px 400px 100px 77px;
    }
    
    .footer .container {
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-content {
        padding: 60px 300px 60px 60px;
    }
    
    .about-content {
        gap: 60px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer .container {
        padding: 0 40px;
    }
    
    .footer-content {
        gap: 60px;
    }
}

/* Планшеты */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 15px 0;
    }

    .logo {
        font-size: 14px;
    }
    
    .logo-icon {
        font-size: 18px;
    }

    .logo-text {
        font-size: 14px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 11px;
    }

    /* Hero */
    .hero {
        margin-top: 50px;
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 20px 80px 60px 40px;
    }

    .hero-title {
        font-size: 56px;
        margin-bottom: 30px;
    }
    
    .hero-button {
        padding: 14px 32px;
        font-size: 11px;
    }

    /* About */
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 300px;
    }

    /* Services */
    .services {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 13px;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .service-image {
        height: 220px;
    }

    /* Portfolio */
    .portfolio {
        padding: 60px 0;
        background-attachment: scroll;
    }
    
    .section-title-white {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-image {
        height: 300px;
    }

    /* Stats */
    .stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stat-title,
    .stat-number {
        font-size: 28px;
    }

    /* Partners */
    .partners {
        padding: 50px 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .partner-logo img {
        max-width: 130px;
        max-height: 50px;
    }

    /* Testimonials */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .testimonial-card {
        padding: 25px;
    }

    /* Footer */
    .footer {
        min-height: auto;
        padding: 60px 0 40px;
        background-attachment: scroll;
    }
    
    .footer .container {
        min-height: auto;
        padding: 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-info,
    .footer-form {
        justify-self: stretch;
        max-width: 100%;
    }
    
    .footer-logo {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .contact-title {
        font-size: 18px;
    }
    
    .form-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .form-submit {
        font-size: 16px;
    }
    
    .footer-copyright {
        padding-top: 40px;
        font-size: 13px;
    }
}

/* Мобильные телефоны */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero */
    .hero {
        min-height: 450px;
    }

    .hero-content {
        padding: 30px 15px 60px 15px;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .hero-button {
        padding: 12px 28px;
        font-size: 10px;
    }

    /* Sections */
    .about,
    .services,
    .portfolio,
    .testimonials {
        padding: 50px 0;
    }
    
    .section-title,
    .section-title-white {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }

    .stats {
        padding: 50px 0;
    }
    
    .stat-title,
    .stat-number {
        font-size: 24px;
    }
    
    .partners {
        padding: 40px 0;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .partner-logo img {
        max-width: 150px;
        max-height: 55px;
    }
    
    /* Footer */
    .footer .container {
        padding: 0 15px;
    }
    
    .footer-logo {
        font-size: 16px;
    }
    
    .contact-title {
        font-size: 16px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .social-title {
        font-size: 13px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-input,
    .form-textarea {
        padding: 12px;
        font-size: 13px;
    }
    
    .form-submit {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title,
    .section-title-white {
        font-size: 22px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 10px;
    }
}

