/* Shared visual roles and values: assets/css/visual-tokens.css. */
.project-gallery-swiper {
    width: 100%;
    margin: 20px 0px;
    position: relative;
}

.project-gallery-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.project-gallery-swiper .swiper-button-next::after, .project-gallery-swiper .swiper-button-prev::after {
    transform: none !important;
}

.project-gallery-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 400px;
    padding: 10px;
    box-sizing: border-box;
}

.project-gallery-swiper .swiper-slide a {
    position: absolute;
    inset: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.project-gallery-swiper .project-video-slide__trigger {
    overflow: hidden;
    background: rgb(232, 239, 236);
}

.project-gallery-swiper .project-video-slide__trigger::after {
    content: "";
    position: absolute;
    inset: 0px;
    z-index: 1;
    background: rgba(17, 31, 27, 0.2);
    transition: background-color 0.2s;
}

.project-gallery-swiper .project-video-slide__trigger:hover::after, .project-gallery-swiper .project-video-slide__trigger:focus-visible::after {
    background: rgba(17, 31, 27, 0.3);
}

.project-gallery-swiper .project-video-slide__media {
    display: block;
    width: 100%;
    height: 100%;
    border: 0px;
    object-fit: cover;
    pointer-events: none;
}

.product-video-slide__placeholder, .project-video-slide__placeholder {
    background: rgb(223, 233, 229);
}

.project-video-slide__overlay {
    position: absolute;
    inset: 0px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgb(255, 255, 255);
    pointer-events: none;
}

.project-video-slide__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-surface);
    box-shadow: rgba(17, 31, 27, 0.24) 0px 10px 28px;
    color: var(--seacan-color-brand);
    transition: transform 0.2s;
}

.project-video-slide__trigger:hover .project-video-slide__play, .project-video-slide__trigger:focus-visible .project-video-slide__play {
    transform: scale(1.06);
}

.project-video-slide__label {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: rgba(17, 31, 27, 0.65) 0px 2px 12px;
}

.project-gallery-swiper .swiper-pagination {
    position: relative;
    margin-top: 15px;
    min-height: 12px;
    text-align: center;
}

.project-gallery-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-brand);
    opacity: 0.5;
    margin: 0px 5px;
}

.project-gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-brand);
}

.project-gallery-swiper .swiper-button-next, .project-gallery-swiper .swiper-button-prev {
    color: rgb(255, 255, 255);
    width: 44px;
    height: 44px;
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-brand);
    border-radius: 50%;
    margin-top: 0px;
    top: 48%;
    transform: translateY(-48%);
}

.project-gallery-swiper .swiper-button-next::after, .project-gallery-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.project-gallery-swiper .swiper-button-next:hover, .project-gallery-swiper .swiper-button-prev:hover {
    background: rgb(61, 102, 87);
}

.project-gallery-swiper .swiper-button-prev {
    left: 10px;
}

.project-gallery-swiper .swiper-button-next {
    right: 10px;
}

.project-gallery-swiper:not(.swiper-initialized) {
    overflow: hidden;
}

.project-gallery-swiper:not(.swiper-initialized) .swiper-wrapper {
    flex-wrap: nowrap;
    gap: 10px;
}

.project-gallery-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc(33.3333% - 6.66667px);
    width: calc(33.3333% - 6.66667px);
    min-width: 0px;
}

.project-gallery-swiper:not(.swiper-initialized) > .swiper-pagination {
    visibility: hidden;
}

.project-gallery-swiper:not(.swiper-initialized) > .swiper-button-next, .project-gallery-swiper:not(.swiper-initialized) > .swiper-button-prev {
    display: none;
}

@media (max-width: 1023px) {
    .project-gallery-swiper:not(.swiper-initialized) .swiper-slide {
        flex-basis: calc(50% - 5px);
        width: calc(50% - 5px);
    }
}

@media (max-width: 767px) {
    .project-gallery-swiper:not(.swiper-initialized) .swiper-slide {
        flex-basis: 100%;
        width: 100%;
    }
}

.cards-carousel {
    max-width: 1280px;
    margin: 0px auto;
    overflow: hidden;
}

.cards-grid {
    margin: 0px;
    display: flex;
    gap: 1rem;
    transition: transform 0.45s;
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
}

.cards-grid.is-dragging {
    cursor: grabbing;
}

.cards-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 0.8rem;
}

.cards-btn {
    width: 34px;
    height: 34px;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    border-radius: 50%;
    background: rgb(45, 85, 81);
    color: rgb(255, 255, 255);
    font-size: 1.3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cards-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.cards-page-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.cards-page-dot {
    width: 8px;
    height: 8px;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    border-radius: var(--seacan-radius-card);
    background: rgba(44, 67, 78, 0.35);
    padding: 0px;
    cursor: pointer;
}

.cards-page-dot.active {
    width: 20px;
    border-radius: var(--seacan-radius-card);
    background: rgb(255, 143, 0);
}

.container-card {
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-surface);
    border-radius: var(--seacan-radius-card);
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex: 0 0 calc(50% - 0.5rem);
}

.container-card:hover {
    transform: none;
    box-shadow: none;
}

.card-media {
    position: relative;
    background: transparent;
    border-radius: 22px;
    overflow: hidden;
    user-select: none;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.slider-container.is-dragging {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16 / 8.2;
    background: rgb(44, 95, 122);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    pointer-events: none;
}

.slider-btn {
    display: none;
}

.slider-btn:hover {
    background: transparent;
    transform: none;
}

.btn-prev {
    left: 12px;
}

.btn-next {
    right: 12px;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 9px;
    z-index: 12;
    background: rgba(93, 97, 100, 0.55);
    padding: 9px 13px;
    border-radius: 999px;
    width: fit-content;
    backdrop-filter: blur(5px);
}

.dot {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    padding: 0px;
}

.dot.active {
    background: rgb(255, 143, 0);
    width: 9px;
    border-radius: 50%;
    box-shadow: none;
}

.badge-size {
    display: none;
}

.card-content {
    padding: 1.5rem 0px 0.2rem;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
}

.title {
    font-size: clamp(1.32rem, 2.05vw, 1.86rem);
    font-weight: 650;
    letter-spacing: normal;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--seacan-color-text);
}

.spec-list {
    margin: 0px 0px 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.spec-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 1.1rem;
    line-height: 1.4;
}

.spec-label {
    font-weight: 700;
    min-width: 0px;
    color: var(--seacan-color-text);
    margin-right: 0.25rem;
}

.spec-value {
    color: var(--seacan-color-text);
    font-weight: 400;
}

.spec-value strong {
    font-weight: 700;
    color: rgb(15, 47, 58);
}

.price {
    margin: 0px 0px 1.25rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--seacan-color-text);
    background: transparent;
    padding: 0px;
    border-radius: 0px;
    width: auto;
    line-height: 1.4;
}

.price::before {
    content: "Стоимость:";
    font-weight: 700;
    color: var(--seacan-color-text);
    margin-right: 0.25rem;
}

.order-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-action);
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.3rem 0.3rem 0.3rem 1rem;
    border-radius: 60px;
    text-decoration: none;
    transition: 0.2s;
    width: fit-content;
    margin-top: auto;
    cursor: pointer;
    line-height: 1.2;
}

.order-link:hover {
    background: rgb(241, 127, 0);
    color: rgb(255, 255, 255);
    box-shadow: rgba(241, 127, 0, 0.25) 0px 5px 12px;
}

.order-link::after {
    content: "↗";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgb(241, 242, 241);
    color: var(--seacan-color-text);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
}

.order-link:focus-visible {
    outline-color: var(--seacan-color-action);
    outline-style: solid;
    outline-width: 2px;
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .title {
        font-size: 1.6rem;
    }

    .spec-item, .price {
        font-size: 1.02rem;
    }

    .order-link {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        gap: 0.75rem;
    }

    .container-card {
        padding: 1rem;
        border-radius: var(--seacan-radius-card);
        flex-basis: 100%;
    }

    .card-content {
        padding-top: 1.1rem;
    }

    .title {
        font-size: 1.45rem;
    }

    .spec-item, .price {
        font-size: 0.97rem;
    }

    .order-link {
        font-size: 0.95rem;
        padding-left: 1rem;
    }

    .order-link::after {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .spec-item {
        font-size: 0.92rem;
    }

    .order-link {
        width: 100%;
        justify-content: space-between;
    }
}

.realized-projects-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: var(--seacan-space-5);
}

.realized-projects-section__title {
    max-width: 860px;
    margin: 0px;
    color: var(--seacan-color-text);
}

.realized-projects-list {
    display: grid;
    grid-template-columns: minmax(0px, 1fr);
    gap: 24px;
}

.realized-project {
    display: grid;
    grid-template-columns: minmax(0px, 1.1fr) minmax(390px, 0.9fr);
    align-items: start;
    min-width: 0px;
    overflow: hidden;
    border-width: 1px;
    border-style: solid;
    border-top-color: var(--seacan-color-border);
    border-right-color: var(--seacan-color-border);
    border-bottom-color: var(--seacan-color-border);
    border-left-color: var(--seacan-color-border);
    border-image: none;
    border-radius: var(--seacan-radius-card);
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-surface);
    box-shadow: none;
}

.realized-project[hidden], .realized-project.is-hidden {
    display: none;
}

.realized-project--without-gallery {
    grid-template-columns: minmax(0px, 1fr);
}

.realized-project--without-gallery .realized-project__content {
    max-width: 820px;
}

.realized-project__media {
    min-width: 0px;
    min-height: 0px;
    aspect-ratio: 4 / 3;
    border-radius: 0px;
    background: rgb(223, 232, 228);
}

.realized-project__media .slider-container, .realized-project__media .slider-track, .realized-project__media .slide {
    height: 100%;
    min-height: 0px;
}

.realized-project__media .slider-container {
    cursor: grab;
}

.realized-project__media .slider-container.is-dragging {
    cursor: grabbing;
}

.realized-project__media .slide {
    aspect-ratio: auto;
    background: rgb(223, 232, 228);
}

.realized-project__media .realized-project__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.realized-project__media .slider-btn {
    position: absolute;
    top: 50%;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0px;
    border-width: 1px;
    border-style: solid;
    border-top-color: var(--seacan-color-border);
    border-right-color: var(--seacan-color-border);
    border-bottom-color: var(--seacan-color-border);
    border-left-color: var(--seacan-color-border);
    border-image: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    color: var(--seacan-color-brand);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color 160ms, color 160ms;
}

.realized-project__media .slider-btn:hover {
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-brand);
    color: rgb(255, 255, 255);
    transform: translateY(-50%);
}

.realized-project__media .btn-prev {
    left: 18px;
}

.realized-project__media .btn-next {
    right: 18px;
}

.realized-project__media .slider-dots {
    bottom: 18px;
    max-width: calc(100% - 36px);
    overflow: hidden;
    padding: 8px 11px;
    background: rgba(23, 38, 38, 0.6);
}

.realized-project__media .dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
}

.realized-project__media .dot.active {
    width: 22px;
    border-radius: 6px;
    background-image: initial;
    background-position: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: var(--seacan-color-action);
}

.realized-project__content {
    display: flex;
    flex-direction: column;
    min-width: 0px;
    padding: 24px;
}

.realized-project__type {
    margin: 0px 0px 13px;
    color: var(--seacan-color-brand);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0px;
}

.realized-project__title {
    margin: 0px;
    color: var(--seacan-color-text);
}

.realized-project__description {
    margin-top: 14px;
    color: var(--seacan-color-muted);
    font-size: 16px;
    line-height: 1.55;
}

.realized-project__description p {
    margin: 0px;
}

.realized-project__description p + p {
    margin-top: 10px;
}

.realized-project__specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0px;
    margin: 18px 0px 0px;
    padding: 0px;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: var(--seacan-color-border);
}

.realized-project__spec {
    display: grid;
    grid-template-columns: minmax(0px, 1fr);
    align-content: start;
    gap: 5px;
    margin: 0px;
    padding: 13px 14px;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: var(--seacan-color-border);
}

.realized-project__spec:first-child {
    padding-left: 0px;
}

.realized-project__spec:last-child {
    padding-right: 0px;
    border-right: 0px;
}

.realized-project__spec dt, .realized-project__spec dd {
    margin: 0px;
    font-size: 15px;
    line-height: 1.4;
}

.realized-project__spec dt {
    color: var(--seacan-color-muted);
    font-weight: 500;
}

.realized-project__spec dd {
    min-width: 0px;
    color: var(--seacan-color-text);
    font-weight: 600;
}

.realized-project__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 16px 18px;
    border-width: 1px;
    border-style: solid;
    border-top-color: var(--seacan-color-border);
    border-right-color: var(--seacan-color-border);
    border-bottom-color: var(--seacan-color-border);
    border-left-color: var(--seacan-color-border);
    border-image: none;
    border-radius: var(--seacan-radius-card);
    background: rgb(241, 246, 243);
}

.realized-project__price span {
    color: var(--seacan-color-muted);
    font-size: 14px;
    font-weight: 500;
}

.realized-project__price strong {
    color: var(--seacan-color-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

.realized-project__action {
    margin-top: auto;
    width: 100%;
    justify-content: space-between;
}

.realized-project__description + .realized-project__action, .realized-project__title + .realized-project__action, .realized-project__price + .realized-project__action, .realized-project__specs + .realized-project__action {
    margin-top: 20px;
}

.realized-projects-section__more {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.realized-projects-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    letter-spacing: 0px;
    cursor: pointer;
    transition: background-color 160ms, color 160ms;
}

.realized-projects-load-more[hidden] {
    display: none;
}

@media (max-width: 1100px) {
    .realized-project {
        grid-template-columns: minmax(0px, 1fr) minmax(360px, 1fr);
    }

    .realized-project__content {
        padding: 24px;
    }
}

@media (max-width: 1024px) {
    .realized-project {
        grid-template-columns: minmax(0px, 1fr);
    }

    .realized-project__media {
        min-height: 0px;
        aspect-ratio: 4 / 3;
    }

    .realized-project__media .slider-container, .realized-project__media .slider-track, .realized-project__media .slide {
        min-height: 0px;
        height: 100%;
    }

    .realized-project__content {
        padding: 24px;
    }

    .realized-project__action {
        margin-top: 28px;
    }
}

@media (max-width: 600px) {
    .realized-projects-section__header {
        margin-bottom: var(--seacan-space-5);
    }

    .realized-projects-list {
        gap: 24px;
    }

    .realized-project__media .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }

    .realized-project__media .btn-prev {
        left: 12px;
    }

    .realized-project__media .btn-next {
        right: 12px;
    }

    .realized-project__content {
        padding: 20px;
    }

    .realized-project__specs {
        grid-template-columns: minmax(0px, 1fr);
    }

    .realized-project__spec {
        grid-template-columns: minmax(0px, 1fr);
        gap: 4px;
        padding: 11px 0px;
        border-right: 0px;
        border-bottom-width: 1px;
        border-bottom-style: solid;
        border-bottom-color: var(--seacan-color-border);
    }

    .realized-project__spec:last-child {
        border-bottom: 0px;
    }

    .realized-project__price {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .realized-project__price strong {
        font-size: 21px;
        text-align: left;
    }

}
