* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem 2rem;
    position: relative;
    background-size: cover;
    background-position: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(13, 43, 75, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo span {
    color: #FF6B00;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FF6B00;
}

.language-switcher {
    display: flex;
    margin-left: 2rem;
}

.language-switcher a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.language-switcher a.active {
    background-color: #FF6B00;
}

.language-switcher a:hover {
    background-color: #FF6B00;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Главный экран */
.hero {
    background-color: #0D2B4B;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background-color: #FF6B00;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn:hover {
    background-color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* О компании */
.about {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: #0D2B4B;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FF6B00;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 3rem;
    color: #FF6B00;
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0D2B4B;
}

/* Услуги */
.services {
    background-color: white;
    padding: 5rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.service-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 200px;
    background-color: #0D2B4B;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0D2B4B;
}

/* Стили для портфолио */
.portfolio {
    background-color: #f8f9fa;
    padding: 5rem 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(13, 43, 75, 0.95));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.portfolio-badge {
    background: #FF6B00;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: 2% auto;
    padding: 20px;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: -40px;
    right: -30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #FF6B00;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content {
    animation: zoomIn 0.3s ease;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .photo {
        flex: 0 0 25%; /* 4 фотографии в ряду на планшетах */
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .row {
        height: 33.33% !important; /* Фиксированная высота рядов */
        width: 250%; /* Увеличиваем ширину для плавности */
    }
    
    .row-1 {
        top: 0 !important;
    }
    
    .row-2 {
        top: 33.33% !important;
    }
    
    .row-3 {
        top: 66.66% !important;
    }
    
    .photo {
        flex: 0 0 20% !important; /* 5 фотографий в ряду */
        padding: 3px;
        height: 100%;
    }
    
    .photo img {
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Увеличиваем скорость анимации на мобильных */
    .row-1 {
        animation-duration: 20s !important;
    }
    
    .row-2 {
        animation-duration: 15s !important;
    }
    
    .row-3 {
        animation-duration: 25s !important;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
        padding-top: 60px;
    }
    
    .row {
        width: 300%; /* Еще шире для плавности */
    }
    
    .photo {
        flex: 0 0 20% !important; /* Сохраняем 5 фото в ряду */
        padding: 2px;
    }
    
    .photo img {
        border-radius: 4px;
    }
    
    /* Еще быстрее анимация на маленьких экранах */
    .row-1 {
        animation-duration: 15s !important;
    }
    
    .row-2 {
        animation-duration: 12s !important;
    }
    
    .row-3 {
        animation-duration: 18s !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Особые стили для очень маленьких экранов */
@media (max-width: 360px) {
    .hero {
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .photo {
        flex: 0 0 25% !important; /* 4 фото в ряду на очень маленьких */
    }
}

/* Исправляем z-index для контента */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Гарантируем правильное позиционирование */
.row {
    position: absolute;
    left: 0;
    margin: 0;
    padding: 0;
}

/* Убираем любые отступы у hero */
.hero {
    padding: 0;
    margin: 0;
}

/* Фиксируем высоту рядов */
.row-1, .row-2, .row-3 {
    height: 33.33vh;
}

/* Затемнение с правильным z-index */
.hero-overlay {
    z-index: 5;
}

/* Контакты */
.contact {
    background-color: #0D2B4B;
    color: white;
    padding: 5rem 2rem;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    width: 100%;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #FFD700;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 1rem;
    color: #FF6B00;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Сертификат - PDF версия */
.certificate {
    background-color: #f8f9fa;
    padding: 5rem 2rem;
}

.certificate-container {
    max-width: 1000px;
    margin: 0 auto;
}

.certificate-item {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificate-preview {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.pdf-preview {
    border: 3px dashed #0D2B4B;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pdf-preview:hover {
    border-color: #FF6B00;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pdf-preview i {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.pdf-preview p {
    font-size: 1.2rem;
    color: #0D2B4B;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pdf-size {
    color: #6c757d;
    font-size: 0.9rem;
}

.certificate-info {
    flex: 1;
    min-width: 300px;
}

.certificate-info h3 {
    font-size: 1.8rem;
    color: #0D2B4B;
    margin-bottom: 1rem;
}

.certificate-info p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.certificate-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.certificate-btn {
    background-color: #0D2B4B;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn {
    background-color: #FF6B00;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.certificate-btn:hover {
    background-color: #1e4a7a;
}

.view-btn:hover {
    background-color: #FF8C00;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: #000;
}

.modal-header {
    background-color: #0D2B4B;
    color: white;
    padding: 1rem 2rem;
}

.modal-body {
    padding: 0;
}

.modal-footer {
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .certificate-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .certificate-preview {
        min-width: 250px;
    }
    
    .certificate-info h3 {
        font-size: 1.5rem;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .pdf-preview {
        min-height: 200px;
        padding: 1.5rem;
    }
    
    .pdf-preview i {
        font-size: 3rem;
    }
}

/* Футер */
footer {
    background-color: #0a1e33;
    color: white;
    text-align: center;
    padding: 2rem;
}
/* Герой с анимированным фоном */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Стили для рядов */
.row {
    position: absolute;
    display: flex;
    width: 200%; /* Удвоенная ширина для бесшовной анимации */
    height: 33.33%;
}

.row-1 {
    top: 0;
    animation: moveLeft 30s linear infinite;
}

.row-2 {
    top: 33.33%;
    animation: moveRight 25s linear infinite;
}

.row-3 {
    top: 66.66%;
    animation: moveLeft 35s linear infinite;
}

/* Стили для фотографий */
.photo {
    flex: 0 0 20%; /* 5 фотографий в ряду */
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.photo:hover img {
    transform: scale(1.05);
}

/* Анимации */
@keyframes moveLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Сдвигаем на половину ширины */
    }
}

@keyframes moveRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Затемнение фона */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(13, 43, 75, 0.85) 0%, 
        rgba(13, 43, 75, 0.7) 50%,
        rgba(13, 43, 75, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* Анимации для текста */
.hero-content h1 {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 1.1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .row {
        height: 25%;
    }
    
    .row-1 {
        top: 0;
    }
    
    .row-2 {
        top: 25%;
    }
    
    .row-3 {
        top: 50%;
    }
    
    .photo {
        flex: 0 0 33.33%; /* 3 фотографии в ряду на мобильных */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .photo {
        flex: 0 0 50%; /* 2 фотографии в ряду на маленьких экранах */
    }
    
    .row-1 {
        animation-duration: 20s;
    }
    
    .row-2 {
        animation-duration: 15s;
    }
    
    .row-3 {
        animation-duration: 25s;
    }
}

/* Эффект параллакса для глубины */
.row-1 {
    filter: brightness(0.7);
}

.row-2 {
    filter: brightness(0.8);
}

.row-3 {
    filter: brightness(0.9);
}

/* Пауза анимации при наведении */
.hero-background:hover .row {
    animation-play-state: paused;
}
/* Стили для двух PDF файлов */
.certificate-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.certificate-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-preview {
    cursor: pointer;
    padding: 1.5rem;
    border: 2px dashed #0D2B4B;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.certificate-preview:hover {
    border-color: #FF6B00;
    background: rgba(255, 107, 0, 0.05);
}

.certificate-preview i {
    font-size: 3rem;
    color: #0D2B4B;
    margin-bottom: 1rem;
    display: block;
}

.certificate-preview.fa-file-certificate {
    color: #e74c3c;
}

.certificate-preview.fa-file-contract {
    color: #27ae60;
}

.certificate-preview p {
    font-weight: 600;
    color: #0D2B4B;
    margin-bottom: 0.5rem;
}

.certificate-info h3 {
    color: #0D2B4B;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.certificate-info p {
    color: #666;
    font-size: 0.9rem;
}

.certificate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Табы в модальном окне */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #0D2B4B;
    background: white;
    color: #0D2B4B;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: #0D2B4B;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .certificate-container {
        grid-template-columns: 1fr;
    }
    
    .certificate-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .certificate-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .modal-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}
/* Стили для переключателя PDF */
.pdf-switcher {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.pdf-switcher-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #0D2B4B;
    background: white;
    color: #0D2B4B;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pdf-switcher-btn.active,
.pdf-switcher-btn:hover {
    background: #0D2B4B;
    color: white;
}

/* Адаптивность для переключателя */
@media (max-width: 768px) {
    .pdf-switcher {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pdf-switcher-btn {
        width: 100%;
        text-align: center;
    }
}