/* Шрифты */
@font-face {
    font-family: 'Jost';
    src: url('../assets/fonts/Jost-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    color: #2d2d2d;
    background-color: #ffffff;
    line-height: 1;
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 13vw, 210px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    z-index: 1000;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(20px, 13vw, 210px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 128px;
    height: 28px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #2d2d2d;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    margin-top: 68px;
    padding: 20px clamp(20px, 13vw, 210px);
}

.hero-image {
    width: 100%;
    height: 492px;
    position: relative;
    overflow: hidden;
    background-color: #bebebe;
}

.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease;
}

.hero-image-layer-1 {
    z-index: 2;
}

.hero-image-layer-2 {
    z-index: 1;
}

/* About Section */
.about {
    padding: 60px clamp(20px, 13vw, 210px);
    display: flex;
    justify-content: flex-end;
}

.about-content {
    display: grid;
    grid-template-columns: 380px 780px;
    gap: 20px;
    width: 1180px;
    max-width: 100%;
}

.about-text {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: #2d2d2d;
}

.about-text-wide {
    max-width: 580px;
}

/* Projects Section */
.projects {
    padding: 0 clamp(20px, 13vw, 210px) 80px;
}

.projects-container {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    position: relative;
    justify-items: end;
}

.projects-sidebar {
    position: sticky;
    top: 88px;
    height: fit-content;
    justify-self: start;
}

.projects-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    color: #2d2d2d;
    margin-bottom: 23px;
}

.projects-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-link {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2d2d2d;
    text-decoration: none;
    transition: font-weight 0.3s;
}

.filter-link.active {
    font-weight: 500;
}

.filter-link:hover {
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 380px);
    gap: 32px 30px;
}

.project-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-image,
.project-card picture {
    width: 380px;
    height: 229px;
    background-color: #bebebe;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
    display: block;
    overflow: hidden;
}

.project-image img,
.project-card picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.project-name {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2d2d2d;
}

.project-year {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #696969;
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.load-more-btn {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2d2d2d;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    transition: opacity 0.3s;
}

.load-more-btn:hover {
    opacity: 0.7;
}

/* Footer */
.footer {
    padding: 80px clamp(20px, 13vw, 210px);
    background-color: #ffffff;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 90px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    color: #2d2d2d;
    margin-bottom: 49px;
}

.footer-text {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #2d2d2d;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 0;
    margin-top: 19px;
}

.footer-link {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2d2d2d;
    text-decoration: none;
    margin-right: 200px;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Project Page Styles */
.project-hero {
    margin-top: 68px;
    padding: 20px clamp(20px, 13vw, 210px);
}

.project-hero-image {
    width: 100%;
    height: 600px;
    background-color: #bebebe;
    background-size: cover;
    background-position: center;
}

.project-info-section {
    padding: 60px clamp(20px, 13vw, 210px);
}

.project-info-container {
    max-width: 1180px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 60px;
}

.project-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1;
    color: #2d2d2d;
    margin-bottom: 40px;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-label {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #696969;
}

.spec-value {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2d2d2d;
}

.project-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 780px;
}

.project-description-text {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: #2d2d2d;
}

.project-gallery {
    padding: 0 clamp(20px, 13vw, 210px) 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-image {
    background-color: #bebebe;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: block;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-image-large {
    width: 100%;
    height: 600px;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-image-half {
    height: 400px;
}

.project-details {
    padding: 60px clamp(20px, 13vw, 210px);
    background-color: #f8f8f8;
}

.project-details-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    color: #2d2d2d;
}

.detail-text {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #2d2d2d;
}

.back-to-projects {
    padding: 0 clamp(20px, 13vw, 210px) 80px;
}

.back-link {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2d2d2d;
    text-decoration: none;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.7;
}

.related-projects {
    padding: 80px clamp(20px, 13vw, 210px);
}

.related-projects-container {
    max-width: 1180px;
    margin: 0 auto;
}

.related-projects-title {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    color: #2d2d2d;
    margin-bottom: 40px;
}

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

.related-project-card {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
}

.related-project-card:hover {
    transform: translateY(-4px);
}

.related-project-image {
    width: 100%;
    height: 229px;
    background-color: #bebebe;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
    overflow: hidden;
    display: block;
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-project-name {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2d2d2d;
}

.related-project-year {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #696969;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-image {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-specs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .project-details-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .projects-sidebar {
        position: static;
    }
    
    .projects-filter {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-title {
        font-size: 32px;
    }
    
    .project-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-row {
        grid-template-columns: 1fr;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}
