.__acc-box {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    /* transform: scaleY(0.95); */
    transition: .5s ease;
    margin-top: 0;
}

.__acc-box.open {
    max-height: 100%;
    opacity: 1;
    /* margin-block: 4rem; */
    /* transform: scaleY(1); */
    /* margin-top: .63rem; */
}

@media (max-width: 767px) {
    .__acc-box.open {
        /* margin-block: 2rem; */
    }
}

.__acc-svg {
    transition: all .3s ease;
}
.__acc-svg.open {
    transform: rotate(45deg);
}
.__acc-svg-1 {
    transition: all .5s ease;
}
.__acc-svg-1.open {
    transform: rotate(180deg);
}




/* ==================== burger ==================== */

.__burger_icon {
    display: block;
    position: relative;
    width: 2.2rem;
    height: 2.2rem; /* Устанавливаем фиксированную высоту */
    /* overflow: hidden; */
    cursor: pointer;
    /* margin-top: 9px; */
    /* margin-bottom: 9px; */

    span {
        display: block;
        position: absolute;
        width: 2.2rem;
        height: 0.2rem;
        background-color: #FFFEF6;
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    span:nth-child(1) {
        top: 0.5rem; /* Верхняя линия */
        left: 0;
    }

    span:nth-child(2) {
        top: 1rem; /* Средняя линия */
        left: 0;
    }

    span:nth-child(3) {
        top: 1.5rem; /* Нижняя линия */
        left: 0;
    }
}

.__burger_icon.open {
    span:nth-child(1) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg); /* Верхняя линия становится частью крестика */
    }

    span:nth-child(2) {
        opacity: 0; /* Скрываем среднюю линию */
    }

    span:nth-child(3) {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg); /* Нижняя линия становится частью крестика */
    }
}




@media (max-width: 1024px) {
    .content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #8C8C8C;
        z-index: -1;
        gap: 1.75rem;
        align-items: end;
        display: flex;
        flex-direction: column;
        padding: 1rem 1rem 6.5rem;
        /* color: #F5F7FA; */
        opacity: 0;
        visibility: hidden;
        transition: all .3s;
        max-width: 100%;
        height: 100%;
        justify-content: end;
    }

    .content--open {
        opacity: 1;
        visibility: visible;
        /* padding-top: 11.5rem; */
        /* padding-bottom: 3rem; */
    }
}


/* ==================== radio-button ==================== */

.__radio-checkbox {
    display: flex;
    position: relative;
    align-items: center;
}

.__radio-checkbox input[type="checkbox"],
.__radio-checkbox input[type="radio"] {
    display: none;
}

.__radio-checkbox input[type="checkbox"] + ._custom,
.__radio-checkbox input[type="radio"] + ._custom {
    display: block;
    position: relative;
    min-width: 14px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--black-color);
    cursor: pointer;
    border-radius: 50%;
    margin-right: .3em;
}

.__radio-checkbox input[type="checkbox"]:checked + ._custom {
    background: orange;
    background-position: center;
    background-repeat: no-repeat;
}



/* ==================== modal ==================== */

/* .__modal {
    display: flex;
    align-items: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    transition: .3s;
    opacity: 0;
    visibility: hidden
}

.__modal.show {
    opacity: 1;
    visibility: visible;
    z-index: 260;
    overflow-y: auto;
}

.__modal ._fade {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 6;
    background-color: rgba(36, 36, 36, 0.4);
    backdrop-filter: blur(0.35rem);
    position: fixed;
}

.__modal ._item-modal {
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 202;
	overflow-y: auto;
}

.__modal ._body {
    display: block;
    width: 25em;
    margin: 0 auto;
    background-color: var(--white-blue-color);
    position: relative;
    z-index: 300;
    padding: 2.5em;
    transition: .3s;
    margin-top: 5em;
    margin-bottom: 5em;
} */



.__modal{
    visibility: hidden;
    opacity: 0; 
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    position: fixed;
    top: 0em;
    left: 0em;
    right: 0em;
    bottom: 0em;
    padding: 2em 1em;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
    z-index: 1000;
    overflow: auto;
  }
  
  .__modal_window{
    overflow: hidden;
    box-sizing: border-box;
    position: relative; 
    margin: auto;
    min-height: 5em;
    visibility: hidden; 
    opacity: 0; 
    transition: opacity 0.2s;
    box-shadow: 0em 0em 1em rgb(0 0 0 / 50%);
    z-index: 1001;
    flex: 1;
    padding: 4.5rem;
    /* border: 1px solid #888; */
    width: 80%;
    max-width: 58.75rem;
    border-radius: 1.5rem;
    background-color: #F56C03;
    /* background: url('/wp-content/themes/codex/assets/image/modal.png'); */
    background-size: cover;
    /* background-position: center; */
  }
  
  .__modal_close{
    font-size: 2em;
    position: absolute;
    /* top: 2rem;
    right: 2rem; */
    border-radius: 50%;
    padding: 0.5em;
    cursor: pointer;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
  }
  
  .__modal_close:before, .__modal_close:after{
    content: "";
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    height: 2px;
    background: #200E09;
  }
  
  .__modal_close:before {transform: rotate(45deg);}
  .__modal_close:after {transform: rotate(-45deg);}
  
  .__modal_close:hover{
    opacity: 1;
  }
  
  
  body.is-modal{
    overflow: hidden;
  }
  
  body.is-modal .__modal.is-active{
    transition-delay: 0s;
    visibility: visible;
    opacity: 1;
    z-index: 999999;
  }
  
  body.is-modal .__modal.is-active .__modal_window{
    visibility: visible;
    opacity: 1;
  }
  

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

h2 {
    margin-top: 0;
}

form {
    /* max-width: 31.375rem; */
    /* width: 100%; */
    /* display: flex; */
    /* flex-direction: column; */
}

label {
}

input {
    /* width: 100%; */
    /* padding: 1.1rem 1.44rem !important; */
    /* border-radius: .625rem; */
    /* border: 1px solid #fff; */
    background: transparent;  
}

input::placeholder {
    /* color: #200E09 !important; */
}

/* button[type="submit"] {
    padding: .5rem 2rem;
    border: 2px solid #FFFBF0;
    background: #FFFFFF1A;
    color: #fff;
    cursor: pointer;
    transition: .2s;
}

button[type="submit"]:hover {
    background: #fff;
    color: #494949 !important;
} */




  .radio-label {
    color: #083872; /* Цвет текста */
    display: flex;
    align-items: center;
    /* justify-content: center; */
  }
  
  .radio-input {
    display: none; /* Прячем стандартную радиокнопку */
  }
  
  .custom-radio {
    /* margin-top: 0.5rem; */
    display: inline-block;
    max-width: 0.875rem;
    max-height: 0.875rem;
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    /* border-radius: 50%; */
    border: 1px solid #fff;
    margin-right: .62rem; /* Отступ справа от радиокнопки */
    position: relative;
  }
  
  .radio-input:checked + .custom-radio::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    /* border-radius: 50%; */
    background-color: #fff;
  }


@media (max-width: 768px) {
    .__modal_window {
        padding: 3rem;
    }
}
@media (max-width: 640px) {
    .__modal_window {
        padding: 2rem 1rem;
    }
    input {
        /* padding: .75rem !important; */
    }
    button[type="submit"] {
        /* padding: 1.25rem !important; */
    }
}



/* ==================== form ==================== */

._form {
	position: relative;
    width: 100%;
}

._form .__label-name {
    color: var(--black-color);
    font-weight: 500;
    font-size: 1.1em;
}

._form.--modal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

._form .__form-field {
    width: 100%;
}

._form .__form-field input,
._form .__form-field textarea {
    width: 100%;
    padding: 1.1em;
	background-color: transparent;
	resize: none;
    color: var(--dark-grey-color);
    border: 2px solid var(--black-color);
    font-size: 1em;
    font-family: "Nekst", sans-serif;
    font-weight: 500;
    font-size: 1em;
}

._form .__form-field textarea {
    height: 8em;
}

._form a:hover {
    text-decoration: underline;
}



/* ==================== map ==================== */
.__map iframe {
    width: 100%;
    height: 100%;
}



/* ==================== link ===================== */

.__link{
	font-size: 1em;
	padding: 0;
	border: 0;
	color: inherit;
	background-color: transparent;
	cursor: pointer;
	transition: color 0.2s ease-out, opacity 0.2s ease-out;
}

.__link.underline:not(:hover){
	text-decoration: underline;
}

.__link.hover-underline:hover, .__link.hover-underline.is-active{
	text-decoration: underline;
}

.__link.hover-opacity:hover, .__link.mod-hover-opacity.is-active{
	opacity: 0.65;
}

.__link.hover-opacity:active{
	opacity: 0.45;
}



/* ==================== scroll ==================== */

.btn-toggle.active {
    background-color: #F56C03;
    color: white;
}

.scroll::-webkit-scrollbar {
    width: 0.1875rem;
    height: .5rem;
    border-radius: 5rem;
}

.scroll::-webkit-scrollbar-thumb {
    background-color: #F56C03;
    border-radius: 5rem;
}

.scroll::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-radius: 5rem;
}

.scroll::-webkit-scrollbar-button {
display: none;
}



/* ==================== breadcrumbs ==================== */

.breadcrumbs > *{
	opacity: 0.75;
}
.breadcrumbs *:hover{
	opacity: 1;
}

.breadcrumbs {
    /* padding-top: 2rem; */
    /* padding-bottom: 2.5rem; */
    display: flex;
    gap: .75rem;
    align-items: center;
    /* justify-content: center; */
    flex-wrap: wrap;
    li {
        width: fit-content;
        min-width: fit-content;
        display: flex !important;
        align-items: center;
        gap: .75rem;
        height: fit-content;
        a {
        text-decoration: none;
        }
        &::after {
            /* width: 22px; */
            /* height: 28px; */
            content:'-';
            color: #000;
            font-size: inherit;
        }
        &:last-of-type {
            &::after {
            content: unset;

            }
        }
    }
}

/* ==================== the_content ==================== */
.__the_content p{
	margin: 0.75em 0;
}

.__the_content > *:first-child{
	margin-top: 0;
}

.__the_content > *:last-child{
	margin-bottom: 0;
}

.__the_content strong{
	font-weight: 500;
}

.__the_content h1,
.__the_content h2,
.__the_content h3,
.__the_content h4,
.__the_content h5,
.__the_content h6{
	font-weight: 600;
	margin: 1.5rem 0 0.75rem;
}

.__the_content ul{
	list-style: disc;
}

.__the_content ol{
	list-style: decimal;
}

.__the_content ul, .__the_content ol{
	margin: 0 0 0 1.2em;
}

.__the_content ul li, .__the_content ol li{
	margin: 0.5em 0;
}

.__the_content a{
	text-decoration: underline;
}

.__the_content a:hover{
	text-decoration: none;
}
