/*

Neaty HTML Template

http://www.templatemo.com/tm-501-neaty

*/

body {
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 20px;
	font-weight: 300;
	overflow-x: hidden;
}

a, button { transition: all 0.3s ease; }
a:hover,
a:focus {
	text-decoration: none;
	outline: none;
}

/* === Основной контейнер === */
.container {
	max-width: 100%;
	width: 100%;
	padding: 0;
}

.tm-left-right-container {
	display: flex;
	width: 100%;
	min-height: 100vh;
}

/* === Левая колонка (меню) === */
.tm-blue-bg {
	background-color: #006599;
	color: white;
	width: 30%;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}

.tm-logo-div {
	padding: 40px 20px;
	text-align: center;
	flex-shrink: 0;
}

.tm-logo-div img {
	max-width: 450px;
	height: auto;
}

.tm-site-name {
	font-size: 1.8rem;
	margin-top: 15px;
	margin-bottom: 0;
	color: white;
}

.tm-main-nav {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0;
}

.tm-main-nav-ul {
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 0;
	width: 100%;
}

.tm-nav-item {
	list-style: none;
	transition: all 0.3s ease;
}

.tm-nav-item-link {
	display: block;
	padding: 14px 24px;
	color: white;
	text-decoration: none;
	font-size: 1.1rem;
	text-align: center;
	transition: all 0.3s ease;
}

.tm-nav-item-link:hover,
.tm-nav-item.active .tm-nav-item-link {
	background-color: rgba(0, 0, 0, 0.15);
	color: #f4ef5e;
}

/* === Правая колонка (контент) === */
.tm-right-column {
	width: 70%;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tm-right-column figure {
	margin: 0;
	width: 100%;
}

.tm-right-column figure img {
	width: 100%;
	height: auto;
	display: block;
}

.tm-content-div {
	padding-left: 2px;
	flex: 1;
}

/* === Секции === */
.tm-section {
	margin-bottom: 60px;
	
}

.mh-full{
	min-height: 100vh;
}

.tm-welcome-title {
	font-size: 2.2rem;
}

.tm-section-title {
	font-size: 2rem;
}

.tm-blue-text {
	color: #006599;
}

.tm-margin-b-45 {
	margin-bottom: 45px;
}

.tm-margin-b-30 {
	margin-bottom: 30px;
}

p {
	line-height: 1.8;
	margin-bottom: 15px;
}

/* === Кнопка === */
.tm-button {
	background-color: #006599;
	border: none;
	color: white;
	cursor: pointer;
	display: inline-block;
	font-size: 1.2rem;
	padding: 16px 30px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.tm-button:hover,
.tm-button:active,
.tm-button:focus {
	background-color: #2790c6;
	color: white;
}

.tm-button-wide {
	padding: 16px 40px;
}

/* === About секция (flex) === */
.row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.col-lg-8 {
	flex: 1 1 60%;
	max-width: 65%;
}

.col-lg-6 {
	flex: 1 1 48%;
	max-width: 50%;
}

.col-lg-4 {
	flex: 1 1 30%;
	max-width: 35%;
}

.col-md-7 {
	flex: 1 1 55%;
	max-width: 60%;
}

.col-md-5 {
	flex: 1 1 40%;
	max-width: 45%;
}

.tm-about-img-container {
	align-self: center;
}

.tm-about-img-container img {
	width: 100%;
	max-width: 400px;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* === Галерея (flex) === */
.tm-gallery-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tm-img-container {
	flex: 1 1 auto;
}

.tm-img-container-1 {
	flex: 0 1 20%;
}

.tm-img-container-2 {
	flex: 1 1 33.33%;
}

.tm-img-container-3 {
	flex: 1 1 25%;
}

.tm-img-tn {
	display: block;
	/* width: 100%; */
	max-width: 250px;
}

.tm-img-tn img {
	/* width: 100%; */
	height: auto;
	display: block;
}

/* === Контакты === */
.tm-contact-right {
	margin-top: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.tm-contact-right address {
	font-style: normal;
	font-size: 1.1rem;
	line-height: 1.8;
}

/* === Форма === */
.form-control {
	border-color: #0a6697;
	border-radius: 0;
	color: #4286ab;
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 1.1rem;
	width: 100%;
	padding: 12px;
	margin-bottom: 15px;
	box-sizing: border-box;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
	color: #4286ab !important;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
	color: #4286ab !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
	color: #4286ab !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
	color: #4286ab !important;
}

/* === Футер === */
footer {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #eee;
	text-align: center;
}

.tm-copyright-p {
	margin-bottom: 0;
	font-size: 14px;
	color: #999;
}

/* === Пагинация === */
.pagination {
	margin-top: 40px;
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	padding: 10px 16px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	color: #555;
	text-decoration: none;
	font-size: 14px;
}

.pagination a:hover {
	background: #006599;
	color: #fff;
	border-color: #006599;
}

.pagination .current {
	background: #006599;
	color: #fff;
	border-color: #006599;
}

/* ============================================
   АДАПТИВНОСТЬ — перестройка в колонку
   ============================================ */

/* Планшет (до 991px) */
@media (max-width: 991px) {
	.tm-left-right-container {
		flex-direction: column;
	}

	.tm-blue-bg {
		width: 100%;
		height: auto;
		max-height: none;
		position: relative;
	}

	.tm-main-nav {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.tm-main-nav-ul {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 5px;
	}

	.tm-nav-item-link {
		padding: 10px 16px;
		font-size: 0.95rem;
	}

	.tm-right-column {
		width: 100%;
	}

	.tm-content-div {
		padding: 30px 20px;
	}

	.tm-section {
		margin-bottom: 40px;
	}

	.tm-welcome-title {
		font-size: 1.8rem;
	}

	.tm-section-title {
		font-size: 1.6rem;
	}

	.tm-site-name {
		font-size: 1.5rem;
	}

	.tm-logo-div {
		/*padding: 20px 15px;*/
		padding: 40px;
	}

	/* About: колонка */
	.col-lg-8,
	.col-lg-4 {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.tm-about-img-container {
		order: -1;
		margin-bottom: 20px;
	}

	/* Контакты: колонка */
	.col-lg-6 {
		flex: 1 1 100%;
		max-width: 100%;
	}

	/* Галерея: меньше колонок */
	.tm-img-container-1 {
		flex: 1 1 33.33%;
	}

	.tm-img-container-2 {
		flex: 1 1 50%;
	}

	.tm-img-container-3 {
		flex: 1 1 50%;
	}
}

/* Мобильные (до 576px) */
@media (max-width: 576px) {
	.tm-nav-item-link {
		padding: 8px 12px;
		font-size: 0.85rem;
	}

	.tm-content-div {
		padding: 0 10px 0 20px;
	}

	.tm-welcome-title {
		font-size: 1.5rem;
	}

	.tm-section-title {
		font-size: 1.3rem;
	}

	.tm-site-name {
		font-size: 1.3rem;
	}

	.tm-button {
		font-size: 1rem;
		padding: 12px 24px;
	}

	/* Галерея: меньше колонок */
	.tm-img-container-1,
	.tm-img-container-2,
	.tm-img-container-3 {
		flex: 1 1 50%;
		justify-items: center;
	}
}

/* Очень маленькие экраны (до 400px) */
@media (max-width: 400px) {
	.tm-nav-item-link {
		padding: 8px 8px;
		font-size: 0.8rem;
	}

	.tm-content-div {
		/* padding: 15px 10px; */
		padding: 0 0px 0px 10px;
	}

	/* Галерея: одна колонка */
	.tm-img-container-1,
	.tm-img-container-2,
	.tm-img-container-3 {
		flex: 1 1 100%;
	}
}

/* ============================================
   Высокий экран — уменьшаем отступы
   ============================================ */
@media (max-height: 800px) {
	.tm-logo-div {
		padding: 10% 20%;
	}

	.tm-nav-item-link {
		padding: 10px 20px;
		font-size: 1rem;
	}

	.tm-site-name {
		font-size: 1.5rem;
	}
}
