.mobile-menu {
	display: none !important;
}

@media (max-width: 1200px) {

	html, body {
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
    }

    #main {
    	position: initial;
    	width: 100%;
    	min-width: 200px;
    }

    #menu {
    	position: initial;
    }

    #c1, #c2 {
    	width: 100%;
    	display: block;
    }

    #c1 {
    	padding: 10px;
		box-sizing: border-box;
    }

    #c1 > table td {
		display: block;
		width: 100%;
    }

    #c1 > h1 {
    	text-align: center;
    }

    #c1 > p[style="text-align: center;"] > img {
    	max-width: 600px;
    	width: 100% !important;
    	height: auto !important;
    }

    #c2 {
    	padding: 10px;
    	margin-top: 10px;
		box-sizing: border-box;
		border-left: 0;
    }

    #c2 > span.h1 {
    	width: 100%;
    	text-align: center;
    	display: block;
    }

    #more {
    	float: none;
    	width: 100%;
    }

    #more tr > td:first-child {
    	width: 50px;
    }

    #menu td[width="6%"], td.menuend {
    	display: none;
    }

    #copy {
    	padding: 10px 10px 30px 10px;
    }

    #menu {
    	display: block;
    	padding: 0 10px;
    }

    #social {
    	padding: 10px;
    	box-sizing: border-box;
    }

    #more td {
    	padding: 0 10px;
    }

    .mobile-menu {
    	display: none;
    }

    #logo {
    	margin-top: 10px;
    }

    #c1 > table[cellpadding="5"] > tbody > tr:nth-child(1) {
    	display: none;
    }

    #breadcrumbs a {
    	line-height: 2;
    }

    #share {
    	padding: 10px;
    }

    #share div {
    	margin-top: 10px;
    	display: block;
    }

    .ya-share2__list_direction_horizontal > .ya-share2__item {
    	margin: 10px !important;
    }

    #copy {
    	box-sizing: border-box;
    }

    .topic-item {
    	padding: 10px 0;
    }

    #c1 > ymaps {
    	max-width: 600px;
    	width: 100% !important;
    }

	body.coaching #c1 > table[cellpadding="5"] > tbody > tr:nth-child(1) {
		display: block !important;
	}

	body,
	#more td a {
		font-size: 14px !important;
	}

}/*1200*/


@media (max-width: 989px) {

	#menu {
		width: 100%;
		box-sizing: border-box;
	}

	#menu > tbody > tr {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}

	#menu > tbody {
		width: 100%;
    	display: block;
	}

	#menu > tbody > tr > td:nth-child(3) {
		display: none;
	}

	#c1 > table[cellpadding="5"] tbody > tr:nth-child(4) > td:nth-child(4),
	#c1 > table[cellpadding="5"] tbody > tr:nth-child(2) > td:nth-child(4),
	#c1 > table[cellpadding="5"] tbody > tr:nth-child(3) > td:nth-child(2),
	#c1 > table[cellpadding="5"] tbody > tr:nth-child(3) > td:nth-child(3),
	#c1 > table[cellpadding="5"] tbody > tr:nth-child(3) > td:nth-child(4) {
		display: none !important;
	}

	.mobile-menu {
		display: block !important;
	}

	.mobile-menu .menu-btn {
		position: absolute;
	    top: 35px;
	    right: 10px;
	    cursor: pointer;
	}

	.menu-btn span {
		display: block;
		width: 35px;
		height: 4px;
		margin: 5px auto;
		background: #595858;
		border-radius: 10px;
		z-index: 99;
	}

	.mobile-menu ul {
		list-style: none;
		padding: 10px 0;
		text-align: center;
		border-radius: 10px;
		display: none !important;
		background-image: -webkit-linear-gradient(#8bca65, #b0de90);
		background-image: linear-gradient(#8bca65, #b0de90);
	}

	.mobile-menu ul li {
		padding: 10px;
	}

	.mobile-menu ul li a {
		color: #000;
	    font-size: 16px;
	}

	.mobile-menu ul li.sendform {
		border-top: 1px solid #fff;
		margin-top: 10px;
	}

	.mobile-menu ul li.sendform a {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
    	-webkit-box-orient: vertical;
    	-webkit-box-direction: normal;
    	    -ms-flex-direction: column;
    	        flex-direction: column;
    	font-size: 16px !important;
    	margin-bottom: 5px;
	}

	.mobile-menu ul li.sendform a.tel {
    	font-size: 18px;
    	text-decoration: none;
	}

	.mobile-menu ul li.active.sendform a {
		padding: 0 !important;
		background: transparent !important;
	}

    .mobile-menu ul.expand {
    	display: block !important;
    }

    .mobile-menu ul li.active a {
    	padding: 5px 15px 7px 15px;
    	border-radius: 20px;
    	background: #d0ebbe;
    }

    .mobile-menu ul li.contacts {
    	margin-bottom: 10px;
    }

    #main {
    	margin-top: 10px;
    }

    div.news-detail img.detail_picture {
    	float: none;
    	max-width: 750px !important;
    	width: 100%;
    	height: auto !important;
    }

    .news-detail img {
		max-width: 800px;
		height: auto !important;
		width: 100% !important;
    }



}/*989*/


@media (max-width: 768px) {
	/* Price list: keep the price visible without horizontal scrolling. */
	.fidem-price-wrap {
		width: 100%;
		max-width: 100%;
		padding: 0;
		overflow: visible;
		box-sizing: border-box;
	}

	.fidem-price-table,
	.fidem-price-table tbody {
		display: block;
		width: 100%;
	}

	.fidem-price-table thead,
	.fidem-price-table .fidem-price-header {
		display: none;
	}

	.fidem-price-table .fidem-price-section {
		display: block;
		margin-top: 16px;
		padding: 8px 10px;
		background: #d0ebbe !important;
		box-sizing: border-box;
	}

	.fidem-price-table .fidem-price-section td {
		display: block;
		width: auto;
		padding: 0;
	}

	.fidem-price-table .fidem-price-item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 7px 12px;
		width: 100%;
		padding: 10px;
		box-sizing: border-box;
	}

	.fidem-price-table .fidem-price-item td {
		display: block;
		width: auto;
		min-width: 0;
		padding: 0;
		box-sizing: border-box;
	}

	.fidem-price-table .fidem-price-name {
		grid-column: 1 / -1;
		overflow-wrap: anywhere;
	}

	.fidem-price-table .fidem-price-duration,
	.fidem-price-table .fidem-price-value {
		white-space: nowrap;
	}

	.fidem-price-table .fidem-price-duration::before {
		content: "Время: ";
		color: #666;
	}

	.fidem-price-table .fidem-price-value {
		font-weight: bold;
		text-align: right;
	}

	.fidem-price-table .fidem-price-value::after {
		content: " руб.";
		font-weight: normal;
	}

	#feedback > tbody > tr > td {
		width: 100%;
		display: block;
		box-sizing: border-box;
	}

	#feedback > tbody > tr > td > input,
	#feedback > tbody > tr > td > textarea {
		width: 100% !important;
		max-width: 300px;
		border: 1px solid rgb(193, 193, 193);
	}

	#feedback > tbody > tr:last-child > td > div {
		float: none !important;
	}

	#feedback .g-recaptcha > div {
	    max-width: 300px;
	    width: 100% !important;
	}

	#feedback .g-recaptcha iframe {
		max-width: 300px;
	    width: 100% !important;
	    border-right: 1px solid #d3d3d3;
	}

	div[align="center"] > div[style="padding-right: 10px; padding-bottom: 10px; padding-left: 10px; float: right;"] {
		float: none !important;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	}

	.recall-filt {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	    -webkit-box-orient: vertical;
	    -webkit-box-direction: normal;
	        -ms-flex-direction: column;
	            flex-direction: column;
	    -webkit-box-align: start;
	        -ms-flex-align: start;
	            align-items: flex-start;
	}

	.recall-filt .filt-item {
		margin-top: 10px;
	}

	form[name="fedback"] td.content {
		width: 100%;
		display: block;
	}

	form[name="fedback"] td.content div[style="padding-left: 380px;"] {
		padding-left: 0 !important; 
	}

	form[name="fedback"] td.content input, form[name="fedback"] td.content textarea {
		max-width: 300px;
		width: 100% !important;
	}

	form[name="fedback"] td.content input[type="submit"] {
		max-width: 100px;
	}

	form[name="fedback"] td.content iframe {
		width: 100% !important;
		max-width: 304px;
	}

	form[name="fedback"] td.content .g-recaptcha > div {
		width: 100% !important;
	}

	#feedback {
		width: 100% !important;
		max-width: 100%;
		table-layout: fixed;
		box-sizing: border-box;
	}

	form[name="fedback"] .feedback-consent {
		display: grid;
		grid-template-columns: 22px minmax(0, 1fr);
		align-items: start;
		column-gap: 10px;
		width: 100%;
		max-width: none;
		box-sizing: border-box;
		font-size: 16px !important;
		line-height: 1.45;
		cursor: pointer;
	}

	form[name="fedback"] .feedback-consent-text {
		display: block;
		min-width: 0;
		width: auto;
		max-width: 100%;
		overflow-wrap: break-word;
		word-break: normal;
	}

	form[name="fedback"] .feedback-consent input[type="checkbox"] {
		width: 22px !important;
		min-width: 22px;
		max-width: 22px;
		height: 22px;
		margin: 2px 0 0 !important;
		accent-color: #6fbd45;
	}

	#feedback input[type="submit"] {
		width: auto !important;
		min-width: 150px;
		max-width: none;
		min-height: 44px;
		padding: 8px 20px;
		box-sizing: border-box;
		font-size: 16px !important;
		line-height: 1.25;
	}

}/*768*/



@media (max-width: 580px) {

	.expert-photo[align="right"] {
		margin-left: 0;
		float: none;
		max-width: 314px;
		width: 100% !important;
		height: auto !important;
	}

	.expert-photo[align="left"] {
		margin-right: 0;
		float: none;
		max-width: 314px;
		width: 100% !important;
		height: auto !important;
	}

	.topic-column {
		float: none;
		width: 100%;
	}

}/*580*/

/* Stable first-paint layout: the menu and service images are already in HTML. */
#menu .menu-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    min-width: 44px;
    min-height: 44px;
}

#menu .menu-btn:focus-visible {
    outline: 2px solid #477531;
    outline-offset: 2px;
}

#menu .menu-span {
    display: block;
    margin: 0;
    width: auto;
    height: auto;
    background: transparent;
}

@media (max-width: 1200px) {
    #fidem-home-services img {
        width: 200px;
        height: auto;
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }

    #c1 > #fidem-home-services,
    #c1 > #fidem-home-services > tbody > tr > td {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
    }

    #c1 > #fidem-home-services > tbody {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    #c1 > #fidem-home-services > tbody > tr {
        display: contents !important;
    }

    #fidem-home-services tr:nth-child(odd) > td { padding-bottom: 0; }
    #fidem-home-services tr:nth-child(even) > td { padding-top: 0; }
    #fidem-home-services tr:nth-child(1) > td:nth-child(1) { grid-row: 1; }
    #fidem-home-services tr:nth-child(2) > td:nth-child(1) { grid-row: 2; }
    #fidem-home-services tr:nth-child(1) > td:nth-child(2) { grid-row: 3; }
    #fidem-home-services tr:nth-child(2) > td:nth-child(2) { grid-row: 4; }
    #fidem-home-services tr:nth-child(1) > td:nth-child(3) { grid-row: 5; }
    #fidem-home-services tr:nth-child(2) > td:nth-child(3) { grid-row: 6; }
    #fidem-home-services tr:nth-child(3) > td:nth-child(1) { grid-row: 7; }
    #fidem-home-services tr:nth-child(4) > td:nth-child(1) { grid-row: 8; }
    #fidem-home-services tr:nth-child(3) > td:nth-child(2) { grid-row: 9; }
    #fidem-home-services tr:nth-child(4) > td:nth-child(2) { grid-row: 10; }
    #fidem-home-services tr:nth-child(3) > td:nth-child(3) { grid-row: 11; }
    #fidem-home-services tr:nth-child(4) > td:nth-child(3) { grid-row: 12; }
}
