.page-template-template_weytec h1 {
    line-height: 1!important;
}
.w-top.ww {
    padding-top: 50px;
}
.solutions-wrapper {
    margin-top: 40px;
}
.weytec-solutions{
    width:100%;
    color:#fff;
}
.weytec-solutions h2{
    font-size: 25px;
    color: #fff;
    font-family: Circe-ExtraBold;
    font-weight: 700;
    text-transform: uppercase;
    line-height: normal;
    text-align: center;
    position: relative;
    display: inline-block;
}
.solutions-row {
    display:grid;
    gap:38px;
    margin-bottom:38px;
    position: relative;
}
.grid-2 .solutions-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.grid-3 .solutions-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.grid-2 .solutions-row:nth-child(odd){
    grid-template-columns: calc(50% + 15px) calc(50% - 53px);
}
.grid-2 .solutions-row:nth-child(even){
    grid-template-columns:calc(50% - 53px) calc(50% + 15px);
}
.solution-item{
    min-width:0;
}
.solution-card{
    min-height:350px;
    border:6px solid #39D4FF40;
    padding:25px;
    position:relative;
    transition:.35s;
    border-radius: 12px;
}
.solution-card:hover{
    border-color:#00d9ff;
    box-shadow:0 0 25px rgba(0,217,255,.6);
}
.solution-card.opened{
    /* box-shadow: 0 0 20px rgba(0, 217, 255, .6); */
    z-index: 9;
    border: 6px solid #00d9ff;
    border-bottom: solid 2px transparent;
    background: transparent;
    border-radius: 12px 12px 0 0;
    min-height: 380px;
}
/*
 * Скруглённый стык карточки с раскрытым блоком. У первой карточки линия
 * уходит вправо, у последней — влево; у средней карточки работают оба стыка.
 */
@media (min-width: 992px) {
    .solution-item:not(:first-child) .solution-card.opened::before,
    .solution-item:not(:nth-last-child(2)) .solution-card.opened::after {
        content: "";
        position: absolute;
        /* Дополнительные 6px маскируют концы исходных пересекающихся линий. */
        bottom: -2px;
        z-index: 10;
        width: 24px;
        height: 24px;
        box-sizing: border-box;
        background: #121212;
        pointer-events: none;
    }
    .solution-item:not(:first-child) .solution-card.opened::before {
        left: -18px;
        background: radial-gradient(
            circle at 0 0,
            #121212 0 11px,
            #00d9ff 12px 17px,
            #121212 18px
        );
    }
    .solution-item:not(:nth-last-child(2)) .solution-card.opened::after {
        right: -18px;
        background: radial-gradient(
            circle at 100% 0,
            #121212 0 11px,
            #00d9ff 12px 17px,
            #121212 18px
        );
    }
    /* На внешнем крае маскируем верхний бордер нижнего блока и оставляем
       только одну непрерывную вертикальную линию. */
    .solution-item:first-child .solution-card.opened::before,
    .solution-item:nth-last-child(2) .solution-card.opened::after {
        content: "";
        position: absolute;
        bottom: -2px;
        z-index: 10;
        width: 18px;
        height: 18px;
        box-sizing: border-box;
        background: #121212;
        pointer-events: none;
    }
    .solution-item:first-child .solution-card.opened::before {
        left: -6px;
        border-left: 6px solid #00d9ff;
    }
    .solution-item:nth-last-child(2) .solution-card.opened::after {
        right: -6px;
        border-right: 6px solid #00d9ff;
    }
}
.solution-card.opened:hover {
    box-shadow: none;
}
.solution-card.opened h3{
    -webkit-text-stroke: 1px #00C8FF;
    text-stroke: 1px #00C8FF;
}
.solution-card h3{
    margin:0;
    font-size:25px;
    text-transform:uppercase;
    color: #fff;
}
.solution-img{
    height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.solution-img img{
    max-width:90%;
    max-height:150px;
    transition:.35s;
}
.solution-card:hover img{
    transform:scale(1.1);
}
.solution-btn {
    width:auto;
    position:absolute;
    bottom:20px;
    left:22px;
    background:#747984;
    color:#fff;
    border:0;
    padding: 12px 24px;
    border-radius:7px;
    line-height: 1;
    /*text-transform:uppercase;*/
    cursor:pointer;
    transition:.35s;
    font-size: 15px;

}
.solution-card:hover .solution-btn{
    /*transform:scale(1.08);*/
}
.solution-btn:hover{
    background:#ff751f;
}
.solution-hidden{
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    background: transparent;
    border: 6px solid #00d9ff;
    padding: 35px;
    /* 38px grid-gap + 12px радиуса: линии перекрываются без разрывов. */
    margin-top: -50px;
    position: relative;
    z-index: 5;
    border-radius: 12px;
}

/*
 * При открытии единый SVG-контур заменяет пересекающиеся бордеры карточки
 * и подробного блока. Благодаря этому фон обоих элементов остаётся прозрачным.
 */
.solution-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 10;
    pointer-events: none;
}
.solution-outline path {
    fill: none;
    stroke: #00d9ff;
    stroke-width: 6;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.solutions-row.solution-outline-active > .solution-item > .solution-card.opened,
.solutions-row.solution-outline-active > .solution-hidden {
    border-color: transparent;
}
.solutions-row.solution-outline-active .solution-card.opened::before,
.solutions-row.solution-outline-active .solution-card.opened::after {
    display: none;
}
.solution-description{
    line-height:1.7;
    margin-bottom:50px;
    font-size: 20px;
}
.solution-description p{
    color: #fff;
}
.features-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom: 50px;
}
.feature-item{
    border:1px solid #ff751f;
    padding:25px;
    text-align:center;
    transition:.3s;
    border-radius: 12px;
}
.solution-inner-title {
    color: #fff;
    margin-bottom: 30px;
    -webkit-text-stroke: 1px #00C8FF;
    text-stroke: 1px #00C8FF;
    font-size: 20px;
    text-transform: uppercase;
}
.feature-item p {
    color: #fff;
    font-size: 25px;
    margin-top: 20px;
    margin-bottom: 0;
}
.feature-item:hover{
    box-shadow:0 0 20px #ff751f;
}
.feature-item img{
    width:100px;
    height:100px;
}

.solution-tabs{
    display:flex;
    align-items:stretch;
    min-height:500px;
}
.tabs-content{
    flex:1;
    padding-left:80px;
    margin-top:30px;
    display:none;
}
.tabs-nav{
    width:auto;
    display:flex;
    flex-direction:row;
    gap:10px;
    flex:1;
    align-items:stretch;
}
.tab-link{
    width:105px;
    flex:0 0 105px;
    min-height:450px;
    background:transparent;
    border:1px solid #fff;
    color:#fff;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    padding:15px 16px;
    gap:20px;
    position: relative;
    z-index: 1;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    border-radius: 7px;
}
.tab-link:hover{
    border-color:#00d9ff;
    box-shadow:none;
    transform: scale(1.05);
    z-index: 2;
}
.tab-title {
    color: #fff;
    margin-bottom: 22px;
    font-size: 20px;
    text-transform: uppercase;
}
.tab-text, .tab-text p, .tab-text h2, .tab-text h3, .tab-text ul li {
    color: #fff;
    font-size: 20px;
}
.tab-link.active{
    border-color:#00d9ff;
    box-shadow:0 0 20px rgba(0,217,255,.8);
}
.plus-icon svg {
    fill: #fff;
    transition: fill .3s ease;
}
.tab-link:hover .plus-icon svg,
.tab-link.active .plus-icon svg{
    fill: #00d9ff;
}
.tab-name{
    writing-mode:vertical-rl;
    transform:rotate(180deg);
    text-transform:uppercase;
    font-size:22px;
    line-height:1.2;
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    -webkit-text-stroke: 1px transparent;
    text-stroke: 1px transparent;
    transition: -webkit-text-stroke-color .3s ease;
}
.tab-link:hover .tab-name,
.tab-link.active .tab-name{
    color: #fff;
    -webkit-text-stroke: 1px #00C8FF;
    text-stroke: 1px #00C8FF;
}
.tab-link:hover .plus-icon,
.tab-link.active .plus-icon{
    border-color:#00d9ff;
}
.tab-link:hover .plus-icon:before,
.tab-link:hover .plus-icon:after,
.tab-link.active .plus-icon:before,
.tab-link.active .plus-icon:after{
    background:#00d9ff;
}

/*******************************************************************************/
/*.active-tab-box{*/
/*    margin-bottom:30px;*/
/*}*/


/*.active-tab-title{*/
/*    color:#fff;*/
/*    font-size:25px;*/
/*    text-transform:uppercase;*/
/*    margin-bottom:20px;*/
/*    -webkit-text-stroke:1px #00C8FF;*/
/*}*/


/*.active-tab-content{*/
/*    color:#fff;*/
/*    font-size:20px;*/
/*}*/


/*.tabs-nav .tab-link[style*="display: none"]{*/
/*    display:none!important;*/
/*}*/
.tab-content-open{
    flex:1;
    min-width:0;
    min-height:450px;
    padding:20px;
    border:1px solid #00d9ff;
    border-radius:7px;
    box-sizing:border-box;
}

.tab-content-title{
    color:#fff;
    font-size:22px;
    text-transform:uppercase;
    margin-bottom:25px;
    -webkit-text-stroke:1px #00C8FF;
}

/* Название уже выводится сверху в .tab-content-title. */
.tab-content-open .tab-pane > .tab-title {
    display: none;
}


.tab-content-text,
.tab-content-text p,
.tab-content-text li{
    color:#fff;
    font-size:20px;
    line-height:1.5;
}

.tab-pane{
    display:none;
}

.tab-content-open .tab-pane{
    display:block;
}

@media(max-width:991px){
    .solutions-row{
        grid-template-columns:1fr!important;
    }
    /* В одну колонку карточка и раскрытый блок образуют единую рамку. */
    .solution-card.opened {
        border-bottom: 0;
    }
    .solution-hidden {
        margin-top: -38px;
        padding: 0 25px 25px;
        border-top: 0;
        border-radius: 0 0 12px 12px;
    }
    .features-grid{
        grid-template-columns:1fr;
    }
    .grid-2 .solutions-row:nth-child(odd){
        grid-template-columns:1fr;
    }
    .grid-2 .solutions-row:nth-child(even){
        grid-template-columns:1fr;
    }
    .weytec-theme {
        padding-top: 30px;
    }
    .w-top.ww {
        padding-top: 0;
    }
    .page-template-template_weytec .elementor-widget-heading h1.elementor-heading-title, .logo_container .site-title {
        font-size: 35px!important;
    }
}


@media(max-width:768px){
    .solution-tabs{
        display:block;
        min-height:0;
    }
    .tabs-content{
        display:none;
    }
    .tabs-nav{
        width:100%;
        display:flex;
        flex-direction:column;
        gap:10px;
        align-items:stretch;
    }
    .tab-link{
        width:100%;
        min-height:70px;
        height:auto;
        flex:0 0 auto;
        flex-direction:row;
        justify-content:flex-start;
        align-items:center;
        padding:15px 20px;
        gap:15px;
    }
    .tab-name{
        writing-mode:horizontal-tb;
        transform:none;
        font-size:18px;
        line-height:1.3;
        flex:1;
        display:block;
        text-align:left;
    }
    .plus-icon{
        flex:0 0 auto;
    }
    .plus-icon svg{
        width:30px;
        height:30px;
        display:block;
    }
    .tab-content-open{
        width:100%;
        flex:0 0 auto;
        min-width:0;
        min-height:0;
        padding:20px;
        box-sizing:border-box;
    }
}

@media(max-width:600px){
    .solution-card {
        display: flex;
        flex-direction: column;
    }
    .solution-btn {
        position: static;
        width: 100%;
        margin-top: 25px;
        left: auto;
        right: auto;
        bottom: auto;
        flex: 0 0 auto;
    }
}
