@layer components {
    .construction-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .construction-grid__image {
        order: -1;
    }

    .construction-grid__image img {
        border-radius: 1.5rem;
    }

    .construction-card {
        max-width: 100%;
    }

    .control-block {
        padding-top: 1.5rem;
        transition: all 0.3s ease-in-out;
    }

    .control-block.open {
        transition: all 0.3s ease-in-out;
    }

    .control-toggle svg {
        transition: transform 0.3s ease;
    }

    .control-block.open .control-toggle svg {
        transform: rotate(180deg);
    }

    .control-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition:
            max-height 0.3s ease,
            opacity 0.3s ease;
    }

    .control-block.open .control-content {
        max-height: 400px;
        opacity: 1;
    }

    @media (max-width: 767px) {
        .control-block {
            padding-top: 0.75rem;
        }

        .control-block.open {
            padding-bottom: 0.75rem;
        }
    }

    @media (min-width: 1024px) {
        .construction-grid {
            display: grid;
            grid-template-columns: 360px 1fr 360px;
            grid-template-rows: auto auto;
            gap: 1.5rem;
            align-items: center;
        }

        .construction-grid__card--top-left {
            grid-column: 1;
            grid-row: 1;
            align-self: start;
        }

        .construction-grid__card--top-right {
            grid-column: 3;
            grid-row: 1;
            align-self: start;
            transform: translate(-88px, -2rem);
        }

        .construction-grid__image {
            grid-column: 1 / -1;
            grid-row: 1 / 3;
            order: 0;
            z-index: 0;
            display: flex;
            justify-content: center;
            padding: 0 2rem;
        }

        .construction-grid__card--bottom-left {
            grid-column: 1;
            grid-row: 2;
            align-self: end;
            transform: translateX(88px);
        }

        .construction-grid__card--bottom-right {
            grid-column: 3;
            grid-row: 2;
            align-self: end;
        }

        .construction-grid__card {
            position: relative;
            z-index: 1;
        }
    }
}
