/* Основные настройки страницы */
body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* Хеадер в стиле iOS */
.ios-header {
    position: fixed;
    top: 20px; left: 20px; right: 20px;
    height: 60px;
    z-index: 1000;
    background: var(--ios-header-bg);
    backdrop-filter: var(--ios-header-backdrop);
    -webkit-backdrop-filter: var(--ios-header-backdrop);
    border-radius: 30px;
    border: var(--ios-header-border);
    box-shadow: var(--ios-header-shadow);
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.nav-content {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
}

.nav-content--home .auth-bar {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    z-index: 1;
}

.hdr-logged-shell {
    display: none !important;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.hdr-logged-shell.is-visible {
    display: flex !important;
}

#auth-login-link.is-hidden {
    display: none !important;
}

.btn-auth-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #79bfff;
    text-decoration: none;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.btn-auth-login:hover {
    border-color: rgba(121, 191, 255, 0.55);
    background: rgba(100, 181, 246, 0.1);
    color: #cce7ff;
}

.auth-bar {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.auth-link {
    color: #64b5f6;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
}

.auth-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

.auth-user {
    color: #bdbdbd;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo {
    font-weight: 600;
    font-size: 24px;
    color: #ffffff;
}

/* Главный контейнер */
.main-container {
    padding-top: 0; /* Убираем отступ сверху, чтобы коллаж был под хеадером */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Секция с коллажем/слайдером */
.hero-section {
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
}

.carousel-container {
    width: 100%;
    height: 550px;
    overflow: hidden;
    position: relative;
    display: block;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    filter: brightness(0.5);
}

.slide.active {
    opacity: 1;
}

/* Кнопка ИГРАТЬ поверх слайдера */
.overlay-button-container {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.main-play-btn {
    padding: 25px 30px;
    font-size: 2rem;
    font-weight: 800;
    color: rgb(255, 255, 255);
    background: rgb(59, 146, 25); /* Насыщенный зеленый без прозрачности */
    border-radius: 55px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-play-btn:hover {
    background: rgb(70, 170, 30); 
    color: rgb(218, 208, 208);
    box-shadow: 0 0 30px rgb(59, 146, 25);
    transform: scale(1.05);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #1c1c1c;
    margin: 10% auto;
    padding: 40px;
    border: 1px solid #333;
    width: 380px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-view {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.modal-view.active {
    display: flex;
}

.modal-btn {
    width: 100%;
    padding: 18px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
}

.modal-btn:hover:not(.disabled) {
    background: #3a3a3a;
    border-color: #666;
}

.modal-btn-coming,
.modal-btn[disabled] {
    opacity: 0.48 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(0.35);
}

/* Разделитель */
.separator {
    width: 100%;
    height: 2px;
    background: #222;
    margin: 0;
}

/* Текстовый блок (окутывает картинки) */
.info-section {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 40px 0;
}

/* Меньше зазор между двумя текстовыми секциями на главной */
.info-section:not(:last-of-type) {
    margin-bottom: 16px;
}

.info-section + .info-section {
    margin-top: 16px;
}

.text-content {
    display: flex;
    flex-direction: row; /* Текст слева, фото справа */
    flex-wrap: wrap; 
    gap: 40px;
    width: 95%;
    max-width: 1300px;
    background: rgba(255, 255, 255, 0.03); 
    padding: 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.text-main-body {
    flex: 1 1 600px;
}

/* Оформление текста внутри блока */
.text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-content h3 {
    color: #3b9219;
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.text-content h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(59, 146, 25, 0.2);
    margin-left: 15px;
}

.text-content p, .text-content li {
    line-height: 1.6;
    color: #b0b0b0;
}

.text-content b {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Колонка с картинками справа */
.image-content-column {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    display: block;
    transition: transform 0.3s ease;
}

.image-content img:hover {
    transform: scale(1.02);
}

/* Футер */
.main-footer {
    background: #0a0a0a;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #555;
    border-top: 1px solid #1a1a1a;
}

/* Адаптивность для мобилок */
@media (max-width: 1000px) {
    .text-content {
        flex-direction: column;
        padding: 25px;
    }
    .carousel-container {
        height: 350px;
    }
    .text-content h1 {
        font-size: 1.8rem;
    }
}