/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

.cta-button:hover {
    background-color: #45a049;
}

/* Map Section */
.map-container {
    position: relative;
    width: 100%;
    height: 80vh;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#map {
    width: 100%;
    height: 100%;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: #f8f8f8;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Map Panel */
.map-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.panel-header {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.panel-content {
    padding: 20px;
    text-align: justify;
}

.panel-content.dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.text-column {
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.panel-language {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.language-button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-button:hover {
    background-color: #e0e0e0;
}

.language-button.active {
    background-color: #4CAF50;
    color: white;
}


/* Map */

#map-section {
    position: relative;
    width: 100%;
    height: 80vh;
}

.map-panel {
    position: absolute;
    top: -5%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 50vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
}

.map-panel.left {
    left: 20px;
}

.map-panel.right {
    right: 20px;
}

.close-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

.image-miniature {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 20px 0 20px;
}

.mini-image {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mini-image:hover {
    border-color: #4CAF50;
    transform: scale(1.1);
}

.panel-images {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    padding: 0 10px;
    transition: all 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    order: 0;
}

.carousel-item img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    border-radius: 4px;
    object-fit: contain;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.nav-button.prev {
    left: 10px;
}

.nav-button.next {
    right: 10px;
}

.panel-content p {
    margin-bottom: 15px;
    line-height: 1.5;
} 


.panel-language {
    display: flex;
    gap: 10px;
}

.language-button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.language-button:hover {
    background: #f5f5f5;
}

.language-button.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

/* Main */

h2 {
    text-align: center;
}

.mainInfo {
    padding: 5vw;
}

.infoBlock {
    display: flex;
    justify-content: space-around;
    gap: 5%;
    margin: 20px 0;
    font-size: 18px;
}

.infoBlock > div {
    width: 50vw;
}

.infoBlock > img {
    max-width: 300px;
    width: auto;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

/* Планшеты */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .map-panel {
        width: 60vw;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-content.dual {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .map-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        max-height: none;
        z-index: 2000;
        overflow-y: auto;
        border-radius: 0;
    }
    
    .map-panel.left,
    .map-panel.right {
        left: 0;
        right: 0;
        transform: none;
    }
    
    .close-panel {
        font-size: 28px;
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
        z-index: 2001;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .panel-header {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .panel-content {
        padding: 15px;
    }
    
    .close-panel {
        font-size: 30px;
        width: 50px;
        height: 50px;
    }
}