/* Основные стили для всех страниц */
:root {
    --primary-color: #1F61EB; /* Электронный импульс */
    --secondary-color: #FFAD43; /* Новый теплый оранжевый */
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #fff;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-bg-color: #dbd7d2;
    --bg-logo-opacity: 0.15;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #dbd7d2;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

/* Фоновый логотип */
.bg-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: var(--bg-logo-opacity);
    z-index: -1;
    pointer-events: none;
    width: 90vw;
    height: 90vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

body:hover .bg-logo {
    opacity: calc(var(--bg-logo-opacity) * 1.5);
}

/* Header */
.header {
    background: var(--header-bg-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    position: relative;
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.header-top {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Единый стиль для всех элементов контактной строки */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Общий стиль для контактов, мессенджеров и выбора языка */
.header-contacts .contact-info,
.header-contacts .messenger-link,
.lang-toggle,
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
}

/* Оранжевый цвет для всех иконок */
.header-contacts i,
.messenger-icon,
.lang-toggle i,
.theme-toggle i {
    color: var(--secondary-color) !important;
    font-size: 16px;
    transition: var(--transition);
}

/* Эффект при наведении на элементы */
.header-contacts .contact-info:hover,
.messenger-link:hover,
.lang-toggle:hover,
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Цвет текста при наведении - остается белым у всех элементов */
.header-contacts .contact-info:hover,
.messenger-link:hover,
.lang-toggle:hover,
.theme-toggle:hover,
.header-contacts .contact-info:hover span,
.messenger-link:hover span,
.lang-toggle:hover span,
.theme-toggle:hover span {
    color: var(--light-text) !important;
}

/* Эффект наклона иконок при наведении */
.header-contacts .contact-info:hover i,
.messenger-link:hover .messenger-icon,
.lang-toggle:hover i,
.theme-toggle:hover i {
    transform: rotate(15deg);
}

/* Телефонная ссылка */
.phone-link {
    color: inherit !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Ссылки мессенджеров */
.messenger-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.messenger-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.messenger-link span {
    transition: var(--transition);
}

/* Убрал специфичное правило для MAX */
.header-lang {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 140px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1100;
    animation: fadeIn 0.3s ease;
}

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

.lang-dropdown.show {
    display: block;
}

.lang-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.lang-option:hover {
    background: var(--primary-color);
    color: white;
}

.lang-option.active {
    background: var(--secondary-color);
    color: white;
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.header-main {
    padding: 20px 0;
    display: flex;
    align-items: center;
    background: var(--header-bg-color);
    position: relative;
    min-height: 80px;
}

/* Логотип в шапке */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
}

.logo img {
    height: 120px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

/* Неоновая подсветка логотипа в тёмной теме */
html[data-theme="dark"] .logo:hover img {
    filter:
        drop-shadow(0 0 6px rgba(0, 170, 255, 0.95))
        drop-shadow(0 0 16px rgba(0, 170, 255, 0.65))
        drop-shadow(0 0 28px rgba(0, 90, 255, 0.35));
}

/* Навигация */
.nav-main {
    display: flex;
    list-style: none;
    margin-left: 50px;
}

.nav-main li {
    margin-left: 30px;
    position: relative;
}

.nav-main a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

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

.nav-main a:hover::after,
.nav-main .active a::after {
    width: 100%;
}

.nav-main a:hover,
.nav-main .active a {
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1002;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background-color: rgba(31, 97, 235, 0.1);
}

.nav-toggle.active {
    color: var(--secondary-color);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 97, 235, 0.4);
    border-color: var(--light-text);
}

.btn-back {
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-back:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

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

/* Banners Container */
.banners-container {
    position: relative;
    margin: 30px 3cm 0 3cm;
    height: 600px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

/* Banner */
.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    transform: translateX(100%);
    z-index: 1;
}

.banner.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.banner.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.banner.next {
    transform: translateX(100%);
    z-index: 1;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    background-attachment: fixed;
}

.banner-content {
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Banner Navigation */
.banner-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-dot.active {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 173, 67, 0.7);
}

.banner-dot.active.hovered {
    background-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(31, 97, 235, 0.6);
}

.banner-dot:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

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

.service-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(31, 97, 235, 0.2);
    border-color: var(--secondary-color);
}

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

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 15px;
}

/* Stats Section */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    margin: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    transition: all 0.5s ease;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 27px 0 10px;
    color: var(--light-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
    margin-bottom: 17px;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--light-text);
    position: relative;
    padding-bottom: 7px;
    font-weight: 600;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Стили для модального окна "В разработке" */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

.development-modal {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
    position: relative;
}

.development-modal h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.development-modal p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Стили для модального окна выбора объекта фото */
.photo-modal {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
    position: relative;
}

.photo-modal h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.photo-objects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.photo-object-card {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.photo-object-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(31, 97, 235, 0.15);
    border-color: var(--primary-color);
}

.photo-object-card.selected {
    border-color: var(--secondary-color);
    background: rgba(255, 173, 67, 0.05);
}

.photo-object-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
}

.photo-object-card:hover::before,
.photo-object-card.selected::before {
    background: var(--secondary-color);
    width: 8px;
}

.photo-object-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.photo-object-card:hover .photo-object-icon,
.photo-object-card.selected .photo-object-icon {
    background: var(--primary-color);
    border-color: var(--secondary-color);
    transform: rotate(10deg) scale(1.1);
}

.photo-object-icon img {
    width: 30px;
    height: auto;
    transition: var(--transition);
}

.photo-object-card:hover .photo-object-icon img,
.photo-object-card.selected .photo-object-icon img {
    filter: brightness(0) invert(1);
}

.photo-object-icon i {
    font-size: 25px;
    color: var(--primary-color);
    transition: var(--transition);
}

.photo-object-card:hover .photo-object-icon i,
.photo-object-card.selected .photo-object-icon i {
    color: white;
}

.photo-object-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-object-desc {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.8;
}

.photo-modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.photo-modal-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
}

/* Стили для галереи фото */
.photo-gallery-modal {
    background: rgba(0, 0, 0, 0.95);
    padding: 0;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.gallery-title {
    color: var(--light-text);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-counter {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 20px;
}

.gallery-close {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px 100px;
    position: relative;
}

.gallery-image-container {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.gallery-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 3;
}

.gallery-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.gallery-back-btn {
    background: #6c757d !important;
    border-color: #6c757d !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
}

.gallery-back-btn:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

.gallery-instruction {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--primary-color);
    background: rgba(31, 97, 235, 0.1);
}

/* Бургер-меню для мобильных */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-main {
        margin-left: 30px;
    }
    
    .nav-main li {
        margin-left: 20px;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-objects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }
    
    .messenger-links {
        justify-content: center;
        width: 100%;
    }
    
    .header-lang {
        width: 100%;
        justify-content: center;
    }
    
    .lang-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        /* Mobile: open upwards so it doesn't overlap the logo and doesn't cause layout/scroll jumps */
        top: calc(100% + 8px);
        bottom: auto;
        }

    .header-theme {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .theme-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        /* Mobile: open upwards so it doesn't overlap the logo and doesn't cause layout/scroll jumps */
        top: calc(100% + 8px);
        bottom: auto;
        }
    
    .header-main {
        padding: 15px 0;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo img {
        height: 80px;
        margin-bottom: 0;
    }
    
    /* Активация бургер-меню */
    .nav-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
    }
    
    .nav-main {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        right: 15px;
        left: auto;
        width: min(320px, calc(100vw - 30px));
        background: #ffffff;
        padding: 8px;
        margin: 0;
        box-shadow: var(--shadow);
        z-index: 1005;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        overflow: hidden;
    }
    
    .nav-main.active {
        display: flex;
    }
    
    .nav-main li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-main a {
        display: block;
        padding: 12px 14px;
        font-size: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        color: var(--dark-text);
        border-radius: 10px;
    }
    
    .nav-main a:hover {
        background: rgba(31, 97, 235, 0.12);
        color: var(--dark-text);
    }
    
    .nav-main a::after {
        display: none;
    }

    .nav-main li:last-child a {
        border-bottom: none;
    }
    
    .nav-main .active a {
        background: rgba(31, 97, 235, 0.22);
        color: var(--dark-text);
    }
    
    .bg-logo {
        width: 95vw;
        height: 95vh;
        opacity: 0.1;
    }
    
    .footer {
        padding: 20px 0 7px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }
    
    .banners-container {
        height: 500px;
        margin: 20px 1cm;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        padding: 60px 0;
        margin: 60px 0;
    }
    
    .development-modal {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .photo-modal {
        padding: 40px 20px;
    }
    
    .photo-objects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-object-card {
        padding: 20px 15px;
    }
    
    .photo-modal-buttons {
        flex-direction: column;
    }
    
    .photo-modal-buttons .btn {
        width: 100%;
    }
    
    /* Адаптив для галереи */
    .photo-gallery-modal {
        padding: 0;
    }
    
    .gallery-header {
        padding: 10px 15px;
    }
    
    .gallery-title {
        font-size: 1.1rem;
        max-width: 60%;
    }
    
    .gallery-counter {
        font-size: 0.9rem;
        margin: 0 10px;
    }
    
    .gallery-close {
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-content {
        padding: 60px 10px 80px;
    }
    
    .gallery-image {
        max-height: 70vh;
    }
    
    .gallery-footer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .nav-toggle {
        right: 15px;
        font-size: 24px;
    }
    
    .footer-title {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 11px;
    }
    
    .bg-logo {
        width: 98vw;
        height: 98vh;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .banners-container {
        height: 400px;
    }
    
    .banner h1 {
        font-size: 1.7rem;
    }
    
    .banner p {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .messenger-link {
        font-size: 13px;
    }
    
    .messenger-link .messenger-icon {
        font-size: 14px;
    }
    
    .photo-modal h3 {
        font-size: 1.5rem;
    }
    
    .photo-object-title {
        font-size: 1rem;
        min-height: 35px;
    }
    
    .photo-object-desc {
        font-size: 0.8rem;
    }
    
    /* Адаптив для галереи */
    .gallery-title {
        font-size: 1rem;
        max-width: 50%;
    }
    
    .gallery-counter {
        font-size: 0.8rem;
    }
    
    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .gallery-back-btn {
        padding: 6px 15px !important;
        font-size: 13px !important;
    }
}

/* Theme switcher (styled like language switcher) */
.header-theme {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
}

.theme-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 140px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1100;
    animation: fadeIn 0.3s ease;
}

.theme-dropdown.show { display: block; }

.theme-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.theme-option:hover {
    background: var(--primary-color);
    color: white;
}

.theme-option.active {
    background: var(--secondary-color);
    color: white;
}

/* MAX icon (SVG) in header */
.messenger-icon-img{
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* Dark theme (soft, readable) */
html[data-theme="dark"]{
    --light-bg: #0B1220;
    --dark-text: #E6EAF2;
    --header-bg-color: rgba(17,27,46,0.85);
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html[data-theme="dark"] body{
    background: radial-gradient(1200px 700px at 10% 10%, rgba(94,162,255,.14), transparent 55%),
                radial-gradient(1000px 600px at 90% 20%, rgba(255,173,67,.10), transparent 60%),
                #0B1220;
    color: #E6EAF2;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .text-muted{
    color: rgba(168,178,198,.95);
}

html[data-theme="dark"] .lang-dropdown,
html[data-theme="dark"] .theme-dropdown{
    background: #111B2E;
    border: 1px solid #243556;
}

html[data-theme="dark"] .nav-main{
    background: #111B2E;
    border: 1px solid #243556;
}

html[data-theme="dark"] .nav-main a{
    color: #E6EAF2;
    border-bottom-color: rgba(230,234,242,0.10);
}

html[data-theme="dark"] .nav-main a:hover,
html[data-theme="dark"] .nav-main .active a{
    background: rgba(94,162,255,.20);
    color: #E6EAF2;
}

html[data-theme="dark"] .lang-option,
html[data-theme="dark"] .theme-option{
    color: #E6EAF2;
}

html[data-theme="dark"] .lang-option:hover,
html[data-theme="dark"] .theme-option:hover{
    background: rgba(94,162,255,.20);
    color: #E6EAF2;
}

html[data-theme="dark"] .lang-option.active,
html[data-theme="dark"] .theme-option.active{
    background: rgba(94,162,255,.35);
    color: #E6EAF2;
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .process-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .history-item,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .development-modal,
html[data-theme="dark"] .photo-modal,
html[data-theme="dark"] .modal-content{
    background: #111B2E !important;
    border: 1px solid #243556;
    box-shadow: var(--shadow);
}

html[data-theme="dark"] header,
html[data-theme="dark"] .header-main,
html[data-theme="dark"] .header-top{
    background: rgba(17,27,46,0.85);
}

html[data-theme="dark"] footer{
    background: #0B1220;
}

html[data-theme="dark"] .nav-main a{
    color: #E6EAF2;
}

html[data-theme="dark"] .nav-main a:hover{
    color: var(--primary-color);
}



/* Контактные карточки-ссылки */
.contact-card-link{
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-card-link:hover{
  text-decoration: none;
}


/* Desktop: keep top navigation inline (no dropdown frame) */
@media (min-width: 769px){
  .nav-main{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .nav-main a{
    border-bottom: none !important;
    border-radius: 0 !important;
  }
  html[data-theme="dark"] .nav-main{
    background: transparent !important;
    border: none !important;
  }
  html[data-theme="dark"] .nav-main a{
    border-bottom: none !important;
  }
}



/* WOW background: studio light rig + vignette + film grain (global) */
body{ position: relative; }

/* Light rig + depth */
body::before{
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        /* Key light (brand blue) */
        radial-gradient(950px 700px at 78% 26%, rgba(31, 97, 235, 0.16), rgba(31, 97, 235, 0.00) 62%),
        /* Rim light (warm accent) */
        radial-gradient(900px 650px at 18% 18%, rgba(246, 150, 33, 0.10), rgba(246, 150, 33, 0.00) 58%),
        /* Soft sweep */
        linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.00) 45%, rgba(0,0,0,0.08) 100%),
        /* Vignette */
        radial-gradient(1400px 1050px at 50% 50%, rgba(0,0,0,0.16), rgba(0,0,0,0.00) 62%),
        radial-gradient(1200px 900px at 50% 120%, rgba(0,0,0,0.14), rgba(0,0,0,0.00) 58%),
        radial-gradient(1200px 900px at 50% -20%, rgba(0,0,0,0.14), rgba(0,0,0,0.00) 58%);
}

/* Film grain (very subtle) */
body::after{
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIj4KPGZpbHRlciBpZD0ibiI+CiAgPGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9Ii44IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+CiAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IgogICAgMSAwIDAgMCAwCiAgICAwIDEgMCAwIDAKICAgIDAgMCAxIDAgMAogICAgMCAwIDAgLjEyIDAiLz4KPC9maWx0ZXI+CjxyZWN0IHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiBmaWx0ZXI9InVybCgjbikiLz4KPC9zdmc+");
    background-repeat: repeat;
    opacity: 0.22;
    transform: translateZ(0);
}

/* Dark theme tuning */
html[data-theme="dark"] body::before{
    background:
        radial-gradient(1000px 760px at 78% 26%, rgba(94, 162, 255, 0.22), rgba(94, 162, 255, 0.00) 64%),
        radial-gradient(980px 720px at 18% 18%, rgba(246, 150, 33, 0.14), rgba(246, 150, 33, 0.00) 60%),
        linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.00) 45%, rgba(0,0,0,0.35) 100%),
        radial-gradient(1500px 1100px at 50% 50%, rgba(0,0,0,0.55), rgba(0,0,0,0.00) 62%),
        radial-gradient(1200px 900px at 50% 120%, rgba(0,0,0,0.58), rgba(0,0,0,0.00) 58%),
        radial-gradient(1200px 900px at 50% -20%, rgba(0,0,0,0.58), rgba(0,0,0,0.00) 58%);
}

html[data-theme="dark"] body::after{ opacity: 0.18; }

/* Keep content above the overlay */
header, main, footer, .modal, .photo-modal, .development-modal{ position: relative; z-index: 1; }

/* WOW glass panels (subtle, premium) */
.service-card,
.process-card,
.about-intro,
.mission-card,
.value-card,
.history-item,
.contact-card,
.photo-object-card,
.photo-object-card2,
.modal-content{
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(15, 30, 55, 0.10);
    box-shadow: 0 18px 55px rgba(15, 30, 55, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .process-card,
html[data-theme="dark"] .about-intro,
html[data-theme="dark"] .mission-card,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .history-item,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .photo-object-card,
html[data-theme="dark"] .photo-object-card2,
html[data-theme="dark"] .modal-content{
    background: rgba(17,27,46,0.78) !important;
    border: 1px solid rgba(36,53,86,0.85) !important;
    box-shadow: 0 20px 65px rgba(0,0,0,0.40);
}





/* Do not draw through the logo area: soft cut-out (feathered) */
    -webkit-mask-image:
        radial-gradient(420px 320px at 78% 32%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 52%, rgba(0,0,0,1) 72%),
        radial-gradient(260px 200px at 50% 90px, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,1) 68%),
        linear-gradient(#000, #000);
    -webkit-mask-composite: source-over;
    mask-image:
        radial-gradient(420px 320px at 78% 32%, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 52%, rgba(0,0,0,1) 72%),
        radial-gradient(260px 200px at 50% 90px, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,1) 68%),
        linear-gradient(#000, #000);

    filter: saturate(1.35) blur(0.25px);
    will-change: transform, filter, background-position;
}

/* Layer A: slightly sharper, faster */
/* Layer B: softer, slower, different scale + offset */
25%  { transform: translate3d(0, -10px, 0) rotate(0.3deg) scale(1.01); background-position: 52% 40%; }
    50%  { transform: translate3d(0,  8px, 0) rotate(0.9deg) scale(1.02); background-position: 50% 44%; }
    75%  { transform: translate3d(0, -7px, 0) rotate(0.2deg) scale(1.01); background-position: 47% 43%; }
    100% { transform: translate3d(0, 0, 0) rotate(-0.5deg) scale(1.00); background-position: 48% 38%; }
}

25%  { transform: translate3d(0,  9px, 0) rotate(-0.2deg) scale(1.02); background-position: 54% 52%; }
    50%  { transform: translate3d(0, -8px, 0) rotate(-0.8deg) scale(1.03); background-position: 58% 50%; }
    75%  { transform: translate3d(0,  6px, 0) rotate(-0.1deg) scale(1.02); background-position: 60% 54%; }
    100% { transform: translate3d(0, 0, 0) rotate(0.6deg) scale(1.01); background-position: 56% 56%; }
}

50%  { filter: saturate(1.65) hue-rotate(34deg) blur(0.35px); }
    100% { filter: saturate(1.25) hue-rotate(0deg)  blur(0.25px); }
}

50%  { filter: saturate(1.55) hue-rotate(-24deg) blur(0.45px); }
    100% { filter: saturate(1.15) hue-rotate(10deg) blur(0.35px); }
}

html[data-theme="dark"]::before{ opacity: 0.78; }
html[data-theme="dark"]::after{ opacity: 0.62; }


/* Neon engineering threads (strict curved lines, full width, async motion) */
html::before,
html::after{
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAwIiBoZWlnaHQ9IjkwMCIgdmlld0JveD0iMCAwIDE2MDAgOTAwIj4KICA8ZGVmcz4KICAgIDxsaW5lYXJHcmFkaWVudCBpZD0ibmVvbkEiIHgxPSIwIiB5MT0iMCIgeDI9IjEiIHkyPSIwIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMDBkNGZmIiBzdG9wLW9wYWNpdHk9IjAuMCIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjAuMTgiIHN0b3AtY29sb3I9IiMwMGQ0ZmYiIHN0b3Atb3BhY2l0eT0iMC44NSIvPgogICAgICA8c3RvcCBvZmZzZXQ9IjAuNTIiIHN0b3AtY29sb3I9IiM4YTVjZmYiIHN0b3At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CiAgPC9nPgo8L3N2Zz4K");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;

    mix-blend-mode: screen;
    will-change: transform, filter, opacity, background-position;
}

/* Layer 1 (top emphasis) */
html::before{
    opacity: 0.62;
    filter: saturate(1.35) hue-rotate(0deg) blur(0.15px);
    animation:
        neonLinesWaveA 9.5s ease-in-out infinite,
        neonLinesHueA 12.0s linear infinite;
}

/* Layer 2 (bottom emphasis) */
html::after{
    opacity: 0.46;
    filter: saturate(1.25) hue-rotate(18deg) blur(0.25px);
    animation:
        neonLinesWaveB 13.2s ease-in-out infinite -3.4s,
        neonLinesHueB 17.0s linear infinite -6.6s;
}

@keyframes neonLinesWaveA{
    0%   { transform: translate3d(0, 0, 0) rotate(-0.35deg) scale(1.00); background-position: 48% 49%; }
    25%  { transform: translate3d(0, -10px, 0) rotate(0.15deg) scale(1.01); background-position: 52% 48%; }
    50%  { transform: translate3d(0,  8px, 0) rotate(0.55deg) scale(1.02); background-position: 50% 52%; }
    75%  { transform: translate3d(0, -7px, 0) rotate(0.10deg) scale(1.01); background-position: 47% 53%; }
    100% { transform: translate3d(0, 0, 0) rotate(-0.35deg) scale(1.00); background-position: 48% 49%; }
}

@keyframes neonLinesWaveB{
    0%   { transform: translate3d(0, 0, 0) rotate(0.45deg) scale(1.01); background-position: 52% 52%; }
    25%  { transform: translate3d(0,  9px, 0) rotate(-0.10deg) scale(1.02); background-position: 54% 50%; }
    50%  { transform: translate3d(0, -8px, 0) rotate(-0.55deg) scale(1.03); background-position: 50% 48%; }
    75%  { transform: translate3d(0,  6px, 0) rotate(-0.05deg) scale(1.02); background-position: 49% 51%; }
    100% { transform: translate3d(0, 0, 0) rotate(0.45deg) scale(1.01); background-position: 52% 52%; }
}

@keyframes neonLinesHueA{
    0%   { filter: saturate(1.25) hue-rotate(0deg) blur(0.15px); }
    50%  { filter: saturate(1.65) hue-rotate(28deg) blur(0.25px); }
    100% { filter: saturate(1.25) hue-rotate(0deg) blur(0.15px); }
}

@keyframes neonLinesHueB{
    0%   { filter: saturate(1.15) hue-rotate(12deg) blur(0.25px); }
    50%  { filter: saturate(1.55) hue-rotate(-22deg) blur(0.35px); }
    100% { filter: saturate(1.15) hue-rotate(12deg) blur(0.25px); }
}

html[data-theme="dark"]::before{ opacity: 0.78; }
html[data-theme="dark"]::after{ opacity: 0.62; }

