article, aside, details, figcaption, figure, footer, header,
hgroup, menu, nav, section { display: block; }

body, html {
    margin:0;
    padding:0;
    background: #1d1d1d;
    min-height: 100vh;
    line-height: auto;
}

@supports (height: 100dvh) {
    body, html {
        min-height: 100dvh;
    }
}

head {
    height: 0 !important;
}

body {
    background-image: url("../img/background.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

h1, p {
    color:white;
    font-family: "Montserrat";
    font-weight: 500;
    z-index: 3;
    position: relative;
}

h1 {
    font-size: 4vw;
    margin-block-start: 0.3em;
    margin-block-end: 0;
    line-height: 1em;
}

p {
    font-size: 1vw;
}

.maincont {
    display: flex;
    flex-direction: column;
    padding: 15%;
}

.woman {
    max-height: 80%;
    position: fixed;
    bottom:0;
    right:0;
    margin-right:15%;
    z-index: 1;
}

.orange_button {
    background: #E57431;
    border-radius: 30px;
    color: white;
    font-family: 'Montserrat';
    padding:20px 50px;
    width: fit-content;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    z-index: 3;
}

.orange_button:hover {
    color: #E57431;
    background: white;
}

@media screen and (max-width:768px) {
    .maincont {
        padding: 40% 8% 0 8%;
        align-items: center;
    }

    h1 {
        font-size: 12vw;
        text-align: center;
        margin-block-start: 0.3em;
        margin-block-end: 0;
    }

    p {
        font-size: 4vw;
        text-align: center;
        max-width: 70%;
    }

    .woman {
        max-height: 50%;
        position: fixed;
        bottom:0;
        right:auto;
        margin-right:auto;
        align-self: center;
        z-index: 1;
    }

    .orange_button {
        position: fixed;
        bottom: 0;
        align-self: center;
        font-size: 30px;
        border-radius: 60px 60px 0 0;
    }
}

.certs_cont {
    max-width:100%;
    display:flex;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 20px;
    justify-content:center;
    align-items:center;
    padding-bottom: 50px;
}

.certs_cont img {
    max-width: 100%;
}

.maincont_choose {
    max-width:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align: center;
}

.maincont_choose {
    padding:15%;
}

.maincont_choose p {
    color:white;
    font-size:18px;
}

.cert {
    border-radius:15px;
}

.certcont {
    max-width:45%;
    display:flex;
    flex-direction:column;
    align-items:center;
    transition: all 0.1s ease;
    cursor: pointer;
}

.certcont:hover {
    transform: scale(103%);
    filter: contrast(0.7) brightness(1.6);
}

.certcont p {
    margin: 0 0 0 0;
    background:rgb(32, 32, 32);
    padding:10px 40px;
    border-radius:100px 100px 0 0;
    width: fit-content;
}

.certcont [type=radio], .certprice [type=radio] { 
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.flexlist {
    display:flex;
    flex-wrap:wrap;
    gap: 10px;
    align-items:left;
    width:100%;
    margin-top:10px;
}

@media screen and (max-width:765px) {
    .maincont_choose {
        padding: 30% 0 0 0;
    }

    .maincont_choose {
        max-width:100%;
    }

    .certcont {
        max-width:80%;
        display:flex;
        flex-direction:column;
        align-items:center;
    }
}

.maincont_settings {
    backdrop-filter: blur(8px);
    background-color: rgba(29, 29, 29, 0.8);
    max-width:100%;
    display:flex;
    flex-direction: column;
    justify-content:flex-start;
    align-items:center;
    text-align: center;
    min-height: 100vh;
    height: fit-content;
    padding: 120px 2% 100px 2%;
}

@supports (height: 100dvh) {
    .maincont_settings {
        min-height: 100dvh;
    }
}

.maincont_settings h2 {
    font-family: 'Montserrat';
    color:white;
    font-weight: 500;
    text-align: left;
    width: 90%;
    padding-bottom: 10px;
}

.maincont_settings img {
    border-radius: 30px;
}

.maincont_settings button, .positions_overlay button{
    font-family: 'Montserrat';
    color: white;
    background: #3a3a3a;
    outline: none;
    border: none;
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 30px;
    width: 100%;
}

label {
    color: white;
    font-size: 14px;
    font-family: 'Montserrat';
    margin-top: 20px;
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}

.butns {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap:10px;
    white-space: nowrap;
}

/* Только кнопки шагов сертификата: класс active есть и у раскрытого меню шапки */
button.active {
    background: #E57431 !important;
}

.splash {
    font-size: 16px;
    position:absolute;
    border-radius:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--orange);
    transform: translate(235%, -100%);
}


input, textarea {
    font-family: 'Montserrat';
    color: white!important;
    background: #3a3a3a;
    outline: none;
    border: none;
    font-size: 16px;
    padding: 15px 20px !important;
    border-radius: 30px !important;
    width: 100%;
}

textarea {
    resize: none;
    overflow: hidden;
}

.danger {
    color: red;
    min-width: 90%;
    font-size: 14px;
    margin-top: 20px;
    text-align: left;
}

.fee {
    min-width: 90%;
    font-size: 12px;
    margin-top: 20px;
    text-align: left;
}

.fixed {
    position: fixed;
    bottom: 0;
    padding: 2% 0 2% 0;
    width: 96%!important;
    /* background: linear-gradient(0deg, rgba(29,29,29,1) 0%, rgba(29,29,29,0.9220063025210083) 25%, rgba(14,14,14,0.6446953781512605) 61%, rgba(0,0,0,0) 100%); */
    z-index: 20;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.just_price_pos {
    font-size: 20px;
    text-wrap: nowrap;
}

.positions_overlay {
    position:fixed;
    top:0;
    left:0;
    background: #1d1d1d;
    width:100vw;
    display:flex;
    flex-direction: column;
    align-items:center;
    text-align: center;
    height: 100vh;
    padding: 120px 2% 120px 2%;
    z-index: 10;
    overflow-y:scroll;
    gap: 20px;
}

@supports (height: 100dvh) {
    .positions_overlay {
        height: 100dvh;
    }
}

.close {
    min-width: 100%;
    text-align:right;
    font-size:30px;
    color:white;
    margin:0;
    cursor:pointer;
    margin-bottom:20px;
    
}

.additionals_overlay {
    background-color: #1d1d1d;
    max-width:100%;
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
    text-align: center;
    min-height: 100vh;
    padding: 120px 2% 200px 2%;
    z-index: 10;
    gap: 20px;
}

@supports (height: 100dvh) {
    .additionals_overlay {
        min-height: 100dvh;
    }
}

.position_in_list {
    display: flex;
    justify-content: left;
    width: 100%;
    height: fit-content;
    background-color: #383838;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #383838;
}

.position_in_list:hover {
    filter: contrast(0.7) brightness(1.6);
}

.certprice [type=text] {
    border: 1px solid #383838;
}

.certprice [type=text]:focus  {
    border: 1px solid #383838;
}

.position_in_list.checked, .certprice.checked [type=text] {
    border-color: #e57431;
    outline: 0;
    box-shadow: 0 0 4px 4px rgba(229, 116, 49, .25);
}

.added {
    margin: 0;
    max-width:fit-content;
}

.added .butns button, .added .butns p {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    padding: 0;
}

.added .butns {
    margin: 0;
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.added img {
    height:100px;
}

.added .butns button {
    padding: 0;
    background: none;
    font-size: 30px;
    height: 100%;
}

.added .name_pos, .added .price_pos {
    font-size: 12px;
    min-width:100px;
}

.textcontpos {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px;
    gap: 10px;
    height:100px;
}

button {
    font-family: 'Montserrat';
    color: white;
    background: #3a3a3a;
    outline: none;
    border: none;
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 30px;
    width: 100%;
    cursor: pointer;
    transition: all ease 0.2s;
}

button:hover {
    filter:invert(100) grayscale(100);
}

.textcontpos p {
    text-align: left;
    margin-block-start: 0;
    margin-block-end: 0;
}

.name_pos {
    font-size: 18px;
}

.price_pos {
    font-size: 16px;
}

.count_pos {
    font-family: 'Montserrat';
    color: white;
    font-size: 18px;
    padding: 15px 10px;
}

.pos_text {
    font-size: 12px;
    min-width: 100%;
}

.maincont_settings h3 {
    font-size: 50px;
    color: white;
    font-family: 'Montserrat';
    font-weight: 500;
    margin-block-start: 0;
    margin-block-end: 0;
}

.cert_code {
    display: flex;
    flex-direction: column;
    align-items: center;
}

ol {
    color: white;
    font-family: 'Montserrat';
    font-size: 14px;
    text-align: left;
    max-width: 100%;
    margin: 40px 0;
}

li {
    margin-top: 10px;
}

.cert_sample {
    width: 100%;
}

.code_code {
    font-family:'hibana' !important;
}

.underr, .additionals_overlay h2{
    font-family: 'Montserrat';
    color: white;
    font-weight: 500;
    margin-block-start: 0;
    margin-block-end: 0;
}

@media screen and (min-width:1200px) {
    .maincont_settings, .positions_overlay, .additionals_overlay {
        padding: 100px 30% 120px 30% !important;
    }
}

@media screen and (min-width:768px) {
    .maincont_settings, .positions_overlay, .additionals_overlay {
        padding: 100px 120px 120px 120px;
    }

    .fixed {
        width: 100%!important;
        padding: 20px 30vw 20px 30vw;
    }

    .img_additions {
        max-height: 200px!important;
    }
}

.plusminus {
    max-width: 200px;
}

.loading_screen {
    background-color: #1d1d1d;
    width:100%;
    display:flex;
    position:fixed;
    top:0;
    left:0;
    flex-direction: column;
    justify-content:center;
    align-items:center;
    text-align: center;
    min-height: 100vh;
    z-index: 100;
    gap: 20px;
}

@supports (height: 100dvh) {
    .loading_screen {
        min-height: 100dvh;
    }
}

.loading_screen img {
    max-width: 100px;
    animation: loading 1.2s infinite ease;
}

@keyframes loading {
    50% {
        transform: scale(120%);
    }
}

.loading_screen h2 {
    color: white;
    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 500;
    animation: loading 1.2s infinite ease;
    text-align:center;
}

.loading_screen h4 {
    color: white;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 500;
    text-align:center;
}

.confirmation_info {
    color: white;
    font-family: 'Montserrat';
    font-size: 18px;
    text-align: left;
    max-width: 100%;
    margin: 40px 0;
}

.popup_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block-start: 0;
    margin-block-end: 0;
    padding: 0 10px 0 10px;
}

.popup_header p {
    margin: 0;
    padding: 0;
}

.popup_header_text {
    font-size:20px;
}

.close_butt_certs_pop_up {
    font-size:40px;
    cursor:pointer;
    transition: all ease 0.1s;
    display: inline-block;
}

.close_butt_certs_pop_up:hover {
    color: var(--orange);
}

.certs_pop_up {
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */
    justify-content: center;
    align-items: center;
    width:100vw;
    height:100vh;
    position:fixed;
    top:0;
    left:0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    z-index:99;
}

.popup_data {
    max-height: 80vh;
    overflow: auto;
}

@supports (height: 100dvh) {
    .certs_pop_up {
        min-height: 100dvh;
    }
}

.popup_cont {
    -webkit-box-shadow: 0px 0px 25px 17px rgba(229, 116, 49, 0.2);
    -moz-box-shadow: 0px 0px 25px 17px rgba(229, 116, 49, 0.2);
    box-shadow: 0px 0px 25px 17px rgba(229, 116, 49, 0.2);
    margin: 0 100px;
}