@font-face {
    font-family: 'Vag-Heavy';
    src: url('/fonts/VAG\ Rounded\ Next\ Heavy.ttf') format('truetype');
}

@font-face {
    font-family: 'Vag-Bold';
    src: url('/fonts/VAG\ Rounded\ Next\ Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Vag-Medium';
    src: url('/fonts/VAG\ Rounded\ Next\ Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Vag-Regular';
    src: url('/fonts/VAG\ Rounded\ Next\ Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Vag-Thin';
    src: url('/fonts/VAG\ Rounded\ Next\ Thin.ttf') format('truetype');
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: transparent;
}

label {
    cursor: pointer;
}

:root {
    --fs-title1: clamp(5px, 2.75vw, 42px);
    --fs-title2: clamp(5px, 2.35vw, 36px);
    --fs-title3: clamp(5px, 1.8vw, 28px);
    --fs-text: clamp(5px, 1.15vw, 18px);
    --fs-nav: clamp(5px, 0.91vw, 14px);
    --fs-login: clamp(5px, 1.30vw, 20px);
    --fs-footer: clamp(5px, 0.78vw, 12px);
    --fs-nav-links: clamp(5px, 1.17vw, 18px);
    --fs-border-radius: clamp(1px, 0.65vw, 10px);
    --fs-padding: clamp(5px, 1.3vw, 20px);
    --fs-gap20: clamp(5px, 1.3vw, 20px);
    --fs-gap10: clamp(1px, 0.65vw, 10px);
    --nav-height: auto;
}



h1 {
    font-size: var(--fs-title1);
    font-family: 'Vag-Heavy';
    line-height: 1.15em;
    color: white;
    margin: 0px;
    font-weight: 400;
}

h2 {
    font-size: var(--fs-title2);
    font-family: 'Vag-Bold';
    line-height: 1.2em;
    color: white;
    margin: 0px;
    font-weight: 400;
}

h3 {
    font-size: var(--fs-title3);
    font-family: 'Vag-Medium';
    line-height: 1.25em;
    color: white;
    margin: 0px;
    font-weight: 400;
}

p {
    font-size: var(--fs-text);
    font-family: 'Vag-Regular';
    line-height: 1.4em;
    color: white;
    margin: 0px;
}



button,
.link-like-button {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    border-radius: var(--fs-border-radius);
    padding-block: clamp(1px, 0.715vw, 11px);
    padding-inline: clamp(1px, 1.17vw, 18px);
    font-size: var(--fs-nav-links);
    display: flex;
    justify-content: center;
    cursor: pointer;
    align-items: center;
    font-family: 'Vag-Bold';
    box-shadow: 0 0px clamp(10px, 1.3vw, 20px) 0px rgba(224, 11, 82, 0.5);
    background-color: rgba(224, 11, 82, 0.5);
    transform-origin: center center;
    will-change: transform;
    width: max-content;
}


button:hover,
.link-like-button:hover {
    scale: 0.95;
    box-shadow: 0 0px clamp(10px, 1.3vw, 20px) 0px rgba(224, 11, 82, 0.5) !important;
}

button:disabled:hover,
.link-like-button.disabled_a:hover {
    box-shadow: none !important;
}

button:disabled,
.link-like-button.disabled_a {
    background: rgb(97, 97, 97);
    cursor: not-allowed;
    box-shadow: none;
}

.title-and-smth {
    gap: var(--fs-gap10);
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    p {
        font-size: clamp(13.5px, 4.267vw, 36px);
    }

    h1 {
        font-size: clamp(21px, 6.667vw, 56px);
    }

    h2 {
        font-size: clamp(19px, 5.867vw, 250px);
    }

    h3 {
        font-size: clamp(16px, 5.067vw, 39px);
    }

    button,
    .link-like-button {
        padding-block: clamp(9px, 2.933vw, 23px);
        padding-inline: clamp(15px, 4.8vw, 37px);
        font-size: clamp(13.5px, 4.267vw, 36px);
    }

    :root {
        --fs-border-radius: clamp(8px, 2.67vw, 22px);
        --fs-padding: clamp(8px, 2.67vw, 22px);
        --fs-gap20: clamp(1px, 5.34vw, 100px);
        --fs-gap10: clamp(1px, 2.67vw, 10px);
        --fs-footer: clamp(1px, 2.136vw, 100px);
    }
}

body,
html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


body {
    background-color: rgb(7, 18, 32);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Pan-Regular', sans-serif;
    background-image: url('/images/background.webp');
    background-position: center;
    background-repeat: repeat;
    background-size: contain;
}


main {
    max-width: 1540px;
    margin: 0 auto;
    padding: clamp(10px, 1.95vw, 30px);
    flex: 1;
    gap: clamp(10px, 1.95vw, 30px);
    display: flex;
    flex-direction: column;
    width: 100%;
}


@media (max-width:768px) {
    main {
        gap: clamp(1px, 2.67vw, 100px);
        padding: clamp(1px, 2.67vw, 100px);
    }
}



.button-without-styles {
    background-color: transparent;
    box-shadow: none;
}

.button-without-styles:hover {
    box-shadow: none !important;
}





.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgb(78, 28, 57) 0%, rgb(78, 28, 57) 7%, rgb(28, 22, 46) 50%, rgb(78, 28, 57) 93%, rgb(78, 28, 57) 100%);
    padding: 15px 30px;
    z-index: 1500;
    text-decoration: none;
}

/* ==== Навбар левая часть ==== */

.navbar .left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .left .main-logo,
.footer-right .main-logo {
    width: clamp(1px, 12vw, 184px);
    height: clamp(1px, 3vw, 41px);
}



/* ==== Навбар центральная часть ==== */

.navbar .center {
    flex: 1;
    text-align: center;
    justify-content: center;
    gap: 40px;
    display: flex;
}

.navbar .center a {
    color: white;
    text-decoration: none;
    font-family: 'Vag-Medium', sans-serif;
    font-size: var(--fs-nav)
}

.navbar .center a span {
    position: relative;
    display: inline-block;
}

.navbar .center a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: rgb(255, 255, 255);
    transition: width 0.3s ease;
}

.navbar .center a:hover {
    color: rgb(224, 11, 82);
}

.navbar .center a:hover span::after {
    width: 100%;
    background: rgb(224, 11, 82);
}

/* ==== Навбар правая часть ==== */




/* ==== НАВБАР МОБИЛКА ==== */




/* ==== Менюшка сбоку ==== */

.side-menu {
    position: fixed;
    top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    right: -30%;
    width: 70%;
    height: 100%;
    background: linear-gradient(0deg, #0b1c36, #46153c);
    padding: 30px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0, 0.9, 0.12, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.side-menu.open {
    right: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



/* ==== Адаптив ==== */




.side-menu .close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    padding: 2px;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
}





.side-links {
    display: flex;
    flex-direction: column;
    gap: 25px;

}

.side-links a {
    color: white;
    font-family: 'Pan-Regular';
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    width: 50%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1800;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}


.overlay.active {
    opacity: 1;
    visibility: visible;
}

.navigation-links {
    display: flex;
    font-size: var(--fs-nav-links);
    font-family: 'Vag-Medium';
    color: white;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    align-items: center;
}

.navigation-links p {
    margin: 0px;
}

.navigation-links a {
    text-decoration: none;
    color: white;
}

.navigation-links a:hover {
    scale: 1.1;
}


.current-page {
    color: rgb(229, 11, 85) !important;
}

a.current-page span {
    position: relative;
    display: inline-block;
}


a.current-page span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: rgb(229, 11, 85);
}


@media (max-width: 768px) {
    a.current-page span::after {
        display: none;
    }

    .current-page {
        color: white !important;
    }

    .navigation-links {
        display: flex;
        font-size: clamp(1px, 3.738vw, 100px);
        font-family: 'Vag-Medium';
        padding-bottom: var(--fs-gap20);
    }

    .current-page {
        background-color: rgba(224, 11, 82, 0.5);
        padding-block: clamp(1px, 1.46vw, 23px);
        padding-inline: clamp(1px, 2.4vw, 37px);
        border-radius: clamp(1px, 1.335vw, 22px);
        font-weight: bold;
    }
}


/* ==== НАВБАР КОНЕЦ ==== */

















/* ФУТЕР Начало */

.footer-nav {
    margin-top: 0px;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgb(78, 28, 57) 0%, rgb(78, 28, 57) 7%, rgb(28, 22, 46) 50%, rgb(78, 28, 57) 93%, rgb(78, 28, 57) 100%);
    align-items: center;
    display: flex;
    text-decoration: none;
    padding: 15px 30px;
    justify-content: space-between;
}


.footer-left {
    display: flex;
    gap: var(--fs-gap20);
    flex: 1;
    align-items: center;
}

.footer-center p {
    font-size: var(--fs-footer);
    color: white;
    font-family: 'Vag-Thin';
    text-align: center;
    justify-self: center;
    flex: 1;
}


.social-nets-logos {
    height: clamp(1px, 3vw, 41px);
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.footer-right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}



@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .social-nets-logos {
        height: clamp(1px, 9.345vw, 200px);
        width: auto;
    }

    .footer-center {
        display: none;
    }

    .navbar .left .main-logo,
    .footer-right .main-logo {
        width: clamp(1px, 36.045vw, 400px);
        height: clamp(1px, 9.345vw, 200px);
    }

}





/* ФУТЕР КОНЕЦ */






/* НАВ МОБИЛА НАЧАЛО */


.mobile-bottom-nav {
    margin: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    width: 100%;
    background: linear-gradient(90deg, rgb(78, 28, 57) 0%, rgb(78, 28, 57) 7%, rgb(28, 22, 46) 50%, rgb(78, 28, 57) 93%, rgb(78, 28, 57) 100%);
    align-items: center;
    z-index: 1000;
    padding-inline: clamp(1px, 5.34vw, 100px);
    padding-block: clamp(1px, 2.67vw, 100px);
    justify-content: space-between;
    display: none;
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.mobile-bottom-nav h2 {
    font-size: clamp(1px, 2.136vw, 20px);
}

.mobile-bottom-nav .nav-icon {
    color: white;
    height: clamp(1px, 8.01vw, 100px);
    width: clamp(1px, 8.01vw, 100px);

}

.mobile-bottom-nav .center-nav-icon {
    color: white;
    height: clamp(1px, 9.879vw, 100px);
    width: auto;
    aspect-ratio: 690.26 / 410.81;
}

#dcote-logo-small {
    color: white;
}

#dcote-logo-small .accent {
    fill: #df0e53;
}


@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .footer-nav {
        padding-bottom: var(--nav-height, 100px);
    }
}

/* НАВ МОБИЛА КОНЕЦ */











/* Главная страница начало */

.page-dcote_main .hero {
    position: relative;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    display: flex;
    width: 100%;
}

.page-dcote_main .hero.mobile {
    display: none;
}

.page-dcote_main .hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-dcote_main .hero .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    padding-left: clamp(10px, 1.3vw, 20px);
    padding-block: clamp(10px, 1.3vw, 20px);
    z-index: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 43%;
    gap: var(--fs-gap20);
    justify-content: center;
    height: 100%;
}

.page-dcote_main .hero.mobile .hero-content {
    padding: var(--fs-padding);
    width: 100%;
    bottom: 0;
    top: unset;
    left: unset;
    justify-content: end;
    align-items: center;
    text-align: center;
}


.page-dcote_main .hero .hero-content .title {
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap10);
}

.page-dcote_main .hero .hero-content .hero-buttons {
    display: flex;
    gap: var(--fs-gap20);
}

.page-dcote_main .hero .hero-content .hero-buttons .tg-btn {
    box-shadow: 0 0px 20px 0px rgba(26, 106, 255, 0.5);
    background-color: rgba(26, 106, 255, 0.5);
}

.page-dcote_main .hero .hero-content .hero-buttons .project-btn {
    box-shadow: 0 0px 20px 0px rgba(138, 74, 210, 0.5);
    background-color: rgb(138, 74, 210, 0.5);
}

.page-dcote_main .hero .hero-content .hero-buttons .tg-btn:hover {
    box-shadow: 0 0px 20px 0px rgba(26, 106, 255, 0.5) !important;
}

.page-dcote_main .hero .hero-content .hero-buttons .project-btn:hover {
    box-shadow: 0 0px 20px 0px rgba(138, 74, 210, 0.5) !important;
}

.page-dcote_main .grid-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(10px, 1.95vw, 30px);
    align-items: center;
    width: 100%;
}

.page-dcote_main .grid-images .wrapper {
    position: relative;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    display: flex;
    width: 100%;
}

.page-dcote_main .grid-images a {
    text-decoration: none;
    transition: 0.3s;
    transform-origin: center center;
    will-change: transform;
}

.page-dcote_main .grid-images .wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-dcote_main .grid-images .wrapper .content {
    position: absolute;
    background: rgba(11, 23, 43, 0.8);
    padding: var(--fs-padding);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap10);
    align-items: center;
    height: 100%;
    width: 100%;
    text-align: center;
    transition: 0.3s;
}

.page-dcote_main .grid-images:hover a .content {
    background: rgba(11, 23, 43, 0.9);
}

.page-dcote_main .grid-images a:hover .content {
    background: rgba(15, 25, 43, 0.6);
}

.page-dcote_main .grid-images a:hover {
    scale: 1.05;
}

.page-dcote_main .grid-images .wrapper .content h3 {
    margin-top: 50%;
}



.page-dcote_main .content-line1 {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.page-dcote_main .popular {
    display: flex;
    flex: 2 2;
    flex-direction: column;
    background: linear-gradient(180deg, #df0e5431 50%, #0b172b);
    border-radius: var(--fs-border-radius);
    position: relative;
    overflow: hidden;
    padding: var(--fs-padding);
    gap: var(--fs-gap20);
}



.page-dcote_main .popular h1 {
    text-align: center;
}

.page-dcote_main .popular .pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--fs-gap20);


}

.page-dcote_main .popular .pager .content {
    display: flex;
    align-content: center;
    width: 100%;
    justify-content: center;
    gap: var(--fs-gap20);
    padding-inline: clamp(15px, 1.95vw, 30px);
}

.page-dcote_main .popular .pager .content .link-like-button.mobile {
    display: none;
}

.page-dcote_main .popular .pager .content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 1 / 1.385;
    border-radius: var(--fs-border-radius);
    width: 35%;
    overflow: hidden;
    flex-shrink: 0;
}


.page-dcote_main .popular .pager .content .text {
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap10);
    align-items: flex-start;
}

.page-dcote_main .popular .pager .content .text a {
    margin-top: auto;
}

.page-dcote_main .popular .pager .pager-btn {
    padding: clamp(1px, 0.715vw, 11px);
}



.page-dcote_main .updates {
    display: flex;
    flex: 1 1;
    background: linear-gradient(#df0e5441 50%, #0b172b);
    border-radius: var(--fs-border-radius);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    padding: var(--fs-padding);
    gap: var(--fs-gap20);
    color: white;

}

.page-dcote_main .updates .updates-news {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    gap:var(--fs-gap20);
}

.page-dcote_main .updates .updates-news .one-news-wrapper p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%
}
.page-dcote_main .updates .updates-news .one-news-wrapper a {
    text-decoration: none;
}

.page-dcote_main .updates .updates-news .one-news-wrapper p:hover {
    color:rgb(229, 11, 85)
}
.page-dcote_main .updates .updates-news h3.hot {
    color:rgb(229, 11, 85)
}

.page-dcote_main .updates .updates-news .one-news-wrapper {
    width: 100%;
}

.page-dcote_main .updates .updates-link:hover {
    color: rgb(224, 11, 82);
}


.page-dcote_main .updates .updates-link-wrapper {
    margin-top: auto;
}






.page-dcote_main .content-line3 {
    display: flex;
    overflow: hidden;
    border-radius: var(--fs-border-radius);
}

.page-dcote_main .content-line3 .about-island {
    padding: var(--fs-padding);
    background: linear-gradient(180deg, rgba(223, 14, 83, 0.3) 0%, #0B172B 100%);
    width: 62%;
    gap: var(--fs-gap10);
    display: flex;
    flex-direction: column;
}


.page-dcote_main .island-image-base {
    width: 38%;
    overflow: hidden;
    z-index: 20;
}

.page-dcote_main .island-image-base img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.25;
    display: block;
    object-fit: cover;
}









/* ========================================
   1. КОНТЕЙНЕР — content-line4
   ======================================== */
.page-dcote_main .content-line4 {
    display: flex;
    gap: 30px;
    width: 100%;
}

/* ========================================
   2. TOGGLE SWITCH (переключатель)
   ======================================== */
.toggle-switch-compact {
    position: relative;
    display: inline-block;
    width: clamp(50px, 6.5vw, 100px);
    height: clamp(12.5px, 1.625vw, 25px);
    cursor: pointer;
}

.toggle-switch-compact .toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch-compact .toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--fs-border-radius);
    transition: background 0.3s ease;
}

.toggle-switch-compact .toggle-slider::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 100%;
    background: white;
    border-radius: var(--fs-border-radius);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-switch-compact .toggle-input:checked+.toggle-slider {
    background: #e50b55;
}

.toggle-switch-compact .toggle-input:checked+.toggle-slider::before {
    transform: translateX(100%);
}

/* ========================================
   3. TOP-CLASSES (левая колонка)
   ======================================== */
.page-dcote_main .content-line4 .top-classes {
    width: 50%;
    flex: 1;
    padding: var(--fs-padding);
    background: linear-gradient(#df0e5441 50%, #0b172b);
    border-radius: var(--fs-border-radius);
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap20);
}

.page-dcote_main .content-line4 .top-classes h1 {
    text-align: center;
}

/* Спойлеры */
.page-dcote_main .content-line4 .top-classes .spoilers-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: clamp(1px, 0.65vw, 5px);
    align-items: center;
}

/* Рейтинг классов */
.page-dcote_main .content-line4 .top-classes .rating {
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap20);
}

.page-dcote_main .content-line4 .top-classes .rating .school-class {
    display: flex;
    justify-content: flex-start;
}

.page-dcote_main .content-line4 .top-classes .rating img {
    width: clamp(50px, 6.5vw, 100px);
    height: clamp(50px, 6.5vw, 100px);
    border-top-right-radius: var(--fs-border-radius);
    border-top-left-radius: var(--fs-border-radius);
    border-bottom-left-radius: var(--fs-border-radius);
    flex-shrink: 0;
}

.page-dcote_main .content-line4 .top-classes .rating .school-class .info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
}

.page-dcote_main .content-line4 .top-classes .rating .school-class .info .text {
    padding-left: clamp(1px, 0.65vw, 5px);
}

/* Очки класса */
.page-dcote_main .content-line4 .top-classes .points-bg {
    padding: clamp(1px, 0.65vw, 5px);
    border-top-right-radius: var(--fs-border-radius);
    border-bottom-right-radius: var(--fs-border-radius);
    display: flex;
    justify-content: flex-end;
    width: fit-content;
    min-width: var(--points-width, auto);
    margin-top: auto;
}

/* Кнопки классов */
.page-dcote_main .content-line4 .top-classes-buttons {
    display: flex;
    justify-content: center;
    gap: var(--fs-gap20);
}

.page-dcote_main .top-classes .top-classes-buttons .classes-button-active {
    background-color: rgb(143, 17, 68);
    border-color: rgb(143, 17, 68);
}

/* ========================================
   4. TOP-USERS (правая колонка)
   ======================================== */
.page-dcote_main .content-line4 .top-users {
    width: 50%;
    flex: 1;
    padding: var(--fs-padding);
    background: linear-gradient(#df0e5441 50%, #0b172b);
    border-radius: var(--fs-border-radius);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--fs-gap20);
}

.page-dcote_main .content-line4 .top-users h1 {
    text-align: center;
}

/* Таблица пользователей */
.page-dcote_main .top-users .users-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}



.page-dcote_main .users-table td {
    padding-block: clamp(1px, 0.65vw, 10px);
}

.page-dcote_main .users-table tr {
    height: 100%;
}

/* Иконки шахмат */
.page-dcote_main .content-line4 .top-users .users-table .chess-icon {
    width: clamp(15px, 1.95vw, 30px);
    height: clamp(15px, 1.95vw, 30px);
}

/* Аватарки */
.page-dcote_main .top-users img {
    height: clamp(1px, 3.25vw, 50px);
    width: clamp(1px, 3.25vw, 50px);
    border-radius: var(--fs-border-radius);
    display: block;
    margin: 0;
}

/* Колонки таблицы */
.page-dcote_main .top-users .rank,
.page-dcote_main .top-users .rank-head {
    text-align: left;
}

.page-dcote_main .top-users .rank {
    display: flex;
    align-items: center;
    gap: clamp(1px, 0.65vw, 5px);
    width: 100%;
    height: 100%;
    justify-content: flex-start;
}

.page-dcote_main .top-users .nickname,
.page-dcote_main .top-users .nickname-head {
    padding-left: clamp(1px, 0.65vw, 10px);
    text-align: left;
}

.page-dcote_main .top-users .status,
.page-dcote_main .top-users .status-head {
    text-align: center;
}

.page-dcote_main .top-users .rating-on-main,
.page-dcote_main .top-users .rating-on-main-head,
.page-dcote_main .top-users .rating-head {
    text-align: right;
}


.page-dcote_main .top-users .status p {
    color: white
}

/* ========================================
   5. ОБЩИЕ ЭЛЕМЕНТЫ
   ======================================== */
/* Кнопка полной статистики */
.page-dcote_main .content-line4 .full-stat {
    display: flex;
    justify-content: center;
}

/* Таблица (общие стили) */
.page-dcote_main .users-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}









.page-dcote_main .some-info {
    display: flex;
    gap: clamp(10px, 1.95vw, 30px);
    align-items: stretch;
}

.page-dcote_main .some-info .description {
    display: flex;
    flex-direction: column;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    flex: 1;
}

.page-dcote_main .some-info .description .image-wrapper {
    flex-shrink: 0;
    aspect-ratio: 1.45;
    overflow: hidden;
}

.page-dcote_main .some-info .description img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-dcote_main .some-info .description .text {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(223, 14, 83, 0.3) 0%, #0B172B 100%);
    gap: var(--fs-gap20);
    padding: var(--fs-padding);
    flex: 1;
}

.page-dcote_main .some-info .description .text h1 {
    text-align: center;
}

.page-dcote_main .tg-links {
    display: flex;
    gap: clamp(10px, 1.95vw, 30px);
    align-items: stretch;
}

.page-dcote_main .tg-links .banner {
    display: flex;
    flex-direction: column;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    flex: 1;
}

.page-dcote_main .tg-links .banner .image-wrapper {
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: 1.58;
}

.page-dcote_main .tg-links .banner .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-dcote_main .tg-links .banner .text {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(223, 14, 83, 0.3) 0%, #0B172B 100%);
    gap: var(--fs-gap20);
    padding: var(--fs-padding);
    flex: 1;
    text-align: center;
    justify-content: space-between;
}



@media (max-width: 768px) {
    .page-dcote_main .tg-links {
        flex-direction: column;
        gap: clamp(1px, 2.67vw, 100px);

    }

    .page-dcote_main .content-line3 {
        flex-direction: column-reverse;
    }

    .page-dcote_main .content-line3 .about-island {
        width: 100%;
        background: linear-gradient(180deg, rgba(223, 14, 83, 0.3) 0%, #0B172B 100%);
    }


    .page-dcote_main .island-image-base {
        width: 100%;

    }

    .page-dcote_main .some-info {
        flex-direction: column;
    }

    .page-dcote_main .content-line4 {
        flex-direction: column;
        gap: clamp(1px, 2.67vw, 100px);
    }

    .toggle-switch-compact {
        width: clamp(50px, 26.7vw, 150px);
        height: clamp(10px, 8.01vw, 100px);
    }

    .page-dcote_main .content-line4 .top-classes .spoilers-btn {
        gap: clamp(1px, 2.67vw, 100px);
    }

    .page-dcote_main .content-line4 .top-classes .rating .school-class .info .text p {
        font-size: clamp(10px, 3.204vw, 36px);
    }

    .page-dcote_main .content-line4 .top-classes .points-bg p {
        font-size: clamp(10px, 3.204vw, 36px);
    }

    .page-dcote_main .content-line4 .top-classes .points-bg {
        padding: clamp(1px, 1.335vw, 100px);
    }

    .page-dcote_main .content-line4 .top-classes .rating .school-class .info .text {
        padding-left: clamp(1px, 1.335vw, 100px);
    }

    .page-dcote_main .content-line4 .top-classes .rating img {
        width: clamp(50px, 19.491vw, 150px);
        height: clamp(50px, 19.491vw, 150px);
    }

    .page-dcote_main .top-users .status-head {
        display: none;
    }

    /* Скрыть ячейки со статусом в строках */
    .page-dcote_main .top-users .status {
        display: none;
    }

    .page-dcote_main .top-users img {
        height: clamp(1px, 13.35vw, 150px);
        width: clamp(1px, 13.35vw, 150px);
    }

    .page-dcote_main .top-users .nickname::after {
        content: attr(data-status);
        font-size: clamp(10px, 3.204vw, 36px);
        font-family: 'Vag-Regular';
        line-height: 1.4em;
        color: white;
    }

    .page-dcote_main .content-line4 .top-users .users-table .chess-icon {
        width: clamp(1px, 6.675vw, 100px);
        height: clamp(1px, 6.675vw, 100px);
    }

    .page-dcote_main .users-table td {
        padding-block: clamp(1px, 1.335vw, 100px);
    }

    .page-dcote_main .content-line4 .top-classes,
    .page-dcote_main .content-line4 .top-users {
        width: 100%;
    }

    .page-dcote_main .content-line1 {
        gap: clamp(1px, 2.67vw, 100px);
    }

    .page-dcote_main .popular .pager .content {
        flex-direction: column;
        gap: clamp(1px, 2.67vw, 100px);
        align-items: center;
        padding: 0;
    }

    .content-line1 {
        flex-direction: column;
    }

    .page-dcote_main .popular .pager .content p {
        display: none;

    }

    .page-dcote_main .popular .pager .content .text {
        align-items: center;
        gap: clamp(1px, 2.67vw, 100px);
    }

    .page-dcote_main .popular .pager .content img {
        width: 70%;
    }

    .slider-icon {
        width: clamp(1px, 10.68vw, 100px) !important;
        height: clamp(1px, 10.68vw, 100px) !important;
    }

    .page-dcote_main .popular .pager .content .link-like-button {
        display: none;
    }

    .page-dcote_main .popular .pager .content .link-like-button.mobile {
        display: block;

    }

    .page-dcote_main .popular,
    .page-dcote_main .updates {
        flex: 1 1 auto;
        width: 100%;
    }

    .page-dcote_main .updates {
        min-height: clamp(1px, 96.12vw, 1000px);
    }

    .page-dcote_main .grid-images {
        display: flex;
        overflow-x: auto;
        gap: clamp(1px, 2.67vw, 100px);
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        width: 100%;
        box-sizing: border-box;
        padding-bottom: clamp(1px, 1.335vw, 100px);
        position: relative;
        height: 100%;
    }


    .page-dcote_main .grid-images::-webkit-scrollbar {
        height: 4px;
    }

    .page-dcote_main .grid-images::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }

    .page-dcote_main .grid-images::-webkit-scrollbar-thumb {
        background: rgba(229, 11, 85, 0.5);
        border-radius: 2px;
    }

    .page-dcote_main .grid-images a {
        flex: 0 0 60%;
        width: 60%;
        max-width: 60%;
        min-width: 60%;
        flex-shrink: 0;
        scroll-snap-align: start;
    }


    .page-dcote_main .grid-images .wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .page-dcote_main .grid-images .wrapper .content h3 {
        margin-top: 40%;
    }

    .page-dcote_main .grid-images:hover a .content {
        background: rgba(11, 23, 43, 0.8);
    }

    .page-dcote_main .grid-images a:hover .content {
        background: rgba(11, 23, 43, 0.8);
    }

    .page-dcote_main .grid-images a:hover {
        scale: 0.95;
    }

    .page-dcote_main .hero {
        display: none;
    }

    .page-dcote_main .hero.mobile {
        display: block;
    }
}




/* Главная страница конец */






/* Рег, логин начало */

.page-login .auth-container,
.page-reg .auth-container {
    display: flex;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    align-self: center;
    height: 100%;
}

.page-login .auth-image,
.page-reg .auth-image {
    width: 35%;
    overflow: hidden;
    aspect-ratio: 0.75;
    z-index: 100;
}

.page-login .auth-image img,
.page-reg .auth-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 100;
    object-position: top;
    border-top-left-radius: var(--fs-border-radius);
    border-bottom-left-radius: var(--fs-border-radius);
}

.page-login .auth-form,
.page-reg .auth-form {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(90deg, #df0e5431 50%, #0b172b);
    padding: var(--fs-padding);
    z-index: 10;
}

.page-login .auth-form h1,
.page-reg .auth-form h1 {
    text-align: center;
}

.page-login .auth-form form,
.page-reg .auth-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: var(--fs-gap20);
}

.page-login .auth-form button,
.page-reg .auth-form button {
    font-family: 'Vag-Bold', sans-serif;
    font-size: var(--fs-nav-links);
}

.page-login .auth-form input,
.page-reg .auth-form .input-group input {
    background: transparent;
    border: clamp(0.01px, 0.195vw, 3px) solid rgb(229, 11, 85);
    border-radius: clamp(1px, 0.455vw, 7px);
    padding-block: clamp(1px, 0.39vw, 6px);
    padding-inline: clamp(1px, 0.975vw, 15px);
    outline: none;
    color: inherit;
    font-size: var(--fs-text);
    font-family: 'Vag-Regular';
    line-height: 1.4em;
    color: white;
    margin: 0;
    width: 65%;
}

.page-login .auth-form a,
.page-reg .auth-form a {
    text-decoration: none;
    color: rgb(229, 11, 85);
    font-family: 'Vag-Medium';
}

.page-login .input-group,
.page-reg .input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 7px;
}




.page-reg .password-title {
    display: flex;
    gap: clamp(1px, 0.65vw, 10px);
    align-items: center;
    width: 100%;
    justify-content: center;
}

.page-reg .password-title .info-icon {
    color: white;
    display: block;
    width: clamp(1px, 1.8vw, 28px);
    height: clamp(1px, 1.8vw, 28px);
    z-index: 10;

}

.page-reg .password-title .password-tooltip {
    width: max-content;
    background: linear-gradient(360deg, #0b172b, #331635);
    padding: var(--fs-padding);
    position: absolute;
    left: 100%;
    top: 0;
    pointer-events: none;
    z-index: 15;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    transform: translateX(5%);
    opacity: 0;
    visibility: hidden;
}

.page-reg .password-title .password-tooltip .tooltip-text {
    display: flex;
    flex-direction: column;
}

.page-reg .password-title .password-info:hover .password-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-reg .password-title .password-info {
    position: relative;
    cursor: pointer;
}

.page-reg .error,
.page-login .error {
    box-shadow: 0px 0px 10px 5px rgba(229, 11, 85, 0.5);
}

.page-reg .input-with-icon,
.page-login .input-with-icon {
    width: 65%;
    display: flex;
    justify-content: center;
    position: relative;
}

.page-reg .auth-form .input-with-icon input,
.page-login .auth-form .input-with-icon input {
    width: 100%;
    padding-right: clamp(1px, 3.1vw, 48px);
}

.page-reg .input-with-icon button,
.page-login .input-with-icon button {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(-150%, -50%);
}

.page-reg .input-with-icon button,
.page-login .input-with-icon button {
    border: 0px;
    padding: 0px;
}

.page-reg .input-with-icon svg,
.page-login .input-with-icon svg {
    color: rgb(229, 11, 85);
    width: clamp(1px, 1.8vw, 28px);
    height: clamp(1px, 1.8vw, 28px);
}

.page-reg .input-with-icon button:hover,
.page-login .input-with-icon button:hover {
    background: none;
}

/* Рег, логин конец */





/* 404 начало */
.page-404 .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.page-404 {
    justify-content: flex-start;
}

.page-404 .text-404 {
    font-size: clamp(5px, 42.315vw, 651px);
    line-height: 1;
    margin: 0;
    z-index: 0;
}



.page-404 .ptichka {
    width: clamp(1px, 47.32vw, 728px);
    height: clamp(1px, 44.135vw, 679px);
    display: block;
    z-index: 1;
    margin-top: calc(-0.6 * clamp(5px, 42.315vw, 651px));
}

.page-404 .desc-404 {
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap20);
    align-items: center;
}

.page-404 .desc-404 {
    z-index: 2;
    text-align: center;
    margin-top: calc(-0.15 * clamp(1px, 44.135vw, 679px));
}

.page-404 .desc-404 h2 {
    font-size: clamp(1px, 4.68vw, 72px);
}

.page-404 .desc-404 h3 {
    font-family: 'Vag-Bold';
}

/* 404 конец */






/* страница ранобе начало */
.page-ranobe_main .volumes {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.page-ranobe_main .volume-box {
    width: 25%;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    max-width: 1000px;
    flex: 1;
}

.page-ranobe_main .volume-image {
    flex-shrink: 0;
    z-index: 20;
    aspect-ratio: 7 / 10;
    position: relative;
    width: 100%;

}

.page-ranobe_main .volume-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-top-right-radius: var(--fs-border-radius);
    border-top-left-radius: var(--fs-border-radius);

}

.page-ranobe_main .volume-desc h2 {
    margin: 0px;
    text-align: center;
}

.page-ranobe_main .volume-desc p {
    margin: 0px;
}


.page-ranobe_main .volume-desc {
    background: linear-gradient(180deg, #df0e5441, #0b172b);
    color: white;
    padding: var(--fs-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1px, 0.65vw, 10px);
    justify-content: space-evenly;
}

.page-ranobe_main .zalupa {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1px, 0.65vw, 10px);
}

.page-ranobe_main .underline-line {
    height: 1px;
    background: white;
    width: 65%;
}

.page-ranobe_main .read-btn {
    font-family: 'Vag-Bold', sans-serif;
    font-size: var(--fs-nav-links);
}




.page-ranobe_main .last-line {
    display: flex;
    gap: clamp(1px, 0.325vw, 5px);
    align-items: center;
    font-size: var(--fs-text);
}


.page-ranobe_main .last-line .some-logos {
    width: 1.4em;
    height: 1.4em;
}

.page-ranobe_main .last-line .in-process {
    color: #ffb147;
}

.page-ranobe_main .last-line .completed {
    color: #64c396;
}

.page-ranobe_main .check-circle {
    fill: #64c396;
}

.page-ranobe_main .last-line .check-circle {
    width: 1.4em;
    height: 1.4em;
}







@media (max-width: 768px) {
    .volumes {
        display: flex;
        flex-direction: column;
    }

    .volume-box {
        width: auto;
    }

    .volume-desc h2 {
        font-size: 44px;
    }

    .volume-desc p {
        font-size: 16px;
    }

    .volumes {
        gap: 20px;
    }

    .read-btn {
        font-size: clamp(14px, 1.4vw, 100px);
        padding: 10px 24px;

    }
}

/* страница ранобе конец */









/* главная новостей начало */

.page-news_main .buttons-containers {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.page-news_main .base-dcote {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 12px;
    flex: 1;
    overflow: hidden;
    background: linear-gradient(#df0e5431 80%, #0b172b);
}

.page-news_main .base-dcote-image {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 20;
}

.page-news_main .image-wrapper {
    width: 100%;
    aspect-ratio: 2.8/1;
    overflow: hidden;
    border-radius: inherit;
    box-sizing: border-box;
}

.page-news_main .base-dcote-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    box-sizing: border-box;
}


.page-news_main .banner-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: var(--fs-padding);
    gap: clamp(1px, 0.65vw, 10px);
}

.page-news_main .banner-info .text {
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap20);
    align-items: center;
}


/* главная новостей конец */









/* главная илки начаол */


.page-illustrations .volumes {
    display: flex;
    justify-content: center;
    gap: 35px;
    align-items: center;
}

.page-illustrations .volume-box {
    width: 25%;
    border-radius: 10px;
    overflow: hidden;
    max-width: 1000px;
    flex: 1;
}

.page-illustrations .volume-image {
    flex-shrink: 0;
    z-index: 20;
    aspect-ratio: 7 / 10;
    position: relative;
    width: 100%;

}

.page-illustrations .volume-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

}

.page-illustrations .volume-desc h2 {
    margin: 0px;
    text-align: center;
}

.page-illustrations .volume-desc p {
    margin: 0px;
    text-align: center;
}


.page-illustrations .volume-desc {
    background: linear-gradient(180deg, #df0e5441, #0b172b);
    color: white;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    justify-content: space-evenly;
}



.page-illustrations .last-line {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: var(--fs-text);
}

/*главная илки конец */








/*страничка о школе начало*/
.page-about_school .cont-1 {
    background: linear-gradient(360deg, #0b172b, #df0e5441);
    border-radius: var(--fs-border-radius);
    padding: var(--fs-padding);
    gap: clamp(1px, 0.65vw, 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about_school h1,
.page-about_school h3 {
    text-align: center;
}







.page-about_school .dormitory {
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    display: flex;
}

.page-about_school .dormitory .desc {
    gap: clamp(1px, 0.65vw, 10px);
    display: flex;
    flex-direction: column;
    padding: var(--fs-padding);
    width: 80%;
    background: linear-gradient(360deg, #0b172b, #df0e5441);
}

.page-about_school .dormitory .image-wrapper {
    width: 30%;
}

.page-about_school .dormitory img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-top-right-radius: var(--fs-border-radius);
    border-bottom-right-radius: var(--fs-border-radius);
}


.page-about_school .cont-2,
.page-about_school .cont-3 {
    gap: var(--fs-gap20);
    display: flex;
    flex-direction: column;
    padding: var(--fs-padding);
    background: linear-gradient(360deg, #0b172b, #df0e5441);
    border-radius: var(--fs-border-radius);
}



.page-about_school .cont-2 .classroom {
    display: flex;
    gap: var(--fs-gap20);
}

.page-about_school .cont-2 .classroom .text {
    display: flex;
    flex-direction: column;
    gap: clamp(1px, 0.65vw, 10px);
}

.page-about_school .cont-2 h3 {
    text-align: left;
}

.page-about_school .cont-2 .classroom .text {
    flex: 1 1 60%;
}

.page-about_school .cont-2 .classroom .img-wrapper {
    aspect-ratio: 18/10;
    width: 40%;
    flex: 1 1 40%;
}

.page-about_school .cont-2 .classroom .img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
}

.page-about_school .reverse {
    flex-direction: row-reverse;
}


.page-about_school .cont-3 {
    align-items: center;
}





/* СЛАЙДЕР !!!!! */

.slider-wrapper {
    display: flex;
    gap: var(--fs-gap20);
}

.slider {
    width: clamp(1px, 16.575vw, 255px);
    height: clamp(1px, 22.1vw, 340px);
    overflow: hidden;
    margin: 0;
    border-radius: var(--fs-border-radius);
    background: white;
}

.slides {
    display: flex;
    transition: transform 0.4s ease-in-out;


}


.slides img {
    width: clamp(1px, 16.575vw, 255px);
    height: clamp(1px, 22.1vw, 340px);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    transform: scale(1);
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.slides img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.slider-button-wrapper {
    display: flex;
    align-items: center;

}

.slider-btn {
    background: rgb(101, 12, 48);
    border: none;
    width: clamp(1px, 4.5vw, 70px);
    height: clamp(1px, 4.5vw, 70px);
    cursor: pointer;
    z-index: 10;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.slider-btn.inactive {
    background: grey !important;
}


.slider-icon,
.close-icon,
.download-icon {
    width: clamp(1px, 2.1vw, 32px);
    height: clamp(1px, 2.1vw, 32px);
    fill: white;
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: 0.3s ease;
}

.hidden {
    display: none !important;
}

#modalImage {
    max-width: 90vw;
    max-height: 65vh;
    object-fit: contain;
    opacity: 1;
}

/* Кнопки (как раньше) */
.modal-close,
.modal-nav,
.modal-download {
    position: absolute;
    border: none;
    width: 4.5vw;
    height: 4.5vw;
    cursor: pointer;
    z-index: 10;
    border-radius: 999px;
    padding: 0;
    box-sizing: border-box;
}

.modal-close {
    top: clamp(1px, 1.95vw, 30px);
    right: calc(clamp(1px, 1.95vw, 30px) + var(--scrollbar-width, 0px));
}

.modal-nav.prev {
    left: clamp(1px, 1.95vw, 30px);
}

.modal-nav.next {
    right: calc(clamp(1px, 1.95vw, 30px) + var(--scrollbar-width, 0px));
}

.modal-download {
    left: clamp(1px, 1.95vw, 30px);
    top: clamp(1px, 1.95vw, 30px);
}


.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

/* СЛАЙДЕР КОНЕЦ !!!!! */





.page-rules .cont-1 {
    background: linear-gradient(360deg, #0b172b, #df0e5441);
    border-radius: var(--fs-border-radius);
    padding: var(--fs-padding);
    gap: clamp(1px, 1.95vw, 30px);
    display: flex;
    flex-direction: column;

}

.page-rules h1 {
    text-align: center;
}


.page-about_project .main-title {
    text-align: center;
}

.page-about_project .text-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.page-about_project .text {
    width: 80%;
    padding: var(--fs-padding);
    background: linear-gradient(270deg, #0b172b, #df0e5441);
    border-radius: var(--fs-border-radius);
    margin-left: -15%;
    /* ← половина ширины картинки */
    padding-left: calc(15% + clamp(1px, 1.3vw, 20px));
    position: relative;
    z-index: 1;
    height: clamp(1px, 29.25vw, 450px);
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap20);
}




.page-about_project .text .desc {
    display: flex;
    flex-direction: column;
    gap: var(--fs-gap10);
}

.page-about_project .text .title {
    text-align: center;
}

.page-about_project .img-wrapper {
    width: 30%;
    height: clamp(250px, 39vw, 600px);
    position: relative;
    z-index: 2;
}

.page-about_project .img-wrapper img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}





.page-about_project .text-wrapper.reverse {
    flex-direction: row-reverse;
}

.page-about_project .text-wrapper.reverse .text {
    width: 80%;
    padding: var(--fs-padding);
    border-radius: var(--fs-border-radius);
    background: linear-gradient(90deg, #0b172b, #df0e5441);
    margin-right: -15%;
    padding-right: calc(15% + clamp(1px, 1.3vw, 20px));
    position: relative;
    z-index: 1;
}


@media(max-width:768px) {

    .page-about_project .text-wrapper,
    .page-about_project .text-wrapper.reverse {
        display: flex;
        flex-direction: column;
    }

    .page-about_project .img-wrapper {
        width: 100%;
        height: clamp(100px, 80vw, 1000px);
        position: relative;
        z-index: 2;
    }

    .page-about_project .text,
    .page-about_project .text-wrapper.reverse .text {
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(223, 14, 83, 0.3) 0%, #0B172B 100%);
        border-radius: var(--fs-border-radius);
        margin-top: -50%;
        padding-top: calc(50% + var(--fs-padding));
        padding-left: var(--fs-padding);
        padding-right: var(--fs-padding);
        margin-left: unset;
        margin-right: unset;
    }
}


.page-about_project .text-wrapper.reverse .text .desc {
    text-align: end;
}

.page-about_project .text-wrapper .text .quote {
    margin-top: auto;
    text-align: right;
}

.page-about_project .text-wrapper.reverse .text .quote {
    margin-top: auto;
    text-align: left;
}







.page-anime .cont {
    display: flex;
    flex-direction: row;
    width: 85%;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    align-self: center;
}



.page-anime .cont .image-wrapper {
    width: 41%;
    object-fit: cover;
    overflow: hidden;
    z-index: 5;
}

.page-anime .cont .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1.385;
    display: block;
}

.page-anime .cont .desc {
    width: 59%;
    background: linear-gradient(270deg, #0b172b, #df0e5441);
    padding: var(--fs-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fs-gap20);
}




.page-anime .cont .desc .head {
    display: flex;
    flex-direction: column;
    gap: clamp(1px, 0.65vw, 10px);
}

.page-anime .cont .desc .info-block {
    border: clamp(0.01px, 0.195vw, 3px) solid rgb(229, 11, 85);
    border-radius: var(--fs-border-radius);
    display: flex;
    width: 67%;
}





.page-anime .cont .desc .info-block .left-column {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 1.3vw, 20px);
    padding: clamp(0px, 0.65vw, 10px);
    background-color: rgba(229, 11, 84, 0.5);
    width: 50%;
    align-items: center;

}

.page-anime .cont .desc .info-block .right-column {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 1.3vw, 20px);
    padding: clamp(0px, 0.65vw, 10px);
    width: 50%;
    align-items: center;
}

.page-anime .cont .desc .info-block .right-column .yellow {
    color: #ffb147;
}

.page-anime .cont .desc .info-block .right-column .green {
    color: #64c396;
}

.page-anime .cont .desc .button-line {
    display: flex;
    gap: clamp(15px, 1.3vw, 20px);
}

.page-anime .cont .desc .button-line.mobile {
    display: none;
}



.page-anime .cont .desc .progress-bar {
    position: relative;
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    height: clamp(1px, 1.3vw, 20px);
    border: clamp(0.01px, 0.195vw, 3px) solid rgb(229, 11, 85);
    width: 67%;
    display: flex;
    justify-content: center;
    align-self: center;
    border-radius: var(--fs-border-radius);
}


.page-anime .cont .desc .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--progress-width, 0%);
    height: 100%;
    background-color: rgba(229, 11, 84, 0.5);
    border-radius: var(--fs-border-radius);
}



@media(max-width:768px) {
    .page-anime .cont {
        flex-direction: column;
        width: 100%;
    }

    .page-anime .cont .image-wrapper,
    .page-anime .cont .desc {
        width: 100%;
        height: 100%;
    }

    .page-anime .cont .desc {
        background: linear-gradient(180deg, rgba(223, 14, 83, 0.3) 0%, #0B172B 100%);
    }

    .page-anime .cont .desc .info-block {
        display: none;
    }

    .page-anime .cont .desc .button-line {
        display: none;
    }

    .page-anime .cont .desc .button-line.mobile {
        display: flex;
    }

    .page-anime .cont .desc .progress-bar {
        height: clamp(1px, 5.34vw, 100px);
        width: 100%;
        border: clamp(0.01px, 0.8vw, 100px) solid rgb(229, 11, 85);
    }

    .page-anime .cont .desc .head {
        gap: var(--fs-gap10)
    }
}

/* ========================================
   РЕЙТИНГ - БАЗОВЫЕ СТИЛИ КНОПОК
   ======================================== */
.rating-btn-for-popup,
.rating-btn {
    border: none;
    padding: clamp(1px, 0.325vw, 5px);

}

/* ========================================
   РЕЙТИНГ - ИКОНКИ ЗВЕЗД
   ======================================== */
.rating-btn-for-popup .star-icon,
.rating-btn .star-icon,
.page-anime .star-icon {
    width: clamp(1px, 1.95vw, 30px);
    height: clamp(1px, 1.95vw, 30px);
    transition: 0.3s;
}




/* ========================================
   РЕЙТИНГ - HOVER ЭФФЕКТЫ
   ======================================== */
.rating-btn-for-popup:hover,
.rating-btn:hover {
    background: none;
}

.rating-btn-for-popup:hover .star-icon,
.rating-btn:hover .star-icon {
    color: rgb(229, 11, 85);
}

/* ========================================
   РЕЙТИНГ - АКТИВНЫЕ СОСТОЯНИЯ
   ======================================== */
.rating-btn-for-popup.active,
.rating-btn.active,
.rating-btn-for-popup.active_long {
    color: rgb(229, 11, 85);
}

/* ========================================
   РЕЙТИНГ - КОНТЕЙНЕР
   ======================================== */
.rating {
    text-align: center;
    position: relative;
}

/* ========================================
   РЕЙТИНГ - ОТОБРАЖЕНИЕ (ЗВЕЗДА + ЧИСЛО)
   ======================================== */
.rating .star-and-number {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating .star-and-number.visual {
    gap: clamp(1px, 0.325vw, 5px)
}


/* ========================================
   РЕЙТИНГ - ВСПЛЫВАЮЩЕЕ ОКНО
   ======================================== */
.rating .popup-stars {
    position: absolute;
    z-index: 2000;
    display: flex;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(360deg, #0b172b, #331635);
    padding: var(--fs-padding);
    border-radius: var(--fs-border-radius);
}

/* ========================================
   РЕЙТИНГ - КОЛОНКИ ВСПЛЫВАЮЩЕГО ОКНА
   ======================================== */
.rating .popup-stars .popup-stars-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1px, 0.325vw, 5px);
}




.page-anime .dropdown-icon {
    width: clamp(1px, 1.3vw, 20px);
    height: clamp(1px, 1.3vw, 20px);
    display: block;
    transition: 0.3s;

}

.page-anime .dropdown-btn {
    display: flex;
    gap: clamp(1px, 0.195vw, 3px);
    align-items: center;
    position: relative;
}


@media (max-width:768px) {

    .rating-btn-for-popup .star-icon,
    .rating-btn .star-icon,
    .page-anime .star-icon {
        width: clamp(1px, 8vw, 100px);
        height: clamp(1px, 8vw, 100px);
        transition: 0.3s;
    }

    .rating .star-and-number.visual {
        gap: clamp(1px, 1.335vw, 20px);
    }

    .rating .star-and-number.visual h3 {
        font-weight: bold;
    }

    .page-anime .dropdown-icon {
        width: clamp(1px, 5.34vw, 100px);
        height: clamp(1px, 5.34vw, 100px);
    }

    .page-anime .dropdown-btn {
        gap: clamp(1px, 0.8vw, 15px);
    }
}

.dropdown-list {
    position: absolute;
    transform: translateY(clamp(5px, 0.65vw, 10px));
    left: 0;
    margin: 0;
    background: linear-gradient(360deg, #0b172b, #331635);
    border-radius: var(--fs-border-radius);
    z-index: 1000;
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.dropdown-list li:hover {
    background-color: rgb(143, 17, 68);
}

.dropdown-list li {
    padding-inline: clamp(10px, 1.3vw, 20px);
    padding-block: clamp(5px, 0.65vw, 10px);
    transition: 0.3s;
    cursor: default;
    display: flex;
    justify-content: center;
}

.page-anime .dropdown-btn.active {
    background-color: rgb(143, 17, 68);
    border-color: rgb(143, 17, 68);
}


.dropdown-btn.active .dropdown-icon {
    transform: rotate(-180deg);
}





.page-anime-season .cont {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
}

.page-anime-season .cont .image-wrapper {
    width: 30%;
    object-fit: cover;
    overflow: hidden;
    z-index: 5;
}

.page-anime-season .cont .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 1.385;
    display: block;
}

.page-anime-season .cont .desc {
    width: 70%;
    background: linear-gradient(270deg, #0b172b, #df0e5441);
    padding: var(--fs-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fs-gap20);
}

.page-anime-season .cont .desc h1 {
    text-align: center;
}

.page-anime-season .cont .desc p {
    text-align: left;
}

.page-anime-season .cont .desc .low-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--fs-gap20);
    align-items: center;
    margin-top: auto;
}

.page-anime-season .cont .desc .low-buttons.mobile {
    display: none;
}





.page-anime-season .cont2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    background: linear-gradient(0deg, #0b172b, #df0e5441);
    padding: var(--fs-padding);
    align-items: center;
    gap: var(--fs-gap20);
}


.page-anime-season .cont2 .grid-area {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: var(--fs-gap20);
}



.page-anime-season .cont2 .episode-cont {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--fs-gap20);
}

.page-anime-season .cont2 .episode-cont .eye-filled {
    color: grey;
    width: clamp(1px, 1.95vw, 30px);
    height: clamp(1px, 1.95vw, 30px);
}

.page-anime-season .cont2 .episode-cont .eye-filled.mobile {
    display: none;
}

.page-anime-season .rating .popup-stars {
    right: 100%;
    bottom: 50%;
    top: unset;
    left: unset;
    transform: unset;
    transform: translateY(50%);
}


.page-anime-season .cont2 .episode-cont .card-link {
    width: 70%;
    display: flex;
    align-items: center;
    gap: var(--fs-gap20);
    text-decoration: none;
    transition: 0.3s;
    border-radius: var(--fs-border-radius);
}


.page-anime-season .cont2 .episode-cont .card-link:hover {
    box-shadow: 0 0 0 clamp(1px, 0.65vw, 10px) rgba(229, 11, 84, 0.3);
    background-color: rgba(229, 11, 84, 0.3);
}

.page-anime-season .cont2 .episode-cont .image-wrapper {
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    z-index: 5;
    width: 25%;
    flex-shrink: 0;
}

.page-anime-season .cont2 .episode-cont .card-title.mobile {
    display: none;
}

.page-anime-season .cont2 .episode-cont .image-wrapper img {
    aspect-ratio: 5/3;
    object-fit: cover;
    display: block;
    width: 100%;
}

.page-anime-season .cont2 .episode-cont .stars-and-comms {
    display: flex;
    width: 15%;
    align-items: center;
    margin-left: auto;
}

.page-anime-season .cont2 .episode-cont .stars-and-comms .first-btn {
    display: flex;
    width: 40%;
}

.page-anime-season .cont2 .episode-cont .stars-and-comms .second-btn {
    display: flex;
    width: 60%;
}

.page-anime-season .cont2 .episode-cont .second-btn {
    display: flex;
    align-items: center;
}

.page-anime-season .cont2 .episode-cont .message-btn {
    border: 0px;
    padding: clamp(1px, 0.325vw, 5px);
}

.page-anime-season .cont2 .episode-cont .message-btn:hover,
.page-anime-season .cont2 .sort-toggle {
    background: none;
}

.page-anime-season .cont2 .episode-cont .message-btn .message-icon {
    height: clamp(1px, 2.275vw, 35px);
    width: clamp(1px, 2.275vw, 35px);
}

.page-anime-season .cont2 .episodes-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    align-items: center;
}

.page-anime-season .cont2 .episodes-head h1 {
    grid-column: 2;
}

.page-anime-season .cont2 .sort-toggle {
    grid-column: 3;
    border: 0px;
    padding: 0px;
    justify-self: end;
}

.page-anime-season .cont2 .sort-toggle svg {
    width: clamp(1px, 3.5vw, 54px);
    height: clamp(1px, 3.5vw, 54px);
}

@media (max-width:768px) {
    .page-anime-season .cont {
        flex-direction: column;
    }

    .page-anime-season .cont .image-wrapper {
        width: 100%;
    }

    .page-anime-season .cont .desc {
        width: 100%;
        background: linear-gradient(180deg, rgba(223, 14, 83, 0.3) 0%, #0B172B 100%);
    }

    .page-anime-season .cont .desc .low-buttons.mobile {
        display: flex;
    }

    .page-anime-season .cont .desc .low-buttons {
        display: none;
    }

    .page-anime-season .cont2 .sort-toggle svg {
        width: clamp(1px, 9.345vw, 100px);
        height: clamp(1px, 9.345vw, 100px);
    }

    .page-anime-season .cont2 .episode-cont {
        flex-direction: column;
        gap: var(--fs-gap10);
    }

    .page-anime-season .cont2 .episode-cont .card-title {
        display: none;
    }

    .page-anime-season .cont2 .episode-cont .card-link {
        width: 100%;
        flex-direction: column;
        gap: var(--fs-gap10);
    }

    .page-anime-season .cont2 .episode-cont .image-wrapper {
        width: 100%;
    }

    .page-anime-season .cont2 .episode-cont .card-title.mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-anime-season .cont2 .episode-cont .eye-filled {
        display: none;
    }

    .page-anime-season .cont2 .episode-cont .card-link:hover {
        box-shadow: none;
        background-color: transparent;
    }

    .page-anime-season .cont2 .episode-cont .card-link:hover img {
        scale: 0.95;
        box-shadow: none;
        background-color: transparent;
    }

    .page-anime-season .cont2 .episode-cont .card-link img {
        border-radius: var(--fs-border-radius);
        transition: 0.3s;
    }

    .page-anime-season .cont2 .episode-cont .stars-and-comms {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }

    .page-anime-season .cont2 .episode-cont .stars-and-comms .first-btn {
        display: flex;
        width: auto;
    }

    .page-anime-season .cont2 .episode-cont .stars-and-comms .second-btn {
        display: flex;
        width: auto;
    }

    .page-anime-season .cont2 .episode-cont .message-btn .message-icon {
        width: clamp(1px, 8vw, 100px);
        height: clamp(1px, 8vw, 100px);
    }

    .page-anime-season .cont2 .episode-cont .eye-filled.mobile {
        display: block;
        width: clamp(1px, 8vw, 100px);
        height: clamp(1px, 8vw, 100px);
    }

    .page-anime-season .rating .popup-stars {
        left: -10%;
        top: 100%;
        bottom: unset;
        right: unset;
        transform: unset;
        transform: translateY(-150%);
    }
}





#notification-container {
    position: fixed;
    bottom: 10%;
    left: 50%;
    min-width: clamp(1px, 30vw, 462px);
    min-height: clamp(1px, 10vw, 163px);
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(1px, 0.65vw, 10px);
    pointer-events: none;
    padding: var(--fs-padding);
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    box-shadow: 0px 0px 10px 5px rgba(229, 11, 85, 0.5);
    background: linear-gradient(0deg, #0b1c36, #46153c);
    border: clamp(0.01px, 0.195vw, 3px) solid rgb(229, 11, 85);
    animation: slideUp 0.3s ease forwards;
}

#notification-container .shape-close {
    width: clamp(1px, 3.25vw, 50px);
    height: clamp(1px, 3.25vw, 50px);
    color: rgb(229, 11, 85);
    cursor: pointer;
    pointer-events: auto;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
    border: clamp(0.01px, 0.195vw, 3px) solid rgb(229, 11, 85);
    display: flex;
    align-items: center;
    justify-content: center;
}

#notification-container .shape-close svg {
    display: block;
}

#notification-container.hide {
    animation: slideDown 0.3s ease forwards;
}


@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(+20%);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(+20%);
    }
}

/* Rounded Video.js player without PiP */
video-player.dcote-player-rounded,
video-player.dcote-player-rounded video-skin {
    display: block;
    width: 100%;
    border-radius: var(--fs-border-radius);
    overflow: hidden;
}

video-player.dcote-player-rounded video-skin video {
    display: block;
    width: 100%;
    border-radius: var(--fs-border-radius);
}



.page-anime-episode .subs-and-dubs,
.page-anime-episode .episode-controls {
    display: flex;
    gap: var(--fs-gap20);
    width: 100%;
    justify-content: center;
}

.page-anime-episode .episode-controls.mobile {
    display: none;
}

.page-anime-episode .subs-and-dubs button {
    scale: 0.9;
}

.page-anime-episode .subs-and-dubs .active {
    background-color: rgb(143, 17, 68);
    border-color: rgb(143, 17, 68);
    cursor: not-allowed;
    scale: 1.05;
}

.page-anime-episode .iframe-wrapper{
    width: 100%;
    padding-inline: 10%;
}

@media (max-width:768px) {
    .page-anime-episode .episode-controls {
        display: none;
    }

    .page-anime-episode .episode-controls.mobile {
        display: flex;
    }

    .page-anime-episode .episode-controls.mobile button {
        padding: clamp(1px, 1.335vw, 100px);
    }
    .page-anime-episode .iframe-wrapper{
        padding-inline: 0%;
    }
}