﻿/* ===== СБРОС СТИЛЕЙ ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ===== ЦВЕТА (из Color Guide.png) ===== */
.bg-primary {
	background-color: #415167;
}

.bg-accent {
	background-color: #C7A87A;
}

.bg-dark {
	background-color: #151D28;
}

.bg-light-gray {
	background-color: #EDF0F5;
}

.bg-beige {
	background-color: #F9F5E8;
}

.bg-white {
	background-color: white;
}

.text-primary {
	color: #415167;
}

.text-accent {
	color: #C7A87A;
}

.text-white {
	color: white;
}

.text-dark {
	color: #151D28;
}

.text-gray {
	color: #666;
}

/* ===== ТИПОГРАФИЯ (из Typography Font.png) ===== */
.font-montserrat {
	font-family: 'Montserrat', sans-serif;
}

.font-nunito {
	font-family: 'Nunito', sans-serif;
}

.text-54 {
	font-size: 54px;
	line-height: 70px;
	font-weight: 900;
}

.text-30 {
	font-size: 30px;
	line-height: 34px;
	font-weight: 900;
}

.text-24 {
	font-size: 24px;
	line-height: 28px;
	font-weight: 700;
}

.text-20 {
	font-size: 20px;
	line-height: 24px;
	font-weight: 600;
}

.text-16 {
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
}

.text-14 {
	font-size: 14px;
	line-height: 18px;
	font-weight: 400;
}

.text-16-italic {
	font-size: 16px;
	line-height: 20px;
	font-weight: 300;
	font-style: italic;
}

.text-button {
	font-size: 16px;
	line-height: 20px;
	font-weight: 700;
}

/* ===== FLEXBOX КЛАССЫ ===== */
.flex {
	display: flex;
}

.flex-col {
	flex-direction: column;
}

.flex-row {
	flex-direction: row;
}

.flex-wrap {
	flex-wrap: wrap;
}

.flex-nowrap {
	flex-wrap: nowrap;
}

/* Выравнивание по главной оси */
.justify-start {
	justify-content: flex-start;
}

.justify-end {
	justify-content: flex-end;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-around {
	justify-content: space-around;
}

.justify-evenly {
	justify-content: space-evenly;
}

/* Выравнивание по поперечной оси */
.items-start {
	align-items: flex-start;
}

.items-end {
	align-items: flex-end;
}

.items-center {
	align-items: center;
}

.items-stretch {
	align-items: stretch;
}

.items-baseline {
	align-items: baseline;
}

/* Само-выравнивание */
.self-start {
	align-self: flex-start;
}

.self-end {
	align-self: flex-end;
}

.self-center {
	align-self: center;
}

.self-stretch {
	align-self: stretch;
}

/* ===== GRID КЛАССЫ ===== */
.grid {
	display: grid;
}

.grid-1 {
	grid-template-columns: 1fr;
}

.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

.grid-auto-fit {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-auto-fill {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid-gap-10 {
	gap: 10px;
}

.grid-gap-20 {
	gap: 20px;
}

.grid-gap-30 {
	gap: 30px;
}

.grid-col-span-2 {
	grid-column: span 2;
}

.grid-col-span-3 {
	grid-column: span 3;
}

.grid-row-span-2 {
	grid-row: span 2;
}

/* ===== ОТСТУПЫ ===== */
.p-10 {
	padding: 10px;
}

.p-15 {
	padding: 15px;
}

.p-20 {
	padding: 20px;
}

.p-30 {
	padding: 30px;
}

.p-40 {
	padding: 40px;
}

.px-10 {
	padding-left: 10px;
	padding-right: 10px;
}

.px-20 {
	padding-left: 20px;
	padding-right: 20px;
}

.px-30 {
	padding-left: 30px;
	padding-right: 30px;
}

.py-10 {
	padding-top: 10px;
	padding-bottom: 10px;
}

.py-20 {
	padding-top: 20px;
	padding-bottom: 20px;
}

.py-30 {
	padding-top: 30px;
	padding-bottom: 30px;
}

.m-10 {
	margin: 10px;
}

.m-20 {
	margin: 20px;
}

.m-30 {
	margin: 30px;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.my-10 {
	margin-top: 10px;
	margin-bottom: 10px;
}

.my-20 {
	margin-top: 20px;
	margin-bottom: 20px;
}

.my-30 {
	margin-top: 30px;
	margin-bottom: 30px;
}

.mt-10 {
	margin-top: 10px;
}

.mt-20 {
	margin-top: 20px;
}

.mt-30 {
	margin-top: 30px;
}

.mb-10 {
	margin-bottom: 10px;
}

.mb-20 {
	margin-bottom: 20px;
}

.mb-30 {
	margin-bottom: 30px;
}

.ml-10 {
	margin-left: 10px;
}

.ml-20 {
	margin-left: 20px;
}

.mr-10 {
	margin-right: 10px;
}

.mr-20 {
	margin-right: 20px;
}

/* ===== РАЗМЕРЫ ===== */
.w-full {
	width: 100%;
}

.w-50 {
	width: 50%;
}

.w-60 {
	width: 60%;
}

.w-70 {
	width: 70%;
}

.w-80 {
	width: 80%;
}

.w-90 {
	width: 90%;
}

.w-100 {
	width: 100px;
}

.w-200 {
	width: 200px;
}

.w-300 {
	width: 300px;
}

.w-400 {
	width: 400px;
}

.w-500 {
	width: 500px;
}

.h-auto {
	height: auto;
}

.h-100 {
	height: 100px;
}

.h-200 {
	height: 200px;
}

.h-300 {
	height: 300px;
}

.h-400 {
	height: 400px;
}

.h-500 {
	height: 500px;
}

.min-h-300 {
	min-height: 300px;
}

.min-h-400 {
	min-height: 400px;
}

.min-h-500 {
	min-height: 500px;
}

.max-w-300 {
	max-width: 300px;
}

.max-w-400 {
	max-width: 400px;
}

.max-w-500 {
	max-width: 500px;
}

.max-w-800 {
	max-width: 800px;
}

.max-w-1200 {
	max-width: 1200px;
}

/* ===== ГРАНИЦЫ И СКРУГЛЕНИЯ ===== */
.border {
	border: 1px solid #ddd;
}

.border-none {
	border: none;
}

.border-accent {
	border: 2px solid #C7A87A;
}

.border-primary {
	border: 2px solid #415167;
}

.rounded-5 {
	border-radius: 5px;
}

.rounded-10 {
	border-radius: 10px;
}

.rounded-15 {
	border-radius: 15px;
}

.rounded-full {
	border-radius: 50%;
}

/* ===== КНОПКИ ===== */
.btn {
	padding: 12px 24px;
	border: none;
	cursor: pointer;
	border-radius: 5px;
	transition: all 0.3s ease;
	font-weight: bold;
	display: inline-block;
	text-align: center;
	text-decoration: none;
}

.btn-primary {
	background-color: #C7A87A;
	color: white;
}

.btn-secondary {
	background-color: #415167;
	color: white;
}

.btn-outline {
	background-color: transparent;
	border: 2px solid #C7A87A;
	color: #C7A87A;
}

.btn-block {
	display: block;
	width: 100%;
}

/* ===== ИНТЕРАКТИВНОСТЬ ===== */
.hover-scale:hover {
	transform: scale(1.05);
}

.hover-lift:hover {
	transform: translateY(-5px);
}

.hover-shadow:hover {
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hover-bg-accent:hover {
	background-color: #C7A87A;
	color: white;
}

.hover-bg-primary:hover {
	background-color: #415167;
	color: white;
}

.transition {
	transition: all 0.3s ease;
}

.transition-fast {
	transition: all 0.2s ease;
}

.transition-slow {
	transition: all 0.5s ease;
}

/* ===== КАРУСЕЛЬ ===== */
.carousel {
	display: flex;
	overflow-x: auto;
	scroll-behavior: smooth;
	gap: 20px;
	padding: 20px;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

	.carousel::-webkit-scrollbar {
		display: none; /* Chrome, Safari, Opera */
	}

.carousel-item {
	flex: 0 0 auto;
	min-width: 250px;
}

/* ===== УТИЛИТЫ ===== */
.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.text-justify {
	text-align: justify;
}

.uppercase {
	text-transform: uppercase;
}

.lowercase {
	text-transform: lowercase;
}

.capitalize {
	text-transform: capitalize;
}

.font-bold {
	font-weight: bold;
}

.font-normal {
	font-weight: normal;
}

.font-light {
	font-weight: 300;
}

.list-none {
	list-style: none;
}

.list-disc {
	list-style: disc;
}

.list-decimal {
	list-style: decimal;
}

.object-cover {
	object-fit: cover;
}

.object-contain {
	object-fit: contain;
}

.overflow-hidden {
	overflow: hidden;
}

.overflow-auto {
	overflow: auto;
}

.overflow-scroll {
	overflow: scroll;
}

.position-relative {
	position: relative;
}

.position-absolute {
	position: absolute;
}

.position-fixed {
	position: fixed;
}

.position-sticky {
	position: sticky;
}

.top-0 {
	top: 0;
}

.bottom-0 {
	bottom: 0;
}

.left-0 {
	left: 0;
}

.right-0 {
	right: 0;
}

.z-10 {
	z-index: 10;
}

.z-20 {
	z-index: 20;
}

.z-30 {
	z-index: 30;
}

.opacity-50 {
	opacity: 0.5;
}

.opacity-75 {
	opacity: 0.75;
}

.opacity-100 {
	opacity: 1;
}

.cursor-pointer {
	cursor: pointer;
}

.cursor-default {
	cursor: default;
}

.cursor-not-allowed {
	cursor: not-allowed;
}

.shadow-sm {
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.shadow-md {
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.shadow-lg {
	box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.bg-cover {
	background-size: cover;
}

.bg-contain {
	background-size: contain;
}

.bg-center {
	background-position: center;
}

.bg-no-repeat {
	background-repeat: no-repeat;
}

/* ===== МЕДИАЗАПРОСЫ (Desktop First) ===== */

/* Ноутбуки (меньше 1200px) */
@media (max-width: 1199px) {
	.lg\:w-60 {
		width: 70%;
	}

	.lg\:text-54 {
		font-size: 48px;
		line-height: 60px;
	}

	.lg\:grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.lg\:flex-row {
		flex-direction: row;
	}
}

/* Планшеты горизонтально (меньше 992px) */
@media (max-width: 991px) {
	.md\:w-60 {
		width: 80%;
	}

	.md\:w-50 {
		width: 100%;
	}

	.md\:text-54 {
		font-size: 42px;
		line-height: 52px;
	}

	.md\:text-30 {
		font-size: 26px;
		line-height: 30px;
	}

	.md\:text-24 {
		font-size: 22px;
		line-height: 26px;
	}

	.md\:grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.md\:grid-2 {
		grid-template-columns: repeat(2, 1fr);
	}

	.md\:grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.md\:flex-col {
		flex-direction: column;
	}

	.md\:flex-row {
		flex-direction: row;
	}

	.md\:flex-wrap {
		flex-wrap: wrap;
	}

	.md\:hidden {
		display: none;
	}

	.md\:block {
		display: block;
	}

	.md\:flex {
		display: flex;
	}

	.md\:p-30 {
		padding: 20px;
	}

	.md\:p-20 {
		padding: 15px;
	}

	.md\:mt-30 {
		margin-top: 20px;
	}

	.md\:mb-30 {
		margin-bottom: 20px;
	}

	/* Иконки: 4 в ряд → 2 в ряд */
	.md\:features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Баннер: центрируем */
	.md\:hero-banner {
		justify-content: center;
		padding: 30px 20px;
	}
}

/* Планшеты вертикально (меньше 768px) */
@media (max-width: 767px) {
	.sm\:w-full {
		width: 100%;
	}

	.sm\:w-60 {
		width: 90%;
	}

	.sm\:text-54 {
		font-size: 36px;
		line-height: 44px;
	}

	.sm\:text-30 {
		font-size: 24px;
		line-height: 28px;
	}

	.sm\:text-24 {
		font-size: 20px;
		line-height: 24px;
	}

	.sm\:text-20 {
		font-size: 18px;
		line-height: 22px;
	}

	.sm\:text-16 {
		font-size: 15px;
		line-height: 19px;
	}

	.sm\:grid-1 {
		grid-template-columns: 1fr;
	}

	.sm\:grid-2 {
		grid-template-columns: 1fr;
	}

	.sm\:grid-3 {
		grid-template-columns: 1fr;
	}

	.sm\:grid-4 {
		grid-template-columns: 1fr;
	}

	.sm\:flex-col {
		flex-direction: column;
	}

	.sm\:flex-row {
		flex-direction: row;
	}

	.sm\:hidden {
		display: none;
	}

	.sm\:block {
		display: block;
	}

	.sm\:flex {
		display: flex;
	}

	.sm\:p-30 {
		padding: 15px;
	}

	.sm\:p-20 {
		padding: 10px;
	}

	.sm\:px-20 {
		padding-left: 10px;
		padding-right: 10px;
	}

	.sm\:py-30 {
		padding-top: 15px;
		padding-bottom: 15px;
	}

	.sm\:gap-20 {
		gap: 10px;
	}

	.sm\:gap-30 {
		gap: 15px;
	}

	/* Навигация */
	.sm\:nav-mobile {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}

	.sm\:nav-list {
		flex-direction: column;
		width: 100%;
		text-align: center;
	}

	/* Баннер */
	.sm\:hero-banner {
		background-position: center;
		padding: 20px 15px;
	}

	.sm\:hero-content {
		background: rgba(255, 255, 255, 0.95);
		padding: 20px;
	}

	/* Иконки: 2 в ряд → 1 в ряд */
	.sm\:features-grid {
		grid-template-columns: 1fr;
	}

	.sm\:feature-item {
		width: 100%;
		margin-bottom: 20px;
	}

	/* Карусель */
	.sm\:carousel-item {
		min-width: 220px;
	}
}

/* Мобильные телефоны (меньше 576px) */
@media (max-width: 575px) {
	.xs\:text-54 {
		font-size: 32px;
		line-height: 38px;
	}

	.xs\:text-30 {
		font-size: 22px;
		line-height: 26px;
	}

	.xs\:text-24 {
		font-size: 18px;
		line-height: 22px;
	}

	.xs\:text-20 {
		font-size: 16px;
		line-height: 20px;
	}

	.xs\:text-16 {
		font-size: 14px;
		line-height: 18px;
	}

	.xs\:p-20 {
		padding: 10px;
	}

	.xs\:p-30 {
		padding: 15px;
	}

	.xs\:btn {
		padding: 10px 15px;
		font-size: 14px;
	}

	/* Все flex контейнеры в колонку */
	.xs\:flex-col {
		flex-direction: column;
	}

	/* Отступы */
	.xs\:gap-20 {
		gap: 8px;
	}

	.xs\:mt-20 {
		margin-top: 10px;
	}

	.xs\:mb-20 {
		margin-bottom: 10px;
	}

	/* Скрываем лишние элементы */
	.xs\:hidden {
		display: none;
	}

	/* Показываем мобильные элементы */
	.xs\:block {
		display: block;
	}

	/* Карточки на всю ширину */
	.xs\:w-full {
		width: 100%;
	}
}

/* Очень маленькие телефоны (меньше 400px) */
@media (max-width: 399px) {
	.xxs\:text-54 {
		font-size: 28px;
		line-height: 34px;
	}

	.xxs\:text-30 {
		font-size: 20px;
		line-height: 24px;
	}

	.xxs\:text-24 {
		font-size: 16px;
		line-height: 20px;
	}

	.xxs\:p-20 {
		padding: 8px;
	}

	.xxs\:carousel-item {
		min-width: 180px;
	}

	.xxs\:btn {
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
body {
	font-family: 'Nunito', sans-serif;
	color: #151D28;
	background-color: #F9F5E8;
	line-height: 1.6;
}

/* ===== СПЕЦИФИЧНЫЕ КОМПОНЕНТЫ ===== */
/* Герой баннер */
.hero-banner {
	display: flex;
	align-items: center;
	background: url('../assets/img/banner.png') no-repeat left center;
	background-size: cover;
	min-height: 500px;
	padding-left: 50%;
}

.hero-content {
	background: rgba(255, 255, 255, 0.9);
	padding: 30px;
	border-radius: 10px;
	max-width: 400px;
}

/* Иконки в строку */
.features {
	display: flex;
	justify-content: space-around;
	text-align: center;
	margin: 40px 0;
}

.feature-item {
	flex: 1;
	padding: 20px;
}

/* Кнопки навигации карусели */
.nav-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 20px 0;
}

/* Мобильное меню (скрыто по умолчанию) */
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	color: white;
	cursor: pointer;
	padding: 10px;
}

/* Медиазапросы для специфичных компонентов */
@media (max-width: 767px) {
	.hero-banner {
		padding-left: 20px;
		padding-right: 20px;
		justify-content: center;
		background-position: center;
	}

	.hero-content {
		width: 100%;
		max-width: 100%;
		padding: 20px;
	}

	.features {
		flex-direction: column;
		align-items: center;
	}

	.feature-item {
		width: 100%;
		max-width: 300px;
		margin-bottom: 20px;
	}

	.mobile-menu-btn {
		display: block;
	}

	.desktop-menu {
		display: none;
	}

	.mobile-menu {
		display: flex;
		flex-direction: column;
		width: 100%;
	}
}

@media (max-width: 575px) {
	.hero-banner {
		min-height: 400px;
	}

	.carousel-item {
		min-width: 200px;
	}
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	font-size: 28px;
	color: white;
	cursor: pointer;
	padding: 10px;
	z-index: 1000;
}

.desktop-menu {
	display: flex;
}

.mobile-menu {
	display: none;
	position: fixed;
	top: 80px;
	left: 0;
	width: 100%;
	background: #415167;
	padding: 20px;
	z-index: 999;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

	.mobile-menu.show {
		display: flex;
		flex-direction: column;
		gap: 15px;
	}

	.mobile-menu a {
		color: white;
		text-decoration: none;
		padding: 12px 20px;
		border-radius: 5px;
		transition: background 0.3s;
	}

		.mobile-menu a:hover {
			background: #C7A87A;
		}

/* Адаптация для мобильных */
@media (max-width: 767px) {
	.desktop-menu {
		display: none;
	}

	.mobile-menu-btn {
		display: block;
	}

	.mobile-menu {
		display: none;
	}

		.mobile-menu.show {
			display: flex;
		}
}

@media (max-width: 575px) {
	.mobile-menu {
		top: 70px;
		padding: 15px;
	}
}

/* Кнопка "Наверх" */
.scroll-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 56px;
	height: 56px;
	background: #2c5530;
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
}

	.scroll-top.visible {
		opacity: 1;
		visibility: visible;
	}

	.scroll-top:hover {
		background: #1e3a23;
		transform: scale(1.1);
	}

	.scroll-top:active {
		transform: scale(0.95);
	}

/* Оверлей для меню */
.menu-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 998;
}

	.menu-overlay.show {
		display: block;
	}

html, body {
	overflow-x: hidden;
	max-width: 100%;
	width: 100%;
}

* {
	box-sizing: border-box;
}

img, video, iframe, canvas, svg {
	max-width: 100%;
	height: auto;
}

.desktop-menu {
	gap: 25px !important;
	padding: 0 10px !important;
}

nav ul.flex {
	gap: 20px !important;
}

nav a, .nav__link {
	padding: 10px 15px !important;
	margin: 2px !important;
	border-radius: 6px;
	transition: all 0.3s ease;
	display: inline-block;
	text-decoration: none;
}

	nav a:hover, .nav__link:hover {
		background-color: rgba(199, 168, 122, 0.15);
		transform: translateY(-2px);
	}

h1, h2, h3, h4, h5, h6, p, span, div {
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
}

.text-54, .text-30, .text-24 {
	word-break: break-word;
	hyphens: auto;
}

.container, section, header, footer, main {
	max-width: 100vw;
	overflow-x: hidden;
}

@media (max-width: 768px) {
	.hero-banner {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 10px !important;
	}

	.w-60 {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		padding: 15px !important;
	}

	h1.text-54 {
		font-size: clamp(24px, 8vw, 32px) !important;
		line-height: 1.2 !important;
	}
}

@media (max-width: 767px) {
	.desktop-menu {
		gap: 10px !important;
		padding: 0 5px !important;
	}

	nav a {
		padding: 8px 10px !important;
		font-size: 14px !important;
	}
}

.scroll-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 56px;
	height: 56px;
	background: #2c5530;
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
}

	.scroll-top.visible {
		opacity: 1;
		visibility: visible;
	}

	.scroll-top:hover {
		background: #1e3a23;
		transform: scale(1.1);
	}

	.scroll-top:active {
		transform: scale(0.95);
	}

/* Оверлей для меню */
.menu-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 998;
}

	.menu-overlay.show {
		display: block;
	}

/* Для мобильных */
@media (max-width: 768px) {
	.scroll-top {
		width: 52px;
		height: 52px;
		bottom: 20px;
		right: 20px;
		font-size: 22px;
	}
}
