/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/global-trade-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Apply margin only to pages that need it due to fixed header positioning */
body:not(.product-page) .hero-section {
    margin-top: 20px;
}

.hero-content {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    width: 100%;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    width: 100%;
}

.cta-button {
    display: none;
    background-color: #2a7a9e;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1c5c7a;
}

@media (max-width: 768px) {
    header {
        justify-content: space-between;
    }
    
    .logo {
        order: 1;
    }
    
    .header-title {
        order: 2;
        width: 100%;
        margin: 10px 0;
    }
    
    .header-register {
        order: 3;
    }
    
    .main-nav {
        order: 4;
    }
    
    .header-title h1 {
        font-size: 20px;
    }

    .header-title p {
        font-size: 14px;
    }

    .header-register img {
        width: 20px;
        height: 20px;
    }
    
    /* Show mobile menu button */
    .mobile-menu-button {
        display: block;
        order: 0;
    }
    
    /* Hide menu by default on mobile */
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    /* Show menu when .mobile-menu-open class is present */
    .main-nav.mobile-menu-open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav ul li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 8px 0;
    }
    
    .hero-content h2 {
        font-size: 26px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-section {
        padding: 50px 20px;
    }
    
    /* Apply margin only to pages that need it due to fixed header positioning */
    body:not(.product-page) .hero-section {
        margin-top: 20px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
    }
    
    .region-card:hover {
        transform: none;
    }
    
    .faq-section h2, .contact-section h2, .benefits-section h3 {
        font-size: 22px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .faq-question::after {
        right: 15px;
        font-size: 18px;
    }
    
    .contact-options {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .contact-section a {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .banner-content h1 {
        font-size: 26px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.cta-button {
    display: inline-block;
    background-color: #2a7a9e;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1c5c7a;
}

/* Regions Section */
.regions-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.regions-section h2 {
    font-size: 28px;
    color: #2a7a9e;
    margin-bottom: 30px;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.region-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.region-card:hover {
    transform: translateY(-10px);
}

.region-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.region-card h3 {
    color: #2a7a9e;
    margin: 15px 0 10px;
}

.region-card p {
    padding: 0 20px 20px;
    color: #555;
}

/* FAQ Section */
.faq-section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 28px;
    color: #2a7a9e;
    text-align: center;
    margin-bottom: 30px;
}

.faq-container {
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f5f5f5;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

.view-more-faq {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #2a7a9e;
    text-decoration: none;
    font-weight: bold;
}

/* Contact Section Update */
.contact-section {
    text-align: center;
    margin-top: 30px;
    padding: 40px 20px;
    background-color: #eaf4f9;
    border-radius: 10px;
}

.contact-section h2 {
    font-size: 28px;
    color: #2a7a9e;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 18px;
    margin: 10px 0 20px;
}

.contact-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-section a {
    text-decoration: none;
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.contact-section a:hover {
    opacity: 0.9;
}

.contact-section .whatsapp {
    background-color: #25D366;
}

.contact-section .email {
    background-color: #2a7a9e;
}

.contact-section .contact-page {
    background-color: #555;
}

/* Page Banner */
.page-banner {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Apply margin only to pages that need it due to fixed header positioning */
body:not(.product-page) .page-banner {
    margin-top: 20px;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
}

.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #777;
}

.breadcrumbs a {
    color: #2a7a9e;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Benefits Section Update */
.benefits-section {
    text-align: center;
    margin-top: 40px;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.benefits-section img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefits-section h3 {
    font-size: 24px;
    color: #2a7a9e;
    margin-bottom: 20px;
}

.benefits-section p {
    font-size: 18px;
    line-height: 1.8;
    margin-top: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Styles */
footer {
    background-color: #2a7a9e;
    color: white;
    padding: 40px 20px 20px;
}

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

.footer-company h4 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
}

.footer-company p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column h5 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-contact h5 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
}

/* Enhanced Responsive Adjustments */
@media (max-width: 992px) {
    .header-title h1 {
        font-size: 22px;
    }
    
    .header-title p {
        font-size: 14px;
    }
    
    .hero-content h2 {
        font-size: 30px;
    }
    
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 18px;
    }
    
    .header-title p {
        font-size: 12px;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 40px 15px;
    }
    
    /* Apply margin only to pages that need it due to fixed header positioning on mobile */
    body:not(.product-page) .hero-section {
        margin-top: 20px;
    }
    
    .benefits-section p {
        font-size: 15px;
    }
    
    .banner-content h1 {
        font-size: 22px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .page-banner {
        padding: 40px 15px;
    }
    
    section {
        padding: 30px 15px;
    }
}

/* Мобильная версия футера - исправленная */
@media (max-width: 768px) {
    /* Основной контейнер футера */
    footer {
        padding: 15px 10px 10px;
    }
    
    /* Принудительно делаем сетку в две колонки */
    .footer-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    /* Сбрасываем предыдущие стили для футера */
    .footer-content > * {
        grid-column: auto !important;
        width: 100% !important;
    }
    
    /* Секция ссылок - переопределяем для работы с сеткой */
    .footer-links {
        grid-column: span 2 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    
    /* Корректировка дочерних элементов в footer-links */
    .footer-links > div {
        width: 100% !important;
    }
    
    /* Нижний блок copyright - растягиваем на всю ширину */
    .footer-bottom {
        grid-column: span 2 !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        font-size: 12px !important;
        text-align: center;
    }
    
    /* Уменьшаем размер заголовков */
    footer h4, 
    footer h5 {
        font-size: 14px !important;
        margin: 0 0 5px 0 !important;
    }
    
    /* Уменьшаем размер текста */
    footer p {
        margin: 5px 0 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
    
    /* Компактные списки */
    footer ul {
        padding: 0 !important;
        margin: 0 0 8px 0 !important;
        list-style: none !important;
    }
    
    footer ul li {
        margin-bottom: 5px !important;
    }
    
    /* Ссылки */
    footer a {
        font-size: 13px !important;
    }
}