.auth-form a,.download-btn,.modal>.title,.notify div,.program-card,.site-footer {
    text-align: center
}

body {
    margin: 0;
    font-family: Arial,sans-serif;
    background: #161616;
    color: #fff
}

a {
    text-decoration: none;
    color: inherit
}

* {
    box-sizing: border-box
}

.container,.site-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 20px
}

.site-header {
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 1001;
    height: 60px;
    display: flex;
    margin: 5px 23px 0;
    align-items: center;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid #212020
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.bottom-row,.top-row {
    display: flex;
    align-items: center;
    gap: 10px
}

.bottom-row {
    justify-content: space-between;
    flex-wrap: wrap
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: color .2s
}

.download-btn,.lang-option,.login-btn,.sidebar a {
    transition: background .2s
}

.logo:hover {
    color: #8d8d8d
}

.search input {
    background: #222;
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    color: #fff;
    width: 200px
}

.auth-form input:focus,.search input:focus {
    outline: #444 solid 1px
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap
}

.download-btn,.login-btn {
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700
}

.login-btn {
    background: #007bff;
    padding: 6px 14px
}

.auth-form a:hover,.download-btn:hover,.login-btn:hover {
    background: #0062cc
}

.download-btn {
    display: block;
    padding: 10px 20px;
    width: 120px;
    border-radius: 8px;
    background: #007bff
}

.menu-toggle,.sidebar a:hover {
    background: #333;
    color: #fff
}

.menu-toggle {
    display: none;
    border: none;
    font-size: 22px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px
}

.content,.sidebar {
    background: #1a1a1a
}

.sidebar {
    width: 240px;
    padding: 20px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #212020
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.sidebar li {
    margin-bottom: 10px
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #ddd;
    border-radius: 6px
}

.main-container {
    display: flex;
    padding: 20px;
    gap: 20px
}

.content {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #212020
}

.content-block {
    width: 100%
}

.site-footer {
    margin-top: 20px;
    color: #777
}

.overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.6);
    z-index: 1001
}

.notify {
    position: fixed;
    right: 5px;
    top: 5px;
    z-index: 999999999999999999999999999999999999
}

.notify div {
    margin: 1px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    overflow: hidden
}

.notify div a {
    padding-left: 10px;
    vertical-align: middle
}

.notify div.success {
    background: #3c624a;
    border: 1px solid #547348;
    color: #cbffd8
}

.notify div.error {
    background: #573c46;
    border: 1px solid #734857;
    color: #fad8f1
}

.notify div.info {
    background: #d9edf7;
    border: 1px solid #bce8f1;
    color: #3a87ad
}

.notify div.warn {
    background: #fcf8e3;
    border: 1px solid #fbeed5;
    color: #c09853
}

.lang-selector {
    position: relative;
    width: 180px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    user-select: none
}

.lang-selected {
    padding: 10px 14px;
    border-radius: 12px
}

.lang-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 4px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    list-style: none;
    padding: 0
}

.modal-container,.modal-overlay {
    position: fixed;
    width: 100%;
    height: 100%
}

.lang-option {
    padding: 10px 14px
}

.lang-option:hover {
    background: #222
}

.programs {
    margin-top: 10px
}

.programs h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px
}

.programs h2 span {
    color: #aaa;
    font-weight: 400
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 20px
}

.program-card {
    background: #1e1e1e;
    border: 1px solid #212020;
    border-radius: 14px;
    padding: 20px;
    transition: transform .2s,box-shadow .2s
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,.5)
}

.program-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px
}

.program-card h3 {
    margin: 0;
    font-size: 18px;
    color: #fff
}

.program-card .version {
    font-size: 14px;
    color: #aaa;
    margin: 6px 0
}

.program-card .category {
    font-size: 13px;
    color: #6f6f6f
}

.program-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px
}

.program-header img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #212020;
    background: #1e1e1e
}

.program-header .info {
    flex: 1
}

.program-header h1 {
    margin: 0 0 10px;
    font-size: 28px
}

.program-header .version {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px
}

.program-header .categorys {
    display: inline-flex
}

.program-header .category {
    font-size: 13px;
    color: #6f6f6f;
    margin-bottom: 15px;
    border: 1px solid;
    border-radius: 10px;
    padding: 3px
}

.program-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #ccc
}

.gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px
}

.gallery img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .2s
}

.gallery img:hover {
    transform: scale(1.05)
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
    justify-content: center;
    align-items: center;
    z-index: 10000
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px
}

.lightbox .close,.lightbox .next,.lightbox .prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    border-radius: 6px;
    background: rgba(0,0,0,.5)
}

.lightbox .close {
    top: 20px;
    right: 20px;
    transform: none;
    font-size: 30px
}

.lightbox .prev {
    left: 20px
}

.lightbox .next {
    right: 20px
}

.auth-wrapper {
    display: flex;
    justify-content: center
}

.auth-container {
    background: #1a1a1a;
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid #212020;
    width: 100%;
    max-width: 400px
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.auth-form input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    font-size: 14px
}

.auth-form a {
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: background .2s
}

@media (max-width: 992px) {
    .menu-toggle,.overlay.active {
        display:block
    }

    .header-container {
        flex-direction: column;
        gap: 8px
    }

    .bottom-row,.top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 60px
    }

    .search {
        flex: 1;
        min-width: 0
    }

    .search input {
        width: 100%;
        max-width: 100%
    }

    .header-right {
        gap: 10px;
        justify-content: flex-end;
        min-width: 0
    }

    .lang-selector {
        flex-shrink: 0;
        width: auto
    }

    .main-container {
        flex-direction: column;
        padding: 10px
    }

    .sidebar {
        position: fixed;
        top: 60px;
        left: -500px;
        width: 240px;
        height: calc(100vh - 60px);
        transition: left .3s ease-in-out;
        z-index: 1002;
        border-radius: 0 10px 10px 0
    }

    .site-header {
        height: 120px;
        border: 0
    }

    .sidebar.open {
        left: 0;
        border-top: 0;
        border-radius: 0
    }

    .content {
        margin-left: 0;
        border-radius: 10px
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding:20px
    }

    .auth-form input {
        font-size: 13px
    }
}

@media(max-width: 768px) {
    .program-header {
        flex-direction:column;
        align-items: flex-start
    }

    .gallery img {
        width: 150px;
        height: 90px
    }
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #1e1e1e;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,.5)
}

.pagination a,.pagination span {
    color: #f5f5f5;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: .2s ease-in-out
}

.pagination a:hover {
    background-color: #2c2c2c
}

.pagination .current {
    background-color: #007bff;
    color: #fff;
    font-weight: 700
}

.pagination .next,.pagination .prev {
    font-weight: 500;
    color: #aaa
}

.pagination .next:hover,.pagination .prev:hover {
    color: #fff
}

a.red {
    background: red
}

a.red:hover {
    background: #9d0202
}

.modal-container {
    overflow: auto;
    z-index: 9999999999999;
    left: 0;
    top: 0
}

.modal-overlay {
    background: rgb(0 0 0 / .5)
}

.modal-container .modal-table {
    width: 100%;
    height: 100%;
    display: table
}

.modal-container .modal-cell {
    display: table-cell;
    text-align: center;
    vertical-align: middle
}

.modal {
    display: inline-block;
    position: relative;
    padding: 30px 0;
    width: 400px;
}

.modal .content {
    border-radius: 0 0 10px 10px;
    border: 1px solid #333
}

.modal>.title {
    padding: 10px;
    background: #242425;
    font-weight: 700;
    text-shadow: 0 2px 2px rgb(0 0 0 / .5);
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid #333;
    border-radius: 5px 5px 0 0
}

.modal .close {
    top: 44px;
    right: 14px;
    opacity: .6;
    font-size: 14px;
    position: absolute;
    transition: opacity .2s
}

.logo img {
    width: 225px;
    transition: transform 0.2s;
}
.logo img:hover {
    transform: scale(1.05);
}