/* ============================================
   Without Depth — публичная часть
   ============================================ */

.page-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Фоновое изображение через ::before — можно блюрить, не блюря контент */
.page-home::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: -1;
    transition: filter 0.3s ease;
}

/* === ШАПКА === */

.site-header {
    position: relative;
    z-index: 10;
    padding: 1.2em 1.5em;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--text);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.6em;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.site-logo:hover {
    color: var(--accent);
}

.site-nav {
    display: flex;
    gap: 1.5em;
}

.site-nav a {
    color: var(--text-dim);
    font-size: 0.9em;
    transition: color var(--transition);
}

.site-nav a:hover {
    color: var(--accent);
}

/* === ОСНОВНОЙ КОНТЕНТ === */

.site-main {
    position: relative;
    z-index: 5;
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3em 1.5em 5em;
}

/* === HERO === */

.home-hero {
    text-align: center;
    margin-bottom: 4em;
    padding-top: 2em;
}

.home-title {
    font-size: 3.5em;
    letter-spacing: 0.08em;
    margin-bottom: 0.4em;
    color: var(--text);
}

.home-description {
    font-size: 1.1em;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === КАРТОЧКИ ТВОРЧЕСКИХ СТРАНИЦ === */

.home-pages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5em;
}

.page-card {
    display: block;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.page-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.page-card:hover .page-card-bg {
    opacity: 0.55;
}

.page-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
}

.page-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1em;
    border: 2px solid var(--accent);
    background: var(--bg-deep);
}

.page-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-card-title {
    font-size: 1.6em;
    color: var(--text);
    margin-bottom: 0.4em;
    letter-spacing: 0.03em;
}

.page-card-desc {
    color: var(--text-dim);
    font-size: 0.95em;
    line-height: 1.5;
}

/* === ПУСТОЕ СОСТОЯНИЕ === */

.home-empty {
    text-align: center;
    padding: 4em 2em;
    color: var(--text-dim);
}

.home-empty .hint {
    margin-top: 1em;
    font-size: 0.9em;
    color: var(--text-mute);
}

/* === ПОДВАЛ === */

.site-footer {
    position: relative;
    z-index: 5;
    padding: 2em 1.5em;
    text-align: center;
    color: var(--text-mute);
    font-size: 0.85em;
    border-top: 1px solid var(--border);
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */

@media (max-width: 640px) {
    .site-header {
        padding: 1em;
    }

    .site-main {
        padding: 2em 1em 3em;
    }

    .home-title {
        font-size: 2.2em;
    }

    .home-hero {
        margin-bottom: 2.5em;
        padding-top: 1em;
    }

    .home-pages {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .page-card {
        min-height: 240px;
    }

    .page-card-content {
        padding: 1.5em;
    }

    .page-card-title {
        font-size: 1.3em;
    }

    .site-nav {
        gap: 1em;
    }

    .site-nav a {
        font-size: 0.85em;
    }
}

/* ============================================
   Творческая страница
   ============================================ */

.page-creativity {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-creativity::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
    transition: filter 0.3s ease;
}

/* === ХЛЕБНЫЕ КРОШКИ === */

.breadcrumbs {
    font-size: 0.85em;
    color: var(--text-mute);
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    align-items: center;
}

.breadcrumbs a {
    color: var(--text-dim);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .sep {
    color: var(--text-mute);
    opacity: 0.5;
}

/* === HERO СТРАНИЦЫ === */

.page-hero {
    text-align: center;
    margin-bottom: 4em;
    padding-top: 1em;
}

.page-hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5em;
    border: 2px solid var(--accent);
    background: var(--bg-deep);
}

.page-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-title {
    font-size: 3em;
    letter-spacing: 0.06em;
    margin-bottom: 0.4em;
    color: var(--text);
}

.page-hero-desc {
    font-size: 1.05em;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === КАРТОЧКИ РАЗДЕЛОВ (4 кнопки) === */

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
}

.section-card {
    display: block;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 260px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.section-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.section-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.section-card:hover .section-card-bg {
    opacity: 0.5;
}

.section-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
}

.section-card-title {
    font-size: 1.5em;
    color: var(--text);
    margin-bottom: 0.4em;
    letter-spacing: 0.03em;
}

.section-card-desc {
    color: var(--text-dim);
    font-size: 0.95em;
    line-height: 1.5;
}

/* === ПУСТОЕ СОСТОЯНИЕ === */

.empty-state {
    text-align: center;
    padding: 4em 2em;
    color: var(--text-dim);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.empty-state .hint {
    margin-top: 1em;
    font-size: 0.9em;
    color: var(--text-mute);
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */

@media (max-width: 640px) {
    .page-hero-title {
        font-size: 2em;
    }

    .page-hero {
        margin-bottom: 2.5em;
    }

    .page-hero-avatar {
        width: 72px;
        height: 72px;
    }

    .section-cards {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .section-card {
        min-height: 200px;
    }

    .section-card-content {
        padding: 1.5em;
    }

    .section-card-title {
        font-size: 1.25em;
    }

    .breadcrumbs {
        font-size: 0.8em;
        margin-bottom: 1.5em;
    }
}