/* ============================================
   ДИЗАЙН-СИСТЕМА
   ============================================ */
:root {
    --bg: #0d090c;
    --bg-2: #1a1017;
    --text: #f5eef2;
    --text-muted: #a695a0;
    --accent: #e06b95;

    --glass: rgba(20, 13, 18, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-strong: rgba(255, 255, 255, 0.14);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.65);

    --page-width: 1400px;
}

* { box-sizing: border-box; }

html {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);

    /* ФОН СТРАНИЦЫ — ГРАДИЕНТ + КАРТИНКА */
    background:
    radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(13, 9, 12, 0.35) 70%,
        rgba(13, 9, 12, 0.8) 100%
    ),
    linear-gradient(
        180deg,
        rgba(13, 9, 12, 0.45) 0%,
        rgba(13, 9, 12, 0.72) 100%
    ),
    var(--cover-url) center / cover no-repeat;
    background-attachment: fixed;

    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sceneFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================
   ОБЩАЯ СЦЕНА — ЦЕНТР
   ============================================ */
body:has(.container) {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px 80px;
    min-height: 100vh;
}

/* ============================================
   СЦЕНА — ЕДИНАЯ СТЕКЛЯННАЯ КАРТОЧКА
   ============================================ */
.scene {
    width: min(var(--page-width), 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex: none;
    position: relative;

    /* Обложка + градиент — единый фон для всей карточки (БЕЗ url, чтобы было стекло!) */
    background:
        linear-gradient(
            180deg,
            rgba(13, 9, 12, 0.15) 0%,
            rgba(13, 9, 12, 0.25) 100%
        ),
        linear-gradient(
            152deg,
            rgba(107, 13, 21, 0.25) 0%,
            rgba(124, 87, 90, 0.25) 50%,
            rgba(128, 106, 107, 0.25) 100%
        );

    /* Стекло — размытие того, что за карточкой (фона body) */
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    /* Границы и объём */
    border: 1px solid var(--glass-border);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    animation: sceneFade 0.6s ease-out both;
}

/* Верхняя часть — профиль */
.profile-header {
    position: relative;
    padding: 42px 40px 34px;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    overflow: visible;

    /* РАЗДЕЛИТЕЛЬ между профилем и контентом */
    border-bottom: 3px dashed rgba(224, 107, 149, 0.35);
}

.header-bg { display: none; }

.header-bar {
    position: relative;
    z-index: 2;
    width: 100%;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    box-shadow:
        0 0 0 1px rgba(224, 107, 149, 0.2),
        0 0 40px rgba(224, 107, 149, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.4s;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.profile-avatar:hover {
    filter: contrast(1.1) brightness(1.05);
    box-shadow:
        0 0 0 1px rgba(224, 107, 149, 0.35),
        0 0 70px rgba(224, 107, 149, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.6);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-name {
    margin: 0;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.05;
    color: #ffffff;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 3px 0;
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.profile-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 12px #4ade80;
    animation: blink 2s ease-in-out infinite;
}

/* Нижняя часть — контент */
.container {
    position: relative;
    padding: 36px 40px 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
}

.container::before {
    display: none;
}

.sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0;
    align-items: start;
}

.sidebar .card {
    padding-left: 0;
}

.sidebar .card + .card {
    padding-top: 0;
    padding-left: 40px;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar .card h3 {
    margin: 0 0 24px;
    padding-left: 52px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #ffffff;
    position: relative;
}

.sidebar .card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 1px;
    background: var(--accent);
}

/* ============================================
   ИНФОРМАЦИЯ
   ============================================ */
.info-list { padding: 0; margin: 0; }

.info-list li {
    list-style: none;
    padding: 16px 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: baseline;
}

.info-list li:last-child { border-bottom: none; }

.info-list strong {
    font-family: -apple-system, sans-serif;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-list a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.info-list a:hover { border-bottom-color: var(--accent); }

/* ============================================
   ПРОЕКТЫ
   ============================================ */
.links-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.site-link {
    position: relative;
    display: block;
    justify-content: center;
    text-align: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s;
}

.site-link:hover,
.site-link.active {
    background: rgba(224, 107, 149, 0.1);
    border-color: rgba(224, 107, 149, 0.4);
    color: var(--accent);
    box-shadow:
        inset 0 0 24px rgba(224, 107, 149, 0.06),
        0 0 32px rgba(224, 107, 149, 0.15);
}

.site-link.active { background: rgba(224, 107, 149, 0.16); }

.site-link::before {
    content: "";
    position: absolute;
    top: -50%; left: -75%;
    width: 50%; height: 200%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    transform: rotate(8deg);
    transition: left 0.7s ease;
    pointer-events: none;
}
.site-link:hover::before { left: 125%; }

/* ============================================
   АЛЬБОМЫ
   ============================================ */
.album-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.album-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    min-height: 60px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.3s;
}

.album-link:hover,
.album-link.active {
    background: rgba(224, 107, 149, 0.1);
    border-color: rgba(224, 107, 149, 0.4);
    color: var(--accent);
    box-shadow:
        inset 0 0 24px rgba(224, 107, 149, 0.06),
        0 0 32px rgba(224, 107, 149, 0.15);
}

.album-link.active { background: rgba(224, 107, 149, 0.16); }

.album-link::before {
    content: "";
    position: absolute;
    top: -50%; left: -75%;
    width: 50%; height: 200%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    transform: rotate(8deg);
    transition: left 0.7s ease;
    pointer-events: none;
}
.album-link:hover::before { left: 125%; }

/* ============================================
   ПОДЛОЖКА (затемнение позади ящика)
   ============================================ */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 40;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   ЯЩИК — ВСПЛЫВАЕТ ПО ЦЕНТРУ
   ============================================ */
.content {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(600px, calc(100% - 40px));
    max-height: 85vh;
    padding: 44px 40px 36px;

    background:
        linear-gradient(
            180deg,
            rgba(20, 13, 18, 0.88) 0%,
            rgba(20, 13, 18, 0.96) 100%
        ),
         var(--cover-url) center / cover no-repeat;

    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);

    overflow-y: auto;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 50;
}

.content.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
.content { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }

#detail-content { max-width: 100%; }

.drawer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.3s;
    z-index: 2;
}

.drawer-close:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(224, 107, 149, 0.1);
    transform: rotate(90deg);
}

/* ============================================
   КАРТОЧКА ДЕТАЛИ (проект)
   ============================================ */
.detail-card {
    animation: fadeUp 0.4s ease-out both;
}

.detail-icon {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 18px;
}

.detail-kicker {
    font-family: -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.detail-title {
    margin: 0 0 16px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #ffffff;
}

.detail-description {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
}

.detail-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--accent) 0%, #b8336a 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(224, 107, 149, 0.3);
    transition: transform 0.15s, box-shadow 0.25s, filter 0.2s;
}

.detail-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(224, 107, 149, 0.5);
    filter: brightness(1.08);
}

.detail-cta-arrow { transition: transform 0.2s; }
.detail-cta:hover .detail-cta-arrow { transform: translateX(4px); }

/* ============================================
   АЛЬБОМ — MASONRY-СЕТКА ПРЕВЬЮ
   ============================================ */
.album-grid {
    columns: 2;
    column-gap: 10px;
    margin-top: 20px;
}

.album-thumb {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 10px 0;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.25s;

    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.album-thumb img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }

.album-thumb:hover {
    transform: translateY(-3px);
    border-color: rgba(224, 107, 149, 0.5);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(224, 107, 149, 0.2);
}

.album-thumb:hover img { transform: scale(1.03); }

/* ============================================
   ПОЛНОЭКРАННЫЙ ЛАЙТБОКС
   ============================================ */
.album-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    /* Было: display: none; */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 40px;
    
    /* Плавная анимация появления и исчезновения */
    transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

.album-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: lbFade 0.25s ease-out;
}

@keyframes lbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lb-img {
    max-width: min(92vw, 1100px);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(224, 107, 149, 0.15);
    animation: lbImg 0.3s ease-out;
}

@keyframes lbImg {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: -apple-system, sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 999px;
}

.lb-counter span { color: var(--accent); font-weight: 700; }

.lb-close,
.lb-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.lb-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 18px;
    z-index: 2;
}

.lb-close:hover {
    background: rgba(224, 107, 149, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
}

.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 30px;
    font-family: Georgia, serif;
    line-height: 1;
    padding-bottom: 4px;
    z-index: 2;
}

.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-nav:hover {
    background: rgba(224, 107, 149, 0.22);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   СТРАНИЦА АЛЬБОМА (отдельная, /album.html)
   ============================================ */
.album-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 9, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

.album-topbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 15px;
    font-style: italic;
    transition: gap 0.2s;
}
.back-link:hover { gap: 12px; }

.album-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.album-header-card {
    padding: 0;
    margin-bottom: 32px;
}

.album-header-card h1 {
    margin: 0 0 8px;
    font-family: Georgia, serif;
    font-size: 48px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -1px;
    color: #ffffff;
}

.album-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 1200px) {
    :root { --page-width: 720px; }

    /* Переносим sidebar сюда: как только карточка сужается — колонки становятся вертикальными */
    .sidebar {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar .card + .card {
        padding-top: 32px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-left: none;
    }

    .sidebar .card h3 {
        font-size: 28px;
        padding-left: 0;
        text-align: center;
        margin-bottom: 24px;
    }

    .sidebar .card h3::before {
        left: 50%;
        top: -14px;
        transform: translateX(-50%);
        width: 40px;
    }
}

@media (max-width: 900px) {
    body:has(.container) { padding: 40px 20px 60px; }

    .profile-header { padding: 32px 28px 24px; }
    .container { padding: 0 28px 32px; }
    .container::before { margin: 0 -28px 28px; }

    .header-content { gap: 20px; }
    .profile-avatar { width: 84px; height: 84px; }
    .profile-name { font-size: 32px; }

    .links-list { grid-template-columns: 1fr 1fr; }
    .album-list { grid-template-columns: repeat(3, 1fr); }

    .content {
        width: calc(100% - 32px);
        max-height: 88vh;
        padding: 40px 28px 32px;
    }

    .album-grid { columns: 2; }
}

    /* === АДАПТИВ САЙДБАРА: вертикальная стопка === */
    .sidebar {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar .card + .card {
        padding-top: 32px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-left: none;
    }

    .sidebar .card h3 {
        font-size: 26px;
        padding-left: 0;
        text-align: center;
        margin-bottom: 24px;
    }

    .sidebar .card h3::before {
        left: 50%;
        top: -14px;
        transform: translateX(-50%);
        width: 40px;
    }

    .links-list { grid-template-columns: 1fr 1fr; }
    .album-list { grid-template-columns: repeat(3, 1fr); }

    .content {
        width: calc(100% - 32px);
        max-height: 88vh;
        padding: 40px 28px 32px;
    }

    .album-grid { columns: 2; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    body:has(.container) { padding: 24px 12px 48px; }

    .profile-header {
        padding: 26px 20px 22px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .container {
        padding: 18px 20px 24px;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    .container::before { margin: 0 -20px 24px; }

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .profile-details { align-items: center; }
    .profile-status { align-self: center; }

    .profile-avatar { width: 88px; height: 88px; }
    .profile-name { font-size: 30px; letter-spacing: -0.6px; }

    .sidebar { gap: 36px; }
    .sidebar .card + .card { padding-top: 32px; }
    .sidebar .card h3 {
        font-size: 22px;
        padding-left: 0;
        margin-bottom: 18px;
    }
    .sidebar .card h3::before { width: 26px; }

    .info-list li {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
        font-size: 15px;
    }
    .info-list strong { font-size: 10px; }

    .links-list { grid-template-columns: 1fr; gap: 6px; }
    .site-link {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .album-list { grid-template-columns: 1fr 1fr; gap: 6px; }
    .album-link { padding: 14px 10px; font-size: 13px; min-height: 60px; }

    .content {
        width: calc(100% - 20px);
        max-height: 90vh;
        padding: 36px 22px 24px;
        border-radius: var(--radius-md);
    }

    .drawer-close { top: 12px; right: 12px; width: 34px; height: 34px; }

    .detail-icon { font-size: 36px; margin-bottom: 14px; }
    .detail-title { font-size: 26px; }
    .detail-description { font-size: 15px; margin-bottom: 22px; }
    .detail-cta { padding: 12px 20px; font-size: 14px; }

    .album-grid { columns: 2; column-gap: 8px; }
    .album-thumb { margin-bottom: 8px; border-radius: 8px; }

    .album-lightbox { padding: 12px; }
    .lb-img { max-width: 96vw; max-height: 80vh; }
    .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 16px; }
    .lb-nav { width: 42px; height: 42px; font-size: 24px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-counter { bottom: 12px; font-size: 12px; padding: 5px 12px; }

    .album-header-card h1 { font-size: 32px; }
    .album-container { padding: 24px 20px 60px; }
}

@media (max-width: 380px) {
    .profile-name { font-size: 26px; }
    .sidebar .card h3 { font-size: 20px; }
    .album-list { grid-template-columns: 1fr; }
    .album-grid { columns: 1; }
}


/* ============================================
   ЯВНЫЙ СБРОС ДЛЯ ШИРОКИХ ЭКРАНОВ
   ============================================ */
@media (min-width: 1201px) {
    /* Возвращаем 3 колонки для карточек */
    .sidebar {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px;
    }

    .sidebar .card + .card {
        padding-top: 0 !important;
        padding-left: 40px !important;
        border-top: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .sidebar .card h3 {
        font-size: 30px !important;
        padding-left: 52px !important;
        text-align: left !important;
        margin-bottom: 24px !important;
    }

    .sidebar .card h3::before {
        left: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 34px !important;
    }

    /* Возвращаем ссылки в одну колонку во всю ширину карточки */
    .links-list {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .album-list {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* === НОВОЕ: ЗАПРЕЩАЕМ ОКНУ РАСТЯГИВАТЬСЯ НА ВЕСЬ ЭКРАН === */
    .content {
        width: min(600px, calc(100% - 40px)) !important;
        max-height: 85vh !important;
        border-radius: var(--radius-lg) !important;
    }
}