@font-face {
    font-family: "Halvar-Bold";
    font-style: normal;
    font-weight: 700;
    src: url("HalvarBreit-XBd.ttf") ;
}
@font-face {
    font-family: "Halvar-regular";
    font-style: normal;
    font-weight: 400;
    src: url("HalvarBreit-Rg.ttf") ;
}
html{
    font-family: "Halvar-regular";
    line-height: 1.5;
    tab-size: 4;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 1);
}
body{
    min-height: 100dvh;
    background-color: white;
    white-space: normal;
    overflow-wrap: break-word;
    margin: 0;
}
.home {
    min-height: 100dvh;
    flex-direction: column;
    display: flex;
    align-items: center;
    --style: 1;
}

.navigation{
    z-index: 50;
    top: 0;
    position: sticky;
    width: 85%;
    padding-top: 4dvh;
    padding-bottom: 4dvh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    overflow: hidden;
}
.logo{
    width: 13dvh;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}
.menu{
    width: max-content;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    transition: right 0.5s ease-in-out;
}
.menu-text{
    color: black;
    font-size: 13px;
    padding: 11px 25px;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
    border-radius: 7px;
}
.menu-text.active{
    background-color: var(--active-color);
    color: white;
}
.menu-text.dev{
    color: gray;
}
.menu-text.dev:hover{
    background-color: color-mix(in srgb, var(--active-color), gray 40%);
    color: gray;
}
.menu-text:hover{
    background-color: color-mix(in srgb, var(--active-color), white 40%);
    color: white;
}
.calculator-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 85%;
    margin-top: 35px;
    margin-bottom: 35px;
}
.title-calculator{
    font-family: "Halvar-Bold";
    font-size: 55px;
    color: var(--title-color);
    text-align: center;
}
.des-calculator{
    font-size: 31.87px;
    text-align: center;
}
.calculator-container1{
    max-width: 1200px;
    margin-top: 58px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: -webkit-fill-available;
    padding: 18px;
    border-radius: 25px;
    box-shadow: 0px 1px 4px 0px #00000040;
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
}
.humans{
    width: 45%;
    border-radius: 15px;
}
.calculator-container2{
    width: 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 35px;
    border-radius: 25px;
}
.name-calculator{
    font-family: "Halvar-Bold";
    font-size: 26px;
}
.info-calculator{
    font-size: 14px;
    text-align: left;
    max-width: 368px;
}
.form-calculator{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}
.parameter-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.parameter{
    width: 100%;
    height: 11px;
    border-radius: 4px;
    background: #0000000D;
    backdrop-filter: blur(40px);
    border: 0.89px solid #00000033;
    padding: 12px 10px;
}
.button-calculator{
    width: 100%;
    height: 37px;
    border-radius: 20px;
    color: white;
    background-color: var(--button-bg);
    border: none;
    font-family: "Halvar-Bold";
    font-size: 13px;
    cursor: pointer;
}
.title-result{
    font-size: 30px;
    margin-top: 122px;
}
.number-result{
    font-family: "Halvar-Bold";
    font-size: 90px;
    color: var(--result-color);
}
.table-result{
    font-size: 13px;
    border-radius: 5px;
    border-style: hidden;
    box-shadow: 0 0 0 1px #DBDBDB;
    border-collapse: collapse;
    text-align: center;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    max-width: 1200px;
}
th, td {
    border: 1px solid #DBDBDB; /* Границы для ячеек */
    padding: 8px;
    position: relative;
}

.title-table{
    background-color: var(--table-bg);
}
.title-name-table{
    display: flex;
    justify-content: center;
    gap: 5px;
}
.donut {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: conic-gradient(
      var(--color-yes) 0deg,
      var(--color-yes) calc(var(--percent) * 3.6deg),
      var(--color-no) calc(var(--percent) * 3.6deg),
      var(--color-no) 360deg
    );
}
.donut::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: white; /* Цвет фона страницы или прозрачный */
    border-radius: 50%;
}
.percent-result{
    display: flex;
    justify-content: center;
    gap: 5px;
}
.footer{
    width: 100%;
    background-color: #FAFAFA;
    display: flex;
    padding-top: 61px;
    padding-bottom: 61px;
    justify-content: center;
}
.footer-container{
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.footer-container1{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 115px
}
.footer-container2{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    width: 250px;
}
.footer-text{
    color: #00000099;
    font-size: 10px;
    justify-content: flex-start;
    display: flex;
    align-items: center;
}
.footer-container3{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    width: max-content;
}
.footer-text1{
    font-size: 17px;
}
.footer-text2{
    font-size: 13px;
}
.home[data-style="1"] {
    --title-color: #44B950;
    --button-bg: #80C342;
    --result-color: #44B950;
    --table-bg: #F3FFF1;
    .calculator-container1{
        background-image: url(vector1.svg);
    }
    .humans.one{
        display: flex;
    }
    .humans.two{
        display: none;
    }
    .humans.three{
        display: none;
    }

}

.home[data-style="2"] {
    --title-color: #245BD0;
    --button-bg: #245BD0;
    --result-color: #245BD0;
    --table-bg: #F2F8FF;
    .calculator-container1{
        background-image: url(vector2.svg);
        background-position: center;
    }
    .humans.one{
        display: none;
    }
    .humans.two{
        display: flex;
    }
    .humans.three{
        display: none;
    }
}

.home[data-style="3"] {
    --title-color: #6B44B9;
    --button-bg: #6242C3;
    --result-color: #6242C3;
    --table-bg: #F1F1FF;
    .calculator-container1{
        background-image: url(vector3.svg);
    }
    .humans.one{
        display: none;
    }
    .humans.two{
        display: none;
    }
    .humans.three{
        display: flex;
    }
}
.curtain{
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: fixed;
    background: #00000080;
    z-index: 100;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}
.form-login{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFFBF;
    box-shadow: 0px 4px 30px 0px #0000001A;
    backdrop-filter: blur(25px);
    border-radius: 48px;
    padding: 48px 40px;
    gap: 30px;
    max-width: 810px;
}
.title-form{
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0px 58px;
}
.line{
    width: 100%;
    height: 2px;
    background-color: #00000014;
}
.input-form{
    -webkit-appearance: none;
    -moz-appearance: none;
    width: -webkit-fill-available;
    position: relative;
    display: flex;
    margin: 0px 21px;
    padding: 17px 43px;
    font-size: 14px;
    background: #C4C4C480;
    border: 1px solid rgb(192, 192, 192);
    border-radius: 50px;
    color: black;
}
.button-form{
    width: fit-content;
    background-color: #D2F8C980;
    border-radius: 50px;
    padding: 10px 46px;
    border: 1px solid rgb(192, 192, 192);
    font-family: "Halvar-regular";
    font-size: 18px;
    cursor: pointer;
    color: black;
}
.result-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.footer-text3{
    font-size: 12px;
    align-items: center;
}
.open_menu{
    background-color: #44B950;
    display: none;
    padding: 7px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50px;
    right: 0;
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.switch {
    position: relative;
    display: inline-block;
    width: 75px;
    aspect-ratio: 2 / 1;
    left: -1%;
    border-radius: 7px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    transition: .4s;
    border-radius: 7px;
}
.option {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ccc;
    transition: color 0.4s;
}
.option.ru {
    font-family: "Halvar-regular";
    left: 0;
    background-color: #5c5c5c;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    font-size: 14px;
}
.option.kz {
    font-family: "Halvar-regular";
    right: 0;
    background-color: #FDFDFD;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    font-size: 14px;
}
.language_switch:checked + .slider .option.ru {
    background-color: #FDFDFD;
}
.language_switch:checked + .slider .option.kz {
    background-color: #5c5c5c;
    color: #FDFDFD;
}
.blur_effect{
    filter: blur(5px);
}
.show{
    color: rgba(105, 105, 105, 0.7);
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
.show:hover{
    opacity: 1;
}
.percent-group{
    display: flex;
    justify-content: center;
    gap: 5px;
}
@media (max-width: 800px) {
    .title-calculator{
        font-size: 40px;
    }
    .des-calculator{
        font-size: 25px;
    }
    .calculator-container1{
        flex-direction: column-reverse;
    }
    .humans{
        width: 85%;
    }
    .parameter-container{
        flex-direction: column;
    }
    .calculator-container2{
        align-items: center;
    }
    .info-calculator{
        text-align: center;
    }
    .number-result{
        text-align: center;
    }
    td{
        width: 50%;
    }
    .table-result{
        margin-bottom: 50px;
    }
    .name-calculator{
        text-align: center;
    }
    .calculator-container2{
        width: 80%;
    }
    .footer-container1{
        flex-direction: column;
        align-items: center;
    }
    .title-form{
        font-size: 14px;
        padding: 0px 28px;
    }
    .form-login{
        gap: 10px;
        width: 80%;
    }
    .button-form{
        font-size: 16px;
    }
    .menu{
        right: -100%;

    }
    .menu.active{
        right: 0;
    }
    .open_menu{
        display: flex;
        opacity: 1;
    }
    .menu-text{
        padding: 8px 16px;
    }

}

