/* --- стили --- */
:root {
    --bg-light: #F2F0EE; 
    --bg-dark: #333333;  
    --bg-cta: #D8D1CA;   
    --text-main: #1a1a1a;
    --text-light: #555555;
    --white: #ffffff;
    --container-width: 1100px;
    --font-main: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 16px;
    background-color: var(--white);

    max-width: 1920px;   
    margin: 0 auto;      
    position: relative;  
    box-shadow: 0 0 50px rgba(0,0,0,0.1); 
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- классы --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0; 
}

.overline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-title {
    margin-top: -25px;
    margin-left: 170px;
}

.text-block {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    max-width: 500px;
    margin-top: -10px;
}

.white { color: var(--white) !important; }
.mb-50 { margin-bottom: 50px; }

/* --- кнопки --- */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: inline-block;
}

.btn--black {
    background: #1a1a1a;
    color: #fff;
    border-radius: 15px; 
    padding: 12px 35px;  
    font-size: 15px; 
    font-weight: 600;
}

.btn--small {
    padding: 8px 16px;
    font-size: 12px;
}

.link-arrow {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* --- шапка --- */
.header {
    position: relative; 
    background-color: #ffffff; 
    padding: 25px 0; 
    z-index: 100;
}

.header__inner {
    max-width: none; 
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
}

.logo {
    width: 50%;
    padding-left: max(20px, calc((100% - 1100px) / 2 - 10px));
    box-sizing: border-box; 
    font-family: var(--font-main); 
    font-size: 24px;             
    font-weight: 800;              
    color: #1a1a1a;                
    letter-spacing: -0.5px;        
    line-height: 1; 
}

.nav {
    display: flex;
    gap: 30px; 
    align-items: center; 
}

.header__actions {
    margin-left: auto;
    padding-right: max(20px, calc((100% - 1100px) / 2 + 20px));
}

.nav a {
    font-size: 14px;
    font-weight: 500;
}

/* --- главный блок --- */
.hero {
    display: flex;
    min-height: 720px; 
    height: 720px;
    align-items: stretch;
}

.hero__left {
    width: 50%;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;

    padding-left: max(20px, calc((100% - 1100px) / 2 + 20px));
    
    padding-right: 10px; 
    padding-top: 0px;
    padding-bottom: 0px;
    justify-content: flex-start; 
}

.hero__content {
    max-width: 450px; 
    margin-left: -40px;
}

.hero__title {
    font-size: 65px;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero__desc {
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 380px;
}

.hero__right {
    width: 50%;
}

.hero__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- о нас, команда  --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 60px;
}


/* аватарки и описание */
.person-quote {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.person-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.person-info .name { font-weight: 700; }
.person-info .role { color: var(--text-light); }

/* --- как работаем --- */
.center-head {
    text-align: center;
    margin-bottom: 45px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 120px;
    text-align: center;
}

.icon-circle {
    width: 120px;
    height: 100px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.process {
    padding-top: 80px; 
    padding-bottom: 80px; 
}

/* --- картинки на весь блок --- */
.full-image {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    max-width: 400px;            
    
    background: transparent;
    padding: 0;
    box-shadow: none;
    text-shadow: none;
}

.image-caption.right {
    right: 15%;       
    text-align: right; 
}

.image-caption.right.align-fix {
    text-align: left;
    right: -40px;
    margin-top: 4px;
}

.image-caption.right.stairs-fix {
    text-align: left;
    right: 5px; 
    max-width: 300px; 
}

.image-caption.left.staircase-fix {
    text-align: left;
    left: 20px; 
    max-width: 300px; 
    margin-top: 4px;
}

.image-caption.right h4,
.image-caption.right p {
    color: #1a1a1a;;
}

.image-caption.left {
    left: 15%;        
    right: auto;
    text-align: left; 
}


.image-caption.left h4,
.image-caption.left p {
    color: #1a1a1a;
}

.image-caption h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 700; 
    line-height: 1.2;
}

/* --- партнеры --- */
.dark-bg {
    background-color: var(--bg-dark);
    color: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px 70px;
    align-items: center;
    justify-items: center; 
}

.clients-grid span {
    font-family: serif; 
    font-size: 22px;    
    opacity: 0.8;      
    white-space: nowrap; 
}

.clients-grid span {
    font-family: serif; 
    font-size: 20px;
    opacity: 0.8;
}

.client-logo {
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.client-logo.shift-right {
    margin-left: 160px;
}

.client-logo svg {
    height: 60px; 
    width: auto;  
    max-width: 100%; 
    
    color: #ffffff; 
    opacity: 0.7;   
    transition: opacity 0.3s;
}

.clients-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 10px; 
    align-items: center;
}


/* --- проекты --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 378px);
    gap: 18px;
    justify-content: center;
}

.project-card {
    position: relative;
    height: 455px;
    width: 100%;
    background: #f4f4f4;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects {
    background-color: #F9F9F9; 
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px; 
    z-index: 2;
    
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
    align-items: flex-start; 
}

/* избр. проект с моксвой */
.project-city {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #555; 
    margin-bottom: 5px;
}

.projects-footer {
    text-align: center;
    margin-top: 55px; 
}

/* заголовок */
.project-title {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a; 
    margin: 0;
}

/* кнопка */
.btn-pill {
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px; 
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-pill:hover {
    background-color: #000;
}

/* --- команда --- */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 120px;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transform: translateX(-10px) translateY(-15px);
}

.team-member img {
    width: 80px;            
    height: 80px;           
    border-radius: 50%;      
    object-fit: cover;       
    object-position: center; 
    flex-shrink: 0;
}

.team-member div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    line-height: 1.1;
    margin-top: 25px;
}

.team-member strong {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.team-member span {
    font-size: 14px;
    color: var(--text-light);
}

.col-left .link-arrow {
    display: inline-block;
    margin-top: 60px;
}

.col-left .section-title {
    margin-top: -30px;
}

.col-left .text-small {
    margin-top: 20px;
}

/* --- нижний блок --- */
.cta-section {
    background-color: var(--bg-cta);
    padding: 100px 0;
}

.cta-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;            
}

.cta-text {
    max-width: 600px; 
    text-align: left; 
}

.cta-text h2 {
    margin-top: 15px; 
    font-size: 40px;  
    line-height: 1.1;
    font-weight: 400;
}

.link-arrow {
    white-space: nowrap; /
}

/* --- подвал --- */

.footer {
    background-color: #F9F9F9; 
    padding: 60px 0; 
}

.footer__inner {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 900; 
    color: #1a1a1a;
    margin-bottom: 15px; 
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #888888; 
}

.socials {
    display: flex;
    gap: 20px; 
    align-items: center;
    margin-left: auto;
    margin-top: 60px;
    margin-right: -40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;  
    height: 28px;
    color: #1a1a1a; 
    transition: opacity 0.3s, transform 0.3s;
}

.social-link:hover {
    opacity: 0.6; 
    transform: translateY(-2px);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001; 
}

.burger span {
    width: 30px;
    height: 3px;
    background-color: #1a1a1a;
    transition: 0.3s;
}

@media (max-width: 768px) {

    .burger {
        display: flex; 
    }

    .header__actions {
        display: none; 
    }

    .logo {
        width: auto; 
        padding-left: 20px; 
        font-size: 18px;
        z-index: 1001;
    }

    .header__inner {
        justify-content: space-between; 
        padding: 0 20px; 
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto; 
        min-height: 300px; 
        background-color: #ffffff;
        display: none; 
        flex-direction: column;
        justify-content: flex-start; 
        align-items: center;
        padding-top: 100px; 
        padding-bottom: 40px; 
        gap: 30px;
        z-index: 1000;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        font-size: 18px; 
    }

    .hero {
        flex-direction: column-reverse; 
        height: auto; 
        min-height: 500px;
    }

    .hero__left, .hero__right {
        width: 100%; 
    }

    .hero__left {
        padding: 40px 20px;
        min-height: auto;
    }

    .hero__content {
        max-width: 100%;
        margin-left: 0;
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero__desc {
        font-size: 14px;
    }

    .hero__right {
        height: 300px; 
    }

    .grid-2-col {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .about-title {
        margin-top: 0;
        margin-left: 0;
    }

    .text-block {
        max-width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .process-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }

    .full-image {
        height: 400px !important; 
    }

    .image-caption, 
    .image-caption.left, 
    .image-caption.right,
    .image-caption.left.staircase-fix,
    .image-caption.right.align-fix,
    .image-caption.right.stairs-fix {
        position: absolute !important;
        bottom: 20px; 
        left: 15px;
        right: 15px; 
        top: auto;   
        transform: none !important;
        width: auto;
        max-width: none;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.7); 
        padding: 16px;
        border-radius: 6px; 
        text-align: left !important;
    }

    .image-caption h4, 
    .image-caption p,
    .image-caption.left h4,
    .image-caption.left p,
    .image-caption.right h4,
    .image-caption.right p {
        color: #ffffff !important; 
        font-size: 12px;
    }

    .image-caption h4 {
        font-size: 11px;
    }

    .clients-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
        align-items: center;
        justify-items: center;
    }

    .client-logo {
        width: 100%;
        margin-left: 0 !important;
    }

    .client-logo.shift-right {
        margin-left: 0 !important;
    }

    .client-logo svg {
        height: 35px;
        width: auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-content: center;
    }

    .project-card {
        height: 350px;
    }

    .projects-footer { 
        margin-top: 30px; 
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-member {
        transform: none;
        gap: 15px;
    }

    .team-member img {
        width: 70px;
        height: 70px;
    }

    .team-member div {
        margin-top: 0;
    }

    .col-left .link-arrow {
        margin-top: 30px;
    }

    .col-left .section-title {
        margin-top: 0;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .socials {
        margin-left: 0;
        margin-top: 20px;
        margin-right: 0;
        gap: 15px;
    }

    .footer-logo {
        font-size: 18px;
    }
}
