/* Technical works window. Same Bootstrap modal as the registration dialog. */

.tech-works {
    color: #1a1d27;
    font-family: Inter, sans-serif;
}

.tech-works .modal-dialog {
    width: min(1240px, calc(100vw - 48px));
    max-width: none;
    margin: 24px auto;
}

.tech-works .modal-content {
    position: relative;
    border: 0;
    border-radius: 32px;
    background: #eaeaeb;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.tech-works .btn-close {
    position: absolute;
    z-index: 2;
    top: 28px;
    right: 28px;
    width: 18px;
    height: 18px;
    padding: 0;
    opacity: 0.4;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 4.5L13.5 13.5M13.5 4.5L4.5 13.5' stroke='%231A1D27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tech-works .btn-close:hover {
    opacity: 1;
}

.tech-works .btn-close:focus {
    outline: none;
    box-shadow: none;
}

.tech-works__page {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    margin: 0 auto;
}

.tech-works__header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 88px;
    padding: 0 38px;
}

.tech-works__logo {
    display: block;
    width: 103px;
    height: 34px;
}

.tech-works__body {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    min-width: 0;
    padding: 48px 38px 0;
}

.tech-works__copy {
    flex: 0 0 388px;
    width: 388px;
    max-width: 100%;
}

.tech-works__title {
    margin: 0;
    font-size: 45px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: -1.35px;
    color: #1a1d27;
}

.tech-works__text {
    margin: 16px 0 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.18px;
    color: #1a1d27;
}

.tech-works__scene {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-top: 8px;
}

.tech-works__photo-wrap {
    position: relative;
    flex: 0 0 auto;
    width: min(920px, 100%);
    height: auto;
    container-type: inline-size;
}

.tech-works__photo {
    display: block;
    width: 100%;
    height: auto;
}

.tech-works__time,
.tech-works__date {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.tech-works__time {
    left: 28.9%;
    top: 1.3%;
    width: 42.5%;
    height: 25.7%;
    flex-direction: column;
    gap: 8px;
}

.tech-works__time-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6cqi;
    margin: 0;
    font-size: 2cqi;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.tech-works__time-label img {
    display: block;
    width: 2.6cqi;
    height: 2.6cqi;
}

.tech-works__time-value {
    margin: 0;
    font-size: 6.1cqi;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.tech-works__date {
    left: 41.8%;
    top: 33.5%;
    width: 16.4%;
    height: 12%;
    gap: 0.5cqi;
    font-size: 1.35cqi;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.tech-works__date img {
    display: block;
    width: 2cqi;
    height: 2cqi;
}

.tech-works__footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(388px, calc(100% - 76px));
    margin: 24px 38px 32px;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.tech-works__legal {
    margin: 0;
    color: #1a1d27;
}

.tech-works__copyline {
    margin: 0;
    color: #98999d;
}

@media (max-width: 999px) {
    .tech-works .modal-dialog {
        width: calc(100vw - 24px);
        margin: 12px auto;
    }

    .tech-works .modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 24px;
    }

    .tech-works .btn-close {
        top: 20px;
        right: 20px;
    }

    .tech-works__header {
        height: 56px;
        padding: 0 20px;
    }

    .tech-works__body {
        flex-direction: column;
        gap: 28px;
        padding: 24px 20px 0;
    }

    .tech-works__copy {
        flex-basis: auto;
        width: 100%;
    }

    .tech-works__title {
        font-size: 28px;
        line-height: 34px;
        letter-spacing: -0.56px;
    }

    .tech-works__text {
        margin-top: 12px;
        font-size: 15px;
        line-height: 22px;
        letter-spacing: -0.15px;
    }

    .tech-works__scene {
        flex: 0 0 auto;
        justify-content: center;
        padding-top: 0;
        overflow: hidden;
    }

    .tech-works__photo-wrap {
        width: 580px;
        max-width: none;
    }

    .tech-works__footer {
        gap: 4px;
        width: auto;
        margin: auto 20px 16px;
        font-size: 11px;
        font-weight: 500;
        line-height: 13px;
        letter-spacing: -0.11px;
    }
}
