/* styles.css */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
    position: relative;
}

header .logo {
    position: absolute;
    left: 20px;
    top: 20px;
    text-align: center; /* Центровка логотипа и текста по горизонтали */
}

header .logo img {
    height: 40px;
    display: block; /* Чтобы изображение занимало всю строку */
    margin: 0 auto; /* Центровка логотипа */
}

header .logo-text {
    font-size: 12px; /* Размер текста */
    font-weight: bold;
    color: #084f7b;
    margin-top: 5px; /* Отступ сверху между логотипом и текстом */
    white-space: nowrap; /* Предотвращает перенос текста на несколько строк */
}

@media (max-width: 768px) {
    header .logo img {
        height: 20px; /* Уменьшенный размер логотипа для мобильных */
    }

    header .logo-text {
        font-size: 6px; /* Уменьшенный размер текста для мобильных */
    }

    header .logo {
        left: 10px; /* Смещение логотипа на мобильных для адаптации */
        top: 10px;
    }
}


nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #084f7b;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e02053;
}

#language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    overflow: hidden; /* Скрывает выходящие элементы */
}

#language-switcher button {
    background: none;
    border: none;
    padding: 10px; /* Добавляем padding, чтобы кнопки были видны и кликабельны */
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#language-switcher button:hover {
    transform: scale(1.1); /* Увеличение при наведении */
}

#language-switcher img {
    width: 35px; /* Размер флага */
    height: 35px;
    border-radius: 50%;
    transition: box-shadow 0.3s ease;
}

#language-switcher img:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#about {
    margin-top: 20px;
    padding: 60px 20px;
    background-color: #f4f4f4; /* Light background color for better text readability */
}

/* Стиль контейнера слайдера и текста */
.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Responsive for smaller screens */
    gap: 20px; /* Adds spacing between elements */
    padding: 20px; /* Ensures content has padding on larger screens */
}

.about-text, .about-image {
    flex: 1;
    max-width: 50%; /* Restrict blocks to 50% width */
}

.about-text h1 {
    text-align: left;
    color: #084f7b;
    font-size: 28px; /* Slightly larger font for headings */
    margin-bottom: 20px; /* Adds space below heading */
}


.about-text p {
    text-align: left;
    font-size: 16px;
    line-height: 1.6; /* Better readability */
    color: #333;
}

#h2, #h3 {
    margin-bottom: 40px;
    text-align: left;
    color: #084f7b;         /* Change text color */
    font-size: 20px;     /* Change font size */
    font-weight: bold;   /* Make it bold */
    text-transform: uppercase; /* Uppercase text */
    margin-bottom: 10px; /* Add some spacing */
}


#companyName {
    font-size: 50px; /* Sets the font size */
    text-transform: uppercase; /* Converts text to uppercase */
}



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

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow to the image */
}

/* Swiper container adjustments */
.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text, .about-image {
        max-width: 100%;
    }

    .about-text h1 {
        font-size: 24px; /* Slightly smaller heading size on mobile */
    }

    .about-text p {
        font-size: 14px;
    }

    .about-image img, .swiper-slide img {
        height: 200px; /* Smaller height for images on mobile */
    }

    .about-content {
        padding: 10px; /* Adds padding for mobile */
    }
}



section {
    padding: 60px 20px;
    text-align: center;
}

h1, h2, h3 {
    margin: 0 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

#services {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px; /* Card width */
    margin: 20px auto; /* Center the cards */
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service h3 {
    font-size: 1.5rem;
    color: #084f7b;
}

.service p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.service:hover img {
    transform: scale(1.05);
}

/* Responsive grid layout */
#services .service-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/*transports */

section {
    padding: 60px 20px;
    text-align: center;
}

h1, h2, h3 {
    margin: 0 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

#transportes {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.transport {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px; /* Card width */
    margin: 20px auto; /* Center the cards */
}

.transport:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.transport img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.transport h3 {
    font-size: 1.5rem;
    color: #084f7b;
}

.transport p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.transport:hover img {
    transform: scale(1.05);
}

/* Responsive grid layout */
#transportes .transport-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #transportes {
        padding: 40px 10px;
    }

    .transport {
        max-width: 90%; /* Full width on smaller screens */
    }
}


section {
    padding: 60px 20px;
    text-align: center;
}

h1, h2, h3 {
    margin: 0 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

#Logistics {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.logistic {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px; /* Card width */
    margin: 20px auto; /* Center the cards */
}

.logistic:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.logistic img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.logistic h3 {
    font-size: 1.5rem;
    color: #084f7b;
}

.logistic p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.logistic:hover img {
    transform: scale(1.05);
}

/* Responsive grid layout */
#Logistics .logistics-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #Logistics {
        padding: 40px 10px;
    }

    .logistic {
        max-width: 90%; /* Full width on smaller screens */
    }
}















#projects {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

h2 {
    text-align: center;
    color: #084f7b;
    margin-bottom: 40px;
}

/* Grid layout for project items */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    text-align: center;
}

/* Ensure images are the same size */
.project-item img {
    width: 100%;
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensure images cover the area without distortion */
    border-bottom: 4px solid #084f7b;
    transition: transform 0.3s ease;
}

.project-item p {
    padding: 20px;
    color: #555;
    font-size: 1rem;
}

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

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}



@media (max-width: 768px) {
    #transportes {
        padding: 40px 10px;
    }

    .transport {
        max-width: 90%; /* Full width on smaller screens */
    }
}

@media (max-width: 768px) {
    #services {
        padding: 40px 10px;
    }

    .service {
        max-width: 90%; /* Full width on smaller screens */
    }
}

#contact {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.contact-content {
    display: flex;
    flex-wrap: wrap; /* Ensure responsiveness */
    gap: 20px; /* Space between form and text */
    justify-content: space-between;
}

.contact-form, .contact-text {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 60%; /* Adjust to fit two items side by side */
}

.contact-form h2, .contact-text h2 {
    color: #084f7b;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background-color: #084f7b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #e02053;
}

.contact-text p {
    color: #555;
}

@media (max-width: 1024px) {
    .contact-form, .contact-text {
        max-width: 100%;
        flex: 0 0 48%; /* Ensure both blocks are side by side */
    }
}

/* Media query for screens 768px and below (small tablets and large phones) */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column; /* Stack form and text vertically */
    }

    .contact-form, .contact-text {
        max-width: 100%;
        margin-bottom: 20px; /* Add space between stacked sections */
    }
}

/* Media query for screens 480px and below (phones) */
@media (max-width: 480px) {
    .contact-form input, .contact-form textarea {
        padding: 8px;
    }

    .contact-form button {
        width: 100%;
        padding: 12px;
    }
}


button {
    width: 100%;
    padding: 15px;
    background-color: #084f7b;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e02053;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
}

#partners {
    background-color: #ffffff; /* Light background for the partners section */
    padding: 40px 20px; /* Padding around the section */
}

#partners h2 {
    color: #084f7b; /* Matching the color of other headings */
    text-align: center;
    margin-bottom: 20px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between partner logos */
    justify-content: center; /* Center the logos */
}

.partner {
    flex: 1 1 150px; /* Flex-grow, flex-shrink, and basis for responsive layout */
    max-width: 200px; /* Maximum width for each partner logo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner img {
    max-width: 50%; /* Ensure image scales down but not up */
    height: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



.partner img:hover  {
    transform: scale(1.05);
}




#map {
    height: 300px;
    background: #e0e0e0;
    border-radius: 8px;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

/* Footer styles */
footer {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-map {
    flex: 1;
    height: 300px;
    background: #e0e0e0;
    border-radius: 8px;
}

.footer-contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer-contact p {
    margin: 13px 0;
    font-weight: bolder;
}

/* Add responsive styles */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .footer-container {
        flex-direction: column;
    }

    #language-switcher {
        top: 10px; /* Уменьшаем отступ сверху для мобильных устройств */
        right: 10px; /* Уменьшаем отступ справа */
    }

    #language-switcher button {
        padding: 5px; /* Уменьшаем padding кнопок */
    }

    #language-switcher img {
        width: 24px; /* Уменьшаем размер флага */
        height: 24px;
    }
}

@media (max-width: 768px) {
    .footer-map {
        height: 200px; /* Further reduce map height for smaller screens */
    }

    .footer-contact {
        padding: 15px; /* Slightly larger padding on smaller screens */
    }
}

/* Media query for screens 480px and below (phones) */
@media (max-width: 480px) {
    .footer-map {
        height: 180px; /* Smallest map height for mobile devices */
    }

    .footer-contact p {
        font-size: 14px; /* Adjust font size for better readability on small screens */
    }
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

/* Titles Section */
.titles {
    display: flex;
    gap: 10px;
    order: 2;
}

.title {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    border-left: 3px solid transparent;
    background-color: #084f7b;
}


.title.active {
    border-left-color: #ff0d0d;
}

/* Descriptions Section */
.descriptions {
    flex: 1;
    order: 1;
}

.description {
    display: none;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

.description.active {
    display: block;
}

/* Responsive Design */
@media (min-width: 768px) {
    .info-section {
        flex-direction: row-reverse;
        gap: 40px;
        padding: 40px;
    }

    .titles {
        flex-direction: column;
        min-width: 250px;
    }

    .title {
        text-align: left;
        border-left: none;
        border-right: 3px solid transparent;
    }

    .title.active {
        border-right-color: #f32121;
        border-left: none;
    }
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #084f7b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999; /* Ensures button is above all elements */
}


/* Hover Effect */
.back-to-top:hover {
    background: #f32121;
}

/* Smooth Show/Hide Animation */
.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.back-to-top.hide {
    opacity: 0;
    transform: scale(0.9);
}


/* Certifications Section */
.certifications {
    text-align: center;
    padding: 20px;
}

.certifications-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
    white-space: nowrap;
    justify-content: center;
    scroll-behavior: smooth;
}

.cert-img {
    width: 150px; /* Adjust size */
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .certifications-container {
        flex-wrap: nowrap;
        justify-content: start;
    }
    
    .cert-img {
        width: 120px;
    }
}

#certifications {
    padding: 40px 10px;
}
#cerh3 {
    font-size: 25px;
    color: #084f7b;         /* Change text color */     /* Change font size */
    margin-bottom: 20px; /* Add some spacing */
}
