@media (max-width: 799px) {
    .work {
        padding-left: 17px;
        padding-right: 17px;
    }

    .work-slider,
    .references-list,
    .contact-form,
    .contact-info,
    .contact-legal {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
    }

    .work-track {
        height: auto;
        flex-direction: column;
        gap: 30px;
        transform: none !important;
        transition: none;
    }

    .work.is-work-end .work-track-arrow {
        display: none;
    }

    .project-card,
    .ongoing-card {
        flex: none;
        width: 100%;
        max-width: none;
        height: auto;
        display: block;
        padding: 22px 10px 22px;
        border-radius: 20px;
        background: rgba(58, 76, 32, 0.95);
    }

    .ongoing-card {
        background: transparent;
        padding-left: 0;
        padding-right: 0;
    }

    .project-number {
        display: inline-block;
        margin-right: 6px;
        font-size: 32px;
        vertical-align: top;
    }

    .project-info {
        display: inline;
        padding: 0;
    }

    .project-info h2,
    .ongoing-content h2 {
        display: inline;
        margin: 0;
        color: var(--green);
        font-size: clamp(18px, 6vw, 24px);
        line-height: 1.15;
    }

    .project-info h3 {
        margin: 26px 0 10px;
        padding-left: 22px;
        font-size: 18px;
        line-height: 1.2;
    }

    .project-info h3::before {
        left: 0;
        top: 7px;
        width: 8px;
        height: 8px;
    }

    .project-info p,
    .ongoing-content p {
        max-width: none;
        margin: 0 22px 18px;
        font-size: 16px;
        line-height: 1.3;
    }

    .project-media {
        gap: 18px;
        padding-top: 8px;
    }

    .project-media img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 18px;
    }

    .project-actions {
        gap: 14px;
        justify-content: center;
    }

    .project-actions .btn {
        min-width: 86px;
        min-height: 34px;
        padding: 8px 16px;
        font-size: 14px;
    }

    .ongoing-content {
        padding: 0;
    }

    .references {
        padding-top: 24px;
    }

    .references-title-vertical {
        color: var(--green);
        -webkit-text-stroke: 0;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .references-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 24px 0 18px;
        scrollbar-width: none;
    }

    .references-list::-webkit-scrollbar {
        display: none;
    }

    .reference-card {
        flex: 0 0 265px;
        min-height: 130px;
        grid-template-columns: 1fr 1px 92px;
        column-gap: 12px;
        padding: 18px 12px;
        border-radius: 14px;
        scroll-snap-align: center;
    }

    .reference-quote {
        font-size: 16px;
        line-height: 1.25;
    }

    .reference-divider {
        height: 82px;
    }

    .reference-person h2 {
        margin-bottom: 8px;
        font-size: 17px;
    }

    .reference-person p {
        font-size: 14px;
    }

    .contact {
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
    }

    .contact-side-bar {
        display: none;
    }

    .contact-info {
        order: 1;
        text-align: left;
        margin-bottom: 22px;
    }

    .contact-info h2 {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .contact-info p {
        font-size: 16px;
        line-height: 1.3;
    }

    .contact-details {
        margin-top: 24px;
        gap: 12px;
    }

    .contact-details a {
        justify-content: flex-start;
        font-size: 16px;
        text-align: left;
    }

    .contact-form {
        order: 2;
        display: flex;
        gap: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        height: 44px;
        padding: 10px 18px;
        font-size: 16px;
    }

    .contact-form textarea {
        height: 190px;
        border-radius: 20px;
    }

    .privacy-check {
        font-size: 14px;
        line-height: 1.25;
    }

    .contact-submit {
        min-width: 70px;
        min-height: 34px;
        margin-top: 0;
    }

    .contact-back-arrow-floating {
        order: 3;
        position: static;
        display: block;
        width: 52px;
        height: 52px;
        margin: 32px auto 0;
        animation: none;
        transform: rotate(90deg);
    }

    .contact-back-arrow-inline {
        display: none;
    }

    .contact-legal {
        order: 5;
        align-items: center;
        gap: 8px;
        margin-top: 34px;
        text-align: center;
    }

    .contact-legal a,
    .contact-legal p {
        font-size: 14px;
        text-align: center;
    }

    .project-toggle {
        display: block;
        margin: -46px auto 0;
        padding: 0;
        border: 0;
        color: var(--green);
        background: transparent;
        font-family: inherit;
        font-size: 14px;
        text-decoration: underline;
        cursor: pointer;
    }

    .project-card.is-open .project-toggle {
        margin-top: 14px;
    }

    .project-toggle::after {
        content: " ▼";
        font-size: 14px;
    }

    .project-card.is-open .project-toggle::after {
        content: " ▲";
    }

    .project-card .project-info h3:nth-of-type(n + 2),
    .project-card .project-info h3:nth-of-type(n + 2)+p,
    .project-card .project-media {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-8px);
        transition: max-height 300ms ease, opacity 250ms ease, transform 300ms ease;
    }

    .project-card.is-open .project-info h3:nth-of-type(n + 2),
    .project-card.is-open .project-info h3:nth-of-type(n + 2)+p,
    .project-card.is-open .project-media {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }
}
