:root {
    --page-background: #e7eef5;
    --card-background: #ffffff;
    --title-color: #1c1d32;
    --main-text-color: #30394d;
    --secondary-text-color: #4b71b0;
    --label-color: #8b9fbd;
    --badge-background: #4b70ad;
    --tab-color: #6f829e;
    --tab-active-color: #1c1d32;
    --tab-active-background: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
    background: var(--page-background);
    color: var(--main-text-color);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
}

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 32px 0;
}

.info-widget {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 1004px);
    padding-bottom: 32px;
}

.tabs {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding-left: 40px;
}

.tab-button {
    position: relative;
    z-index: 1;

    min-width: 170px;
    min-height: 52px;
    padding: 0 24px;

    border: 0;
    border-radius: 16px 16px 0 0;
    background: transparent;
    color: var(--tab-color);

    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1px;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.tab-button:hover {
    color: var(--tab-active-color);
}

.tab-button:focus-visible {
    outline: 3px solid rgba(75, 113, 176, 0.4);
    outline-offset: 3px;
}

.tab-button.is-active {
    z-index: 3;
    background: var(--tab-active-background);
    color: var(--tab-active-color);
    box-shadow: 0 -4px 14px rgba(43, 61, 83, 0.05);
}

.container-card {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-height: 470px;

    padding: 72px 74px 70px 76px;

    overflow: hidden;
    border-radius: 33px;
    background: var(--card-background);
    box-shadow: 0 18px 38px rgba(43, 61, 83, 0.16);
}

.container-content {
    position: relative;
    z-index: 2;
    width: 58%;
}

.container-title {
    margin: 0;
    color: var(--title-color);
    font-size: clamp(38px, 4vw, 47px);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.version-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
}

.container-version {
    color: var(--secondary-text-color);
    font-size: 31px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.bitness {
    display: inline-flex;
    font-weight: bold;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 8px;
    background: var(--badge-background);
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
}

.bitness-lift {
    position: relative;
    top: -6px;
}

.container-details {
    display: flex;
    flex-direction: column;
    gap: 37px;
    margin-top: 52px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.detail-label {
    color: var(--label-color);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 1;
}

.detail-value {
    color: var(--main-text-color);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.2;
}

.anthropomorphic-logo {
    position: absolute;
    z-index: 1;

    top: 10px;
    right: 40px;

    display: block;
    width: auto;
    height: 670px;
    max-width: none;

    object-fit: contain;
    object-position: top center;
    pointer-events: none;
}

.tab-panel[hidden] {
    display: none;
}

.page-footer {
    width: 100%;
    padding: 24px;
    margin-top: auto;
    text-align: center;
}

.license-text {
    margin: 0;
    color: var(--title-color);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .page {
        padding: 24px 24px 0;
    }

    .tab-button {
        min-width: 150px;
        min-height: 48px;
        padding: 0 18px;
        font-size: 16px;
    }

    .container-card {
        min-height: 470px;
        padding: 62px 42px;
        border-radius: 28px;
    }

    .container-content {
        width: 60%;
    }

    .container-title {
        font-size: 39px;
    }

    .container-version {
        font-size: 26px;
    }

    .detail-value {
        font-size: 23px;
    }

    .anthropomorphic-logo {
        top: 10px;
        right: 18px;
        height: 540px;
    }
}


@media (max-width: 600px) {
    .page {
        align-items: stretch;
        padding: 16px 16px 0;
    }

    .info-widget {
        justify-content: flex-start;
    }

    .tabs {
        gap: 3px;
        padding-left: 0;
        padding-right: 0;
    }

    .tab-button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding: 0 8px;
        border-radius: 12px 12px 0 0;
        font-size: 14px;
    }

    .container-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        min-height: 0;
        padding: 30px 24px 36px;
        border-radius: 0px 0px 24px 24px;
    }

    .container-content {
        width: 100%;
    }

    .container-title {
        font-size: 34px;
        letter-spacing: -0.5px;
    }

    .version-row {
        gap: 10px 14px;
        margin-top: 14px;
    }

    .container-version {
        font-size: 23px;
    }

    .bitness {
        min-height: 34px;
        padding: 0 11px;
        font-size: 16px;
    }

    .container-details {
        gap: 28px;
        margin-top: 40px;
    }

    .detail-label {
        font-size: 15px;
        letter-spacing: 1.2px;
    }

    .detail-value {
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    .anthropomorphic-logo {
        position: static;
        order: -1;

        width: auto;
        height: 390px;
        max-width: 100%;

        margin: 0 auto 28px;
    }

    .page-footer {
        padding: 24px 16px;
    }

    .license-text {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .tab-button {
        font-size: 12px;
    }

    .container-card {
        padding-right: 20px;
        padding-left: 20px;
    }

    .container-title {
        font-size: 30px;
    }

    .container-version {
        font-size: 21px;
    }

    .anthropomorphic-logo {
        height: 340px;
    }
}
