* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Общий контейнер с фоновым изображением */
.main-background {
    background-image: url('back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Параллакс эффект */
    position: relative;
    min-height: 100vh;
}

/* Затемнение фона для лучшей читаемости */
.main-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1); /* Регулируйте прозрачность */
    z-index: 1;
}

/* Header Styles */
header {
    background: transparent; /* Убираем градиент, т.к. есть общий фон */
    color: white;
    padding: 0px 0;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
	margin: 0;
}

/* Делаем header и hero поверх затемнения */
header, .hero {
    position: relative;
    z-index: 2;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 1;
	height: 100%;
}

.logo-link {
    display: block;
    width: 100%;
    max-width: 467px;
    min-height: 135px;
    background-image: url('images/logo4.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center;
    text-indent: -9999px;
    overflow: hidden;
}

.support-info {
    display: flex;
    align-items: center;
    background-color: #0192cb;
    padding: 12px 20px;
    border-radius: 8px;
}

.support-info i {
    margin-right: 12px;
    font-size: 22px;
    color: white;
	position: relative;
	padding: 0px 0px;
	top: 4px;
}

.support-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.support-text p {
    font-size: 14px;
    margin-bottom: 3px;
	text-align: left;
}

.support-text a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
	line-height: 1.4;
	font-family: monospace;	
	word-spacing: -3px;
}

.support-text a:hover {
    color: #0d2a4a;
    text-decoration: underline;
}

/* Navigation */
nav {
    background-color: #0192cb;
    border-radius: 8px;
    padding: 0 20px;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: space-between;
}

nav li {
    padding: 15px 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav a:hover {
    color: #0d2a4a;
}

nav i {
    margin-right: 8px;
}

.section-subtitle {
    text-align: center;
    color: #0d2a4a; 
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 700;
    padding: 0 20px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
	letter-spacing: 0.3px;
}

.feature-card p strong {
    color: #1a3a5f; /* Ваш синий */
    font-weight: 600;
}

.feature-card a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted #ff6b35;
}

.feature-card a:hover {
    color: #e55a2b;
    border-bottom-style: solid;
}

.no-break {
    white-space: nowrap;
    display: inline-block;
}

/* Hero Section */
.hero {
    background: transparent; /* Убираем градиент, т.к. есть общий фон */
    color: white;
    padding: 20px 20px 60px; /* Увеличиваем верхний отступ */
    margin: 0;
}

.hero-title {
    color: #0d2a4a;
	text-align: center;
	position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
	color: #0d2a4a;
}

.hero-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-corner-image {
    position: relative;
    right: 0;
    top: 0;
    width: 700px;
    height: 500px;
    background-image: url('image_47.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;
	transition: opacity 0.8s ease-in-out;
}

/* Затемнение для лучшей читаемости текста */
.hero-corner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-button {
    display: inline-block;
    background-color: #0192cb;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    border: 2px solid #0192cb;
}

.cta-button:hover {
    background-color: #4dabf7;
    color: #0d2a4a;
}

/* Навигация слайдера */
.hero-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    position: relative;
}

.hero-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Кнопки навигации */
.hero-nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-nav-btn:active {
    transform: scale(0.95);
}

/* Контейнер для точек */
.hero-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Точки-индикаторы */
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Products Section */
.products {
    margin: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1a3a5f;
    font-size: 32px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: #4dabf7;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
	align-items: stretch;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column; /* Важно: колонка */
    height: 250px /* Растягиваем на всю высоту */
	max-width: 350px;
    min-width: 280px;
	flex: 0 0 calc(33.333% - 20px);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 200px;
    background-color: #e9f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Занимает доступное пространство */
}

.product-info h3 {
    color: #1a3a5f;
    margin-bottom: 10px;
    font-size: 20px;
}

.product-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
}

.product-button {
    display: inline-block;
    background-color: #1a3a5f;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: auto; /* Прижимает к низу */
    align-self: flex-start; /* Или center для центрирования */
    width: 100%; /* Чтобы все кнопки одинаковой ширины */
    text-align: center;
}

.product-button:hover {
    background-color: #4dabf7;
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
	align-items: stretch;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative; /* Для абсолютного позиционирования */
    height: 250px;
    min-height: 400px;
    max-width: 350px;
    min-width: 280px;
    flex: 0 0 calc(33.333% - 20px);
}

.feature-icon {
    background-color: #e9f5ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
	position: relative;
    top: 0px;
}

.feature-icon i {
    font-size: 32px;
    color: #1a3a5f;
	line-height: 1;
	position: absolute;
    top: 30px; /* Фиксированная позиция сверху */
    left: 50%;
    transform: translateX(-50%);
}

.feature-card h3 {
    position: absolute;
    top: 130px; /* Под иконкой */
    left: 30px;
    right: 30px;
    color: #1a3a5f;
    margin: 0;
    font-size: 22px;
	/*overflow-wrap: break-word;
	word-break: break-word;*/
}

.feature-card p {
	position: absolute; /* Абсолютное позиционирование */
    top: 52%; /* Стартовая позиция после иконки и заголовка */
    left: 30px; /* Совпадает с padding карточки */
    right: 30px; /* Совпадает с padding карточки */
    margin: 0px;
    color: #666;
    text-align: center;
}

.desktop-title {
    display: block;
}

.mobile-title {
    display: none;
}


/* Footer */
footer {
    background-color: #0d2a4a;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #4dabf7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #4dabf7;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

.copyright a {
    color: #aaa;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-title {
    color: #1a3a5f;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #0192cb;
}

.modal-form textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal !important;
    color: #666 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #0192cb;
    text-decoration: none;
    border-bottom: 1px dotted #0192cb;
}

.checkbox-label a:hover {
    border-bottom: 1px solid #0192cb;
}

.required {
    color: #ff4444;
}

.modal-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a3a5f 0%, #0192cb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(1, 146, 203, 0.3);
}

.modal-submit-btn:active {
    transform: translateY(0);
}

.modal-submit-btn .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.modal-submit-btn.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.modal-submit-btn.loading .btn-loader {
    display: inline-block !important;
}

.modal-success {
    text-align: center;
    padding: 20px 0;
}

.modal-success .success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.modal-success h3 {
    color: #1a3a5f;
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-success p {
    color: #666;
    margin-bottom: 30px;
}

/* Анимация для ошибок */
.form-group.error input,
.form-group.error textarea {
    border-color: #ff4444;
    background-color: #fff8f8;
}

.error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 5px;
}

.optional {
    color: #888;
    font-size: 0.9em;
    font-weight: normal;
    margin-left: 5px;
}

.field-hint {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

/* Стиль для поля, которое необязательно */
.form-group textarea:not(:focus):placeholder-shown {
    border-color: #e0e0e0;
}

.form-group textarea:focus {
    border-color: #0192cb;
}

/* Адаптивность */
@media (max-width: 576px) {
    .modal-container {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
    
    .modal-submit-btn {
        padding: 12px;
        font-size: 16px;
    }
}

/* Для адаптивности логотипа */
@media (max-width: 1200px) {
    .logo-link {
        height: 70px;
    }
	
	.desktop-title {
        display: none;
    }
    
    .mobile-title {
        display: block;
    }
	
	.feature-card {
		min-height: 455px;
	}
	
	.feature-card p {
		top: 55%;
	}
}

@media (max-width: 992px) {
    .logo-link {
        height: 65px;
    }
	
	.hero-content {
        justify-content: center; /* или flex-start */
        text-align: center;
        flex-direction: column;
        gap: 0; /* Убираем отступ между элементами */
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
		font-weight: bold;
    }

	.hero-corner-image {
		margin-top: 20px;
		background-position: center;
	}
}

@media (max-width: 576px) {
    .logo-link {
		min-height: 135px;
        max-width: 467px;
    }
	
	.hero-corner-image {
		max-width: 450px;
		margin-top: 0px;
	}
	
	.feature-card {
        height: auto !important; /* Приоритет */
        min-height: auto !important;
        max-width: 100%;
        width: 100%;
        flex: 1 0 auto; /* Растягивается по контенту */
        margin-bottom: 20px;
        
        /* Сохраняем внутреннюю структуру */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    .features {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 40px 0;
    }
    
    /* Фиксируем иконки и заголовки */
    .feature-icon {
        position: static; /* Убираем абсолютное позиционирование если есть */
        transform: none;
        margin: 0 auto 20px;
    }
	
	.feature-icon i {
        all: unset;
        display: inline-block !important;
        font-size: 32px !important;
        color: #1a3a5f !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
    }
    
    .feature-card h3 {
        position: static; /* Убираем абсолютное позиционирование если есть */
        margin: 0 auto 15px;
        text-align: center;
    }
    
    .feature-card p {
        position: static; /* Убираем абсолютное позиционирование если есть */
        margin-top: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-link {
        min-height: 124px;
        max-width: 430px;
    }
	
	.hero-corner-image {
		max-width: 354px;
		max-height: 252px;
	}
}

@media (max-width: 400px) {
    .logo-link {
        min-height: 98px;
        max-width: 340px;
    }
	
	.hero-corner-image {
		max-width: 274px;
		max-height: 195px;
		margin-top: 40px;
	}
}

/* Responsive */
@media (max-width: 992px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 20px;
        width: 100%;
        justify-content: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        padding: 10px 15px;
    }
	
	.hero h2 {
        font-size: 28px;
    }
	
	.hero p {
        font-size: 18px;
    }
	
	.hero-title{
		padding-bottom: 20px; 
	}
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность сладера hero*/
@media (max-width: 768px) {
    .hero-navigation {
        margin-top: 30px;
        padding-top: 15px;
        gap: 15px;
    }
    
    .hero-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .hero-dots {
        gap: 8px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .hero-navigation {
        gap: 10px;
    }
    
    .hero-nav-btn {
        width: 30px;
        height: 30px;
    }
}