@layer components {
    .process {
        padding: var(--section-padding);
        background: var(--color-primary);
        color: var(--color-on-primary);
        position: relative;
        overflow: hidden;

        [data-theme="dark"] & {
            background: var(--color-surface-variant);
            color: var(--color-on-surface);
        }

        &::before {
            content: "PRÍSNE TAJNÉ • ŠTÁTNE TAJOMSTVO • ARCHÍV";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-45deg);
            font-size: 8rem;
            font-weight: 900;
            opacity: 0.03;
            white-space: nowrap;
            pointer-events: none;
            z-index: 0;
        }

        & .container {
            position: relative;
            z-index: 1;
        }

        & h2 {
            color: currentColor;
            text-align: center;
            margin-bottom: 6rem;
            font-size: 2.5rem;
            position: relative;

            &::after {
                content: "";
                position: absolute;
                bottom: -1rem;
                left: 50%;
                transform: translateX(-50%);
                width: 60px;
                height: 3px;
                background: var(--color-secondary);
            }
        }

        & .process__steps {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4rem;
            position: relative;

            &::before {
                content: "";
                position: absolute;
                top: 50px;
                left: 15%;
                right: 15%;
                height: 2px;
                background: repeating-linear-gradient(to right, transparent, transparent 10px, var(--color-border) 10px, var(--color-border) 20px);
                z-index: 0;
            }

            @media (max-width: 992px) {
                grid-template-columns: 1fr;
                gap: 3rem;

                &::before {
                    left: 50%;
                    right: auto;
                    top: 20px;
                    bottom: 20px;
                    width: 2px;
                    height: auto;
                    background: repeating-linear-gradient(to bottom, transparent, transparent 10px, var(--color-border) 10px, var(--color-border) 20px);
                }
            }
        }
    }
}
