* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    position: relative;
    background: #111111;
    overflow: hidden;
}
.dark-window {
    position: absolute;
    top: 32px;
    left: 32px;
    max-width: 380px;
    width: calc(100% - 64px);
    background: #000000ab;
    border-radius: 32px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    padding: 28px 26px 32px 26px;
    transition: all 0.2s ease;
    z-index: 10;
}
.logo-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 28px;
}
.logo {
    width: 140px;
    height: 70px;
    background: #11171f;
    border-radius: 22px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    overflow: hidden;
}
.logo img{
    object-fit: cover;
    width: 100%
}
.logo-inner span {
    font-size: 32px;
    font-weight: 450;
    background: none;
    color: #ceddf5;
    -webkit-background-clip: unset;
    background-clip: unset;
}
.title-block {
    margin-bottom: 32px;
}
.main-title {
    font-size: 28px;
    font-weight: 560;
    letter-spacing: -0.3px;
    color: #f0f3f8;
    margin-bottom: 6px;
    line-height: 1.2;
}
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.resource-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #11171fa3;
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 60px;
    padding: 12px 20px 12px 20px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
}
.resource-link:hover {
    background: #1a222c;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}
.resource-link:active {
    transform: scale(0.98);
}
.res-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.res-icon {
    width: 42px;
    height: 42px;
    background: #0e141c;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: 0.2s;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}
.resource-link:hover .res-icon {
    background: #18222e;
}
.res-info {
    display: flex;
    flex-direction: column;
}
.res-name {
    font-size: 17px;
    font-weight: 510;
    color: #ecf2f9;
    letter-spacing: -0.2px;
}
.res-desc {
    font-size: 11px;
    color: #7e8ea3;
    margin-top: 2px;
}
.res-arrow {
    color: #5c6e85;
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.2s, color 0.2s;
}

.resource-link:hover .res-arrow {
    color: #a9bedb;
    transform: translateX(3px);
}
    @media (max-width: 550px) {
    body {
        padding: 0;
        min-height: 80%;
    }
    .dark-window {
        top: 20px;
        left: 20px;
        width: calc(100% - 40px);
        max-width: 340px;
        padding: 22px 20px 26px 20px;
    }
    .logo {
        width: 110px;
        height: 55px;
    }
    .logo-inner {
        font-size: 22px;
    }
    .logo-inner span {
        font-size: 26px;
    }
    .main-title {
        font-size: 24px;
    }
}

@media (max-width: 420px) {
    .dark-window {
        top: 16px;
        left: 16px;
        width: calc(100% - 32px);
        padding: 20px 18px 24px 18px;
    }
    .res-name {
        font-size: 15px;
    }
    .res-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}


/* Оверлей только для предпросмотра */
.image-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    cursor: zoom-in;
    will-change: transform;
}

.image-preview-img.zoomed {
    cursor: zoom-out;
}

/* Кнопка закрытия */
.image-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 100;
}

.image-preview-close:hover {
    background: rgba(255,255,255,0.3);
}

.image-preview-close::before,
.image-preview-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
}

.image-preview-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.image-preview-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Индикатор масштаба */
.image-preview-zoom-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-family: system-ui, sans-serif;
    pointer-events: none;
    z-index: 100000;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .image-preview-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    .image-preview-zoom-info {
        font-size: 11px;
        bottom: 15px;
    }
}