*, *:after, *:before {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
    outline: none;
    background: transparent;
    border: 0;
}
* {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}
body {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--body_color);
	background: var(--body_background);

    display: flex;
    min-height: 100vh;
    flex-direction: column;

}
/* страница остаётся на месте, пока открыто окно */
.body_fixed{
    overflow: hidden;
}
html{
    scroll-padding-top: 72px;
}
button{
    font: inherit;
    color: inherit;
    cursor: pointer;
}
:focus-visible{
    outline: 2px solid var(--focus_ring);
    outline-offset: 2px;
}
article:focus{
    outline: none;
}
.skip_link{
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: var(--content_background);
    color: var(--content_link);
}
.skip_link:focus{
    top: 0.5rem;
}
a{
    text-decoration: none;
    color: var(--content_link);
}
ol>li>a{
    font-size: 0.9rem;
}

header{
    position: sticky;
    top: 0;
    z-index: 40;
    flex-shrink: 0;
    margin-bottom: 1rem;
    box-shadow: 0 5px 5px rgba(136, 145, 157, 0.1), 0 1px 0 var(--header_line_color);
    height: 60px;
    min-height: 60px;
    background-color: var(--content_background);
}
ol {
	counter-reset: num;
	margin: 0 0 0 35px;
	padding: 15px 0 5px 0;
	font-size: 18px;
}
ol li {
	margin: 0;
	padding: 0;
}
ol li:before {
	content: counter(num) '.'; 
	counter-increment: num;
	display: inline-block;	
	position: absolute;
	top: 0px;
	left: -26px;
	width: 20px;    
	color: var(--content_subtext);
	text-align: right;
}
ul{
    padding:0 1rem;
}
ul li {
    margin-bottom:1rem;
}
ul li::marker {
	color: rgb(185, 185, 185);
	font-size: 18px;
    margin-bottom:1rem;
}
article{
    margin-bottom: 1.5rem;
    min-width: 0;
    max-width: 100%;
}
math{
    font-size: 1.2rem;
    max-width: 100%;
    overflow-x: auto;
}
@media(min-width: 1200px) {
    article{
        flex: 1 1 0;
    }
    aside{
        flex: 0 0 300px;
        width: 300px;
        min-width: 0;
    }
}
mfrac{
    font-size: 1.5rem; 
}

h3{
    background-color: var(--h3_text);
    padding: 5px;
    display: block;
    border-radius: 5px;
}
p{
    text-indent: 5px;
}
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    
}
#header_logo > a{
    display: block;
    height: 50px;
    width: 50px;
}
#header_logo a{
    color: var(--header_logo_color);
}
.w-f{
    display: flex !important;
}
.w-f_col{
    display: flex !important;
    flex-direction: column;
}
.w-f_row{
    display: flex !important;
    flex-direction: row;
}
.vert_center{
    align-items: center;
}
.gap1{
    gap: 1rem; 
}

.header_button,.header_controller{
    color: var(--header_button_color);
    cursor: pointer;
}
#header_button_menu span {
    background-color: var(--header_button_color);
    display: block;
    width: 25px;
    height: 4px;
    border-radius: 1px;
	margin-bottom: 5px;
}
.header_buttonspan:last-child {
    margin: 0;
}

.header_controller{
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.header_popup {
    visibility: hidden;
    display: flex;
    overflow: auto;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    z-index: 99;
    padding: 0.25rem 0;
    background: var(--body_background);
    border: 1px solid var(--header_button_border_color);
    top: 1.75rem;
    right: 0.25rem;
    border-radius: 6px;
    position: absolute;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05), 0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 420px;
}
.header_popup_active{
    visibility: visible !important;
    transition: 0.3s;
    opacity: 1;
    pointer-events: auto;
}
.header_popup_button{
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: 0.15s;
    padding: 0.5rem 1rem;
    width: 100%;
    font-weight: 500;
    gap: 1rem;
    color: var(--header_popup_button_color);
    cursor: pointer;
}
.header_popup_button > a{
    color: var(--header_popup_button_color);
}
.header_popup_button:hover {
    background:var(--header_popup_button_color_hover);
}
.header_popup_button_active{
    color:var(--header_popup_button_color_active);
}
.header_popup_button_active > a {
    color:var(--header_popup_button_color_active);
}
.header_popup_lang {
    visibility: hidden;
    display: flex;
    overflow: auto;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    z-index: 99;
    padding: 0.25rem 0;
    background: var(--body_background);
    border: 1px solid var(--header_button_border_color);
    top: 1.75rem;
    right: 0.25rem;
    border-radius: 6px;
    position: absolute;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.05), 0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 420px;
}
.header_popup_active{
    visibility: visible !important;
    transition: 0.3s;
    opacity: 1;
    pointer-events: auto;
}



.header_navigation{
    display: flex;
    margin-left: 30px;
    gap: 3%;
    width: 100%;
}
.header_navigation>a{
    color:var(--header_button_color);
    white-space: nowrap;
}
/* значки вместо текстового меню: на узких экранах текст не помещается */
.header_quick{
    display: none;
    margin-right: auto;
    margin-left: -8px;
}
.header_quick>a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    color: var(--header_button_color);
}




#breadcrumbp {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0;
    list-style: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
} 
li.breadcrumb-item {
    padding: 0;
    background: none;
}
.breadcrumb-item {
    padding-left: .5rem;
} 
.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding: 0 .5rem;
    color: #6c757d;
    content: "/" ;
} 
.breadcrumb-item a {
    color: var(--breadcrumb_link);
    text-decoration: none;
}


.container{
    padding: 0 0.75rem;
    width: 100%;
    margin-right: auto;
    margin-left: auto
}
.fcontainer{
    display:flex;
    flex-direction: row;
}

main{
   min-height: 50vh; 
}

.home{
    text-align: center;
}
.home_title{
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 2.5rem;
    color: var(--content_title);
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}
.home_subtitle{
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    text-align: center;
    color: var(--content_title);
    margin-bottom: 1.25rem;
}
.home_cntr{
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 14px;
    background: var(--content_background);
    align-items: center;
    margin-bottom: 1.25rem;
    max-width: 320px;
    margin: 0 auto;
    margin-bottom: 1rem;
}
.home_cntr_count{
    padding: 0.125rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: var(--content_title);
    border-radius: 10px;
    background: var(--link_background);
}
.home_cntr_text{
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1rem;
    color: var(--content_text);
}


/* страница со списком из категории */
.calc_categories{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
.calc_category{
    padding-top: 1.5rem;
    position: relative;
    width: 100%;
}

.calc_category_icon{
    width: 48px;
    height: 48px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--icon_background);
    border-radius: 10px;
}
.calc_category_col{
    padding: 3.5rem 1.5rem 2rem;
    border-radius: 8px;
    background-color: var(--content_background);
    width: 100%;
    height: 100%;
}
.calc_category_title{
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 500;
    text-align: center;
    color: var(--content_title);
    margin-bottom: 1.25rem;
}
.calc_category_description{
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--content_text);
    text-align: left;
}
.calc_category_links{
    gap: 0.75rem;
}
.calc_category_link{
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
    color: var(--content_link);
    transition: 0.15s ease;
}
.calc_category_more{
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    text-align: center;
    color: var(--content_title);
    margin-top: 0.25rem;
    transition: 0.15s ease;
}
.calc_category_more:hover{
    opacity: 0.7;
}

.block_content{
    font-size: 1.25rem;
    line-height: 1.85rem;
    font-weight: 400;
    text-align: left;
    margin: 0 auto 3rem;
    color:  var(--content_text);
}
.block_content p{
    margin:1.25em 0;
}
.block_text{
    padding: 0.5rem 1.5rem 1rem;
    font-size: 1rem;
    line-height: 1.75rem;
    color:  var(--content_title);
    background-color: var(--content_background);
    margin-bottom: 10px;
}
.block_text p{
    margin:1.25em 0;
}
/* картинки и таблицы статей не шире экрана: широкая таблица прокручивается сама, а не вся страница */
.block_text img{
    max-width: 100%;
    height: auto !important;
}
.block_text table{
    display: block;
    max-width: 100%;
    overflow-x: auto;
}
/* раздел «Таблицы» */
.tables_group_title{
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}
.tables_group_title a{
    color: var(--arcticle_text);
    text-decoration: none;
}
.tb_title{
    font-size: 1.25rem;
    margin: 1.5rem 0 .75rem;
    color: var(--arcticle_text);
}
.tb_wrap{
    max-width: 100%;
    overflow-x: auto;
}
.tb_table{
    border-collapse: collapse;
    margin: 0 auto;
    color: var(--arcticle_text);
}
.tb_table th, .tb_table td{
    border: 1px solid var(--header_button_border_color);
    padding: .4rem .7rem;
    text-align: left;
}
.tb_table th{
    font-weight: 600;
}
.tb_table thead th{
    background-color: var(--formula_background);
}
.tb_center th, .tb_center td{
    text-align: center;
    white-space: nowrap;
}
.tb_note{
    margin: .75rem 0 0;
    font-size: .9rem;
    color: var(--content_text);
}
.block_article{
    font-size: 1.25rem;
    line-height: 1.85rem;
    font-weight: 400;
    text-align: left;
    margin: 0 auto 3rem;
    color:  var(--arcticle_text);
}
.block_article p{
    margin:1.25em 0;
}

.formula{
    text-align: center;
    background-color: var(--formula_background);
    border-radius: 5px;
    padding: 10px;
    margin-left: 2rem;
    margin-right: 2rem;
}
.calculator_icon{
    background-color: var(--icon_background);
    border-radius: 10px;
}
/* sidebar*/

aside{
    padding: 0px 1rem;
}
.aside_title{
    text-transform: uppercase;
    color: var(--content_text);
    letter-spacing: 0.025em;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 500;
}
.similar_calc:not(.similar_calc:last-child) {
    margin-bottom: 1.25rem;
}
.similar_icon{
    width: 58px;
    /*height: 58px;*/
    border-radius: 6px 0px 0px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--icon_background);
    overflow: hidden;
}
.similar_calc_info_block{
    padding: 0.5rem 1rem;
    background: var(--content_background);
    color:var(--content_title);
    border: 1px solid #D1D5DB;
    border-left: 0;
    border-radius: 0px 6px 6px 0;
    width: 100%;
    /*height: 58px;*/
}
.similar_calc_info_link{
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    /*-webkit-line-clamp: 1;*/
    overflow: hidden;
}
.similar_calc_info_subtext{
    color: var(--content_subtext);
    font-size: 0.7rem;
}
/* calc  */
.calculator_title{
    gap: 20px;
    align-items: center;
    padding: 1.25rem 1rem;
}
.calculator_link {
    /* длинные слова в названии переносятся по слогам, а не вылезают за экран */
    hyphens: auto;
    overflow-wrap: break-word;
    min-width: 0;
    font-size: 1.5rem;
    line-height: 2rem;
    color: var(--content_title);
    padding-top: 6px;
    font-weight: 700;
}
.calculator_info{
    min-width: 0;
}
.calculator_description{
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--content_text);
    font-weight: 500;
}
.calculator_button{
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: 0.15s;
    padding: 0.5rem 1rem;
    width: 100%;
    font-weight: 500;
    gap: 0.5rem;
    flex-wrap: wrap;
    /*cursor: pointer;*/
}
.button{
    cursor: pointer;
}
/* кнопки под калькулятором: «Поделиться», «Проверь себя» */
.calculator_action{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--calculator_action_border);
    color: var(--content_link);
    white-space: nowrap;
    text-decoration: none;
}
.calculator_action:hover{
    border-color: var(--content_link);
}

/*ads*/
.ads:not(:empty){
    min-height: 300px;
}

.modal_window{
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    transition: backdrop 0.3s, opacity 0.3s;
    pointer-events: none;
    opacity: 0;
}
.modal_window:before {
	content: '';
	background: #000;
	position: fixed; 
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%;
	opacity: 0.7;
	z-index: 99;
}
.modal_window_active{    
    visibility: visible;
    background: rgba(17, 24, 39, 0.1607843137);
    opacity: 1 !important;
    pointer-events: auto !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.modal_menu{
	position: fixed;
    font-size: 1.3em;
    background: var(--content_background);
    box-shadow: 0px 5px 5px #CCC, 0px 0px 5px #A5A5A5;
    padding: 0 10px;
	right: 0;
	top: 0;
	bottom: 0;
	width: 300px;
	transition: transform 0.2s ease-in-out, visibility 0s linear 0.2s;
	transform: translateX(100%);
	overflow-y: auto;
    z-index: 100;

}
#modal_menu_header{
	display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    height: 48px;
    background: var(--content_background);
}
/* форма и список результатов - прямые участники панели, иначе форма не прилипнет к верху */
.modal_menu_search{
    display: contents;
}
.modal_menu_search .modal_search_form{
    position: sticky;
    top: 48px;
    z-index: 2;
    padding-bottom: 0.75rem;
    background: var(--content_background);
}
.modal_menu_search .modal_search_list,
.modal_menu_search .modal_search_list_error{
    height: auto;
    transition: none;
}
.modal_menu_search .modal_search_list_active{
    max-height: none;
    overflow: visible;
    padding: 0.5rem 0;
}
.modal_menu_search .modal_search_list_error{
    padding: 0.5rem 0;
}
.modal_menu_search .modal_search_item{
    padding: 0.5rem;
}
.modal_menu_searching .modal_menu_catalog{
    display: none;
}
.modal_menu_list{
	margin-left: 10px;
}
/* видимость без плавности: скрытому элементу нельзя передать фокус при открытии */
.modal_menu_active{
    transform: none;
    transition: transform 0.2s ease-in-out, visibility 0s;
}
.modal_menu_group_title{
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--content_link);
}
.modal_menu_list .modal_menu_group_title{
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}
.modal_menu_category{
    margin-bottom: 0;
}
.modal_menu_category[open]{
    margin-bottom: 0.75rem;
}
.modal_menu_category_title{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}
.modal_menu_category_title::-webkit-details-marker{
    display: none;
}
/* стрелка раскрывает и сворачивает раздел, ссылка в заголовке раскрывает свёрнутый раздел, а в раскрытом ведёт на его страницу */
.modal_menu_category_title::before{
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    margin: 0 0.25rem;
    border-right: 2px solid var(--content_link);
    border-bottom: 2px solid var(--content_link);
    transform: rotate(-45deg);
    transition: transform 0.2s;
}
.modal_menu_category[open] > .modal_menu_category_title::before{
    transform: rotate(45deg);
}
.modal_menu_category_title .header_nav_cntr{
    margin-left: 0.35em;
    font-weight: normal;
    color: var(--content_subtext);
}
.modal_menu_category a[aria-current="page"]{
    font-weight: bold;
    color: var(--content_title);
}
.modal_menu_category a{
    color: var(--content_link);
}
.modal_menu_category_title a{
    color: var(--content_title);
}
.modal_menu_category ul{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}
.modal_menu_category li{
    display: flex;
    margin: 0;
    font-size: 1.1rem;
}


/* modal search */

.modal_search{
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    opacity: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    position: fixed;
    top: 1rem;
    z-index: 100;
    width: 100%;
    max-width: 344px;
}
.modal_search_active{
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.modal_search_container{
    background: var(--content_background);
    color:var(--content_title);
    border-radius: 1.5rem;
    overflow: hidden;
}
.modal_search_form{
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal_search_input{
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
    padding-right: 3.25rem;
    line-height: 1.5rem;
    color:var(--content_title);
}
.modal_button{
    width: 1.25rem;
    height: 1.25rem;
    position: absolute;
    cursor: pointer;
}
.modal_search_button{
    top: 18px;
    right: 1rem;
    color:var(--content_link);
}
.modal_search_list{
    display: flex;
    flex-direction: column;
    overflow: auto;
    width: 100%;
    transition-property: max-height, padding-top, padding-bottom;
    transition-duration: 0.3s;
    height: 100%;
    border-top: 0px solid var(--header_button_border_color);
    padding: 0rem;
    max-height: 0;
}
.modal_search_list_active{
    border-top-width: 1px;
    min-height: 0;
    padding: 0.75rem 0rem;
    max-height: 300px;
}
.modal_search_list_error{
    background: var(--content_background);
    max-height: 420px;
    padding: 1rem;
    overflow: auto;
}
.modal_search_popular{
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--content_text);
}
.modal_search_item{
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    gap: 0.75rem;
}
.modal_search_item_icon{
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--icon_background);
}
.modal_search_item_text{
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--content_title);
}
.modal_search_error{
    gap: 0.75rem;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}
.modal_search_list_error .modal_search_error{
    order: -1;
    text-align: center;
    margin-bottom: 0.75rem;
    opacity: 1;
    position: relative;
    transition: opacity 0.3s;
}
.modal_search_title_error{
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
    font-weight: 600;
    color:  var(--content_text);
}
.modal_search_decription_error{
    font-size: 0.865rem;
    color: var(--content_subtext);
    text-align: center;
}

/* поиск в шапке: на больших экранах поле видно сразу, результаты открываются под ним */
.header_search{
    display: none;
    position: relative;
    flex: 0 0 280px;
    width: 280px;
}
.header_search .modal_search_input,
.modal_menu_search .modal_search_input{
    height: 40px;
    padding: 0 2.5rem 0 1rem;
    border-radius: 20px;
    background: var(--body_background);
    border: 1px solid var(--header_button_border_color);
}
.header_search .modal_search_input:hover,
.modal_menu_search .modal_search_input:hover{
    border-color: var(--header_button_color);
}
.header_search .modal_search_input:focus-visible,
.modal_menu_search .modal_search_input:focus-visible{
    outline-offset: 0;
}
.header_search .modal_search_button,
.modal_menu_search .modal_search_button{
    top: 10px;
    right: 0.875rem;
    color: var(--header_button_color);
}
.header_search .modal_search_list{
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 99;
    width: 420px;
    max-width: calc(100vw - 2rem);
    height: auto;
    max-height: min(420px, calc(100vh - 80px));
    background: var(--content_background);
    border: 1px solid var(--header_button_border_color);
    border-radius: 0.75rem;
    box-shadow: 0px 4px 6px -2px rgba(0, 0, 0, 0.05), 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.header_search_open .modal_search_list_active{
    display: flex;
}

/* modal share */

.modal_share{
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    opacity: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.5);
    position: fixed;
    top: 1rem;
    z-index: 100;
    width: 100%;
    max-width: 344px;
}
.modal_share_active{
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.modal_share_container{
    display: flex;
    background: var(--content_background);
    color:var(--content_title);
    overflow: hidden;
    padding: 1.5rem 2rem 2rem;
    border-start-start-radius: 0.5rem;
    border-start-end-radius: 0.5rem;
    flex-direction: column;
    gap: 0.75rem;
}
.modal_share_header{
    display: flex;
    gap: 0.75rem;
}
.modal_share_button{
padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--content_text);
    cursor: pointer;
    transition: 0.15s linear;

}
.modal_share_button_active{
    background-color: var(--modal_share_footer_background);
    color:var(--content_title);
}
.modal_share_textarea{
    display: block;
    padding: 0.5rem 0.75rem;
    line-height: 1.5rem;
    font-size: 1rem;
    color: var(--content_text);
    border: 1px solid #D1D5DB;
    width: 100%;
    min-height: 104px;
    border-radius: 6px;
    resize: vertical;
}

.modal_share_footer{
    display: flex;
    border-end-start-radius: 0.5rem;
    border-end-end-radius: 0.5rem;
    justify-content: flex-end;
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--modal_share_footer_border);
    background-color: var(--modal_share_footer_background);
    gap: 0.75rem;
}
.modal_share_copy_button {
    cursor: pointer;
    padding: 15px 40px;
    border-radius: 10px;
    background: var(--modal_button);
    color: #ffffff;
    border: 0;
    min-width: 40px;
    max-width: 750px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}
.modal_share_copy_button:hover {
    background: var(--modal_button_hover);
}
.modal_share_copy_button_active,.modal_share_copy_button_active:hover {
    background:green;
}
.modal_share_textarea{
    color:var(--content_title);
}

.btn_close_menu{
	width: 24px;
	height: 24px;
	opacity: .5;
	border:0;
	cursor: pointer;
    color:var(--content_text);
}

footer{
    min-height: 60px;
    background-color: var(--footer_back_color);
    color:var(--footer_color_text);
    margin-top: 30px;
    padding: 3rem 0;
}

.footer_nav{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}
.footer_nav > a{
    font-size: 1rem;
    line-height: 1.5rem;
    transition: 0.15s;
    color: var(--footer_color_link);
    text-align: center;
    padding: 0px 1.25rem;
}
.footer_nav > a:hover{
    font-size: 1.01rem;
    color: var(--footer_color_link_hover);
}
.footer_socials{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.footer_copyright{
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}
.footer_container > *:not(:first-child) {
    margin-top: 2rem;
}

@media(min-width: 576px) {
    .container {
        max-width:540px;
    }

}

@media(min-width: 768px) {
    .container {
        max-width:720px;
    }
}

@media(min-width: 992px) {
    .container {
        max-width:960px
    }
}

@media(min-width: 1200px) {
    .container {
        max-width:1140px
    }
}

@media(min-width: 1400px) {
    .container {
        max-width:1320px
    }
}

@media only screen and (min-width: 0px) and (max-width: 1199px) {
    body{
        justify-content: flex-start;
    }
    .fcontainer{
        flex-direction: column;
    }
    aside{
        order: -1;
        width:100%;
        display: none;
    }  
    .header_navigation{
        display: none;
    } 
    .header_quick{
        display: flex;
    }
    #header_logo{
        display: none;
    }
}
@media screen and (max-width: 379px) {
    .header_quick{
        margin-left: -5px;
    }
    .header_quick>a{
        width: 34px;
    }
}
@media screen and (max-width: 359px) {
    .header>.gap1{
        gap: 0.5rem;
    }
    .calculator_action{
        padding: 0 10px;
    }
}
@media screen and (max-width: 1023px) {
   
}
@media screen and (max-width: 767px) {
    #breadcrumbp {
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
    }
    .header_navigation{
        display: none;
    }
    .calculator_description {
        display: none;
    }
    .calculator_button{
        padding: 0.5rem 0;
    }
    .calculator_action{
        min-height: 44px;
    }
}
@media only screen and (min-width: 640px) {
  .calc_categories {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media only screen and (min-width: 1024px) {
  .calc_categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (min-width: 768px) {
  .modal_search {
    top: 8rem;
    max-width: 576px;
  }
  .header_search {
    display: block;
  }
  #header_button_search {
    display: none;
  }
}


:root {
    --body_color:#222;
    --body_background:#f3f4f6;

    --header_logo_color:black;
    --header_button_color:#666;
    --header_button_border_color:#E5E7EB;
    --header_popup_button_color:var(--header_button_color);
    --header_popup_button_color_hover: #F9FAFB;
    --header_popup_button_color_active:#0085ff;
    --header_line_color:var(--header_button_color);

    --content_background:#fff;
    --content_title:#000;
    --content_text:#566070;
    --breadcrumb_link:#566070;
    --focus_ring:#2563eb;
    --calculator_action_border:#0096cd;
    --content_subtext:#3b3b3b;
    --content_link:#5045E5;

    --arcticle_text:#000;
    --h3_text:#dee2ef;
    --formula_background:#f3f3f3;

    --link_background:#5c8fd7;

    --modal_share_footer_background:#b7b7b7;
    --modal_share_footer_border:var(--header_button_border_color);
    --modal_button:#5045E4;
    --modal_button_hover:#4338CB;

    --footer_color_text:#aab2bf;
    --footer_color_link:#aab2bf;
    --footer_color_link_hover:#FFF;
    --footer_back_color:#1F2937;

    --icon_background:#c6c8ff;
}
:root[theme='dark'] {
    --body_color:#fff;
    --body_background:#101827;

    --header_logo_color:#fff;
    --header_button_color:#b8b8b8;
    --header_button_border_color:#88898d;
    --header_popup_button_color:var(--header_button_color);
    --header_popup_button_color_hover: #2b2b2b;
    --header_line_color:var(--header_button_color);

    --content_background:#1f2937;
    --content_title:#fff;
    --content_text:#aab2bf;
    --breadcrumb_link:#aab2bf;
    --focus_ring:#93c5fd;
    --calculator_action_border:#4b5563;
    --content_subtext:#b1b0b0;
    --content_link:#9a98f2;

    --arcticle_text:#D1D5DB;
    --h3_text:#101010;
    --formula_background:#454855;

    --link_background:var(--content_link);

    --modal_share_footer_background:#4B5563;
    --modal_share_footer_border:#7c7c7c;

    --footer_color_text:#aab2bf;
    --footer_color_link:#aab2bf;
    --footer_color_link_hover:#FFF;
    --footer_back_color:#1F2937;

    --icon_background:#373736;
}
/* комментарии */
.comments_title{
    font-size: 1.25rem;
    margin: 0.75rem 0 1rem;
}
.comments_count{
    color: var(--content_text);
    font-weight: 400;
}
.comments_trap{
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
.comments_label{
    display: block;
    font-size: 0.875rem;
    color: var(--content_text);
    margin-bottom: 0.25rem;
}
.comments_input{
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font: inherit;
    color: var(--content_title);
    background-color: var(--content_background);
    border: 1px solid var(--header_button_border_color);
    border-radius: 6px;
    resize: vertical;
}
.comments .comments_hint{
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--content_text);
}
.comments_actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.comments_submit,.comments_more{
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    border: 0;
    border-radius: 6px;
    font: inherit;
    color: #fff;
    background: var(--modal_button);
}
.comments_submit:hover,.comments_more:hover{
    background: var(--modal_button_hover);
}
.comments_submit:disabled,.comments_more:disabled{
    opacity: 0.6;
    cursor: default;
}
.comments .comments_message{
    margin: 0;
    font-size: 0.875rem;
    color: var(--content_text);
}
.comments .comments_message_error{
    color: #d92d20;
}
.comments_replying{
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}
.comments_replying.hide,.comments_more.hide,.comments_empty.hide{
    display: none;
}
.comments_replying_cancel,.comment_reply_button{
    cursor: pointer;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.875rem;
    color: var(--content_link);
}
.comments_list{
    margin-top: 1.5rem;
}
.comment_thread{
    padding: 0.75rem 0;
    border-top: 1px solid var(--header_button_border_color);
}
.comment_reply{
    margin: 0.75rem 0 0 1.5rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--header_button_border_color);
}
.comment_head{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}
.comment_author{
    font-weight: 600;
    overflow-wrap: anywhere;
}
.comment_badge{
    padding: 0 0.375rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #fff;
    background: var(--modal_button);
}
.comment_date{
    color: var(--content_text);
}
.comment_body{
    overflow-wrap: anywhere;
    margin: 0.25rem 0;
}
