/* ===== Общий контейнер ===== */
.account-container {
    background: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-family: "Inter", sans-serif;
    height: 100%;
}
div#panel-account {
    margin: 200px 0 50px 0;
}
body.downloads-active nav a,
body.downloads-active nav a:visited {
    color: #6b6b6b !important;
}
body.downloads-active .language-link.active {
    color: #fff !important;
}
footer {
    display: flex;
    justify-content: center;
    align-items: center;
}
.account-panels {
    position: relative;
    width: 100%;
    height: 100%;
}
.account-panel.active {
    display: block;
}
.account-panel {
    transition: opacity 0.3s ease;
}

.account-panel.hidden {
    display: none;
}

.account-panel.active {
    display: block;
}
.back-btn {
    margin-bottom: 20px;
    font-size: 14px;
}
.center-download-page {
    background: #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 20px 140px 20px;
    position: relative;
    font-family: "Inter", sans-serif;
}
.center-download-page::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    background: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.3), #000);
}
h1, h2, h3, h4, h5, h6, a, p, span, label, button {
    font-family: Open Sans;
}
.logo-svg {
    display: none;
}

.logo-img {
    display: block;
}

/* Когда открыт центр загрузок — наоборот */
body.downloads-open .logo-img {
    display: none;
}

body.downloads-open .logo-svg {
    display: block;
}

h2 {
    color: #6b6b6b;
    font-size: 40px;
    font-weight: normal;
}
h2.active {
    color: #6b6b6b;
    font-size: 40px;
    font-weight: bold;
    border-bottom: 2px solid #7eb02e;
}
body.downloads-open .content::after {
    display: none;
}
.content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,0.3), #000);
    z-index: 10000;
}
#panel-downloads.active .content::after {
    display: none;
}
/* ===== Блок ЛК ===== */
.account-page {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    width: 420px;
    text-align: center;
}
.profile-box {
    display: flex;
    /* align-items: center; */
    gap: 15px;
    flex-direction: row;
}
.avatar {
    padding: 20px;
}
.profile-info p {
    font-size: 30px;
    color: #6b6b6b;
    font-weight: 100;
    line-height: 40px;
}
.auth-forms {
    width: 450px;
    text-align: left;
    transition: all 0.3s ease;
    margin-top: 200px;
    margin-bottom: 50px;
}

.form-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.form-header h2 {
    margin: 0;
    cursor: pointer;
}

.form-header a {
    text-decoration: none;
}

.form-box {
    display: none;
}

.form-box.active {
    display: block;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    max-width: 500px;
    height: 50px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    font-family: Open Sans;
}

.form-group input:focus {
    border-color: #7EB02E;
    outline: none;
}

.error {
    color: red;
    font-size: 13px;
}

/* ===== Кнопки ===== */
button.submit-btn {
    display: block;
    background: #7EB02E;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px;
    width: 100%;
    max-width: 400px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}
.access-denied {
    font-size: 24px;
    font-weight: 500;
    color: #6b6b6b;
    font-family: Open Sans;
}
button.submit-btn:hover {
    background: #6aa326;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.downloads-layout {
    display: flex;
    gap: 30px;
}

.categories-menu {
    width: 700px;
    height: 100%;
    flex-shrink: 0;
    background: #fff;
    transform: translateX(-460px);
    position: absolute;
}

.categories-menu ul {
    list-style: none;
    padding: 0;
    margin: 200px 0 0 0;
}

.categories-menu li {
    margin-bottom: 8px;
}

.category-btn {
    padding: 12px;
    background: none;
    border: none;
    font-size: 18px;
    margin-left: 450px;
    cursor: pointer;
    color: #6b6b6b;
}
.category-indicator {
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}
.category-btn .category-indicator {
    opacity: 0;
    position: absolute;
    transform: translateX(-10000px);
}
.category-btn.active {
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-content: center;
}
.category-btn.active .category-indicator {
    opacity: 1;
    position: absolute;
    transform: translateX(211px);
}
.files-content {
    flex: 1;
    margin-top: 200px;
    margin-bottom: 50px;
    margin-left: 300px;
}
.container {
    max-width: 1400px;
    width: 100%;
}
.content {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #e8e8e8;
    min-height: 560px;
}
.category-files {
    display: none;
}

.category-files.active-category {
    display: block;
}
.files-content ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.files-content ul li {
    font-size: 18px;
    color: #6b6b6b;
    font-weight: 100;
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 20px 0 20px 0;
    border-bottom: 0.5px solid #6b6b6b;
    align-items: center;
}
.files-content ul li a {
    color: #fff;
    background: #7EB02E;
    width: 150px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}
button#button-siglog {
    width: 400px;
    height: 50px;
    color: white;
    background: #7eb02e;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    margin: 15px;
    text-transform: uppercase;
    cursor: pointer;
}
button#button-siglog:hover {
    background: #77a927;
}
.links.active {
    z-index: 100000;
}
body.downloads-open.downloads-active.active-nav .nav-mobile-wrapper.new-stile-white.active {
    background: #e8e8e8;
}
@media only screen and (max-width: 1400px) {
    .account-panels {
        padding: 0 20px;
    }
    .nav-mobile-wrapper > .content {
        z-index: 10000000;
    }
    .content::after {
        z-index: 1000;
    }
    .nav-mobile-wrapper.new-stile-white.active .content {
        background: none;
    }
}
/* ===== Адаптивность Центра загрузок ===== */
@media only screen and (max-width: 768px) {
    .downloads-layout {
        flex-direction: column;
        gap: 0;
        position: relative;
    }

    .categories-menu {
        position: relative;
        width: 100%;
        transform: none;
        background: none;
        margin-top: 100px;
    }

    .categories-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .categories-menu li {
        margin: 5px;
    }

    .category-btn {
        margin: 0;
        font-size: 16px;
        background: #fff;
        border-radius: 8px;
        padding: 10px 16px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .category-btn.active {
        background: #7EB02E;
        color: #fff;
        font-weight: 600;
    }

    .category-btn .category-indicator {
        display: none;
    }

    .files-content {
        margin: 20px 0 100px 0;
        padding: 0 15px;
    }

    .files-content ul li {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 15px 0;
        gap: 20px;
    }

    .files-content ul li a {
        width: 100%;
        max-width: 100%;
        height: 45px;
        font-size: 15px;
        border-radius: 8px;
    }

    .files-content p {
        font-size: 14px;
    }
    .profile-info p {
        font-size: 20px;
        line-height: 28px;
    }

    .avatar svg {
        width: 100px;
        height: 100px;
    }

    .account-container {
        padding: 20px 10px;
    }
}

/* Ещё компактнее (мобильные устройства до 480px) */
@media only screen and (max-width: 480px) {
    h2 {
        font-size: 26px;
    }

    .category-btn {
        font-size: 14px;
        padding: 8px 12px;
    }

    .files-content ul li {
        font-size: 16px;
    }

    .files-content ul li a {
        font-size: 14px;
        height: 42px;
    }
    .profile-box {
        display: flex;
        flex-direction: column;
    }
}

/* Минимальные устройства до 350px */
@media only screen and (max-width: 350px) {
    .category-btn {
        font-size: 13px;
        padding: 6px 10px;
    }

    .files-content ul li {
        font-size: 14px;
    }

    .files-content ul li a {
        font-size: 13px;
        height: 38px;
    }
    .files-content p {
        font-size: 12px;
    }
}
