@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans/OpenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #333333;
    --gray: #808080;
    --light-gray: #C8C8C8;
    --red: rgba(255,69,0,1.0);
    --white: rgba(255,255,255,1.0);
    --darkorchid: rgba(153,50,204,1.0);
    --darkorchid1: rgba(153,50,204,0.8);
    --font-family: OpenSans, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-family);
    font-size: 10px;
}

.matrix video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.matrix video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
}

.matrix__content {
    position: relative;
    z-index: 1;
}

.matrix__header {
    display: flex;
    flex-direction: column;
    padding-top: 4rem;
}

.matrix__image {
    display: flex;
    width: 100%;
    justify-content: center;
}

.matrix__image-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    overflow: hidden;
}

.matrix__image img {
    width: 20rem;
    height: auto;
}

.matrix__cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 4rem 0 0;
}

.matrix__cta a {
    color: var(--white);
    font-family: var(--font-family);
    font-size: 2rem;
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    background-color: var(--darkorchid);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.matrix__cta a:hover {
    background-color: var(--darkorchid1);
}

.matrix__body {
    display: flex;
    flex-direction: column;
}

.matrix__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.matrix__form h2 {
    font-size: 3rem;
    line-height: 3rem;
    color: var(--darkorchid);
    margin: 4rem 0 4rem;
}

.matrix__form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.matrix__label-name {
    margin-bottom: 3rem;
}

.matrix__label-date {
    margin-bottom: 1.5rem;
}

.matrix__form form input {
    all: unset;
    display: inline-block;
    width: 30rem;
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    background-color: var(--white);
    color: var(--black);
    font-size: 2rem;
    box-sizing: border-box;
    text-align: center;
}

.matrix__form form input::placeholder {
    color: var(--gray);
    font-size: 2rem;
}

.errors {
    width: 30rem;
}

.error {
    font-size: 1.3rem;
    color: var(--red);
    margin: .5rem 0;
}

.matrix__form form button {
    color: var(--white);
    font-family: var(--font-family);
    font-size: 2rem;
    width: 30rem;
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    background-color: var(--darkorchid);
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
}

.matrix__form form button:hover {
    background-color: var(--darkorchid1);
}

.matrix__result {
    display: flex;
    flex-direction: column;
}

.matrix__result-inner {
    display: flex;
    flex-direction: column;
}

.matrix__diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 0;
}

.matrix__diagram h2 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--darkorchid);
    margin: 6rem 0 4rem;
}

.matrix__diagram svg {
    max-width: 600px;
    max-height: 600px;
}

.matrix__user-data {
    display: flex;
    flex-direction: column;
    margin: 0 0 4rem;
}

.matrix__user-data-label {
    font-size: 1.5rem;
    color: var(--light-gray);
    margin-right: 1rem;
}

.matrix__user-data-content {
    font-size: 2rem;
    color: var(--white);
}

.matrix__table {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

.matrix__table h2 {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--darkorchid);
    margin: 6rem 0 4rem;
}

.matrix__table-inner {
    display: table;
    border-collapse: collapse;
    width: 100%;
    margin: 0 0;
}

.matrix__table-row {
    display: table-row;
}

.matrix__table-cell {
    display: table-cell;
    padding: .5rem;
    vertical-align: middle;
    text-align: center;
    color: var(--white);
    font-size: 1.8rem;
    max-width: 7rem;
}

.matrix__table-cell--header {
    color: var(--light-gray);
    font-size: 1.1rem;
}

.matrix__table-cell--img {
    max-width: 4rem;
    width: 4rem;
    max-height: 4rem;
    height: 4rem;
}

.matrix__table-cell--img img {
    height: 100%;
    width: auto; /* чтобы сохранить пропорции */
    display: block;
    object-fit: contain; /* или cover — зависит от эффекта */
}

.matrix__table-cell--chakra {
    font-size: 1.2rem;
}

.matrix__table-cell--footer-1 {
    color: var(--light-gray);
    font-size: 1.1rem;
}

.matrix__destiny {
    display: flex;
    flex-direction: column;
}

.matrix__destiny-inner {
    padding: 0 1rem;
}

.matrix__destiny-inner h3 {
    font-size: 2rem;
    margin: 4rem 0 2rem;
    color: var(--darkorchid);
}

.matrix__destiny-inner p {
    font-size: 1.6rem;
    color: var(--white);
    margin: 0;
}

.matrix__destiny-inner svg {
    max-width: 300px;
    max-height: 90px;
}

.matrix__footer-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 4rem;
}

.matrix__footer-cta a {
    color: var(--white);
    font-family: var(--font-family);
    font-size: 2rem;
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    background-color: var(--darkorchid);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.matrix__footer-cta a:hover {
    background-color: var(--darkorchid1);
}

@media (min-width: 576px) {
    .matrix__header {
        padding-top: 6rem;
    }
    .matrix__cta {
        padding: 6rem 0 0;
    }
    .matrix__image-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20rem;
        height: 20rem;
        border-radius: 50%;
        overflow: hidden;
    }
    .matrix__image img {
        width: 30rem;
        height: auto;
    }
    .matrix__form h2 {
        margin: 6rem 0 4rem;
    }
    .matrix__destiny {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .matrix__destiny-inner {
        width: 50%;
    }
    .matrix__destiny-inner h3 {
        width: 50%;
    }
    .matrix__footer-cta {
        padding: 4rem 0 4rem;
    }
}

@media (min-width: 768px) {
    .matrix__header {
        flex-direction: row;
    }
    .matrix__image {
        width: 50%;
    }
    .matrix__cta {
        justify-content: start;
        width: 50%;
        padding-top: 0;
    }
    .matrix__result-inner {
        flex-direction: row;
    }
    .matrix__diagram {
        width: 50%;
    }
    .matrix__table {
        width: 50%;
    }
    .matrix__destiny {
        flex-direction: row;
        align-items: start;
    }
    .matrix__destiny-inner {
        width: 25%;
    }

}

@media (min-width: 1200px) {
    .matrix__table-cell {
        font-size: 2rem;
        max-width: 7rem;
    }

    .matrix__table-cell--header {
        font-size: 1.5rem;
    }

    .matrix__table-cell--chakra {
        font-size: 1.5rem;
    }

    .matrix__table-cell--footer-1 {
        font-size: 1.5rem;
    }

}

#matrix__form {
    /*display: none;*/
}

#matrix__result {
    display: none;
    /*display: flex;*/
}
