button {
    font-family: 'WixMadeforDisplay';
}
.directions-direction {
    margin: 0 20px 20px;
    padding: 56px 20px 80px;
    background-color: #212121;
    border-radius: 0 0 30px 30px;
    position: relative;
}

.direction-subnav {
    margin-bottom: 40px;
}

.direction-subnav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-transform: uppercase;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    gap: 10px;
    text-align: center;
}

.direction-subnav__link {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    font-size: 12px;
    transition: opacity 0.3s ease;
    text-decoration: none;
    color: #efefef;
    background: conic-gradient(from 80deg at 0.02% 100%, #1B1B1B 0deg, #303030 360deg), #F0F0F0;
    text-transform: uppercase;
}

.direction-subnav__link--active {
    background: conic-gradient(from 80deg at 15.02% 100%, rgba(255, 255, 255, 0.05) 0deg, rgba(48, 48, 48, 0.05) 360deg), #F0F0F0;
    color: #1B1B1B;
}

.direction-subcategory {
    margin-bottom: 20px;
}

.direction-subcategory__title {
    font-family: 'Jost', sans-serif;
    color: #EFEFEF;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

.direction-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.direction-description {
    flex: 1;
    opacity: 0.8;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    max-width: 458px;
}

.direction-frameworks {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.frameworks-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.framework-icon {
    width: 63px;
    height: 86px;
    transition: transform 0.3s ease;
}

.framework-icon:hover {
    transform: translateY(-3px);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.direction-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: min-content;
}

.cards-container .direction-card:last-child:nth-child(3n+1) {
    grid-column: 2 / 3;
}

.card-top-section {
    background: #F0EEF4;
    border-radius: 0 0 20px 20px;
    padding: 20px;
    flex-shrink: 0;
}

.top-content {
    display: flex;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.top-left {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.direction-name {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 6px;
    color: rgba(39, 39, 39, 0.5);
}

.pack-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: capitalize;
    color: #1B1B1B;
}

.pack-description {
    font-size: 14px;
    font-weight: 500;
    color: #1B1B1B;
}

.top-right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}
.timeline-container {
    margin: auto 0 0;
    position: relative;
}
.suitability-tag {
    font-size: 10px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    display: inline-block;
    color: #272727;
}

.timeline {
    font-size: 14px;
    font-weight: 500;
    color: #272727;
    display: block;
}

.timeline-individual {
    font-size: 10px;
}

.card-mini-description {
    margin: 30px 20px 24px;
}

.mini-description-text {
    font-size: 16px;
    font-weight: 400;
    color: #1B1B1B;
    margin: 0;
}

.card-details-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F7F7F7;
    border: none;
    cursor: pointer;
    padding: 20px 16px;
    transition: opacity 0.3s ease;
    margin: 0 20px 30px;
    border-radius: 8px;
}

.card-details-toggle:hover {
    opacity: 0.7;
}

.toggle-text {
    font-size: 14px;
    text-transform: uppercase;
    color: #1B1B1B;
    font-weight: 400;
}

.toggle-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toggle-icon-line {
    transform-origin: center;
    transition: transform 0.4s ease;
}

.card-details-toggle.active .toggle-icon-line {
    transform: rotate(90deg);
}

.card-middle-section {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 28px;
}

.card-middle-section.active {
    max-height: none;
    opacity: 1;
    padding: 0 28px 30px;
}

.works-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.works-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.work-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-right: 4px;
}

.work-item {
    display: flex;
}

.work-item p {
    font-size: 14px;
    font-weight: 400;
    color: rgba(27, 27, 27, 0.9);
}

.work-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(78, 78, 78, 0.5);
    text-transform: uppercase;
    font-size: 14px;
    list-style: none;
    margin: 25px 0 0;
    padding: 0;
    cursor: default;
    gap: 4px;
}

.work-crumbs li {
    display: flex;
    align-items: center;
}

.work-crumbs a {
    transition: all .3s ease-in-out;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
}

.work-crumbs a:after {
    content: '/';
    color: rgba(78, 78, 78, 0.5);
    margin-left: 4px;
}

.work-crumbs a:hover {
    color: rgba(78, 78, 78, 1);
}

.card-bottom-section {
    background: #F7F7F7;
    border-radius: 30px 30px 0 0;
    padding: 20px;
    flex-shrink: 0;
}

.installment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    background: #EAEAEA;
    border-radius: 8px;
    box-shadow: 0px 3px 3px rgba(229,229,229, 1);
}

.details-link {
    color: #1c1c1c;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.details-link:hover {
    opacity: 0.8;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #2E2E2E;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.from {
    font-size: 16px;
    font-weight: 700;
    text-transform: lowercase;
}

.amount {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
}

.order-button {
    background: #1B1B1B;
    color: #FFFFFF;
    border: none;
    padding: 15px 59.5px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.stars-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    pointer-events: none;
}

.stars-bottom__image {
    position: absolute;
}

.stars-bottom__image--first {
    width: 100%;
    animation: starsBottomFirstAnimation 6s ease-in-out infinite;
}

.stars-bottom__image--second {
    width: 100%;
    opacity: 0.2;
    animation: starsBottomSecondAnimation 6s ease-in-out infinite;
}

.stars-bottom__svg {
    width: 100%;
    height: 100%;
}

@keyframes starsBottomFirstAnimation {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes starsBottomSecondAnimation {
    0% {
        opacity: 0.2;
    }
    25% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 0.2;
    }
}
@media (max-width: 1900px) {
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 33px;
    }

    .order-button {
        width: 100%;
        padding: 15px 20px;
    }
    .pack-name {
        font-size: 32px;
    }
}
@media (max-width: 1750px) {
    .pack-name {
        font-size: 26px;
    }
}
@media (max-width: 1650px) {

    .top-content {
        flex-direction: column;
    }
}
@media (max-width: 1560px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 33px;
    }
    .order-button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .amount {
        font-size: 30px;
    }
    .from {
        font-size: 14px;
    }
    .pack-name {
        font-size: 30px;
    }
    .cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cards-container .direction-card:last-child:nth-child(2n+1) {
        max-width: 100%;
        margin: 0;
    }
    .works-grid {
        flex-direction: column;
        gap: 20px;
    }
    .direction-title {
        font-size: 28px;
    }
    .direction-subcategory__title {
        font-size: 24px;
        line-height: 30px;
    }
    .card-details-toggle {
        margin: 0 16px 30px;
    }
    .card-mini-description {
        margin: 30px 16px 24px;
    }
    .directions-direction {
        border-radius: 0;
        margin: 0 0 40px;
    }
    .timeline,
    .pack-description {
        font-size: 13px;
    }
    .direction-subnav__list {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    .direction-subnav {
        display: flex;
        justify-content: flex-start;
    }
    .directions-direction {
        padding: 50px 15px 40px;
    }
}

@media (max-width: 400px) {
    .directions-direction {
        padding: 30px 10px 40px;
    }
    .direction-subnav__link {
        padding: 8px 10px;
        font-size: 10px;
        width: 100%;
        justify-content: center;
    }
    .direction-subnav__list {
        width: 100%;
    }
    .direction-subcategory__title {
        font-size: 18px;
        line-height: 24px;
    }
    .direction-description {
        font-size: 12px;
    }
    .pack-name {
        font-size: 22px;
    }
    .pack-description {
        font-size: 11px;
    }
    .amount {
        font-size: 26px;
    }
    .from {
        font-size: 12px;
    }
    .price {
        gap: 6px;
    }
    .suitability-tag {
        font-size: 8px;
        padding: 6px 8px;
    }
    .timeline {
        font-size: 11px;
    }
    .card-mini-description {
        margin: 20px 12px 16px;
    }
    .mini-description-text {
        font-size: 14px;
    }
    .card-details-toggle {
        margin: 0 12px 20px;
        padding: 14px 12px;
    }
    .toggle-text {
        font-size: 12px;
    }
    .card-top-section {
        padding: 12px;
    }
    .card-bottom-section {
        padding: 12px;
    }
    .installment-info {
        font-size: 12px;
        padding: 8px;
    }
    .order-button {
        padding: 12px 16px;
        font-size: 12px;
    }
    .price-section {
        gap: 20px;
    }
    .card-middle-section.active {
        padding: 0 12px 20px;
    }
    .card-middle-section {
        padding: 0 12px;
    }
    .work-item p {
        font-size: 12px;
    }
    .work-icon {
        width: 12px;
        height: 12px;
    }
    .framework-icon {
        width: 50px;
        height: 68px;
    }
    .frameworks-icons {
        gap: 8px;
    }
}