@font-face {
    font-family: "TT Norms";
    src: local("TT Norms Regular"), local("TT-Norms-Regular"), url("TTNorms-Regular.woff2") format("woff2"),
        url("TTNorms-Regular.woff") format("woff"), url("TTNorms-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: "TT Norms";
}

.found,
.wrapper_flex {
    display: -webkit-box;
    display: -ms-flexbox;
}

.found,
.wrapper_center {
    -webkit-box-pack: center;
}

.header__content,
.header__wrapper,
.me__left {
    position: relative;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.content__title,
.found__wrapper,
.info__text,
.inst p,
.inst__center ul {
    text-align: center;
}

.content::after,
.header__content::after,
.me__left::after {
    content: "";
}

.inst__center ul,
.me__list,
.pagination ul,
.social__list {
    list-style-type: none;
}

.all__link,
.journal__link,
.journal__title a,
.matrix__button,
.pagination ul li a {
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

body {
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-family: "Roboto", sans-serif;
}

.content,
.wrapper {
    width: 100%;
    margin: 0 auto;
}

.wrapper {
    max-width: 1170px;
}

@media screen and (max-width: 1170px) {
    .wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }
}


.matrix__title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    padding: 15px 0 10px;
    color: #463f39;
}

.matrix__title span {
    font-weight: 400;
}

.matrix__text {
    padding: 0;
    margin: 0;
    font-size: 1.425em;
    font-weight: 300;
    color: #463f39;
}

.matrix__subtitle {
    font-size: 1.8em;
    font-weight: 300;
    color: #fff;
    margin: 0;
    padding-top: 50px;
    padding-bottom: 30px;
}

.matrix__button {
    display: block;
    max-width: 400px;
    width: 80%;
    margin: 0 auto;
    background: #9d504e;
    transition: 0.5s;
    font-size: 1.49375em;
    border: none;
    border-radius: 3px;
    color: #fff;
    line-height: 65px;
    cursor: pointer;
}

.matrix__button:hover {
    background: #d9bc9e !important;
}

.matrix__button.disabled,
.modal {
    display: none;
}

.matrix__button:hover {
    background-color: #353535;
}

.matrix__button:active {
    background-color: #2e2e2e;
}

.matrix__small {
    font-size: 1.08125em;
    font-weight: 300;
    padding-top: 30px;
    margin: 0;
    color: #fff;
}

.matrix__form {
    padding-top: 30px;
    padding-bottom: 15px;
    /* max-width: 550px; */
    width: 100%;
    margin: 0 auto;
}

a {
    color: #fff;
    text-decoration: none;
}

.matrix__input {
    /* margin-bottom: 10px; */
    width: 100%;
    -ms-flex-preferred-size: 100%;
    height: 40px;
    border: none;
    border-bottom: 1px solid #A39A92;
    color: #463f39;
    font-weight: 300;
    outline: none;
    font-size: 1.125em;
}

.matrix__button_wrap button:focus {
    border: none;
    outline: none;
}

.pagination ul,
.result__wrap {
    display: -webkit-box;
    display: -ms-flexbox;
}

.result {
    position: relative;
    transition: height 0.25s;
}

.result__image,
.result__loader {
    position: absolute;
    left: 0;
    right: 0;
}

.result__loader {
    top: 0;
    opacity: 0;
    display: none;
    bottom: 0;
    background-color: #fff;
    transition: opacity 0.25s;
    z-index: 2;
}

.result__image {
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0 auto;
    width: 64px;
    height: 64px;
    background-image: url(../img/preloader.gif);
}

.result__hidden {
    position: relative;
}

.result__form {
    display: none;
}

.result.loader {
    min-height: 200px;
}

.result.loader .result__loader {
    display: block;
    opacity: 1;
}

.result.loader-fade .result__loader {
    opacity: 0;
}

.result__hidden {
    /* display: block; */
    opacity: 1;
    display: flex;
    gap: 20px;
    flex-direction: row;
}

@media (max-width: 992px) {
    .result__hidden {
        flex-direction: column;
        gap: 20px;
    }
}

.result__wrap {
    display: flex;
    color: #fff;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0px 0;

    justify-content: center;
    gap: 16px;
    width: 100%;
    justify-content: space-between;
}

.result__big .result__row,
.result__row {
    display: -webkit-box;
    display: -ms-flexbox;
}

.result__left {
    width: 300px;
    /* margin: auto; */
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.result__item0{
    color:#000 !important;
    /* border: 1px solid #A39A92; */
    display: flex;
    justify-content: center;
    padding-top: 8px;
    height: 78px;
}


.result__right {
    width: 100%;
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    gap: 8px;

}

.result__right .result__item_full {
    background: #E2D7CF;
    border-radius: 8px;
    overflow-wrap: break-word !important;
    /* margin: auto; */
    width: 140px;
}

@media screen and (max-width: 620px) {
    .result__wrap{
        justify-content: center;
    }
    .result__left, .result__right {
        width: 300px;
        margin-left: 0px;
    }
    .result__item_full {
        width: 300px;
        min-width: 300px;
    }
}


@media screen and (max-width: 380px) {
    .result__item_full {
        width: 300px;
        min-width: 300px;
    }
}

.result__big {
    padding: 10px 20px 20px;
    text-align: left;
    height: 130px;
    font-size: 18px;
    background: #A39A92;
    margin-bottom: 20px;
}

.result__big .result__row {
    line-height: 35px;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: space-between;
}

.result__answer,
.result__info {
    display: inline-block;
    font-size: 1.0375em;
    font-weight: 400;
    color: #fff;
}

.result__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.result__item {
width: 100%;
    height: 100px;
    border: 1px solid #ccc;
    opacity: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: opacity 0.25s;
    background: #f8f1ed;
}

.result__item h4,
.result__item p {
    margin: 0;
    font-size: 1.06875em;
    color: #463f39;
    font-weight: 400;
}

.result__item:hover {
    opacity: 1;
}

.result__item h4 {
    padding: 0;
}

.result__item .top h4 {
    color: #fff;
}

.result__item p {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    padding: 10px 0 0;
}

.result__item_full {
    width: 100%;
    height: 78px;
    background-color: #f7f1f1;
    opacity: 1;
    transition: all 0.25s;
    border-color: #f0f0f0;
    margin-bottom: 0px;
    border: 1px #ccc solid;
}

.result__item_full .result__context {
    transition: all 0.25s;
    font-weight: bold;
    opacity: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 992px) {
    .result__row {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .result__item,
    .result__item_full {
        margin: 0;
    }

    .result__wrap {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .result__context {
        height: auto;
    }

    .result__context h4 {
        padding-top: 10px;
    }

    .result__context p {
        padding: 10px 0;
    }
}


@media screen and (max-width: 768px) {
    .result__big .result__row {
        justify-content: flex-start;
    }

    .result__item,
    .result__right .result__item_full {
        border: 1px #ccc solid !important;
    }


    .result__answer,
    .result__info,
    .result__item h4 {
        font-size: 0.75em;
    }

    .result__info {
        flex-basis: auto;
        margin-right: 30px;
    }

    .result__left {
        /* -ms-flex-preferred-size: 76%;
        flex-basis: 76%; */
    }

    .result__right {
        -ms-flex-preferred-size: 24%;
        flex-basis: 24%;
    }

    .matrix__wrapper {
        padding: 0;
    }

    .result__item p {
        font-size: 0.875em;
    }
}



.calc-container-column_title {
    margin-bottom: 36px;
    font-style: normal;
    font-weight: 300;
    font-size: 26px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #331B07;
}

@media (max-width: 992px) {
    .calc-container-column_title {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .calc-container-column_title {
        margin-bottom: 30px;
        font-size: 24px;
    }
}

@media (max-width: 425px) {
    .calc-container-column_title {
        margin-bottom: 25px;
        font-size: 22px;
    }
}

.calc-inps-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
}

@media (max-width: 992px) {
    .calc-inps-header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin: auto;
        max-width: 380px;
        width: 100%;
    }
}


@media screen and (max-width: 380px) {
    .calc-inps-header {
        width: 300px;
    }
}


.calc-inp-matriza {
    outline: none;
    height: 34px;
    border: none;
    text-align: center;
}

#calc-matriza-name {
    /* width: 70px; */
    width: 100%;
}

#calc-matriza-bd {
    /* width: 90px; */
}

#calc-matriza-vz {
    /* width: 50px; */
}

.calc-inp-matriza {
    border-radius: 8px;
    background: rgba(51, 27, 7, 0.06);
    min-width: 144px;
    font-size: 14px;
    line-height: 34px;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

@media (max-width: 767px) {
    .calc-inp-matriza {
        min-width: 120px;
        font-size: 12px;
    }
}

@media (max-width: 450px) {
    .calc-inp-matriza {
        min-width: 100px;
        font-size: 10px;
    }
}

@media (max-width: 359px) {
    .calc-inp-matriza {
        min-width: 85px;
    }
}

input.calc-inp-matriza:hover,
input.calc-inp-matriza:focus {
    background: #ece6e5;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.calc-inps-header-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.calc-inps-header-row:not(:last-child) {
    /* margin-right: 16px; */
}

.calc-inps-header-row span {
    font-weight: 300;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 0.04em;
    color: #000;
    opacity: 0.8;
    margin-bottom: 10px;
    padding-left: 2px;
}

@media (max-width: 992px) {
    .calc-inps-header-row {
        margin-bottom: 4px;
    }
}

h2 {
    font-family: "Playfair Display", serif !important;
    font-size: 48px;
    font-weight: 700;
    line-height: 57.6px;
    letter-spacing: -0.01em;
    text-align: left;
    padding-bottom: 120px;

    @media (max-width: 450px) {
        display: inline;
        text-align: center;
        font-size: 38px;
        padding-bottom: 40px;
    }
}

.primary-button {
    /* display: inline-block; */
    font-family: "Jura", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
    text-align: center;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #26663B;
    color: #FCFCFC;
    min-width: 380px;

    display: block;
    width: fit-content;
    margin: auto;
}


@media screen and (max-width: 380px) {
    .primary-button {
        width: 300px;
        min-width: 300px;
    }
}


.primary-button:hover {
    background: #B49378;
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    /* border: 1px solid #B49378; */
    color: #FFFFFF;
}

::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

* {
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
    user-select: none;
}

.m-auto {
    margin: auto;
}

.w-full {
    width: 100%;
}

.mb-5 {
    margin-bottom: 20px;
}

.flex {
    display: flex;
}

.gap-4 {
    gap: 16px;
}


.flexeble {
    flex-direction: row;
}

@media (max-width: 992px) {
    .flexeble {
        flex-direction: column;
    }
}

.flex-col {
    flex-direction: column;
}
.wrap{
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

#pifagor-square {
    color: #000;
    max-width: 380px;
    width: 100%;
    padding: 12px;
}

h3 {
    font-size: 32px;
}

.primary-button:has(a.disabled) {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.col-reverse {
    flex-direction: column;
}

@media (max-width: 800px) {
    .col-reverse {
        flex-direction: column-reverse;
    }
}

* {
    box-sizing: border-box;
    /* border: 1px solid #f00; */
}