.sub-service {
    color: #FFFFFF;
}

.sub-service .container {
    width: 90%;
    max-width: 1664px;
    margin: 0 auto;
    padding: 128px 0 128px;
}
.sub-service .head-block {
    width: 100%;
    height: 256px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 40px;
    margin-bottom: 128px;
}
.sub-service .head-block img {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sub-service .head-block h1 {
    font-weight: 700;
    font-size: 96px;
    line-height: 131px;
    text-align: center;
}
.sub-service .text-block {
    font-weight: 500;
    font-size: 24px;
    line-height: 33px;
    color: #FFFFFF;
}
.sub-service .text-block ul {
    padding-left: 25px;
}
.sub-service .list-row-container {
    display: flex;
    justify-content: space-around;
    margin-top: 128px;
}
.sub-service .list-item {
    width: 395px;
    height: 644px;
    border-radius: 32px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.sub-service .list-item img {
    width: 331px;
    height: 331px;
    border-radius: 20px;
    object-fit: cover;
}
.sub-service .list-item .title {
    font-weight: 600;
    font-size: 24px;
    line-height: 33px;
}
.sub-service .list-item .description {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
}
.sub-service .list-item a {
    border-radius: 47px;
    padding: 12px 24px;
    text-decoration: none;
    width: 100%;
    font-weight: 600;
    font-size: 20px;
    line-height: 27px;
    text-align: center;
    transition: all 0.5s ease;
}

/***********************/

.sub-service .list-item.white {
    background-color: #fff;
    color: #1A191D;
}
.sub-service .list-item.white .list-item{
    border: 1px solid #1A191D;
}
.sub-service .list-item.white a {
    color: #1A191D;
    border: 1px solid #1A191D;
}
.sub-service .list-item.white a:hover {
    background-color: #1A191D;
    color: #fff;
}
.sub-service .list-item.white a:active {
    background-color: #1A191D;
    color: #fff;
    opacity: 0.5;
}

/***********************/

.sub-service .list-item.black {
    border: 1px solid #fff;
    color: #fff;
}
.sub-service .list-item.black .list-item {
    border: 1px solid #fff;
}
.sub-service .list-item.black a {
    color: #fff;
    border: 1px solid #fff;
}
.sub-service .list-item.black a:hover {
    color: #1A191D;
    background-color: #fff;
}
.sub-service .list-item.black a:active {
    color: #1A191D;
    background-color: #fff;
    opacity: 0.5;
}
/***********************/
@media (max-width: 1280px) {
    .sub-service .container {
        width: 90%;
        max-width: 888px;
        padding: 56px 0 60px;
    }
    .sub-service .head-block {
        height: 300px;
        margin-bottom: 48px;
        border-radius: 20px;
    }
    .sub-service .head-block h1 {
        font-size: 48px;
        line-height: 66px;
    }
    .sub-service .text-block {
        font-size: 16px;
        line-height: 22px;
    }
    .sub-service .list-row-container {
        margin-top: 48px;
    }
    .sub-service .list-item {
        width: 285px;
        height: 465px;
        padding: 24px;
        border-radius: 24px;
    }
    .sub-service .list-item img {
        width: 237px;
        height: 237px;
    }
    .sub-service .list-item .title {
        font-size: 16px;
        line-height: 22px;
    }
    .sub-service .list-item .description {
        font-size: 12px;
        line-height: 16px;
    }
    .sub-service .list-item a {
        font-size: 16px;
        line-height: 22px;
        padding: 13px 0;
        width: 237px;
    }
    .sub-service .list-item.white a {
        border: none;
        color: #fff;
        background: #1A191D;
    }
    .sub-service .list-item.black a {
        border: none;
        color: #1A191D;
        background: #fff;
    }
}
@media (max-width: 960px){
    .sub-service .container {
        padding: 56px 0 60px;
    }
    .sub-service .list-row-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .sub-service .list-item {
        width: 311px;
        height: 497px;
        padding: 32px;
    }
    .sub-service .list-item img {
        width: 247px;
        height: 247px;
    }
    .sub-service .list-item .title {
        font-size: 20px;
        line-height: 27px;
    }
    .sub-service .list-item .description {
        font-size: 12px;
        line-height: 16px;
    }
    .sub-service .list-item a {
        font-size: 16px;
        line-height: 22px;
    }
}
@media (max-width: 600px){
    .sub-service .container {
        padding: 76px 0 60px;
    }
}
@media (max-width: 480px) {
    .sub-service .container {
        width: 90%;
        max-width: 311px;
        padding: 64px 0 48px;
    }
    .sub-service .head-block {
        height: 156px;
        margin-bottom: 32px;
    }
    .sub-service .head-block h1 {
        font-size: 24px;
        line-height: 33px;
    }
    .sub-service .text-block {
        font-size: 14px;
        line-height: 19px;
    }
}
