/* ==================== ПЕРЕМЕННЫЕ ==================== */
:root {
	--color-primary: #046D99;
	--color-secondary: #32A549;
	--color-text: #333;
	--color-text-light: #666;
	--color-white: #fff;
	--color-bg-light: #f5f5f5;
	--color-border: #ddd;

	--font-main: 'Roboto', Arial, sans-serif;

	--container-width: 1200px;
	--container-padding: 20px;

	--transition: all 0.3s ease;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== СБРОС И БАЗОВЫЕ СТИЛИ ==================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-white);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	opacity: 0.8;
}

ul {
	list-style: none;
}

button {
	font-family: var(--font-main);
	cursor: pointer;
	border: none;
	background: none;
}

input, textarea, select {
	font-family: var(--font-main);
}

/* ==================== КОНТЕЙНЕР ==================== */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* ==================== ЗАГОЛОВКИ ==================== */
.section-title {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	color: var(--color-primary);
	margin-bottom: 50px;
	text-transform: uppercase;
}

/* ==================== КНОПКИ ==================== */
.btn {
	display: inline-block;
	padding: 15px 40px;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	border-radius: 50px;
	transition: var(--transition);
	cursor: pointer;
}

.btn-primary {
	background: var(--color-secondary);
	color: var(--color-white);
	border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
	background: #2a8f3e;
	border-color: #2a8f3e;
	opacity: 1;
}

.btn-secondary {
	background: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
	background: var(--color-primary);
	color: var(--color-white);
	opacity: 1;
}

.btn-large {
	padding: 18px 50px;
	font-size: 18px;
	margin-top: 30px;
}

/* ==================== ФОРМЫ ==================== */
.form {
	background: rgba(255, 255, 255, 0.95);
	padding: 30px;
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.form-title {
	font-size: 24px;
	margin-bottom: 20px;
	color: var(--color-primary);
	text-align: center;
}

.form-input,
.form-textarea {
	width: 100%;
	padding: 15px 20px;
	margin-bottom: 15px;
	border: 2px solid var(--color-border);
	border-radius: 25px;
	font-size: 16px;
	transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: var(--color-primary);
}

.form-textarea {
	resize: vertical;
	border-radius: 15px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.checkbox-input {
	display: none;
}

.checkbox-custom {
	min-width: 20px;
	width: 20px;
	height: 20px;
	border: 2px solid var(--color-border);
	border-radius: 5px;
	position: relative;
	transition: var(--transition);
}

.checkbox-input:checked + .checkbox-custom {
	background: var(--color-secondary);
	border-color: var(--color-secondary);
}

.checkbox-input:checked + .checkbox-custom::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--color-white);
	font-size: 14px;
	font-weight: bold;
}

.form-consent {
	margin: 20px 0;
}

.privacy-link {
	color: var(--color-primary);
	text-decoration: underline;
}

.form-buttons {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.form-buttons .btn {
	flex: 1;
}

/* ==================== HERO СЕКЦИЯ ==================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: var(--color-white);
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('../images/back.jpg') center/cover no-repeat;
	z-index: -1;
}

.hero-background::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(4, 109, 153, 0.6) 0%, rgba(50, 165, 73, 0.5) 100%);
}

/* ==================== HEADER ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: 76px;
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(10px);
	transition: var(--transition);
	padding: 0;
}

.header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.logo {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 20px;
	flex-shrink: 0; /* Предотвращаем сжатие логотипа */
}

.logo img {
	height: 50px;
	width: auto;
	min-height: 40px; /* Минимальная высота для читаемости */
	max-width: 200px; /* Максимальная ширина для контроля пропорций */
	display: block;
	object-fit: contain; /* Сохраняем пропорции */
}

.nav {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.nav-list a {
	color: var(--color-text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: var(--transition);
	white-space: nowrap;
	padding: 8px 0;
	position: relative;
}

.nav-list a:hover {
	opacity: 0.7;
}

.nav-list a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--color-primary);
	transition: width 0.3s ease;
}

.nav-list a:hover::after {
	width: 100%;
}

.header-phone {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 0 20px;
	color: var(--color-text);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
	height: 100%;
	margin-left: auto;
}

.header-phone:hover {
	opacity: 0.8;
}

.header-phone svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.header-phone span {
	white-space: nowrap;
}

.menu-toggle {
	display: none;
}

/* ==================== HERO CONTENT ==================== */
.hero-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	padding-top: 120px;
}

.hero-text {
	animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero-title {
	font-size: 72px;
	line-height: 1.1;
	margin-bottom: 30px;
}

.hero-title-main {
	display: block;
	font-weight: 700;
	color: #FFFFFF;
	text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.3);
	letter-spacing: 2px;
}

.hero-title-sub {
	display: block;
	font-size: 56px;
	font-weight: 700;
	color: #FFD700;
	text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.4);
	letter-spacing: 1px;
}

.hero-info {
	margin-top: 30px;
	padding: 25px 35px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-rate {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #FFD700;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-description {
	font-size: 19px;
	line-height: 1.6;
	opacity: 0.95;
}

.hero-form {
	animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.hero-form .form {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(15px);
	border: 2px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-form .form-title {
	color: var(--color-white);
	font-size: 26px;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-form .form-input {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.3);
}

.hero-form .form-input:focus {
	background: var(--color-white);
	border-color: var(--color-secondary);
}

.hero-form .checkbox-text {
	color: var(--color-white);
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-form .checkbox-custom {
	background: rgba(255, 255, 255, 0.9);
	border-color: rgba(255, 255, 255, 0.5);
}

.hero-form .btn-primary {
	background: var(--color-secondary);
	border-color: var(--color-secondary);
	font-size: 18px;
	font-weight: 600;
	box-shadow: 0 4px 15px rgba(50, 165, 73, 0.4);
}

.hero-form .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(50, 165, 73, 0.6);
}

/* ==================== STEPS СЕКЦИЯ ==================== */
.steps {
	padding: 80px 0;
	background: var(--color-white);
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.step-card {
	text-align: center;
	padding: 30px 20px;
	transition: var(--transition);
}

.step-card:hover {
	transform: translateY(-10px);
}

.step-icon {
	width: 150px;
	height: 150px;
	margin: 0 auto 25px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.step-icon-1 {
	background-image: url('../images/icons/1.svg');
}

.step-icon-2 {
	background-image: url('../images/icons/2.svg');
}

.step-icon-3 {
	background-image: url('../images/icons/3.svg');
}

.step-title {
	font-size: 24px;
	font-weight: 500;
	color: var(--color-secondary);
	margin-bottom: 15px;
}

.step-text {
	font-size: 16px;
	color: var(--color-text-light);
	line-height: 1.6;
}

/* ==================== CALCULATOR СЕКЦИЯ ==================== */
.calculator-section {
	padding: 80px 0;
	background: var(--color-secondary);
	background-image: url('../images/back1.jpg');
	background-size: cover;
	background-position: center;
	color: var(--color-white);
}

.calculator-section .section-title {
	color: var(--color-white);
}

.calculator {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	padding: 40px;
	border-radius: 20px;
	max-width: 900px;
	margin: 0 auto;
}

.calculator-input-group {
	margin-bottom: 35px;
}

.calculator-label {
	display: block;
	font-size: 20px;
	font-weight: 500;
	margin-bottom: 15px;
}

.input-slider {
	display: flex;
	align-items: center;
	gap: 20px;
}

.input-with-currency {
	position: relative;
	flex-shrink: 0;
}

.slider-value-input {
	width: 180px;
	padding: 12px 45px 12px 20px;
	font-size: 20px;
	font-weight: 500;
	border: 2px solid var(--color-primary);
	border-radius: 30px;
	text-align: center;
}

.currency {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	padding: 0;
	border-radius: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--color-text);
	pointer-events: none;
}

.slider {
	flex: 1;
	height: 8px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.3);
	outline: none;
	-webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-white);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-white);
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.calculator-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin: 40px 0;
}

.select-custom {
	position: relative;
	width: 100%;
}

.select-selected {
	padding: 15px 45px 15px 20px;
	background: var(--color-white);
	color: var(--color-text);
	border-radius: 25px;
	cursor: pointer;
	font-size: 18px;
	transition: var(--transition);
	position: relative;
}

.select-selected::after {
	content: '▼';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	transition: var(--transition);
}

.select-custom.active .select-selected::after {
	transform: translateY(-50%) rotate(180deg);
}

.select-options {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: var(--color-white);
	border-radius: 15px;
	margin-top: 10px;
	box-shadow: var(--shadow);
	max-height: 0;
	overflow: hidden;
	transition: var(--transition);
	z-index: 10;
}

.select-custom.active .select-options {
	max-height: 300px;
	overflow-y: auto;
}

.select-option {
	padding: 12px 20px;
	color: var(--color-text);
	cursor: pointer;
	transition: var(--transition);
	border-bottom: 1px solid var(--color-border);
}

.select-option:last-child {
	border-bottom: none;
}

.select-option:hover,
.select-option.active {
	background: var(--color-secondary);
	color: var(--color-white);
}

.select-option-notice {
	cursor: default;
	color: var(--color-text-light);
	font-size: 14px;
	background: #fff3cd;
	border-bottom: 2px solid #ffc107;
	font-weight: 500;
}

.select-option-notice:hover {
	background: #fff3cd;
	color: var(--color-text-light);
}

.calculator-results {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin: 40px 0;
}

.result-card {
	background: rgba(255, 255, 255, 0.15);
	padding: 25px;
	border-radius: 15px;
	text-align: center;
}

.result-label {
	font-size: 16px;
	margin-bottom: 10px;
	opacity: 0.9;
}

.result-value {
	font-size: 32px;
	font-weight: 700;
}

.calculator-form-wrapper {
	display: none;
	margin-top: 30px;
}

.calculator-form-wrapper.active {
	display: block;
}

.calc-summary {
	background: rgba(4, 109, 153, 0.2);
	padding: 15px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--color-text); /* Темный цвет текста для читаемости */
	line-height: 1.6;
}

.calc-summary strong {
	color: var(--color-primary); /* Цвет заголовка "Ваш расчет" */
	font-weight: 600;
}

.calculator-form-wrapper .form {
	background: rgba(255, 255, 255, 0.95);
}

/* Согласие на обработку данных в форме калькулятора */
.calculator-form-wrapper .checkbox-text {
	color: var(--color-text); /* Темный цвет текста на белом фоне */
	font-size: 14px;
}

.calculator-form-wrapper .checkbox-text a {
	color: var(--color-primary);
	text-decoration: underline;
}

/* ==================== ADVANTAGES СЕКЦИЯ ==================== */
.advantages {
	padding: 80px 0;
	background: var(--color-bg-light);
}

.advantages-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.advantages-image {
	border-radius: 20px;
	box-shadow: var(--shadow);
}

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

.advantages-list li {
	padding: 20px 20px 20px 60px;
	margin-bottom: 15px;
	font-size: 20px;
	background: var(--color-white);
	border-radius: 15px;
	box-shadow: var(--shadow);
	position: relative;
	transition: var(--transition);
}

.advantages-list li::before {
	content: '✓';
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	background: var(--color-secondary);
	color: var(--color-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.advantages-list li:hover {
	transform: translateX(10px);
	box-shadow: var(--shadow-hover);
}

/* ==================== LICENSES СЕКЦИЯ ==================== */
.licenses {
	padding: 80px 0;
	background: var(--color-primary);
	background-image: url('../images/back2.jpg');
	background-size: cover;
	background-position: center;
	color: var(--color-white);
}

.licenses .section-title {
	color: var(--color-white);
}

.licenses-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: stretch;
}

.license-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 30px;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	padding: 30px;
	border-radius: 20px;
	backdrop-filter: blur(10px);
	min-height: 280px;
}

.license-card-reverse {
	grid-template-columns: auto 1fr;
}

.license-card-reverse .license-text {
	order: 2;
}

.license-card-reverse .license-image {
	order: 1;
}

.license-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 220px;
}

.license-text h3 {
	font-size: 24px;
	margin-bottom: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.license-text p {
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.95;
	margin: 0;
}

.license-image {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	width: 200px;
	height: 220px;
}

.license-image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

/* ==================== FAQ СЕКЦИЯ ==================== */
.faq {
	padding: 80px 0;
	background: var(--color-bg-light);
}

.faq-list {
	max-width: 900px;
	margin: 0 auto;
}

.faq-item {
	background: var(--color-white);
	border-radius: 15px;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: var(--transition);
}

.faq-item:hover {
	box-shadow: var(--shadow-hover);
}

.faq-question {
	padding: 25px 60px 25px 25px;
	font-size: 20px;
	font-weight: 500;
	color: var(--color-primary);
	cursor: pointer;
	position: relative;
	transition: var(--transition);
}

.faq-question::after {
	content: '+';
	position: absolute;
	right: 25px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 30px;
	font-weight: 300;
	transition: var(--transition);
}

.faq-item.active .faq-question {
	background: var(--color-secondary);
	color: var(--color-white);
}

.faq-item.active .faq-question::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: var(--transition);
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 25px;
}

.faq-answer p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text-light);
}

/* ==================== CONTACTS СЕКЦИЯ ==================== */
.contacts {
	padding: 80px 0;
	background: var(--color-white);
}

.contacts-info {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	margin-bottom: 50px;
}

.contact-item h3 {
	font-size: 24px;
	color: var(--color-primary);
	margin-bottom: 10px;
}

.contact-item p {
	font-size: 18px;
}

.contact-item a {
	font-size: 24px;
	font-weight: 500;
	color: var(--color-secondary);
}

.map-wrapper {
	margin: 50px 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

#map {
	width: 100%;
	height: 450px;
	border: none;
}

.contact-form {
	max-width: 700px;
	margin: 50px auto 0;
}

/* ==================== FOOTER ==================== */
.footer {
	background: #333;
	color: #fff;
	padding: 40px 0 20px;
	margin-top: 0;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.footer-section h3 {
	color: #fff;
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: 600;
}

.footer-section a {
	color: #ccc;
	text-decoration: none;
	display: block;
	margin-bottom: 10px;
	transition: var(--transition);
}

.footer-section a:hover {
	color: #005080;
}

.footer-section p {
	color: #ccc;
	margin-bottom: 10px;
	font-size: 14px;
}

.footer-phone,
.footer-email {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s ease;
	display: inline;
}

.footer-phone:hover,
.footer-email:hover {
	color: #005080;
	text-decoration: underline;
}

.footer-logo {
	margin-bottom: 20px;
}

.footer-logo img {
	max-width: 200px;
	height: auto;
	display: block;
}

.social-links {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	align-items: center;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.3s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	background: transparent;
}

.social-link img,
.social-link svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vk-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(76, 117, 163, 0.4);
}

.telegram-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.detailed-footer-content {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #555;
}

.detailed-footer-column {
	font-size: 13px;
	line-height: 1.7;
}

.detailed-footer-column p {
	margin-bottom: 12px;
	color: #ccc;
}

.detailed-footer-column a {
	color: #4a90e2;
	text-decoration: none;
}

.detailed-footer-column a:hover {
	text-decoration: underline;
}

.detailed-footer-column strong {
	color: #fff;
	font-weight: 600;
}

.detailed-footer-column em {
	color: #aaa;
	font-style: italic;
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	margin-top: 20px;
	border-top: 1px solid #555;
	color: #ccc;
}

.footer-bottom p {
	font-size: 14px;
	margin: 0;
}

/* ==================== MODAL ==================== */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	overflow-y: auto;
}

.modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-content {
	background: var(--color-white);
	max-width: 800px;
	width: 100%;
	max-height: 90vh;
	padding: 40px;
	border-radius: 20px;
	position: relative;
	animation: modalFadeIn 0.3s ease;
	display: flex;
	flex-direction: column;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: translateY(-50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 30px;
	font-weight: 300;
	color: var(--color-text-light);
	cursor: pointer;
	background: none;
	border: none;
	transition: var(--transition);
}

.modal-close:hover {
	color: var(--color-text);
	transform: rotate(90deg);
}

.modal-content h2 {
	font-size: 28px;
	color: var(--color-primary);
	margin-bottom: 20px;
}

.modal-content h3 {
	font-size: 20px;
	color: var(--color-text);
	margin-top: 20px;
	margin-bottom: 10px;
}

.modal-body {
	overflow-y: auto;
	flex: 1;
	padding-right: 10px;
	margin-right: -10px;
}

.modal-body p {
	margin-bottom: 15px;
	line-height: 1.8;
	color: var(--color-text-light);
	font-size: 15px;
}

.modal-body ul {
	margin: 15px 0;
	padding-left: 20px;
}

.modal-body li {
	margin-bottom: 10px;
	line-height: 1.7;
	color: var(--color-text-light);
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1024px) {
	/* Header */
	.nav-list {
		gap: 20px;
	}

	.nav-list a {
		font-size: 14px;
	}

	.header-phone {
		font-size: 15px;
		gap: 8px;
	}

	.header-phone svg {
		width: 18px;
		height: 18px;
	}

	.logo img {
		height: 45px;
		min-height: 40px;
		max-width: 180px;
	}

	.header {
		height: 70px;
	}

	.hero-content {
		padding-top: 100px;
	}

	.hero-content,
	.advantages-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.hero-title {
		font-size: 56px;
	}

	.hero-title-sub {
		font-size: 44px;
	}

	.hero-info {
		padding: 20px 25px;
	}

	.hero-rate {
		font-size: 28px;
	}

	.hero-description {
		font-size: 17px;
	}

	.hero-form {
		max-width: 500px;
		margin: 0 auto;
	}

	/* Steps */
	.steps-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}

	.step-icon {
		width: 120px;
		height: 120px;
	}

	.step-title {
		font-size: 22px;
	}

	.step-text {
		font-size: 15px;
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.detailed-footer-content {
		grid-template-columns: 1fr;
	}

	.footer-logo img {
		margin: 0;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 15px;
	}

	.section-title {
		font-size: 26px;
		margin-bottom: 30px;
	}

	/* Header */
	.header {
		height: 60px;
	}

	.logo {
		padding: 0 10px;
		flex-shrink: 0;
	}

	.logo img {
		height: 40px;
		min-height: 35px;
		max-width: 160px;
	}

	.nav {
		display: none;
		position: fixed;
		top: 0;
		right: -100%;
		width: 75%;
		max-width: 320px;
		height: 100vh;
		background: linear-gradient(135deg, var(--color-primary) 0%, #035a7a 100%);
		padding: 70px 25px 25px;
		transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 999;
		flex-direction: column;
		justify-content: flex-start;
		box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
		overflow-y: auto;
	}

	.nav.active {
		right: 0;
		display: flex;
	}

	.nav-list {
		flex-direction: column;
		gap: 8px;
		width: 100%;
		align-items: stretch;
	}

	.nav-list li {
		width: 100%;
	}

	.nav-list a {
		padding: 12px 20px;
		font-size: 16px;
		color: var(--color-white);
		border-radius: 12px;
		text-align: left;
		background: rgba(255, 255, 255, 0.1);
		backdrop-filter: blur(10px);
		transition: var(--transition);
		width: 100%;
		display: block;
	}

	.nav-list a:hover {
		background: rgba(255, 255, 255, 0.25);
		color: var(--color-white);
		transform: translateX(5px);
	}

	.nav-list a::after {
		display: none;
	}

	.header-phone {
		padding: 0 10px;
		font-size: 14px;
		gap: 6px;
	}

	.header-phone span {
		display: none;
	}

	.header-phone svg {
		width: 18px;
		height: 18px;
	}

	.menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 5px;
		width: 28px;
		height: 20px;
		padding: 0;
		background: transparent;
		border: none;
		cursor: pointer;
		align-items: center;
		position: relative;
		z-index: 1001;
		margin-right: 10px;
	}

	.menu-toggle span {
		display: block;
		width: 100%;
		height: 3px;
		background: var(--color-text);
		border-radius: 3px;
		transition: var(--transition);
	}

	.menu-toggle.active span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
		background: var(--color-white);
	}

	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
		transform: translateX(-10px);
	}

	.menu-toggle.active span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
		background: var(--color-white);
	}

	/* Mobile menu overlay */
	.mobile-menu-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
		z-index: 998;
	}

	.mobile-menu-overlay.active {
		opacity: 1;
		pointer-events: all;
	}

	/* Hero */
	.hero-content {
		padding-top: 80px;
	}

	.hero-title {
		font-size: 42px;
	}

	.hero-title-sub {
		font-size: 36px;
	}

	.hero-rate {
		font-size: 22px;
	}

	/* Steps */
	.steps {
		padding: 60px 0;
	}

	.steps-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.step-card {
		padding: 25px 15px;
	}

	.step-icon {
		width: 100px;
		height: 100px;
		margin-bottom: 20px;
	}

	.step-title {
		font-size: 20px;
		margin-bottom: 12px;
	}

	.step-text {
		font-size: 14px;
	}

	/* Advantages */
	.advantages {
		padding: 60px 0;
	}

	.advantages-list li {
		font-size: 18px;
		padding: 18px 18px 18px 55px;
	}

	/* Calculator Section */
	.calculator-section {
		padding: 60px 0;
	}

	.calculator-title {
		font-size: 28px;
		margin-bottom: 25px;
	}

	/* FAQ */
	.faq {
		padding: 60px 0;
	}

	.faq-question {
		padding: 20px 50px 20px 20px;
		font-size: 18px;
	}

	.faq-item.active .faq-answer {
		padding: 20px;
	}

	.faq-answer p {
		font-size: 15px;
	}

	/* Contacts */
	.contacts {
		padding: 60px 0;
	}

	.contact-item h3 {
		font-size: 22px;
	}

	.contact-item p,
	.contact-item a {
		font-size: 16px;
	}

	#map {
		height: 350px;
	}

	/* Calculator */
	.calculator {
		padding: 25px;
	}

	.input-slider {
		flex-direction: column;
		align-items: stretch;
	}

	.slider-value-input {
		border-radius: 25px;
		width: 100%;
	}

	.currency {
		background: transparent;
		padding: 0;
		right: 15px;
	}

	.calculator-options {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.calculator-results {
		grid-template-columns: 1fr;
		gap: 20px;
	}

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

	/* License */
	.licenses-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.license-card,
	.license-card-reverse {
		grid-template-columns: 1fr;
		padding: 25px;
		min-height: auto;
		gap: 20px;
	}

	.license-text {
		min-height: auto;
	}

	.license-image {
		width: 100%;
		max-width: 250px;
		height: auto;
		margin: 0 auto;
	}

	.license-card-reverse .license-text {
		order: 2;
	}

	.license-card-reverse .license-image {
		order: 1;
	}

	.license-image img {
		margin: 0 auto;
	}

	/* Contacts */
	.contacts-info {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	/* Forms */
	.hero-form .form {
		padding: 25px;
	}

	.hero-form .form-title {
		font-size: 22px;
		margin-bottom: 20px;
	}

	.form-input {
		padding: 12px 18px;
		font-size: 15px;
	}

	.form-consent {
		margin: 15px 0;
	}

.checkbox-text {
	font-size: 13px;
}

.checkbox-text-break {
	display: none;
}

@media (min-width: 769px) {
	.checkbox-text-break {
		display: block;
	}
}

.btn-submit-form,
.hero-form .btn-submit-form,
#calcSubmitBtn.btn-submit-form {
	background: var(--color-primary) !important;
	border: 2px solid var(--color-primary) !important;
	color: var(--color-white) !important;
}

.btn-submit-form:hover,
.hero-form .btn-submit-form:hover,
#calcSubmitBtn.btn-submit-form:hover {
	background: #035a7a !important;
	border-color: #035a7a !important;
	color: var(--color-white) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(4, 109, 153, 0.6);
}

	/* Sections padding */
	.steps,
	.advantages,
	.calculator-section,
	.licenses,
	.faq,
	.contacts {
		padding: 60px 0;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 12px;
	}

	/* Header */
	.header {
		height: 56px;
	}

	.logo img {
		height: 36px;
		min-height: 32px;
		max-width: 140px;
	}

	.header-phone {
		height: 36px;
		padding: 0 8px;
		font-size: 12px;
	}

	.header-phone svg {
		width: 16px;
		height: 16px;
	}

	.menu-toggle {
		width: 26px;
		height: 18px;
		margin-right: 8px;
	}

	.nav {
		width: 85%;
		max-width: 280px;
		padding: 60px 20px 20px;
	}

	.nav-list a {
		padding: 10px 18px;
		font-size: 15px;
	}

	/* Hero */
	.hero-content {
		padding-top: 70px;
	}

	.hero-title {
		font-size: 32px;
		margin-bottom: 15px;
	}

	.hero-title-sub {
		font-size: 28px;
	}

	.hero-info {
		padding: 15px 18px;
		margin-top: 15px;
	}

	.hero-rate {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.hero-description {
		font-size: 14px;
	}

	.hero-form .form-title {
		font-size: 20px;
	}

	.section-title {
		font-size: 22px;
		margin-bottom: 25px;
	}

	.btn {
		padding: 12px 30px;
		font-size: 14px;
	}

	/* Steps */
	.steps {
		padding: 50px 0;
	}

	.step-card {
		padding: 20px 12px;
	}

	.step-icon {
		width: 80px;
		height: 80px;
		margin-bottom: 15px;
	}

	.step-title {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.step-text {
		font-size: 14px;
	}

	/* Calculator */
	.calculator-section {
		padding: 50px 0;
	}

	.calculator {
		padding: 20px;
	}

	.calculator-title {
		font-size: 24px;
		margin-bottom: 20px;
	}

	.calculator-label {
		font-size: 16px;
		margin-bottom: 10px;
	}

	.slider-value-input {
		font-size: 18px;
		padding: 10px 40px 10px 18px;
	}

	.currency {
		font-size: 16px;
		right: 12px;
	}

	.select-selected {
		padding: 12px 40px 12px 18px;
		font-size: 16px;
	}

	.result-value {
		font-size: 24px;
	}

	/* Advantages */
	.advantages {
		padding: 50px 0;
	}

	.advantages-list li {
		font-size: 16px;
		padding: 15px 15px 15px 50px;
		margin-bottom: 12px;
	}

	.advantages-list li::before {
		width: 25px;
		height: 25px;
		left: 15px;
		font-size: 14px;
	}

	/* Licenses */
	.licenses {
		padding: 50px 0;
	}

	.license-text h3 {
		font-size: 22px;
		margin-bottom: 12px;
	}

	.license-text p {
		font-size: 14px;
	}

	.license-image {
		max-width: 200px;
	}

	/* FAQ */
	.faq {
		padding: 50px 0;
	}

	.faq-question {
		padding: 18px 45px 18px 18px;
		font-size: 16px;
	}

	.faq-question::after {
		right: 18px;
		font-size: 24px;
	}

	.faq-item.active .faq-answer {
		padding: 18px;
	}

	.faq-answer p {
		font-size: 14px;
	}

	/* Contacts */
	.contacts {
		padding: 50px 0;
	}

	.contact-item h3 {
		font-size: 20px;
		margin-bottom: 8px;
	}

	.contact-item p,
	.contact-item a {
		font-size: 16px;
	}

	#map {
		height: 300px;
	}

	/* Footer */
	.footer {
		padding: 40px 0 20px;
	}

	.footer-section {
		margin-bottom: 30px;
	}

	.footer-section h3 {
		font-size: 18px;
		margin-bottom: 15px;
	}

	.footer-section a,
	.footer-section p {
		font-size: 14px;
	}

	.detailed-footer-column {
		font-size: 12px;
		margin-bottom: 25px;
	}

	.detailed-footer-column p {
		margin-bottom: 12px;
	}

	.footer-bottom {
		margin-top: 30px;
		padding-top: 20px;
	}

	.footer-bottom p {
		font-size: 12px;
	}
}
