

/** СТИЛИ ГЛАВНЫХ СТРАНИЦ */



/* ГЛАВНАЯ СТРАНИЦА */

.base-container-home {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

/* Левый желтый блок */
.left-box-home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    background-color: var(--color-yellow);
    padding: 2rem;
    position: relative;
    min-height: 200px;
}
.content-home {
    position: relative;
    z-index: 10;
}

.logo-home {
    margin-bottom: 1rem;
}
.main-logo {
    max-width: 340px;  
    height: auto;
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

.buttons-home {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: center;
    gap: 1.0rem;
    width: auto; 
}
.nav-button-home {
    padding: 1rem 2rem;
    background: transparent;
    border: 1.0px solid var(--color-white);
    border-radius: var(--radius);
    color: var(--color-white);
    font-family: 'Comfortaa', Arial, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 200px; 
    min-width: 100px;
}
.nav-button-home:hover {
    background: var(--color-white);
    color: var(--color-yellow);
}

/* Частицы */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-yellow);
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px), (max-height: 500px) {
    .base-container-home {
        flex-direction: column;
    }
    .left-box-home {
        flex: none;
        height: 34vh;
    }
    .main-logo {
        max-width: 180px;
    }
    .buttons-home {
        align-items: center;
        flex-direction: row;
        align-items: center;
        padding-bottom: 20px;
        gap: 1.5rem;

    }
    .nav-button-home {
        border: 2.0px solid var(--color-white);
        font-size: 0.7rem;
        min-width: 120px;
        width: 100%; 
        font-weight: 300;
    }
}


/* Правый блок с изображением */
.right-box-home {
    flex: 1;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.image-home, .image-home-contact {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: var(--color-white);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.image-forhome {
    position: absolute; 
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center center;
    opacity: 0;
    transform: translateX(24px) translateY(16px) scale(1.1);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none; 
}
.image-forhome.active {
    opacity: 1;
}
.image-forhome:nth-child(1) {
    opacity: 1; 
}


/* Блок контактов */
.contacts-home {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: -100%; 
    width: 100%;
    height: 100%;
    background: var(--color-white);
    padding: 80px 20px;
    z-index: 20;
    transition: right 0.25s ease-in-out;
}
.contacts-home.active {
    right: 0; 
}

.contacts-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    text-align: center;
    width: 100%;
}
.contact-info {
    font-size: 1.2rem;
    line-height: 1;
}
.contacts-content h2 {
    font-family: 'ZilapMinimalist', Arial, sans-serif;
    font-size: 3.0rem;
    margin-bottom: 0.5rem;
    color: var(--color-yellow);
    font-weight: lighter;
    font-style: normal;
}
.contacts-content h3 {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-yellow);
    font-weight: 300;
    font-style: normal;
}
.contact-info p {
    margin: 1rem 0;
}
.contact-info a {
    color: inherit; 
    text-decoration: none; 
    font-family: inherit; 
    font-size: inherit; 
    font-weight: inherit;
}

.image-forhome-contact {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    max-width: 400px;
    pointer-events: none;
}

.contact-social {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: 2rem;
}
.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text1);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.social-icon {
    width: 36px;
    height: 36px;
    filter: invert(39%) sepia(8%) saturate(504%) hue-rotate(14deg) brightness(94%) contrast(84%);
}
.social-link:hover .social-icon {
    filter: invert(67%) sepia(90%) saturate(826%) hue-rotate(359deg) brightness(102%) contrast(95%);
}


/* Останавливаем анимацию картинок когда открыты контакты */
.right-box-home.contacts-open .image-home {
    opacity: 0.3;
    transition: opacity 2.0s ease;
}
.right-box-home.contacts-open .image-forhome {
    animation: none !important;
}

/* Анимация для появления контактов */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
    @media (max-width: 768px), (max-height: 500px) {
        .right-box-home {
            height: 66vh;
        }
        .contacts-home {
            justify-content: flex-start;
        }
        .contacts-content {
            justify-content: flex-start;
        }
        .contact-info {
            font-size: 1.2rem;
        }
        .contacts-content h2 {
            display: none;
        }
        .contacts-content h3 {
            font-size: 1.1rem;
            text-align: left;
            margin-bottom: 0.1rem;
        }
        .image-forhome-contact {
            max-width: 260px;
        }
    }




/** ГАЛЕРЕЯ РАБОТ */

.head-gallery {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    background-color: var(--color-yellow);
    position: relative;
    margin-bottom: var(--spacing-block);
}
.gallery-navigation {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    max-width: var(--width);
    padding: 20px var(--spacing-block) 30px;
    height: 100%;
}
@media (max-width: 910px) {
    .head-gallery {
        margin-bottom: 10px;
    }
    .gallery-navigation {
        flex-direction: column;
        align-items: center; 
        justify-content: center; 
        padding: 6px 10px 20px;
    }
}

.head-gallery-logo {
    display: flex;
    margin-right: 20px;
}
.image-gallery-logo {
    display: flex;
    width: 140px;
    height: auto;
}
@media (max-width: 910px) {
    .head-gallery-logo {
        order: 1; 
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        margin-right: 0px;
        margin-bottom: 10px;
        z-index: 10;
    }
    .image-gallery-logo {
        width: 150px;
    }
}

.head-tags {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 1;
    min-width: 350px;
    flex-wrap: wrap;
    margin-right: 20px;
    gap: 4px;
}
.tag-btn {
    padding: 8px 10px;
    border: 1px solid var(--color-white);
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.8em;
    color: var(--color-white);
    transition: all 0.3s ease;
}
.tag-btn:hover,
.tag-btn.active {
    background: var(--color-yellow);
    color: var(--color-white);
    border-color: var(--color-yellow);
}
@media (max-width: 910px) {
    .head-tags {
        padding: 0 10px;
        margin-right: 0px;
        min-width: 100px;
        order: 4; 
    }
}

.head-gallery-infobox {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    height: 100%;
    margin-right: 160px;
    margin-bottom: 10px;
}
.head-gallery-titile h1 {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    font-family: 'ZilapMinimalist', Arial, sans-serif;
    font-size: 2.2em;
}
.head-gallery-info {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    font-size: 0.9em;
}
@media (max-width: 910px) {
    .head-gallery-infobox {
        width: 100%;
        order: 2; 
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        margin-right: 0px;
        z-index: 10;
    }
    .head-gallery-titile h1 {
        align-items: flex-start;
        text-align: left;
    }
    .head-gallery-info {
        display: none;
    }
}
@media (max-width: 748px) {
    .head-gallery-infobox {
        display: none;
    }
}

.head-gallery-image {
    display: flex;
    position: absolute;
    right: 0px;
    overflow: hidden;
    pointer-events: none;
}
.image-header-gallery {
    display: flex;
    transform: rotate(-20deg) translateX(10px); 
    width: 240px;
    height: auto;
    z-index: 20;
}
@media (max-width: 910px) {
    .head-gallery-image {
        order: 3; 
        z-index: 0;
    }
    .image-header-gallery {
        display: flex;
        transform: rotate(-20deg) translateY(30px) translateX(100px); 
    }
}

.gallery-main-block {
    margin: 0 auto;
    width: 100%;
    max-width: var(--width);
    padding: 0px var(--spacing-block);
}
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 30px;
}
@media (max-width: 1060px) {
    .gallery-main-block {
        padding: 0px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}
@media (max-width: 500px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.work-item {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 580; 
    overflow: hidden;
    margin-bottom: 10px;
}
.work-item--wide {
    grid-column: 1 / -1; 
    aspect-ratio: 1316 / 210;
}
.work-galery-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    text-decoration: none;
    color: inherit;
}
.work-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-color);
    font-family: 'Comfortaa', Arial, sans-serif;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}
.work-title {
    font-size: 1.6em;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 20px;
    padding: 0 20px;
}
.work-description {
    font-size: 1.0em;
    padding: 0 20px;
    line-height: 1.6;
}
.work-item:hover .work-overlay {
    opacity: 1;
}
.work-item:hover .work-image {
    opacity: 0;
}
@media (max-width: 768px) {
    .work-item--wide {
        aspect-ratio: 800 / 400; 
    }
    .work-item:hover .work-image {
        opacity: 1;
    }
    .work-overlay {
        display: none;
    }
    .work-title {
        font-size: 1.2em;
    }
    .work-description {
        font-size: 0.8em;
    }
}

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




/** КОНТАКТЫ */

.contacts-base-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contacts-block {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}
.contacts-container {
    display: flex;
    width: 100%;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.contacts-block-image {
    max-width: 400px;
}
.contacts-block-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: right;
    height: 100%;
}
.contact-info h2 {
    color: var(--color-yellow);
    font-family: 'Comfortaa', Arial, sans-serif;
    font-weight: lighter;
    font-size: 1.0em;
}
.contact-block-social {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .contacts-block {
        margin: 10px 0;
        padding-bottom: 40px;
    }
    .contacts-container {
        flex-direction: column;
    }
    .contacts-block-image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80%;
    }
    .contacts-block-info {
        text-align: center;
    }
    .contact-block-social {
        align-items: center;
        justify-content: center;
    }
}



/** SEO БЛОК */

.seo-info-block {
    display: flex;
    width: 100%;
    max-width: var(--width);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-block) 30px;
    margin-top: 20px;
}
.seo-image-block {
    margin-right: 20px;
}
.image-seo {
    width: 200px;
    height: auto;
    pointer-events: none;
}
.seo-text-block {
    flex: 1;
    height: 100%;
    justify-content: flex-end;
    align-items: flex-end;
}
.seo-title {
    color: var(--color-yellow);
    font-family: 'Comfortaa', Arial, sans-serif;
    font-weight: lighter;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.seo-text-block p {
    font-size: 0.8em;
    margin-bottom: 0.5em;     
    line-height: 1.1;         
}

@media (max-width: 768px) {
    .seo-info-block {
        display: none;
    }
}



/* БЛОК ОШИБОК */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 40px 0px;
}

/* Текстовая часть */
.error-message {
    text-align: center;
}
.error-title {
    font-family: 'Comfortaa', Arial, sans-serif;
    font-size: 2.8rem;
    color: var(--color-yellow);
    font-weight: 700;
}

/* Блок с картинкой */
.error-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: var(--width);
}
.error-image-container {
    position: relative;
    width: 50%;
}
.main-error-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Нижние кнопки навигации */
.error-navigation {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    background-color: var(--color-yellow);
    padding: 20px;
}
.error-btn {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--color-white);
    font-size: 1.0rem;
    font-weight: 300;
    transition: all 0.3s ease;
    max-width: 240px;
    min-width: 140px;
    border: 1px solid var(--color-white);
}
.error-btn:hover {
    background: var(--color-white);
    color: var(--color-yellow);
}

/* Адаптивность */
@media (max-width: 768px) {
    .error-container {
        justify-content: space-between;
        height: 100%;
    }
    .error-image-container {
        position: relative;
        width: 100%;
    }
    .error-navigation {
        gap: 16px;
        background-color: var(--color-white);
        padding: 20px;
    }
    .error-btn {
        width: 100%;
        max-width: 100%;
        background-color: var(--color-yellow);
        border: 1px solid var(--color-yellow);
        color: var(--color-white);
    }
}