.hero_services {
    position: relative;
    overflow: hidden;
    background-color: #000;
    width: 100%;
    margin-bottom: 100px;
}

.hero_services__video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero_services_content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 2;
    padding: 220px 0 100px 0;
}

.hero_services_content .hero_title,
.hero_services_content .hero_desk {
    color: #f6f7f9;
    text-align: center;
}



.services_content {
    display: flex;
    gap: 40px;
}

.services__info {
    max-width: 560px;
    gap: 40px;
}

.services__title {
    font-family: var(--third-family);
    font-weight: 500;
    font-size: 22px;
    color: #252a01;

    margin-bottom: 40px;
}

.services__description {
    display: flex;
    flex-direction: column;
}

.services__description>p,
.services__description>h2 {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #252a01;
    margin-bottom: 40px;
}

/* Subtitles inside descriptions are bold */
.services__description h2.services__subtitle {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 12px;
    color: #252a01;
}

/* Regular paragraph h2s (body text) are normal weight */
.services__description h2:not(.services__subtitle),
.services__description p {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 24px;
    color: #252a01;
}


.services__list {
    border-top: 1px solid #252a01;
}

.services_card_img img {
    height: 100%;
    border-radius: 16px;
    max-width: 263px;
    max-height: 335px;
}

.services_card {
    display: flex;
    gap: 60px;
    padding: 20px 0;
    border-bottom: 1px solid #252a01;
}

.services_card:last-child {
    border-bottom: none;
}

.services_card_title {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    color: #252a01;
    margin-bottom: 35px;
}

.services_card_desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: #252a01;
}

.services_card_stats {
    display: flex;
    gap: 73px;
    margin: 29px 0 29px 0;

}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__value {
    font-family: var(--font3);
    font-weight: 600;
    font-size: 24px;
    color: #252a01;
}

.stat__label {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    text-transform: lowercase;
    color: #252a01;
}

.services_card_btn {
    border-radius: 16px;
    padding: 10px 40px;
    width: 230px;
    height: 48px;
    background: #8eb405;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0.02em;
    color: #252a01;
}

.workflow__content {
    display: flex;
    gap: 40px;
}

.workflow_col2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1.2;
    max-height: 880px;
    overflow-y: auto;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 50px;
}

.workflow_col2::-webkit-scrollbar {
    display: none;
}

.workflow_card_img {
    width: 100%;
}

.workflow_card_img img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    pointer-events: none;
}

.under_workflow_img {
    background-image: url("../images/under_workflow_img.png");
    height: 485px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 100px;
}

.features_header {
    margin-bottom: 100px;
}

.features_header_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.features_header_title {
    font-family: var(--third-family);
    font-weight: 800;
    font-size: 48px;
    color: #252a01;
    margin-bottom: 40px;
}

.features_header_text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #252a01;
    max-width: 800px;
}

.features_grid {
    margin-bottom: 150px;
}

.features_grid_wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
}

.features_card_header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.features_card_icon {
    width: 40px;
    height: auto;
}

.features_card_title {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    color: #252a01;
}

.features_card_img {
    margin-bottom: 25px;
}

.features_card_img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.features_card_bottom {
    border-left: 1px solid #252a01;
    padding-left: 20px;
}

.features_card_desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #252a01;
}

/* ============================================================
   АДАПТИВ (services.html) — Mobile-First Quality
   ============================================================ */

.workflow {
    padding-top: 60px;
    /* Task 4: Корректный отступ сверху */
}

@media (max-width: 1024px) {

    .services_content,
    .workflow__content {
        flex-direction: column;
        gap: 48px;
    }

    .services__info {
        max-width: 100%;
    }

    .workflow_col1 {
        order: 2;
    }

    .workflow_col2 {
        order: 1;
        max-height: 500px;
    }

    .services_card {
        flex-direction: column;
        gap: 24px;
        padding: 32px 0;
    }

    .services_card_img {
        width: 100%;
    }

    /* Adapting images of vehicles relative to text */
    .services_card_img img {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .features_grid_wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero_services_content {
        padding: 140px 20px 80px 20px;
        text-align: center;
    }

    .hero_services {
        margin-bottom: 60px;
    }

    .services,
    .features_header,
    .under_workflow_img {
        margin-bottom: 60px;
    }

    .under_workflow_img {
        height: 260px;
        background-size: cover;
        background-position: center top;
    }

    .services__title,
    .features_header_title {
        font-size: clamp(28px, 6vw, 36px);
        margin-bottom: 24px;
        text-align: left;
    }

    .services__description>p,
    .services_card_desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .services_card_title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .services_card_stats {
        flex-wrap: wrap;
        gap: 20px;
        margin: 20px 0 24px;
        background: #f6f7f9;
        padding: 20px;
        border-radius: 16px;
        justify-content: space-between;
    }

    .services_card_btn {
        width: 100%;
        min-height: 54px;
    }

    .features_grid_wrapper {
        grid-template-columns: 1fr;
    }

    .features_card_bottom {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #252a01;
        padding-top: 16px;
    }

    .features_card {
        background: #f6f7f9;
        border-radius: 16px;
    }

    .features_card_bottom {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .features_header_text {
        font-size: 15px;
    }

    .workflow_col2 {
        grid-template-columns: 1fr;
    }

    .services_card_stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 8px;
        width: 100%;
    }

    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .services_card_img img {
        aspect-ratio: 4 / 3;
    }
}

/* ============================================================
   ALSO WE DO - Section
   ============================================================ */
.also-we-do {
    padding: 80px 0;
    background: #f6f7f9;
}

.also-we-do__title {
    font-family: var(--third-family);
    font-weight: 800;
    font-size: 48px;
    color: #252a01;
    text-align: center;
    margin-bottom: 60px;
}

.also-we-do__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 80px;
}

.also-we-do__col {
    display: flex;
    flex-direction: column;
}

.also-we-do__item {
    border-bottom: 1px solid #d0d0d0;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s;
}

.also-we-do__item:first-child {
    border-top: 1px solid #d0d0d0;
}

.also-we-do__item-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    color: #252a01;
    user-select: none;
}

.also-we-do__item-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 155%;
    color: #555;
    padding: 0 0 0 38px;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

/* Desktop: hover раскрывает описание */
@media (hover: hover) {
    .also-we-do__item:hover .also-we-do__item-body {
        max-height: 120px;
        opacity: 1;
        padding: 0 0 16px 38px;
    }

    .also-we-do__item:hover .also-we-do__arrow {
        transform: rotate(90deg);
    }
}

/* Mobile + JS: класс .active раскрывает описание */
.also-we-do__item.active .also-we-do__item-body {
    max-height: 120px;
    opacity: 1;
    padding: 0 0 16px 38px;
}

.also-we-do__item.active .also-we-do__arrow {
    transform: rotate(90deg);
}

.also-we-do__arrow {
    color: #8eb405;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.3s ease;
}


@media (max-width: 768px) {
    .also-we-do {
        padding: 60px 0;
    }

    .also-we-do__title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .also-we-do__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .also-we-do__col:last-child .also-we-do__item:first-child {
        border-top: none;
    }
}

.who-is-vortex {
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.who-is-vortex__inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.who-is-vortex__subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-green-lime);
    margin-bottom: 24px;
}

.who-is-vortex__subtitle::before {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    background: var(--brand-green-lime);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.who-is-vortex__title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
}

.who-is-vortex__list {
    display: flex;
    flex-direction: column;
}

.who-is-vortex__item {
    border-top: 1px solid #ddd;
    padding: 24px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.who-is-vortex__item:last-child {
    border-bottom: 1px solid #ddd;
}

.who-is-vortex__item-header {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.who-is-vortex__icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.who-is-vortex__icon {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
    z-index: 3;
}

.who-is-vortex__item:hover .who-is-vortex__icon {
    border-color: var(--brand-green-lime);
    background: var(--brand-green-lime);
    transform: rotate(45deg) scale(1.1);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(142, 180, 5, 0.3);
}

.who-is-vortex__item-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    transition: 0.3s;
}

.who-is-vortex__item:hover .who-is-vortex__item-title {
    color: #000;
}

.who-is-vortex__item-body {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 54px;
    /* icon width + gap */
}

.who-is-vortex__item:hover .who-is-vortex__item-body {
    max-height: 480px;
    opacity: 1;
    padding-top: 16px;
}

.who-is-vortex__item-text {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 992px) {
    .who-is-vortex__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .who-is-vortex {
        padding: 60px 0;
    }

    .who-is-vortex__item-title {
        font-size: 18px;
    }

    .who-is-vortex__item-body {
        padding-left: 50px;
    }
}

@media (max-width: 480px) {
    .features_header_text {
        font-size: 15px;
    }

    .workflow_col2 {
        grid-template-columns: 1fr;
    }

    .services_card_stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 8px;
        width: 100%;
    }

    .stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .services_card_img img {
        aspect-ratio: 4 / 3;
    }
}
/* under_workflow_img mobile fix */
@media (max-width: 480px) {
    .under_workflow_img {
        height: 200px;
        background-position: center;
    }
}
