/* Основные переменные */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #1e40af;
    --accent-color: #60a5fa;
    --text-color: #ffffff;
    --light-text: #e0e7ff;
    --background: #1e3a8a;
    --light-bg: #1e40af;
    --border-color: #3b82f6;
    --shadow: 0 4px 20px rgba(30, 58, 138, 0.4);
    --shadow-hover: 0 8px 30px rgba(30, 58, 138, 0.6);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    min-height: 100vh;
}

/* Контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1e3a8a;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}



.nav-logo h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #60a5fa;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding-top: 70px;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    padding-right: 2rem;
    padding-left: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-phones {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.hero-phones span {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-graphic {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-graphic img {
    width: 100%;
    height: 100%;
    padding: 20px;
    object-fit: contain;
    border-radius: 50%;
}

/* Кнопки */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4A90E2;
}

/* Секции */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Услуги */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card li:before {
    content: "✓";
    color: #4A90E2;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Галерея работ */
.works-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
}

.works-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.work-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-hover);
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-video-thumbnail {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.works-load-more {
    text-align: center;
}



/* О нас */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.advantage-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-graphic {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color), #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

/* Контакты */
.contact {
    background: transparent;
}



.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

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

.contact-form input::placeholder,
.contact-form select::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Стили для опций в выпадающем списке */
.contact-form select {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Предотвращение белого фона в разных браузерах */
.contact-form select::-ms-expand {
    display: none;
}

.contact-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form select option {
    background: #1e3a8a;
    color: white;
    padding: 8px;
    font-size: 1rem;
}

.contact-form select option:hover {
    background: #1e40af;
    color: white;
}

.contact-form select option:checked {
    background: #3b82f6;
    color: white;
}

/* Дополнительные стили для лучшей видимости в разных браузерах */
.contact-form select:focus option:checked {
    background: linear-gradient(0deg, #3b82f6 0%, #1e40af 100%);
    color: white;
}

/* Стили для выбранной опции в разных браузерах */
.contact-form select option[selected] {
    background: #3b82f6;
    color: white;
}

.contact-form select option:selected {
    background: #3b82f6 !important;
    color: white !important;
}

/* Принудительно убираем белый фон для всех состояний опций */
.contact-form select option {
    background: #1e3a8a !important;
    color: white !important;
}

.contact-form select option:hover {
    background: #1e40af !important;
    color: white !important;
}

.contact-form select option:checked {
    background: #3b82f6 !important;
    color: white !important;
}

/* Стили для предотвращения белого фона при открытии списка */
.contact-form select:focus {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-form select:active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Стили для активной опции при навигации */
.contact-form select option:focus {
    background: #1e40af;
    color: white;
}

.contact-form select option:active {
    background: #1e40af;
    color: white;
}

.contact-form select option:first-child {
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
    background: #1e3a8a !important;
}

.contact-form select option:first-child:hover {
    background: #1e3a8a !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Футер */
.footer {
    background: #1e3a8a;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

.footer-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    position: relative;
    box-shadow: none;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close {
    color: white;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 30px;
    top: 30px;
    cursor: pointer;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    color: white;
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-media {
    margin: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-media img,
.modal-media iframe {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.modal-info {
    display: none;
}

.modal-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.info {
    background: #17a2b8;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 500px;
        padding-right: 1rem;
        padding-left: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .hero-graphic {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 450px;
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-graphic {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons {
        gap: 0.6rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-graphic {
        width: 200px;
        height: 200px;
    }

    .hero-phones span {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30, 58, 138, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu.active {
        display: flex;
    }
    

    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        padding-left: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-graphic {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .works-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .works-gallery {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-graphic {
        width: 180px;
        height: 180px;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .service-card,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    /* Стили для select на мобильных устройствах */
    .contact-form select {
        font-size: 16px; /* Предотвращает зум на iOS */
        padding: 12px 8px;
    }
    
    .contact-form select option {
        font-size: 16px;
        padding: 12px 8px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 100px 15px 60px 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding-left: 0.5rem;
    }
}

/* Индикатор загрузки */
.loading {
    text-align: center;
    padding: 40px;
    color: white;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Навигационные стрелки в модальном окне */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    color: white;
    font-size: 1.5rem;
}

.modal-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-arrow-prev {
    left: 20px;
}

.modal-arrow-next {
    right: 20px;
}

/* Адаптивность для стрелок */
@media (max-width: 768px) {
    .modal-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-arrow-prev {
        left: 10px;
    }
    
    .modal-arrow-next {
        right: 10px;
    }
} 