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

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

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #2d2d2d;
    background-color: #F8F5F0;
    line-height: 1;
}

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

html {
    scroll-behavior: smooth;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background: rgba(248, 245, 240, 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;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: #2d2d2d;
    transition: all 0.3s ease;
}

.burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* 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;
    scroll-margin-top: 88px;
}

.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 {
    width: 380px;
    height: 229px;
    background-color: #bebebe;
    margin-bottom: 12px;
    display: block;
    overflow: hidden;
    object-fit: cover;
}

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

.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: 60px clamp(20px, 13vw, 210px);
    background-color: #F8F5F0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 900px;
    margin-bottom: 40px;
}

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

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

.footer-text {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #696969;
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(45, 45, 45, 0.1);
}

.footer-text-small {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    color: #999;
}

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

.footer-link:hover {
    color: #2d2d2d;
}

/* 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: #F3F0EB;
}

.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;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 360px;
    background: rgba(248, 245, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s ease;
}

.cookie-notice.show {
    transform: translateY(0);
    opacity: 1;
}

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

.cookie-notice-text a {
    color: #2d2d2d;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.cookie-notice-text a:hover {
    opacity: 0.7;
}

.cookie-notice-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    padding: 10px 20px;
    border: 1px solid #2d2d2d;
    background: transparent;
    color: #2d2d2d;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    flex: 1;
}

.cookie-btn:hover {
    background: #2d2d2d;
    color: #F8F5F0;
}

.cookie-btn-accept {
    background: #2d2d2d;
    color: #F8F5F0;
}

.cookie-btn-accept:hover {
    background: #1a1a1a;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card picture,
    .project-image {
        width: 100%;
        height: auto;
        aspect-ratio: 380 / 229;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-column:last-child {
        grid-column: 1 / -1;
    }
    
    .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) {
    .header-content {
        padding: 0 20px;
    }
    
    .burger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
        background: rgba(248, 245, 240, 0.98);
        backdrop-filter: blur(35px);
        -webkit-backdrop-filter: blur(35px);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 20px;
        width: 100%;
    }
    
    .hero {
        padding: 20px 20px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .about {
        padding: 40px 20px;
    }
    
    .about-content {
        gap: 20px;
    }
    
    .about-text {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .projects {
        padding: 0 20px 60px;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-sidebar {
        position: static;
    }
    
    .projects-title {
        margin-bottom: 16px;
    }
    
    .projects-filter {
        flex-direction: row;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .filter-link {
        font-size: 14px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-card picture,
    .project-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
    
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-column:last-child {
        grid-column: 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
    }
    
    .footer-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-text {
        font-size: 12px;
    }
    
    .footer-text-small {
        font-size: 11px;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    /* Project Page Mobile */
    .project-hero {
        padding: 20px 20px;
    }
    
    .project-hero-image {
        height: 300px;
    }
    
    .project-info-section {
        padding: 40px 20px;
    }
    
    .project-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .project-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .project-description-text {
        font-size: 16px;
    }
    
    .project-gallery {
        padding: 0 20px 60px;
    }
    
    .gallery-image-large {
        height: 300px;
    }
    
    .gallery-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-image-half {
        height: 250px;
    }
    
    .project-details {
        padding: 40px 20px;
    }
    
    .back-to-projects {
        padding: 0 20px 40px;
    }
    
    .related-projects {
        padding: 40px 20px;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Cookie Notice Mobile */
    .cookie-notice {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 16px 20px;
    }
    
    .cookie-notice-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .cookie-notice-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 100px;
        height: 22px;
    }
    
    .hero-image {
        height: 240px;
    }
    
    .about-text {
        font-size: 14px;
    }
    
    .projects-title {
        font-size: 18px;
    }
    
    .filter-link {
        font-size: 13px;
    }
    
    .project-name,
    .project-year {
        font-size: 14px;
    }
    
    .footer-title {
        font-size: 13px;
    }
    
    .project-title {
        font-size: 24px;
    }
    
    .project-specs {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .spec-label {
        font-size: 12px;
    }
    
    .spec-value {
        font-size: 14px;
    }
    
    .project-description-text {
        font-size: 14px;
    }
    
    .project-hero-image,
    .gallery-image-large {
        height: 240px;
    }
    
    .gallery-image-half {
        height: 200px;
    }
}
