#hero-block .block {
    padding: 40px 30px;
    background: transparent;
    border: 1px solid var(--stroke);
    overflow: hidden;
    max-width: 490px;
    min-height: 550px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    transition: .6s ease-in;
}

#hero-block {
    /*background: var(--background-secondary);*/
}

#hero-block .block.visible {
    opacity: 1;
    z-index: 10;
}

#hero-block .topper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 5;
}

#hero-block .left-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#hero-block .left-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.absolute-2,
.absolute-1 {
    position: absolute;
    filter: blur(30px);
    z-index: 4;
    background-size: contain;
    background-repeat: no-repeat;
}

.absolute-1 {
    background: url("images/svg.svg");
    width: 100%;
    height: 100%;
    top: 0%;
    right: 0px;
    background-size: contain;
    background-repeat: no-repeat;
}

.absolute-2 {
    background: url("images/svg.svg");
    width: 100%;
    height: 100%;
    top: 0px;
    background-size: contain;
    right: -50%;
    transform: translateX(-25%);
    background-repeat: no-repeat;
}


#hero-block .image {
    width: 220px;
    height: 290px;
    position: absolute;
    top: 140px;
    z-index: 5;
    right: 20px;
}

#hero-block .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#hero-block .right-side {
    width: 100%;
    position: relative;
    min-height: 550px;
    max-width: 490px;
}

#hero-block .w220 {
    max-width: 220px;
    width: 100%;
}

#hero-block .top {
    display: flex;
    gap: 30px;
}

#hero-block .left-bot {
    display: flex
;
    gap: 20px;
    padding-bottom: 60px;
    align-items: center;
}


#hero-block .advantage {
    display: flex;
    gap: 10px;
    width: fit-content;
    align-items: center;
}

#hero-block .advantage .p3 {
    width: fit-content;
}

#hero-block .content {
    padding-top: 75px;
}

#hero-block .advantage-holder {
    display: flex;
    gap: 30px;
    align-items: center;
}

#hero-block .name-adv {
    display: flex
;
    flex-direction: column;
    gap: 20px;
}

#hero-block .prices {
    display: flex
;
    flex-direction: column;
    gap: 15px;
}

#hero-block .bottom {
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 5;
}

#hero-block .bot {
    display: flex;
    flex-direction: row;
    /*flex-wrap: wrap;*/
}

#hero-block .cat {
    /*max-width: 470px;*/
    width: 100%;
    position: relative;
    height: 230px;
    box-sizing: border-box;
    display: flex;
    overflow: hidden;
    transition: .6s ease;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 20px;
    background: var(--background-secondary);
    border: 1px solid var(--stroke);
}

.links {
    cursor: pointer;
}

#hero-block .cat:hover .h4 {
    color: var(--primary);
}

#hero-block .spec-btn {
    background: var(--background);
    width: 100%;
    max-width: 120px;
    height: auto;
    display: grid;
    justify-items: center;
    align-items: center;
    border: 1px solid var(--stroke);
    transition: .3s ease-in;
}


#hero-block .spec-btn:hover {
    border-bottom: 10px solid var(--primary);
}

#hero-block .spec-btn:hover a {
    color: var(--primary);
}

#hero-block .cat-top.h4 {
    max-width: 205px;
    z-index: 2;
}

#hero-block .cat-holder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(470px, 1fr));
    width: 100%;
}

#hero-block .cat.visible .cat-top.h4 {
    color: var(--primary) !important;
}

#hero-block .spec-btn a {
    transform: rotate(270deg);
    width: 230px;
    height: 140px;
    align-items: center;
    text-align: center;
}

.left-abs {
    position: absolute;
    top: 30px;
    left: 0px;
    width: 5px;
    height: 60px;
    background: var(--primary);
    transition: .3s ease;
    transform: translateX(-5px);
}

.cat.visible .left-abs {
    transform: translateX(0px);
}

#hero-block .absolute-bot {
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
}
#hero-block .counter {
    position: absolute;
    font-size: 160px;
    font-weight: 700;
    top: 20px;
    left: 50%;
    color: var(--background);
    width: fit-content;
    transform: translateX(-50%);
}

#hero-block .cat .image {
    top: 15px;
    right: 25px;
    width: 140px;
    height: 200px;
}

#hero-block .timeline {
    background: var(--primary);
}

#hero-block .cat.visible .timeline {
    transition: 6s ease;
}

#hero-block .progress-bar {
    background: var(--stroke);
}
#hero-block .cat.visible .links .textss,
#hero-block .cat:hover .links .textss {
    color: var(--primary);
}
#hero-block .cat.visible .links svg path,
#hero-block .cat:hover .links svg path {
    stroke: var(--primary);
}
#hero-block .cat.visible .links svg,
#hero-block .cat:hover .links svg {
    transform: rotate(45deg);
}


#hero-block .cat .links {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media  (max-width: 1750px) {
    #hero-block .cat:nth-child(3) {
        grid-column: span 2;
    }
}

@media  (max-width: 1300px) {
    #hero-block .cat:nth-child(2) {
        grid-column: span 2;
    }
    #hero-block .cat:nth-child(1) {
        grid-column: span 2;
    }
    #hero-block .top {
        flex-direction: column;
    }
    #hero-block .block {
        max-width: 100%;
    }
    #hero-block .right-side {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #hero-block .spec-btn a {
        transform: unset;
         width: unset;
        height: 140px;
        align-items: center;
        text-align: center;
        display: flex;
    }
    #hero-block .spec-btn {
        justify-items: center;
        max-width: unset;
        height: unset;
    }
    #hero-block .bot {
        flex-direction: column;
    }
	.absolute-2 {
		display: none !important;
	}
}

@media (max-width: 500px) {
    #hero-block .cat-holder {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    #hero-block .cat .image {
        width: 90px;
    }
    #hero-block .image {
        width: 120px;
    }
    #hero-block .left-bot {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 370px) {
    #hero-block .image {
        width: 90px;
    }
}