/* Songle page */
.project-single__title {
    margin-top: 64px;
}

.project-single__title h1 {
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -4%;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
    margin-bottom: 13px !important;
}

@media (max-width: 768px) {
    .project-single__title h1 {
        font-size: 22px;
        line-height: 1;
    }
}

.project-single__main-banner {
    position: relative;
    width: 100%;
    height: 100%;
    height: 600px;
}

.project-single__main-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 5;
}

.project-single__main-banner .wrapper {
    height: 100%;
    position: relative;
    z-index: 10;
}

.project-single__main-banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-single__main-banner-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.project-single__main-banner-title {
    width: 100%;
    max-width: 60%;
    font-size: 64px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -4%;
    color: #fff;
    margin: auto 0 32px 0;
}

@media screen and (max-width: 1720px) and (min-width: 1100px) {
    .project-single__main-banner-title {
        max-width: 100%;
        font-size: 48px;
    }
}

@media screen and (max-width: 1100px) {
    .project-single__main-banner-title {
        max-width: 100%;
        font-size: 22px;
    }
}

.project-single__main-banner-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 39px;
}

@media (max-width: 768px) {
    .project-single__main-banner-tags {
        margin-top: 8px;
        gap: 8px;
    }
}

.project-single__main-banner-tags a {
    border-radius: 24px;
    border: 1px solid #000;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 14px 20px;
    font-size: 15px;
    line-height: 1;
    color: #000;
    transition: all 0.3s ease;
}

.project-single__main-banner-tags a:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #000;
    opacity: 1;
}

/* Single autor */
.project-single__autor-wrapper {
    margin-top: 84px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
}

.project-single__autor-image {
    grid-column: 1 / 6;
}

.project-single__autor-image.project-single__autor-image--mobile {
    display: none;
}

.project-single__autor-content {
    grid-column: 7 / 11;
}

.project-single__autor-descrioption {
    margin-top: 64px;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -1%;
}

.project-single__autor-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.project-single__autor-info .info-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -1%;
}

.project-single__autor-info .info__text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-single__autor-info .info__title {
    font-weight: 700;
}

@media (max-width: 768px) {
    .project-single__autor-wrapper {
        margin-top: 32px;
    }
    .project-single__autor-image {
        display: none;
    }

    .project-single__autor-image.project-single__autor-image--mobile {
        display: block;
        grid-column: 1 / 13;
        margin-top: 32px;
    }
    .project-single__autor-image.project-single__autor-image--mobile img {
        width: 100%;
    }
    .project-single__autor-content {
        grid-column: 1 / 13;
    }
    .project-single__autor-descrioption {
        margin-top: 32px;
    }
}
.project-single__default-block {
    margin-top: 64px;
}

.project-single__default-title {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.project-single__default-block.project-single__default-block--title,
.project-single__default-block.project-single__default-block--text {
    margin: 110px 0;
}

@media (max-width: 768px) {
    .project-single__default-block.project-single__default-block--title,
    .project-single__default-block.project-single__default-block--text {
        margin: 32px 0;
    }
}

/* Default blocks */
.project-single__default-block {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    margin: 64px 0;
}

@media (max-width: 768px) {
    .project-single__default-block {
        margin: 32px 0;
        gap: 18px 8px;
    }
}

.project-single__default-block.project-single__default-block--title > div,
.project-single__default-block.project-single__default-block--text > div {
    grid-column: 4 / 12;
    letter-spacing: -3%;
}

@media (max-width: 768px) {
    .project-single__default-block.project-single__default-block--title > div,
    .project-single__default-block.project-single__default-block--text > div {
        grid-column: 1 / 13;
    }
}

.project-single__default-block.project-single__default-block--title > div {
    font-weight: 700;
    font-size: 45px;
    line-height: 38px;
}

@media (max-width: 768px) {
    .project-single__default-block.project-single__default-block--title > div {
        font-size: 20px;
        line-height: 1;
    }
}

.project-single__default-block.project-single__default-block--text > div {
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
}

.project-single__default-block--image {
    justify-content: space-between;
    align-items: start;
}

.project-single__default-block--image .block-image {
    position: relative;
    grid-column: 1 / 7;
}

.project-single__default-block--image .block-image img {
    width: 100%;
}

.project-single__default-block--image .block-image__text {
    grid-column: 2 / 6;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
}

.project-single__default-block--image .block-image__text + .block-image {
    grid-column: 7 / 13;
}

.project-single__default-block--image .block-image + .block-image__text {
    grid-column: 8 / 12;
}

@media (max-width: 768px) {
    .project-single__default-block--image .block-image__text {
        grid-column: 1 / 13;
        order: 1;
    }
    .project-single__default-block--image .block-image + .block-image__text {
        grid-column: 1 / 13;
    }
    .project-single__default-block--image .block-image {
        grid-column: 1 / 13;
        order: 0;
    }
    .project-single__default-block--image .block-image__text + .block-image {
        grid-column: 1 / 13;
    }
}

.project-single__default-block--image .block-image .swiper .swiper-wrapper {
    padding-bottom: 14px;
}

.project-single__default-block--image .block-image .swiper .swiper-pagination {
    bottom: 32px;
}

.project-single__default-block--image .block-image .swiper .swiper-pagination .swiper-pagination-bullet::after {
    display: none;
}

.project-single__default-block--image
    .block-image
    .swiper
    .swiper-pagination
    .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #000;
}

.project-single__default-block--image .block-image .swiper .button-prev,
.project-single__default-block--image .block-image .swiper .button-next {
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 22px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    height: 22px;
    transition: all 0.3s ease;
}

.project-single__default-block--image .block-image .swiper .button-prev:hover,
.project-single__default-block--image .block-image .swiper .button-next:hover {
    background-color: rgba(255, 255, 255, 1);
}

.project-single__default-block--image .block-image .swiper .button-prev svg,
.project-single__default-block--image .block-image .swiper .button-next svg {
    width: 12px;
    height: 12px;
}

.project-single__default-block--image .block-image .swiper .button-prev {
    left: 8px;
}

.project-single__default-block--image .block-image .swiper .button-next {
    right: 8px;
}

.project-single__gallery-block .swiper .swiper-slide,
.project-single__similar-list .swiper .swiper-slide {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
}

.project-single__gallery-block .swiper .swiper-slide {
    height: 600px;
}

@media (max-width: 768px) {
    .project-single__gallery-block .swiper .swiper-slide {
        height: initial;
    }

    .project-single__similar-list .card-project__title h3 {
        font-size: 18px;
        line-height: 1;
    }
}

.project-single__similar-list .button-next,
.project-single__similar-list .button-prev {
    transform: translateY(-100%) !important;
}

.project-single__gallery-block .swiper .swiper-slide img {
    height: 100%;
    width: auto;
}

.project-single__gallery-block .swiper .swiper-wrapper {
    padding-bottom: 20px;
}

.project-single__gallery-block .swiper .swiper-pagination {
    bottom: 28px;
}

.project-single__gallery-block .swiper .swiper-slide img {
    object-fit: contain;
}

@media (max-width: 768px) {
    .project-single__gallery-block .swiper .swiper-slide img {
        width: 100%;
        height: 100%;
    }
}

.project-single__gallery-block .swiper .swiper-pagination .swiper-pagination-bullet::after {
    display: none;
}

.project-single__gallery-block .swiper .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #000;
}

.project-single__collapse-block-title,
.project-single__similar-title {
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
}

.project-single__collapse-block-title h2,
.project-single__similar-title h2 {
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    margin: 0 !important;
}

.project-single__collapse-block-filters {
    display: flex;
    width: 100%;
    margin-top: 12px;
    gap: 24px;
}

@media (max-width: 768px) {
    .project-single__collapse-block-filters {
        flex-direction: column;
        gap: 2px;
    }
}

.project-single__collapse-block-products {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .project-single__collapse-block-products {
        margin-top: 24px;
        gap: 24px;
    }
}

.project-single__collapse-block-filters .default-checkbox {
    padding: 0;
}

.project-single__collapse-block-filters .default-checkbox:hover {
    background-color: transparent;
}

.project-single__collapse-block-footer {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .project-single__collapse-block-footer {
        margin-top: 24px;
    }
}

.project-single__collapse-block-footer .button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1;
}

/* Стили для скрытого состояния коллапс-блока */
.project-single__collapse-block-products-list--hidden {
    display: none;
}

.project-single__collapse-block {
    margin-top: 110px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .project-single__collapse-block {
        margin-top: 64px;
    }
}

.project-single__video-block {
    padding: 32px 0;
}

@media (max-width: 768px) {
    .project-single__video-block {
        padding: 16px 0;
    }
}

.project-single__video-block video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-single__text-block.card-project--text {
    margin: 32px 0;
    display: grid;
    align-items: flex-start;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
}

.project-single__text-block.card-project--text .card-project__content {
    grid-column: 2 / 13;
}

@media (max-width: 768px) {
    .project-single__text-block.card-project--text .card-project__content {
        margin: 32px 0;
        grid-column: 1 / 13;
        max-width: 220px;
        justify-content: flex-end;
        margin-left: auto;
    }

    .project-single__text-block.card-project--text .card-project__content h3 {
        font-size: 22px;
        line-height: 1;
    }
}

.project-single__similar {
    margin-top: 64px;
}

.project-single__similar-list {
    margin-top: 32px;
}

.project-single__similar-list .card-project__tag {
    padding: 16px 20px !important;
}

.project-single__similar-list img {
    width: 100%;
}

.project-single__similar-list .swiper .card-project__image {
    height: 590px;
}

@media (max-width: 768px) {
    .project-single__similar-list .swiper .card-project__image {
        height: auto;
    }
}

.project-single__similar-list .swiper .card-project__image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
    .project-single__similar-list .swiper .card-project__image img {
        height: auto !important;
    }
}

.project-single__catalog__list {
    display: grid;
    grid-template-columns: repeat(6, calc(16% + 2px));
    grid-gap: 64px 8px;
}

@media (max-width: 768px) {
    .project-single__catalog__list {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 24px 8px;
    }
}

/* Стили для кликабельных изображений */
.gallery-image {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.8;
}

/* Стили для модального окна */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.gallery-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.gallery-modal__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gallery-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gallery-modal__close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.gallery-modal__swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-modal__swiper .swiper-wrapper {
    height: 100%;
}

.gallery-modal__swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.gallery-modal__swiper .swiper-slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-modal__navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.gallery-modal__prev,
.gallery-modal__next {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.gallery-modal__prev:hover,
.gallery-modal__next:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.gallery-modal__prev svg {
    transform: rotate(180deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    .gallery-modal__navigation {
        padding: 0 10px;
    }

    .gallery-modal__close {
        top: 10px;
        right: 10px;
    }
}
.hide {
    display: none !important;
}

.project-single__main-banner-tags a {
    border-color: #000 !important;
}
