/* Базовые стили */
@font-face {
    font-family: 'Juneau';
    src: url('Juneau-Semilight-Web.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Roslindale';
    src: url('Roslindale-DisplayCondensedLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #464646;
    --secondary-color: #575757;
    --background-color: #fff;
}

body {
    font-family: 'Juneau', sans-serif;
    overflow-x: hidden;
    transition: all 0.2s ease;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Стили для экранов */
.screen {
    width: 100vw;
    height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    
    overflow: visible; /* Разрешаем показ за пределами */
    isolation: isolate; /* Создаем новый контекст stacking */
}

/* Главный экран */

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* transition: all 0.3s ease; */
    z-index: 10;
}

.logo-container.fixed {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: auto;
}

.logo-container.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    width: 140px;
    height: auto;
}

.footer-screen .logo-container.centered {
    position: absolute;
    text-align: center;
}

.logo-container.centered .logo {
    mix-blend-mode: overlay;
}

.logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.hero-text {
    position: absolute;
    bottom: 24px;
    text-align: center;
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: var(--secondary-color);
    letter-spacing: 0.02em;
    z-index: 10;
}

.hero-text p:first-child {
    font-family: 'Roslindale';
    font-size: 26px;
    line-height: 30px;
}

#hero .join-text {
    color: var(--secondary-color);
    margin-top: 14px;
}

/* Контентные экраны */
.content-screen {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0;
    scroll-snap-align: start;
}

.content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.content-container {
    max-width: 700px;
    width: 100%;
}

.text-content {
    margin-bottom: 80px;
}

.title {
    font-family: 'Roslindale', sans-serif;
    font-size: 30px;
    line-height: 30px;
    letter-spacing: 0.02em;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.description {
    font-family: 'Juneau', sans-serif;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.02em;
    color: var(--secondary-color);
    margin-bottom: 24px;
}

.list {
    list-style: none;
    color: var(--secondary-color);
    font-size: 20px;
    line-height: 30px;
}


.screen-footer {
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: var(--secondary-color);
}

/* Футер экран */
.footer-screen {
    position: relative;
    scroll-snap-align: start;
}

.footer-screen::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    background-image: url('merio09-Lhgr-B7Q8Kw-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease;
}

body.dark-mode .footer-screen::before {
    filter: blur(20px);
    /* opacity: 0.1; */
}


.footer-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px 40px;
    position: relative;
    z-index: 1;
}

.footer-text {
    text-align: center;
    color: white;
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.02em;
}

.footer-text .join-text {
    color: white;
}

.footer-text .join-text .subscription-btn {
    right: 22px;
}

.footer-text .subscription-btn {
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-text .subscription-btn span {
    background-color: white;
}

/* Плавающие изображения */
.floating-images {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
    pointer-events: none;
    z-index: 1;
    overflow: visible; /* Разрешаем изображениям выходить за пределы */
}


.floating-image-wrapper {
    position: absolute;
    opacity: 0;
    transition: all 0.5s ease;
    will-change: transform;
    pointer-events: auto;
}

.floating-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.1;
    pointer-events: none;
    transition: all 0.2s ease;
}
.floating-image-wrapper:hover::after{
    opacity: 0.4;
}

.floating-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating-image-wrapper:hover {
    z-index: 5;
}

/* Специфические стили для элементов без изображений (fallback) */
.floating-image-wrapper:has(img:not([src])) {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.join-text {
    position: relative;
}

.subscription-btn {
    display: inline-flex;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(70, 70, 70,0.3);
    transform: translateY(-1px);
    margin-left: 7px;
}

.subscription-btn span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #464646;
}

.list li {
    position: relative;
    padding-left: 35px;
}
.list li::before {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0px;
    top: 13px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #464646;
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 20px;
    }
    
    .title {
        font-size: 24px;
        line-height: 28px;
    }
    
    .description {
        font-size: 16px;
        line-height: 24px;
    }
    
    .logo-container.fixed {
        width: 100px;
        height: 40px;
    }
    
    .logo {
        width: 100px;
        height: 40px;
    }
    
    .footer-content {
        padding: 20px;
    }
    
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 15px;
    }
    
    .title {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 20px;
    }
    
    .description {
        font-size: 14px;
        line-height: 20px;
    }
    
    .text-content {
        margin-bottom: 40px;
    }
    
    .footer-content {
        padding: 15px;
    }
    
}


/* Стили для постепенной загрузки изображений */
.image-loading {
    position: relative;
    background: #f8f8f8 !important;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loadingShine 1.5s infinite;
}

.image-loaded {
    background: transparent !important;
}

.image-loaded::before {
    display: none;
}

@keyframes loadingShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.floating-image-wrapper {
    transition: opacity 0.8s ease, transform 0.8s ease !important;
}

/* Убедимся, что контейнеры правильно позиционированы */
.floating-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Заменяем текущие стили dark-mode на эти: */

body.dark-mode {
    /* Убираем background-color из body чтобы не влиять на layout */
    position: relative;
}

.floating-image-wrapper img {
    transition: all 0.5s ease;
}

body.dark-mode {
    /* background-color: #464646; */
}

body.blur-mode .floating-image-wrapper img {
    filter: blur(20px);
    /* opacity: 0.2; */
}
body.blur-mode .floating-image-wrapper::after {
    opacity: 0;
}

/* Убираем любые изменения которые могут влиять на позиционирование */
body.dark-mode .content-wrapper,
body.dark-mode .footer-content {
    /* Никаких изменений которые могут вызвать рефлоу */
    position: relative;
    z-index: 10000;
}
body.dark-mode .hero-text {
    position: absolute;
    z-index: 10000;
}

/* Только визуальные изменения - цвет текста */
/* body.dark-mode .hero-text,
body.dark-mode .title,
body.dark-mode .description,
body.dark-mode .list,
body.dark-mode .screen-footer,
body.dark-mode .footer-text
body.dark-mode .join-text {
    color: rgba(255, 255, 255, 0.95);
} */

/* body.dark-mode .subscription-btn {
    border-color: #fff;
}

body.dark-mode .subscription-btn span {
    background-color: #fff;
}

body.dark-mode .list li::before {
    background-color: rgba(255, 255, 255, 0.95);
} */

body.dark-mode .logo-container.centered .logo {
    mix-blend-mode: normal;
}

body.dark-mode .logo-container {
    z-index: 10000 !important;
}

body.dark-mode .logo-container.fixed {
    z-index: 10000 !important;
}

body.dark-mode .logo-container.centered {
    z-index: 10000 !important;
}



/* Добавьте эти стили в конец файла styles.css */

.footer-screen .logo-container.centered {
    position: absolute;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.8s ease, filter 0.8s ease;
}

.footer-screen .logo-container.centered.show {
    opacity: 1;
    filter: blur(0);
}

/* Убедитесь, что логотип в футере поверх всего */
.footer-screen .logo-container.centered {
    z-index: 1000;
}


@media (max-width: 768px) {
    .loading-progress {
        display: none;
    }
}








/* Admin Styles */
.admin-body {
    background: var(--background-color);
    font-family: 'Juneau', sans-serif;
    color: var(--primary-color);
}

.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(70, 70, 70, 0.1);
    z-index: 1000;
    padding: 1rem 40px;
}

.admin-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    width: 100px;
    height: auto;
}

.admin-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(70, 70, 70, 0.1);
    margin-bottom: 2rem;
}

.admin-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-family: 'Juneau', sans-serif;
    font-size: 16px;
    color: var(--secondary-color);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-tab:hover {
    color: var(--primary-color);
}

.admin-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(70, 70, 70, 0.1);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.admin-section-header {
    padding: 1.5rem 2rem;
    background: rgba(70, 70, 70, 0.02);
    border-bottom: 1px solid rgba(70, 70, 70, 0.1);
}

.admin-section-title {
    font-family: 'Roslindale', sans-serif;
    font-size: 20px;
    margin: 0;
    color: var(--primary-color);
}

.admin-section-body {
    padding: 2rem;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.admin-input, .admin-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(70, 70, 70, 0.2);
    border-radius: 4px;
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.3s ease;
}

.admin-input:focus, .admin-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.admin-btn-outline {
    background: transparent;
    color: var(--primary-color);
}

.admin-btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Dropzone Styles */
.admin-dropzone {
    border: 2px dashed rgba(70, 70, 70, 0.3);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.admin-dropzone.dz-drag-hover {
    border-color: var(--primary-color);
    background: rgba(70, 70, 70, 0.02);
}

.admin-dropzone .dz-message {
    color: var(--secondary-color);
    font-size: 16px;
}

/* Images Grid */
.admin-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-image-card {
    border: 1px solid rgba(70, 70, 70, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.admin-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-image-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.admin-image-info {
    padding: 1rem;
}

.admin-image-name {
    font-size: 14px;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-image-size {
    font-size: 12px;
    color: var(--secondary-color);
    margin: 0;
}

.admin-image-actions {
    padding: 0.75rem;
    background: rgba(70, 70, 70, 0.02);
    border-top: 1px solid rgba(70, 70, 70, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(70, 70, 70, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.admin-stat-number {
    font-family: 'Roslindale', sans-serif;
    font-size: 2rem;
    margin: 0;
    color: var(--primary-color);
}

.admin-stat-label {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0.5rem 0 0 0;
}

.admin-stat-warning {
    color: #e74c3c;
}

.admin-stat-success {
    color: #27ae60;
}

/* Sortable */
.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    transform: rotate(2deg);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        padding: 0.75rem 1rem;
    }
    
    .admin-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* Dark mode for admin */
body.dark-mode .admin-body {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

body.dark-mode .admin-section {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .admin-input,
body.dark-mode .admin-textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

body.dark-mode .admin-dropzone {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}


/* Admin Tabs */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(70, 70, 70, 0.1);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px 8px 0 0;
    padding: 0 1rem;
}

.admin-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-family: 'Juneau', sans-serif;
    font-size: 16px;
    color: var(--secondary-color);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-tab:hover {
    color: var(--primary-color);
    background: rgba(70, 70, 70, 0.02);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hide all tab contents by default */
#contentTab,
#imagesTab {
    display: none;
}

#contentTab.active,
#imagesTab.active {
    display: block;
}


/* List Management Styles */
.list-management {
    margin-top: 1.5rem;
}

.list-items-container {
    margin-bottom: 1.5rem;
}

.list-item-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(70, 70, 70, 0.1);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: move;
    transition: all 0.3s ease;
}

.list-item-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(70, 70, 70, 0.2);
}

.list-item-card.sortable-ghost {
    opacity: 0.4;
}

.list-item-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.list-item-number {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.list-item-title {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    flex-grow: 1;
}

.list-item-description {
    color: var(--secondary-color);
    margin: 0.25rem 0 0 0;
    font-size: 14px;
    line-height: 1.4;
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.list-item-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(70, 70, 70, 0.2);
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.list-item-btn.edit {
    color: var(--primary-color);
}

.list-item-btn.edit:hover {
    background: var(--primary-color);
    color: white;
}

.list-item-btn.delete {
    color: #e74c3c;
    border-color: #e74c3c;
}

.list-item-btn.delete:hover {
    background: #e74c3c;
    color: white;
}

.add-item-form {
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed rgba(70, 70, 70, 0.2);
    border-radius: 6px;
    padding: 1.5rem;
}

.add-item-form h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-family: 'Roslindale', sans-serif;
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.empty-list {
    text-align: center;
    color: var(--secondary-color);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    border: 2px dashed rgba(70, 70, 70, 0.1);
}

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

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

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Roslindale', sans-serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

.modal-close:hover {
    color: var(--primary-color);
}


/* Sortable Styles */
.sortable-ghost {
    opacity: 0.4;
    background: rgba(70, 70, 70, 0.1);
}

.sortable-chosen {
    transform: rotate(2deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-image-card {
    transition: all 0.3s ease;
    cursor: move;
}

.admin-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Drag handle visual indicator */
.admin-image-card::before {
    content: '⋮⋮';
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--secondary-color);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: move;
}

.admin-image-card:hover::before {
    opacity: 1;
}


/* Admin Header Styles */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(70, 70, 70, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.admin-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.admin-logo {
    width: 100px;
    height: auto;
    transition: opacity 0.3s ease;
}

.admin-logo:hover {
    opacity: 0.8;
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user {
    color: var(--primary-color);
    font-size: 14px;
    margin-right: 0.5rem;
}

.view-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.view-site-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(70, 70, 70, 0.2);
}

.view-site-btn .btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.view-site-btn:hover .btn-icon {
    transform: translateX(2px);
}

.logout-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Responsive Header */
@media (max-width: 768px) {
    .admin-navbar .container {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .admin-nav-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .admin-user {
        display: none;
    }
    
    .view-site-btn,
    .logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .admin-nav-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .view-site-btn,
    .logout-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}



/* Mobile styles for subscription modal */
@media (max-width: 768px) {

    .floating-image-wrapper:nth-child(1) {
        left: initial !important;
        right: 20px !important;
        top: 20px !important;
    }
    .floating-image-wrapper:nth-child(2) {
        left: 20px !important;
        right: initial !important;
        top: 20vh !important;
    }
    .floating-image-wrapper:nth-child(3) {
        left: initial !important;
        right: 20px !important;
        top: 50dvh !important;
    }
    .floating-image-wrapper:nth-child(4) {
        left: 20px !important;
        right: initial !important;
        top: 80dvh !important;
    }
    #hero .floating-image-wrapper::after {
        opacity: 0.7;
    }
}




.subscription-message {
    position: absolute;
    bottom: 10px;
    left: 20px;
}


/* Subscription Modal Styles */
.subscription-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.subscription-overlay.active {
    opacity: 1;
    visibility: visible;
}

.subscription-modal {
    position: absolute;
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    min-width: 280px;
    max-width: 90vw;
    transform: translate(-50%, -50%) scale(0.8);
    top: 50%;
    left: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Позиция для экранов 2-4 */
.subscription-modal.bottom-left {
    top: auto;
    bottom: 40px;
    left: 40px;
    right: auto;
    transform: translate(0, 20px) scale(0.8);
}

.subscription-overlay.active .subscription-modal {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.subscription-overlay.active .subscription-modal.bottom-left {
    transform: translate(0, 0) scale(1);
}

.subscription-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1;
}

.subscription-close::before,
.subscription-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.subscription-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.subscription-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.subscription-close:hover::before,
.subscription-close:hover::after {
    background: var(--secondary-color);
    transform: translate(-50%, -50%) rotate(0deg);
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    align-items: center;
}

.form-label {
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    color: var(--primary-color);
    min-width: 80px;
    white-space: nowrap;
}

.form-input {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid rgba(70, 70, 70, 0.3);
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    background: transparent;
    transition: border-color 0.3s ease;
    width: 240px;
    max-width: calc(100vw - 60px);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.subscription-submit {
    align-self: flex-end;
    border: none;
    font-family: 'Juneau', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    background: none;
    color: inherit;
}


.subscription-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.subscription-message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    min-height: 20px;
}

.subscription-success {
    color: #27ae60;
}

.subscription-error {
    color: #e74c3c;
}

/* Mobile styles for subscription modal */
@media (max-width: 768px) {
    .subscription-modal {
        padding: 25px 15px;
        min-width: 260px;
        margin: 1rem;
    }
    
    .subscription-modal.bottom-left {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-label {
        min-width: auto;
    }
    
    .form-input {
        max-width: none;
    }
    
    .subscription-submit {
        align-self: stretch;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .subscription-modal {
        padding: 20px 15px;
        max-width: calc(100vw - 30px);
    }
    
    .subscription-modal.bottom-left {
        bottom: 15px;
        left: 15px;
        right: 15px;
        max-width: calc(100vw - 30px);
    }

    html {
        scroll-snap-type: initial;
        scroll-behavior: initial;
    }

    /* Стили для экранов */
    .screen {
        scroll-snap-align: initial;
    }
}



/* Loading Indicator Styles */
.loading-indicator {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    text-align: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-family: 'Juneau', sans-serif;
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.loading-percent {
    font-weight: normal;
    color: var(--primary-color);
}

.loading-bar {
    width: 100%;
    height: 2px;
    background: rgba(70, 70, 70, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 1px;
}

/* Скрываем индикатор когда логотип становится фиксированным */
.logo-container.fixed .loading-indicator,
.logo-container.centered .loading-indicator {
    display: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .loading-indicator {
        width: 150px;
        top: calc(100% + 15px);
    }
    
    .loading-text {
        font-size: 11px;
    }
}