.template {
    position: relative;
    color: #1B1B1B;
    margin-top: -110px;
    background: #F0F0F0;
    margin-bottom: 95px;
}

/* Хлебные крошки */
.template__breadcrumbs {
    position: relative;
    padding: 110px 0 0;
    z-index: 1;
}

.template__breadcrumbs ol {
    display: flex;
    color: rgba(27, 27, 27, 0.4);
    font-size: 12px;
    list-style: none;
    padding: 0 40px;
    margin-bottom: 134px;
    cursor: default;
}

.template__breadcrumbs a {
    transition: all .3s ease-in-out;
}

.template__breadcrumbs a:after {
    content: '/';
    color: rgba(27, 27, 27, 0.4);
    margin: 0 6px;
}

.template__breadcrumbs a:hover {
    color: rgba(27, 27, 27, 1);
}

/* Главный баннер */
.template-banner {
    height: calc(100svh + 110px);
    position: relative;
    overflow: hidden;
    background: #F7F5F1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.template-banner__main {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
    padding-bottom: 58px;
}

.template-banner__link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    text-transform: none;
    background: conic-gradient(from 73deg at 15.02% 100%, rgba(255, 255, 255, 0.05) 0deg, rgba(48, 48, 48, 0.05) 360deg);
    border: 1px solid rgba(239, 239, 239, 0.1);
    padding: 12px;
}

.template-banner__title {
    font-family: 'Jost';
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
}

.template-banner__img {
    position: relative;
    width: 50%;
    margin: 0 auto;
    bottom: 0;
    z-index: 1;
}

.template-banner__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

.template-banner__info {
    position: absolute;
    left: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-size: 14px;
    z-index: 2;
}

.template-banner__info p {
    max-width: 375px;
}

.template-banner__tags {
    max-width: 430px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 5px;
}

.template-banner__tags li {
    position: relative;
    text-transform: uppercase;
    background: conic-gradient(from 73deg at 15.02% 100%, rgba(255, 255, 255, 0.05) 0deg, rgba(48, 48, 48, 0.05) 360deg);
    border: 1px solid rgba(27, 27, 27, 0.1);
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.1), inset 0px 4px 4px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 12px;
    cursor: default;
    overflow: hidden;
}

.template-banner__tags li::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.35),
            transparent
    );
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.template-banner__tags li:hover::after {
    transform: translateX(300%) skewX(-20deg);
}

.template-banner__review {
    position: absolute;
    right: 40px;
    bottom: 40px;
    font-size: 14px;
    background: conic-gradient(from 47deg at 28.6% 100%, rgba(163, 163, 163, 0.05) 0deg, rgba(48, 48, 48, 0.05) 360deg);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(27, 27, 27, 0.05);
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 50px;
    z-index: 2;
}

.template-banner__review-decor {
    position: absolute;
    right: -20px;
    bottom: -20px;
    animation: rotation 20s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.review-client {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.review-client__name {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.review-client__title {
    text-transform: lowercase;
    opacity: 0.5;
}

.template-banner__review-text {
    max-width: 390px;
    margin-bottom: 30px;
}

.template-banner__review-link {
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}

.template-banner__review-link span {
    text-decoration: underline;
}

.template-banner__review-link span:hover {
    text-decoration: none;
}

/* Блок "О бренде" */
.template-about {
    display: flex;
    justify-content: space-between;
    gap: 70px;
    background: #FFFFFF;
    border-radius: 30px;
    padding: 70px 80px;
    margin: 20px;
    overflow: hidden;
}

.template-about__title {
    position: relative;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.template-about__title h2 {
    font-size: 20px;
    font-weight: 700;
}

.template-about__title span {
    position: absolute;
    top: -77px;
    left: -44px;
    font-family: 'Jost';
    color: rgba(29, 29, 29, 0.03);
    font-size: 150px;
    white-space: nowrap;
    pointer-events: none;
}

.template-about__info {
    max-width: 685px;
}

.template-about__info h3 {
    font-family: 'Jost';
    font-size: 40px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.template-about__info h4 {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.template-about__info p {
    max-width: 415px;
    font-size: 14px;
    margin-bottom: 40px;
}

.template-about__details {
    max-width: 415px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-size: 14px;
    padding-top: 70px;
}

.template-about__details--mobile {
    display: none;
}

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

.template-about__details-block h4 {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}

.template-about__details-block ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    list-style: none;
}

/* Блок с видео */
.template-reels {
    background: #112317;
    border-radius: 30px;
    padding: 120px;
    margin: 20px;
    overflow: hidden;
    position: relative;
}

.template-reels__video {
    width: 100%;
    aspect-ratio: 0.5;
    border-radius: 16px;
    overflow: hidden;
}

.template-reels__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-reels__nav {
    display: none;
}

.template-reels .template-reels__button--prev,
.template-reels .template-reels__button--next {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.template-reels .template-reels__button--prev {
    left: 15px;
}

.template-reels .template-reels__button--next {
    right: 15px;
}

.template-reels .template-reels__button--prev.swiper-button-disabled,
.template-reels .template-reels__button--next.swiper-button-disabled {
    opacity: 0.5;
    cursor: default;
}

/* Блок "Этапы работ" */
.template-steps {
    display: flex;
    gap: 40px;
    margin: 20px;
}

.template-steps__content {
    width: calc(50% - 20px);
    background: #F7F5F1;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.template-steps__content-text{
    padding: 80px;
}

.template-steps--2 .template-steps__content {
    background: #FFFFFF;
}

.template-steps__title {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.template-steps__block {
    max-width: 415px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
    margin-bottom: 60px;
}

.template-steps__block h3 {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.template-steps__block-bottom {
    position: relative;
    bottom: 0;
    width: 100%;
    border-radius: 0 0 30px 30px;
}
.template-steps__img {
    width: calc(50% - 20px);
    aspect-ratio: 1;
    border-radius: 30px;
    overflow: hidden;
}

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

/* Галерея для десктопа */
.template-gallery--desktop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px;
}

.template-gallery--desktop .template-gallery__img {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
}

.template-gallery--desktop .template-gallery__img:nth-child(5n + 1),
.template-gallery--desktop .template-gallery__img:nth-child(5n + 5) {
    grid-column: span 2;
    border-radius: 30px;
}

.template-gallery--desktop .template-gallery__img:nth-child(5n + 3) {
    grid-row: span 2;
}

.template-gallery--desktop .template-gallery__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Галерея для мобилки */
.template-gallery--mobile {
    display: none;
}

/* Баннер-фото */
.template-banner-img {
    border-radius: 30px;
    margin: 20px;
    overflow: hidden;
}

.template-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Блок с технологиями и интеграциями */
.template-tools {
    display: flex;
    gap: 40px;
    margin: 20px;
}

.template-tools__img {
    width: calc(50% - 20px);
    border-radius: 30px;
    overflow: hidden;
}

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

.template-tools__content {
    width: calc(50% - 20px);
    background: #FFFFFF;
    border-radius: 30px;
    padding: 60px 80px;
}

.template-tools__block {
    max-width: 415px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 14px;
    margin-bottom: 60px;
}

.template-tools__block h3 {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.template-tools__block ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.template-tools__block ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    font-size: 10px;
    text-transform: uppercase;
    cursor: default;
}

.template-tools__block ul li img {
    transition: transform 0.25s ease;
    will-change: transform;
}

.template-tools__block ul li:hover img {
    transform: scale(1.08);
}

.swiper {
    overflow: hidden;
}
@media (max-width: 1750px) {
    .template-banner__review {
        padding: 40px;
        max-width: 430px;
    }
    .template-banner__tags {
        max-width: 380px;
    }
}
@media (max-width: 1650px) {
    .template-banner__img {
        width: 45%;
    }
    .template-about__title span {
        font-size: 130px;
        top: -60px;
    }
}
@media (max-width: 1440px) {
    /* Блок с видео */
    .template-reels__nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
    }
    .template-banner__review {
        padding: 30px;
        max-width: 400px;
    }
    .template-banner__tags {
        max-width: 340px;
    }
    .template-banner__img {
        width: 40%;
    }
    .template-about__title span {
        font-size: 100px;
        top: -40px;
        left: -34px;
    }
    .template-about__info h3 {
        font-size: 32px;
    }
    .template-reels__pagination{
        display: none;
    }
}
@media (max-width: 1250px) {
    .template-banner__review {
        padding: 30px;
        max-width: 350px;
    }
    .template-banner__tags {
        max-width: 300px;
    }
}

@media (max-width: 1024px) {
    /* Главный баннер - спускаем блоки под фото в строку */
    .template-banner {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .template-banner__main {
        order: 1;
        padding-bottom: 20px;
    }

    .template-banner__img {
        order: 2;
        width: calc(100% + 120px);
        margin-left: -60px;
        margin-right: -60px;
        position: relative;
    }

    .template-banner__review {
        position: relative;
        order: 3;
        right: auto;
        bottom: auto;
        margin: 30px auto;
        max-width: 90%;
    }

    .template-banner__info {
        position: relative;
        order: 4;
        left: auto;
        bottom: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 20px 30px 40px;
    }

    .template-banner__info p {
        max-width: 45%;
        margin: 0;
    }

    .template-banner__tags {
        max-width: 350px;
        justify-content: flex-end;
    }

    /* Этапы работ */
    .template-steps {
        gap: 20px;
    }

    .template-steps__content-text {
        padding: 40px 30px;
    }

    .template-steps__block {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .template-steps__block h3 {
        font-size: 18px;
    }

    .template-steps__block p {
        font-size: 12px;
    }

    /* О бренде */
    .template-about {
        flex-direction: column;
        padding: 30px 30px;
        gap: 30px;
    }

    .template-about__info h3 {
        font-size: 24px;
    }

    .template-about__info p {
        max-width: 100%;
    }

    .template-about__title span {
        font-size: 70px;
        top: -35px;
        left: -20px;
    }

    .template-about__details {
        max-width: 100%;
        padding-top: 0;
    }

    /* Технологии */
    .template-tools {
        gap: 20px;
    }

    .template-tools__content {
        padding: 30px 30px;
    }

    .template-tools__block {
        max-width: 100%;
    }

    .template-tools__block ul li img {
        width: 40px;
        height: 40px;
    }

    /* Галерея */
    .template-gallery--desktop {
        gap: 15px;
        margin: 15px;
    }
}
@media (max-width: 768px) {
    .template {
        margin-top: -85px;
        margin-bottom: 70px;
    }
    /* Хлебные крошки */
    .template__breadcrumbs {
        padding: 85px 20px 0;
    }

    .template__breadcrumbs ol {
        padding: 0;
        margin-bottom: 65px;
    }
    .template-banner{
        height: auto;
    }
    .template-banner__main {
        padding-bottom: 46px;
    }

    .template-banner__img img {
        width: 100%;
        display: block;
    }

    .template-banner__title {
        font-size: 24px;
        order: 1;
    }

    .template-banner__link {
        order: 2;
    }

    .template-banner__review {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 15px 15px 40px;
        padding: 40px 20px 38px;
        max-width: none;
    }

    .review-client__name {
        font-size: 14px;
    }

    .review-client__title {
        font-size: 12px;
    }

    .template-banner__review-link {
        font-size: 12px;
    }

    .template-banner__info {
        position: relative;
        flex-direction: column;
        left: auto;
        bottom: auto;
        padding: 0 27px 80px;
        gap: 30px;
        text-align: center;
    }
    .template-banner__info p{
        max-width: none;
    }
    .template-banner__tags li {
        padding: 11px 12px;
        font-size: 10px;
    }
    .template-banner__tags{
        justify-content: center;
    }
    .template-about {
        flex-direction: column;
        margin: -10px 0 0;
        position: relative;
        padding: 70px 10px 80px;
    }

    .template-about__title h2 {
        font-size: 18px;
        font-weight: 500;
    }

    .template-about__title span {
        font-size: 45px;
        top: -20px;
        left: 0;
    }
    .template-about__title {
        margin-bottom: 45px;
    }

    .template-about__info h3 {
        font-size: 24px;
    }

    .template-about__info p {
        max-width: 100%;
    }

    .template-about__details--desktop {
        display: none;
    }

    .template-about__details--mobile {
        display: flex;
        background: #FFFFFF;
        border-radius: 30px;
        padding: 70px 15px 80px;
        margin: 10px;
        max-width: none;
    }

    .template-reels {
        padding: 70px 75px 100px;
        margin: 10px 0;
    }

    .template-reels .template-reels__button--prev,
    .template-reels .template-reels__button--next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: auto;
        right: auto;
    }

    .template-reels .template-reels__button--prev {
        left: 10px;
    }

    .template-reels .template-reels__button--next {
        right: 10px;
    }

    .template-reels__nav {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 35px;
    }

    .template-reels__pagination {
        display: flex;
        justify-content: center;
        gap: 4px;
    }

    .template-reels__pagination .swiper-pagination-bullet {
        width: 20px;
        height: 4px;
        border-radius: 1px;
        background: rgba(255, 255, 255, 0.2);
        opacity: 1;
        transition: all 0.3s ease;
        margin: 0 !important;
    }

    .template-reels__pagination .swiper-pagination-bullet-active {
        width: 40px;
        background: #FFFFFF;
        opacity: 1;
    }

    .template-steps {
        flex-direction: column;
        gap: 10px;
        margin: 0;
    }

    .template-steps__content {
        width: 100%;
    }
    .template-steps__content-text {
        padding: 70px 15px 10px;
    }
    .template-steps__block {
        max-width: none;
    }
    .template-steps__block-bottom svg{
        height: 100%;
    }

    .template-steps__block-bottom{
        height: 30px;
    }

    .template-steps__block h3 {
        font-size: 18px;
        font-weight: 600;
    }

    .template-steps__img {
        width: 100%;
        aspect-ratio: 2/1.5;
    }

    /* Скрываем десктопную галерею, показываем мобильную */
    .template-gallery--desktop {
        display: none;
    }

    .template-gallery--mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 10px 0;
    }

    .template-gallery--mobile .template-gallery__img {
        background: #FFFFFF;
        overflow: hidden;
        width: 100%;
        border-radius: 30px;
    }

    .template-gallery--mobile .template-gallery__img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .template-gallery--mobile .template-gallery__row {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .template-gallery--mobile .template-gallery__row .template-gallery__img {
        width: calc(50% - 5px);
    }

    .template-banner-img {
        margin: 10px 0;
    }

    .template-tools {
        flex-direction: column;
        gap: 10px;
        margin: 0;
    }

    .template-tools__img {
        width: 100%;
    }

    .template-tools__content {
        width: 100%;
        padding: 70px 15px 10px;
        margin: 0;
    }
    .template-tools__block ul {
        gap: 15px;
    }

    .template-tools__block h3 {
        font-size: 18px;
    }

    .template-tools__block ul li {
        gap: 10px;
        font-size: 10px;
    }

    .template-tools__block ul li img {
        width: 50px;
        height: 50px;
    }
    .template-banner-img img {
        aspect-ratio: 2/1.65;
    }
}
@media (max-width: 400px){
    .template-about__title span {
        font-size: 30px;
        top: -15px;
    }
    .template-about__title h2 {
        font-size: 14px;
    }
}