/* Красный фокус по Табу на всё */

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px orangered;
}

/* Общие стили */

html, body {
    height: 100%; /* для прилипания футера */
   }

body {
	display: flex; /* для прилипания футера */
	flex-direction: column; /* для прилипания футера */
    margin: 0;
    font-family: "Inter", "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 18px;
	letter-spacing: .003em;
    color: #333;
    min-width: 280px;
}

main {
	flex: 1 0 auto; /* Для прилипания футера */
}

h1 {
	font-size: 28px;
	margin-block-start: 2em;
}

h2 {
	font-size: 22px;
	margin-block-start: 2em;
}

h3 {
	margin-block-start: 1.5em;
}

p {
	line-height: 32px;
}

ul {
	line-height:32px;
}

.wrapper {
    max-width: 1150px;
    padding: 0 15px;
    margin: 0 auto;
}

/* Шапка сайта */
/*.header {
    padding: 10px 5%;
}*/

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    flex-shrink: 0;
}

.site-branding {
	padding: 20px 60px 20px 0;
}

.site-title, .site-title a  {
	font-family: Roboto;
	text-decoration: none;
	color: #5a80b1;
	font-weight: 900;
	font-size: 28px;
    margin: 0;
	line-height: 1.1;
}

.site-description {
	color: #666666;
	font-size: 16px;
	margin: 0;
	line-height: 1.5;
}

/* Главное меню цельное */

.meganav {
	margin: 0;
	padding: 0;
	background-color: #5a80b1;
}

.meganav > .wrapper {
	display: grid;
}

.meganav ul {
	list-style: none;
}

.meganav li a {
	display: block;
	color: white;
	text-decoration: none;
	transition: background-color 0.3s;
	
}

.meganav a:hover {
	background-color: rgba(255, 255, 255, 0.1);	
}

.meganav-first {
	margin: 0;
	padding: 0;
	justify-self: right;
}

.meganav-first-li {
	float: left;
	position: relative;
}

.meganav-first-li > a {
	padding: 18px 20px;
}

.meganav-second > li > a {
	padding: 9px 32px;
}

.meganav-second li:last-child {
	padding-bottom: 32px;
}

.meganav-second {
	padding: 0;
	z-index: 1;
	font-size: 1rem;
}

.meganav li .meganav-second {
	display: none;
	position: absolute;
	top: 100%;
	right: 0%;
	width: max-content;
	background-color: #5a80b1;
}

.clk-hover .meganav-second {
	display: block !important;
	z-index: 4;
}

/*.meganav li:hover .meganav-second {
	display:block;
	z-index:4;
}

.no-hover .meganav-second {
	display: none !important;
} */

/* Главное меню (горизонтальное) */
.main-menu {
	background-color: #5a80b1;
	box-shadow: rgba(34, 60, 80, 0.2) 0px -4px 8px 0px;
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
	justify-content: flex-end;
}

.main-menu a {
    color: white;
    text-decoration: none;
    padding: 18px 20px;
    transition: background-color 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.main-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.active-menu a {
	background: rgba(255, 255, 255, .2);
}

/* Меню Документов */
.doc-menu ul {
	font-family: Roboto;
	font-size: 16px;
	line-height: 20px;
	list-style: none;
	margin: 1.25em 0;
	padding: 0;
	-moz-column-count: auto; /* Для Firefox */
	-webkit-column-count: auto; /* Для Safari и Chrome */
	column-count: auto;
	column-width: 200px;
	column-gap: 2em;
}

.doc-menu-grid {
	font-family: Roboto;
	font-size: 16px;
	line-height: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* Теперь сетка */
	display: grid;
	grid-gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	grid-auto-flow: dense;
}

.doc-menu a {
	text-decoration: none;
	color: #5a80b1;
}

.doc-menu-grid a {
	text-decoration: none;
	color: #5a80b1;
}

.doc-menu a:hover {
	color: #333;
	transition: color 0.3s;
}

.active-doc-menu a {
	color: black;
}

.doc-menu li {
	margin-bottom: 1.25em;
}

.doc-menu-grid li {
	margin-bottom: 0;
}

/* Баннер (резиновый) */
.banner {
    background-color: lightsteelblue;
	position: relative;
	padding:70px 0;
    /*padding: clamp(20px, 5vw, 50px);*/
    /*text-align: center;*/
    /*border-radius: 5px;*/
}

.banner h1 {
    font-family: verdana;
	font-weight: bold;
    font-size: clamp(1.5rem, 4vw, 2rem);
	margin-block-start: auto;
}

/* .banner p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}*/

/* Баннер на главной от Мифар */

.banner .before-img  {
    position: absolute;
    height: 389px;
    bottom: -90px;
    right: 0;
    pointer-events: none;
}

.banner .before-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.header-banner__inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.header-banner-info {
    width: 60%;
	z-index: 1;
}

.header-banner-graph {
	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: end;
	-ms-flex-align: end;
	align-items: flex-end;
	margin-right: 60px;
}

.quote {
	margin-bottom: 30px;
	color: #fff;
}

.banner-image {
	position: relative;
}

.banner-image-beforeimg {
	position: absolute;
	left: -199px;
	top: 35%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	height: 383px;
	pointer-events: none;
}

.banner-image-beforeimg img {
	width: 100%;
	height: 100%;
	-o-object-fit: contain;
	object-fit: contain;
}

.banner-image__container {
	position: relative;
	z-index: 2;
	border-radius: 50%;
	padding: 8px;
	outline: 2px solid #fff;
}

.banner-image__container img {
	vertical-align: middle;
	border: 0;
}

.banner-title {
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    margin-bottom: 46px;
}

.banner-desc {
    margin-bottom: 46px;
    color: #fff;
    font-size: 20px;
    line-height: 32px;
    max-width: 600px;
}

.banner-desc-quote {
	/* color: slategrey; */
	color: #6A6A65;
	margin-bottom: 0.5em;
	display: block;
	position: relative;
	padding-left: 40px;
}

.banner-desc-quote:before {
    content: "\201C";
    /* display: block; */
    font-family: Georgia,sans-serif;
    font-size: 76px;
    left: 0;
    line-height: 64px;
    position: absolute;
    top: 0
}

/* .banner-desc-quote:after {
    content: "\201D";
    display: block;
    font-family: Georgia,sans-serif;
    font-size: 76px;
    left: 0;
    line-height: 64px;
	position: relative;
    position: absolute;
    top: 0
} */

.banner-desc-author {
	/* color: slategrey; */
	color: #6A6A65;
	margin-top: 0.5em;
	text-align: right;
}

/* Тело страницы */
/*.container {
	padding: 10px 5%;
}*/

/* Основной заголовок страницы */
.main-title {
	text-align: center;
}

/* Таблица обыкновенная */
table {
	width: 80%;
	margin: auto;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: clamp(1rem, 3.4vw, 18px);
}

th, td {
	border: 1px solid #999;
	padding: 1em 0.5em;
}

/* Украшение таблиц */

.underline-text {
  text-decoration: underline;
}

.centered {
	text-align: center
}

.bold-text {
	font-weight: bold;
}

.accent-row {
	background-color: gainsboro;
	font-weight: bold;
	text-align: center;
}

.caption {
	border-block-start: 1px solid #999;
	border-inline: 1px solid #999;
	padding-block: 1em;
}

.download-docs a {
	background: url(/assets/images/pdf-icon.svg) left center no-repeat;
	background-size: auto 46px;
	min-height: 46px;
	display: flex;
	padding-left: 55px;
	align-items: center;
	margin: 1em;
	width: fit-content;
	font-size: 1em;
	/* text-decoration: none; */
	/* color: #333; */
}

.adv-module {
	margin: 5em auto;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	flex-wrap: wrap;
	align-items: center;
	max-width:1000px;
}

.adv-image {
	margin: 1%;
	padding: 8px;
    border-radius: 50%;
    outline: 1px solid #5a80b1;
}

.adv-image img {
	width: 253px;
}

.adv-text {
	font-size: large;
	max-width: 600px;
	margin: 1%;
}

.adv-text p {
	margin-bottom: 0;
}

.adv-header p {
	font-family: verdana;
	margin-top: 0;
	color: steelblue;
	line-height: 20px;
}

.adv-header h2 {
	font-family: verdana;
	font-weight: bold;
	margin: 0;
	color: #5a80b1;
	font-size: xx-large;
}

.adv-header {
	margin-bottom: 2em;
}

.adv-list {
	color: #6A6A65;
}

/* Подвал */
.footer {
	flex-shrink: 0; /* Для прилипания футера*/
	padding: 50px 0;
    color: #5a80b1;
	background-color: #f0f0f0;
    margin-top: 6em;
    font-size: clamp(0.8rem, 3vw, 1rem);
}

.footer-copyright {
	margin-top: 3em;
	text-align: center;
	line-height: normal;
}

.footer a {
	text-decoration: none;
	color: #5a80b1;
}

.footer-href-container {
	/* max-width: fit-content; */
	/* margin-inline: auto; */ 
	/* display: grid; */
    /* grid-gap: 16px; */
    /* grid-template-columns: repeat(2, 1fr); */ 
    /* grid-auto-flow: dense; */
	columns: auto 180px;
	column-gap: 1em;
	max-width: 600px;
	margin-inline: auto;
}

.footer-href {
	padding: 8px;
	break-inside: avoid;
}

/* Адаптивность для мобильных */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 5px;
}

@media screen and (max-width: 1024px) {
	.header-banner-graph {
		margin-right: 0;
	}
}

@media (max-width: 768px) {
	.menu-toggle {
		display: block;
		margin-inline-start: auto;
	}
	
	.site-branding {
		padding: 20px 0px 20px 0;
	}
	
	
	.main-menu {
        display: none;
        width: 100%;
        order: 1;
    }

    .main-menu.active {
        display: block;
    }

    .main-menu ul {
        flex-direction: column;
        gap: 5px;
    }
	
	.meganav {
		display:none;
		width: 100%;
		order: 0;
	}
	
	.meganav.active {
		display: block;
	}
	
	.meganav li .meganav-second {
		right: auto;
	}
	
	.header-banner__inner {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
	}
	
	.header-banner-info {
		width: 100%;
		margin-bottom: 30px;
	}
	
	/*.adv-image img {
		width: 100%
	} */
}

/* Очень узкие экраны */
@media (max-width: 480px) {
	
	.header {
		padding: 10px;
	}

	.logo-container {
		flex-direction: row;
	}
	
	.site-title {
		font-size: 1.2rem;
	}
	
	.quote svg {
		width: 320px;
	}
	
	.banner-image__container {
		width: 320px;
	}
	.banner-image__container img {
		width: 100%;
	}
	
	/*.adv-image img {
		width: 100%;
	}*/
	
	.footer-href-container {
		display: flex;
		flex-direction: column;
	}
}

@media screen and (max-width: 980px) {
	#glazd {
		/* position:absolute;
		top:10px;
		right:100px;
		z-index: 99999; */
		width: 50px;
    }
	
	#specialButton {
		margin-left: auto;
	}
}

@media screen and (min-width: 980px) {
	#glazd {
		/* position:absolute;
		top:20px;
		left:50px;
		z-index: 99999; */
		width: 50px;
    }
	
	#specialButton {
		margin-left: auto;
	}
}
