/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a1a3d;
    --secondary-color: #1a3a7d;
    --accent-color: #00a8ff;
    --text-color: #ffffff;
    --text-secondary: #b0c4de;
    --card-bg: rgba(26, 58, 125, 0.8);
    --border-radius: 12px;
    --transition: all 0.3s ease;
	--partner-bg: #ffffff; /* ДОБАВИТЬ ЭТУ ПЕРЕМЕННУЮ */
    --header-height: 140px;	
}

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

a.plain-link {
    text-decoration: none;
    color: white;
}

/* Стиль для мигающего телефона */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.blinking-phone {
    color: #ffffff;
    margin-right: 8px;
    animation: blink 2s infinite;
}

/* Анимированный фон */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Способ 1: Пустые якоря */
.anchor-point {
    position: relative;
    display: block;
    top: calc(var(--header-height) * -1);
}

[id] {
    scroll-margin-top: 140px; /* Для десктопа */
}

/* Основной фон */
.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #050a1c 0%, #0a1a3d 40%, #1a3a7d 100%);
    z-index: -3;
}

/* Карта России */
.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/rusmap.png');
    background-size: 70% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: -2;
    -webkit-mask-image: radial-gradient(circle at center, 
        rgba(0,0,0,1) 50%, 
        rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(circle at center, 
        rgba(0,0,0,1) 50%, 
        rgba(0,0,0,0) 80%);
}

/* Обновленный градиент фона */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #050a1c 0%, #0a1a3d 40%, #1a3a7d 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Обновленные звезды с вращением */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: stars-rotate 240s linear infinite;
}

@keyframes stars-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Убираем старый map-overlay */
.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600" opacity="0.02"><path d="M100,100 L300,150 L500,100 L700,200 L600,400 L400,500 L200,400 L100,300 Z" fill="none" stroke="white" stroke-width="1"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: -1;
    opacity: 0.1;
}

.transport-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.transport-lines::before,
.transport-lines::after,
.transport-lines div {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: twinkle 3s infinite;
}

.transport-lines::before {
    content: '';
    top: 40%;
    left: 20%;
    width: 30%;
    height: 1px;
    animation-delay: 0s;
}

.transport-lines::after {
    content: '';
    top: 60%;
    left: 50%;
    width: 25%;
    height: 1px;
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Шапка */
.header {
    background: rgba(10, 26, 61, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Стили для логотипа */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.site-logo {
    height: 80px; /* высота примерно на две строки текста */
    width: auto;
    border-radius: 5px;
    filter: blur(0px) drop-shadow(0 0 5px rgba(10, 26, 61, 0.7));
    transition: var(--transition);
}

.site-logo:hover {
    filter: blur(0px) drop-shadow(0 0 5px rgba(0, 168, 255, 0.5));
    transform: scale(1.05);
}

.address-line {
    font-weight: 400; /* менее жирный */
    font-size: 13px; /* чуть меньше */
}

/* Анимация для значка маршрута */
@keyframes route-blink {
    0%, 100% { 
        opacity: 1;
        transform: rotate(0deg);
    }
    50% { 
        opacity: 0.6;
        transform: rotate(5deg);
    }
}

.blinking-route {
    animation: route-blink 3s infinite;
    margin-right: 8px;
    color: var(--accent-color);
}


.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-color), #AA6C39);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.phone-link {
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.phone-link:hover {
    color: #AA6C39;
    transform: translateY(-2px);
}

.contact-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Навигация */
.navigation {
    background: rgba(26, 58, 125, 0.9);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 168, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.nav-menu li a:hover {
    background: rgba(0, 168, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu li a.active {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Скрываем мобильное меню на десктопе */
.mobile-menu-content {
    display: none;
}

/* Кнопка меню - скрыта на десктопе по умолчанию */
.mobile-menu-btn {
    display: none;
}

/* Основной контент */
.main-content {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
	margin-top: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 250px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Карточки */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 168, 255, 0.3);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.4);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: auto;
}

.card-link:hover {
    color: #4dabf7;
    gap: 12px;
}

/* Контакты */
.contacts-section {
    margin-bottom: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(0, 168, 255, 0.3);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Форма */
.form-section {
    margin-bottom: 60px;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(0, 168, 255, 0.3);
}

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

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(90deg, var(--accent-color), #4dabf7);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 0 auto;
    min-width: 250px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.4);
}

/* Партнеры */
.partners-section {
    margin-bottom: 60px;
    padding: 30px;
    background: rgba(26, 58, 125, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 168, 255, 0.2);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    background: var(--partner-bg) !important; /* Используем переменную с !important */
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    transition: var(--transition);
    border: 1px solid rgba(0, 168, 255, 0.3);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.partner-logo:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--partner-bg) !important; /* Важно сохранить белый фон */
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 168, 255, 0.3);
}

.partner-logo img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    opacity: 0.9;
    transition: var(--transition);
}

.partner-logo:hover img {
    opacity: 1;
    filter: brightness(1.3) contrast(1.2);
}

.download-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.download-links a:hover {
    color: #4dabf7;
    text-decoration: underline;
    gap: 12px;
}

.download-links a::before {
    content: "📥";
    font-size: 18px;
}

/* Подвал */
.footer {
    background: rgba(10, 26, 61, 0.95);
    padding: 40px 0 20px;
    border-top: 2px solid var(--accent-color);
}

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

.footer-column h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-column p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-column i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Дополнительные стили для тематических страниц */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
}

.content-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.content-image:hover img {
    transform: scale(1.02);
}

.content-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    color: var(--accent-color);
    margin: 25px 0 15px;
}

.content-text h2:first-child {
    margin-top: 0;
}

.content-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.services-list {
    list-style: none;
    margin: 20px 0;
}

.services-list li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-list li i {
    color: var(--accent-color);
}

.contact-cta {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    text-align: center;
    border: 2px solid rgba(0, 168, 255, 0.3);
}

.contact-cta h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 22px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color), #4dabf7);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.4);
}

/* Стили для страницы контактов */
.contacts-details {
    margin-bottom: 60px;
}

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

.contact-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid rgba(0, 168, 255, 0.3);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.3);
}

.contact-card-header {
    background: rgba(0, 168, 255, 0.2);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-card-header i {
    font-size: 24px;
    color: var(--accent-color);
}

.contact-card-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin: 0;
    color: var(--text-color);
}

.contact-card-body {
    padding: 25px;
}

.contact-card-body p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.contact-card-body strong {
    color: var(--text-color);
    font-weight: 600;
}

.contact-card-body a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card-body a:hover {
    color: #4dabf7;
    text-decoration: underline;
}

.address-section {
    margin-bottom: 60px;
}

.address-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.address-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: var(--accent-color);
    margin: 20px 0 10px;
}

.address-text h3:first-child {
    margin-top: 0;
}

.address-text p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.map-placeholder {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-image:hover img {
    transform: scale(1.05);
}

.map-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 26, 61, 0.8);
    padding: 15px;
    text-align: center;
    color: var(--accent-color);
    font-weight: 500;
}

/* Исправление выпадающего списка */
select#service {
    color: #333; /* Темный текст для фона */
    background-color: white;
}

select#service option {
    color: #333; /* Темный текст для опций */
    background-color: white;
}

/* Для выпадающего списка при открытии */
select#service:focus option {
    color: #333;
    background-color: #f5f5f5;
}

/* Контейнер для уведомлений */
/* Контейнер для уведомлений - ИСПРАВЛЕНО */
.notification-container {
    position: fixed;
    top: 150px; /* Смещаем ниже шапки */
    right: 20px;
    z-index: 99999; /* Увеличиваем z-index */
    max-width: 350px;
    pointer-events: none; /* Чтобы не мешало кликам */
}

.notification {
    background: linear-gradient(135deg, #1a3a7d 0%, #0a1a3d 100%); /* Фикс цвета под дизайн */
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 25px rgba(0, 168, 255, 0.4); /* Ярче тень */
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid #00a8ff; /* Фикс цвета под дизайн */
    pointer-events: auto; /* Разрешаем клики внутри */
    position: relative;
    z-index: 999999; /* Максимальный z-index для уведомления */
}

.notification.error {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%); /* Красный градиент */
    border-left: 5px solid #ff5252;
}

.notification .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.3s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification .close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
	    :root {
        --header-height: 200px;
    }

	[id] {
		scroll-margin-top: 300px; /* Для десктопа */
	}

    /* Скрываем десктопное меню на мобильных */
    .nav-menu {
        display: none !important;
    }
    
    /* Показываем кнопку меню на мобильных */
    .mobile-menu-btn {
		position: fixed !important; /* Фиксированная позиция */
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 40px;
        padding: 0;
        margin: 0 0 0 auto;
        border-radius: 10px;
        background: rgba(0, 168, 255, 0.3);
        border: 2px solid var(--accent-color);
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 100;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(0, 168, 255, 0.5);
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 168, 255, 0.3);
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    .mobile-menu-btn i {
        margin: 0;
        font-size: 22px;
        color: var(--accent-color);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
    }
    
    /* Убираем текст "Меню" если он есть */
    /* Поднимаем кнопку меню еще выше */
    .mobile-menu-btn {
        position: fixed !important;
        top: 15px; /* подняли выше */
        right: 15px;
        height: 35px;
        width: 50px;
        border-radius: 8px;
        z-index: 1001; /* выше чем шапка */
    }
    
    /* Добавляем немного отступа для контейнера навигации */
    .navigation .container {
        position: relative;
        min-height: 70px;
    }
    
    /* Стили для мобильного меню */
    .mobile-menu-content {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 26, 61, 0.98);
        backdrop-filter: blur(10px);
        z-index: 9999;
        display: none;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .mobile-menu-content.active {
        display: block;
        animation: fadeIn 0.3s ease-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .mobile-nav-menu {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    
    .mobile-nav-menu li a {
        color: var(--text-color);
        text-decoration: none;
        padding: 18px 20px;
        border-radius: var(--border-radius);
        display: flex;
        align-items: center;
        gap: 15px;
        font-weight: 500;
        transition: var(--transition);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 18px;
    }
    
    .mobile-nav-menu li a:hover {
        background: rgba(0, 168, 255, 0.2);
        transform: translateX(10px);
    }
    
    .mobile-nav-menu li a.active {
        background: var(--accent-color);
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .mobile-nav-menu li a i {
        font-size: 20px;
        width: 30px;
        text-align: center;
    }
    
    /* Кнопка закрытия в мобильном меню */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        color: var(--accent-color);
        font-size: 28px;
        cursor: pointer;
        z-index: 10000;
        background: rgba(0, 0, 0, 0.3);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .mobile-menu-close:hover {
        background: rgba(0, 168, 255, 0.3);
        transform: scale(1.1);
    }
    
    /* Карта на всю ширину на мобильных */
    .animated-bg::after {
        background-size: 100% auto;
        opacity: 0.3;
    }
    
    /* Остальные адаптивные стили */
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .address-info {
        grid-template-columns: 1fr;
    }
    
    .map-image {
        height: 250px;
    }
    
    .page-content {
        grid-template-columns: 1fr;
    }
    
    .content-text h2 {
        font-size: 22px;
    }
    
    .header-content {
        flex-direction: column; /* вернуть column */
        text-align: center;
        gap: 10px;
        position: relative; /* добавить для позиционирования */
        padding-top: 45px; /* место для логотипа и заголовка */
    }

    /* Контейнер для логотипа и заголовка */
    .logo-header-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: absolute;
        top: 10px;
        left: 0;
        right: 0;
    }	
    
    .header-contacts {
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    /* Партнеры на мобильных */
    .partners-section {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partner-logo {
        height: 80px;
        padding: 10px;
    }
    
    .partner-logo img {
        max-height: 50px;
    }
    /* Логотип в шапке на мобильных */
    .logo-container {
        margin-right: 0;
    }
    
    .site-logo {
        height: 40px;
        filter: blur(6px) drop-shadow(0 0 6px rgba(10, 26, 61, 0.7));
    }
    
    .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
	
    /* Контейнер для логотипа и заголовка */
    .logo-header-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: absolute;
        top: 10px;
        left: 0;
        right: 0;
    }	
    
    .site-logo {
        height: 50px;
        filter: blur(0px) drop-shadow(0 0 1px rgba(10, 26, 61, 0.7));
    }
    
    /* Уменьшаем высоту навигации */
    .navigation {
        padding: 5px 0; /* уменьшили с 10px */
        min-height: 10px; /* уменьшили высоту полоски */
    }
    
    .navigation .container {
        min-height: 10px; /* уменьшили с 60px */
    }
    
    /* Кнопка меню делаем меньше */
    .mobile-menu-btn {
        height: 35px; /* было: 40px */
        width: 50px;  /* было: 60px */
        top: 12px;    /* было: 15px */
        border-radius: 8px; /* было: 10px */
    }
    
    /* Делаем шапку компактнее */
    .header {
        padding: 10px 0; /* было: 15px 0 */
    }
    
    /* Контакты и адрес под заголовком */
    .header-contacts-and-address {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 5px;
    }
    
    .header-contacts {
        text-align: center;
        order: 2; /* телефон будет под адресом */
    } 
 
    .logo h1 {
        font-size: 18px;
        margin-bottom: 0;
        line-height: 1.2;
    }
    
    .address-line {
        order: 1; /* адрес будет над телефоном */
        margin-bottom: 5px;
    }
    
    .address-line a {
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .phone-link {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .partner-logo {
        height: 70px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .animated-bg::after {
        background-size: 120% auto;
        opacity: 0.2;
    }
    
    /* Кнопка меню на очень маленьких экранах */
    .header-content {
        padding-top: 40px;
    }
    
    .mobile-menu-btn {
        top: 12px;
        right: 12px;
        height: 30px;
        width: 45px;
    }
   
    .logo-header-row {
        top: 8px;
    }
   
    .mobile-menu-btn i {
        font-size: 18px;
    }
    .site-logo {
        height: 35px;
    }
    
    .logo-container {
        margin-right: 10px;
    }
    
    .address-line {
        font-size: 11px;
    }	
}

/* Адаптивность для планшетов */
@media (max-width: 992px) and (min-width: 769px) {
    .nav-menu {
        gap: 0;
    }
    
    .nav-menu li a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    .site-logo {
        height: 70px;
    }
    
    .logo-container {
        margin-right: 15px;
    }	
}

/* Модальное окно для политики конфиденциальности */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 26, 61, 0.97);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 900px; /* Увеличили ширину */
    height: 90vh; /* Фиксированная высота */
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--accent-color);
    position: relative;
    animation: modalAppear 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: rgba(0, 168, 255, 0.25);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 168, 255, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

.modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px; /* Увеличили размер заголовка */
    color: var(--accent-color);
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: rgba(0, 168, 255, 0.2);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    font-weight: bold;
}

.modal-close:hover {
    background: rgba(0, 168, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
    height: calc(90vh - 80px); /* Высота минус заголовок */
    background: linear-gradient(to bottom, 
        rgba(10, 26, 61, 0.7) 0%,
        rgba(26, 58, 125, 0.5) 100%);
}

/* Стили для iframe */
.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 8px;
}

.modal-body iframe.loaded {
    opacity: 1;
}

/* Индикатор загрузки */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--accent-color);
    background: rgba(10, 26, 61, 0.3);
    border-radius: 8px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 168, 255, 0.2);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner + p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Стили для полосы прокрутки */
.modal-body::-webkit-scrollbar {
    width: 10px; /* Увеличили ширину */
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin: 5px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-color), #4dabf7);
    border-radius: 5px;
    border: 2px solid rgba(10, 26, 61, 0.3);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #4dabf7, var(--accent-color));
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

/* Адаптивность модального окна */
@media (max-width: 992px) {
    .modal-content {
        max-width: 95%;
        height: 85vh;
        max-height: 85vh;
    }
    
    .modal-body {
        height: calc(85vh - 80px);
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
	
	[id] {
		scroll-margin-top: 200px; /* Для смартфона */
	}	
	
    .modal-content {
        max-width: 98%;
        height: 90vh;
        max-height: 90vh;
    }
    
    .modal-body {
        height: calc(90vh - 70px);
        padding: 15px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 240px;
    }	
	
	[id] {
		scroll-margin-top: 380px; /* Для смартфона */
	}	
	
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        height: 95vh;
        max-height: 95vh;
        border-radius: 0;
    }
    
    .modal-body {
        height: calc(95vh - 60px);
        padding: 12px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }
}