* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Unbounded', cursive;
}

body {
    background-color: #181919;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 100px auto 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Секции */
.section {
    padding: 60px 40px;
    position: relative;
}

/* Секция 1 - Герой */
.section-hero {
    background-color: #000000;
    color: white;
    display: flex;
    align-items: center;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-iframe-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* Блокируем взаимодействие с iframe */
}

.hero-iframe-container.active {
    pointer-events: auto; /* Включаем взаимодействие с iframe */
}

.hero-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 90%, transparent 100%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 60px;
    transition: opacity 0.5s ease;
}

.hero-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.activate-btn {
    background-color: rgba(255, 255, 255, 0.35);
    color: white;
    border: 0.5px solid white;
    padding: 15px 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 250;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.activate-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Секция 2 - Регионы */
.section-regions {
    background-color: #000000;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.region-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 10s ease;
}

.section-regions:hover .region-background {
    transform: scale(1.1);
}

.region-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 2;
}

.region-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.region-info {
    width: 100%;
    text-align: center;
}

.region-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.section-title {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
}

.section-subtitle {
    margin-bottom: 30px;
    color: #cccccc;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mini-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    padding: 25px;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 250px;
    align-items: center;
}

.mini-card:hover {
    transform: translateY(-5px);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mini-card-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mini-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mini-card:hover .mini-card-avatar img {
    transform: scale(1.1);
}

.mini-card-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
}

.mini-card p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    flex-grow: 1;
    display: flex;
    font-weight: 250;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-btn {
    background-color: rgba(255, 255, 255, 0.35);
    color: white;
    border: 0.5px solid white;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 250;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.card-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Секция 3 - Виджет */
.section-widget {
    background: #000000;
    padding: 0px 0;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.widget-container {
    max-width: 100%;
    min-height: 100%;
    padding: 0px 0px;
    margin: 0 auto;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    position: absolute;
}

.widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 2;
}

.widget-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Навигация и остальные стили остаются без изменений */
.nav-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid white;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid white;
    padding: 15px;
    border-radius: 50px;
    display: flex;
    gap: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.35);
    color: white;
    border: 1px solid white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 300;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 200px;
    border-radius: 15px;
    font-weight: 300;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2.5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1002;
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s ease;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-logo img {
    height: 40px;
    width: auto;
}

.mobile-nav-logo span {
    font-weight: 700;
    color: white;
    font-size: 18px;
}

.mobile-nav-btn {
    background-color: rgba(255, 255, 255, 0.35);
    color: white;
    border: 1px solid white;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 300;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.mobile-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.mobile-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-dropdown-content {
    display: none;
    font-weight: 300;
    flex-direction: column;
    padding: 10px 0 0 20px;
    gap: 15px;
}

.mobile-dropdown-content a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.mobile-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1003;
}

.back-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.35);
    color: white;
    border: 1px solid white;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 300;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Адаптивность для мобильных устройств - КОМПАКТНЫЕ КАРТОЧКИ */
@media (max-width: 900px) {
    .nav-bar {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .section-hero {
        min-height: 500px;
    }
    
    .region-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 28px;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 18px;
        text-align: center;
    }
    
    .widget-container {
        height: 100%;
        width: 100%;
    }
    
    .nav-logo {
        top: 15px;
        left: 15px;
        padding: 8px 12px;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    /* КОМПАКТНЫЕ КАРТОЧКИ ДЛЯ ПЛАНШЕТОВ И ТЕЛЕФОНОВ */
    .region-cards {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .mini-card {
        width: 100%;
        max-width: 350px;
        min-width: unset;
        height: 150px; /* Уменьшенная высота */
        flex-direction: row;
        padding: 15px;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .mini-card-avatar {
        width: 70px;
        height: 70px;
        min-width: 70px;
        margin-bottom: 0;
    }
    
    .mini-card p {
        display: none; /* Скрываем описание на мобильных */
    }
    
    .card-btn {
        padding: 10px 15px;
        font-size: 12px;
        margin-top: 0;
        margin-left: auto;
    }
    
    .back-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .nav-logo span {
        display: none;
    }
    
    .nav-logo {
        padding: 10px;
    }
    
    .section-hero {
        min-height: 500px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    /* ЕЩЕ БОЛЕЕ КОМПАКТНЫЕ КАРТОЧКИ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ */
    .mini-card {
        height: 130px;
        padding: 12px;
        gap: 12px;
        max-width: 100%;
    }
    
    .mini-card-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .card-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .region-cards {
        gap: 10px;
    }
    
    .activate-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Отключение анимаций для пользователей, которые предпочитают reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none;
        transition: none;
    }
    
    .region-background {
        transition: none;
    }
    
    .mini-card:hover {
        transform: none;
    }
    
    .activate-btn:hover {
        transform: none;
    }
    
    .card-btn:hover {
        transform: none;
    }
    
    .mini-card:hover .mini-card-avatar img {
        transform: none;
    }
    
    .back-button:hover {
        transform: none;
    }
}