/* =========================================================
   AWARDS PAGE
========================================================= */

.awards-page {
    min-height: calc(100vh - 90px);
    padding: 55px 0 90px;

    background:
        radial-gradient(
            circle at 5% 15%,
            rgba(102, 72, 245, .10),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 80%,
            rgba(102, 72, 245, .08),
            transparent 25%
        ),
        #f7f6ff;

    transition:
        background .3s ease,
        color .3s ease;
}


/* =========================================================
   TITLE
========================================================= */

.awards-title {
    margin-bottom: 38px;
}

.awards-back {
    display: inline-flex;

    margin-bottom: 25px;

    color: #5c43eb;

    text-decoration: none;

    font-weight: 700;

    transition:
        transform .2s ease,
        color .2s ease;
}

.awards-back:hover {
    transform: translateX(-4px);
    color: #452ed0;
}


.awards-title-row {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;
}


.awards-label {
    display: block;

    margin-bottom: 10px;

    color: #6548f4;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 4px;
}


.awards-title h1 {
    margin: 0;

    color: #15265f;

    font-size:
        clamp(38px, 5vw, 58px);

    line-height: 1.05;

    font-weight: 900;
}


.awards-title p {
    margin: 13px 0 0;

    color: #7280a4;

    font-size: 16px;

    line-height: 1.6;
}


/* =========================================================
   COUNTER
========================================================= */

.awards-count {
    min-width: 120px;

    padding: 14px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e4dfff;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(69, 52, 170, .08);

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


.awards-count strong {
    display: block;

    color: #5d43eb;

    font-size: 27px;

    font-weight: 900;
}


.awards-count span {
    display: block;

    margin-top: 2px;

    color: #8a94b0;

    font-size: 12px;
}



/* =========================================================
   AWARDS SECTION
========================================================= */

.awards-section {
    padding: 30px;

    background: rgba(255,255,255,.72);

    border: 1px solid #e4dfff;

    border-radius: 26px;

    box-shadow:
        0 18px 45px rgba(55, 43, 150, .07);

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


/* =========================================================
   GRID — КАК В МАГАЗИНЕ
========================================================= */

.awards-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}



/* =========================================================
   EMPTY
========================================================= */

.awards-empty {
    grid-column: 1 / -1;

    min-height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 40px;

    text-align: center;
}


.empty-icon {
    width: 76px;
    height: 76px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 18px;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #6246ee,
            #8a6cff
        );

    box-shadow:
        0 14px 30px rgba(91, 67, 237, .22);

    font-size: 32px;
}


.awards-empty h2 {
    margin: 0;

    color: #17285f;

    font-size: 25px;
}


.awards-empty p {
    max-width: 560px;

    margin: 10px 0 0;

    color: #7b87a7;

    line-height: 1.7;
}



/* =========================================================
   STORE CARD
========================================================= */

.award-card {
    position: relative;

    overflow: hidden;

    min-height: 400px;

    padding: 0 0 22px;

    background: #ffffff;

    border: 1px solid #e4dfff;

    border-radius: 22px;

    box-shadow:
        0 10px 28px rgba(60, 45, 150, .07);

    opacity: 0;

    transform: translateY(18px);

    transition:
        opacity .45s ease,
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.award-card-visible {
    opacity: 1;

    transform: translateY(0);
}


.award-card:hover {
    transform: translateY(-8px);

    border-color: #c5b9ff;

    box-shadow:
        0 22px 45px rgba(70, 50, 170, .16);
}



/* =========================================================
   БОЛЬШОЕ ПРЕВЬЮ
========================================================= */

.award-preview {
    position: relative;

    height: 225px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #eeeaff 0%,
            #faf9ff 48%,
            #e4deff 100%
        );
}


.award-preview::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background:
        rgba(106, 77, 240, .12);

    top: -80px;
    right: -55px;
}


.award-preview::after {
    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background:
        rgba(106, 77, 240, .08);

    bottom: -75px;
    left: -55px;
}



/* =========================================================
   ДОКУМЕНТ В ПРЕВЬЮ
========================================================= */

.award-preview-icon {
    position: relative;

    z-index: 2;

    width: 105px;
    height: 130px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f0edff
        );

    border: 1px solid #ddd6ff;

    box-shadow:
        0 18px 35px rgba(65, 45, 160, .18);

    font-size: 46px;

    transform: rotate(-3deg);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.award-card:hover
.award-preview-icon {
    transform:
        rotate(0deg)
        scale(1.07);

    box-shadow:
        0 22px 40px rgba(65, 45, 160, .23);
}



/* =========================================================
   ТИП НАГРАДЫ
========================================================= */

.award-card-type {
    display: inline-flex;

    margin:
        20px 22px 8px;

    padding:
        7px 12px;

    border-radius: 30px;

    background:
        #eeeaff;

    color:
        #6044ed;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        .7px;

    text-transform:
        uppercase;
}



/* =========================================================
   НАЗВАНИЕ
========================================================= */

.award-card-title {
    margin:
        0 22px;

    min-height:
        55px;

    color:
        #17285f;

    font-size:
        19px;

    line-height:
        1.4;

    font-weight:
        800;
}



/* =========================================================
   ДАТА
========================================================= */

.award-card-date {
    margin:
        14px 22px;

    color:
        #8993ae;

    font-size:
        13px;
}


.award-card-date span {
    color:
        #6045eb;

    font-weight:
        800;
}



/* =========================================================
   НИЖНЯЯ ЧАСТЬ
========================================================= */

.award-card-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin:
        18px 22px 0;

    padding-top:
        15px;

    border-top:
        1px solid #ece9fa;
}


.award-status {
    display: flex;

    align-items: center;

    gap: 8px;

    color:
        #6f7b9d;

    font-size:
        12px;

    font-weight:
        700;
}


.status-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        #2bc875;

    box-shadow:
        0 0 0 4px
        rgba(43,200,117,.12);
}



/* =========================================================
   FOOTER LINKS
========================================================= */

footer a {
    color: inherit;

    text-decoration: none;
}


footer a:hover {
    color: #6548f4;
}



/* =========================================================
   DARK THEME
========================================================= */

html.dark,
body.dark,
body.dark-theme {

    color-scheme: dark;
}


body.dark .awards-page,
body.dark-theme .awards-page {

    background:
        radial-gradient(
            circle at 5% 15%,
            rgba(102, 72, 245, .13),
            transparent 25%
        ),
        radial-gradient(
            circle at 95% 80%,
            rgba(102, 72, 245, .10),
            transparent 25%
        ),
        #0d0b1b;
}


body.dark .awards-back,
body.dark-theme .awards-back {
    color: #9a86ff;
}


body.dark .awards-label,
body.dark-theme .awards-label {
    color: #927cff;
}


body.dark .awards-title h1,
body.dark-theme .awards-title h1 {
    color: #ffffff;
}


body.dark .awards-title p,
body.dark-theme .awards-title p {
    color: #a5acce;
}


body.dark .awards-count,
body.dark-theme .awards-count {

    background:
        #191632;

    border-color:
        #302958;

    box-shadow:
        0 12px 30px rgba(0,0,0,.2);
}


body.dark .awards-count strong,
body.dark-theme .awards-count strong {
    color: #9a86ff;
}


body.dark .awards-count span,
body.dark-theme .awards-count span {
    color: #9ca5c4;
}



/* =========================================================
   DARK — SECTION
========================================================= */

body.dark .awards-section,
body.dark-theme .awards-section {

    background:
        rgba(23,20,48,.88);

    border-color:
        #302958;

    box-shadow:
        0 20px 45px rgba(0,0,0,.22);
}



/* =========================================================
   DARK — EMPTY
========================================================= */

body.dark .awards-empty h2,
body.dark-theme .awards-empty h2 {
    color: #ffffff;
}


body.dark .awards-empty p,
body.dark-theme .awards-empty p {
    color: #9fa7c4;
}



/* =========================================================
   DARK — CARD
========================================================= */

body.dark .award-card,
body.dark-theme .award-card {

    background:
        #191632;

    border-color:
        #302958;

    box-shadow:
        0 15px 35px rgba(0,0,0,.25);
}


body.dark .award-card:hover,
body.dark-theme .award-card:hover {

    border-color:
        #6553a5;

    box-shadow:
        0 22px 45px rgba(0,0,0,.35);
}



/* =========================================================
   DARK — PREVIEW
========================================================= */

body.dark .award-preview,
body.dark-theme .award-preview {

    background:
        linear-gradient(
            145deg,
            #27204b,
            #191632,
            #30265b
        );
}


body.dark .award-preview::before,
body.dark-theme .award-preview::before {
    background:
        rgba(122,96,255,.15);
}


body.dark .award-preview::after,
body.dark-theme .award-preview::after {
    background:
        rgba(122,96,255,.10);
}


body.dark .award-preview-icon,
body.dark-theme .award-preview-icon {

    background:
        linear-gradient(
            145deg,
            #302952,
            #1b1835
        );

    border-color:
        #494078;

    box-shadow:
        0 18px 35px rgba(0,0,0,.3);
}



/* =========================================================
   DARK — CARD TEXT
========================================================= */

body.dark .award-card-type,
body.dark-theme .award-card-type {

    background:
        #29224d;

    color:
        #a08cff;
}


body.dark .award-card-title,
body.dark-theme .award-card-title {
    color:
        #ffffff;
}


body.dark .award-card-date,
body.dark-theme .award-card-date {
    color:
        #969fbd;
}


body.dark .award-card-date span,
body.dark-theme .award-card-date span {
    color:
        #9a86ff;
}


body.dark .award-card-footer,
body.dark-theme .award-card-footer {

    border-color:
        #332d55;
}


body.dark .award-status,
body.dark-theme .award-status {
    color:
        #aaa6c9;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .awards-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .awards-page {
        padding:
            40px 0 60px;
    }


    .awards-title-row {

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .awards-count {

        width:
            100%;

        box-sizing:
            border-box;
    }


    .awards-section {

        padding:
            18px;

        border-radius:
            20px;
    }


    .awards-grid {

        grid-template-columns:
            1fr;

        gap:
            18px;
    }


    .awards-empty {

        min-height:
            250px;

        padding:
            30px 15px;
    }

}


@media (max-width: 480px) {

    .awards-title h1 {
        font-size:
            34px;
    }


    .awards-title p {
        font-size:
            14px;
    }


    .awards-section {
        padding:
            12px;
    }


    .award-preview {
        height:
            205px;
    }


    .award-card {
        min-height:
            370px;
    }

}


/* ==========================================
   УВЕЛИЧЕНИЕ ИЗОБРАЖЕНИЙ НАГРАД
========================================== */

.award-preview img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.award-preview img:hover {
    transform: scale(1.04);
}


/* Затемнённый фон */

#awardImageModal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    background: rgba(8, 5, 25, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

#awardImageModal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Контейнер изображения */

.award-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    max-width: 95vw;
    max-height: 90vh;

    transform: scale(0.85);

    transition: transform 0.3s ease;
}

#awardImageModal.active .award-modal-content {
    transform: scale(1);
}


/* Большое изображение */

.award-modal-image {
    display: block;

    max-width: 90vw;
    max-height: 80vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 14px;

    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.5);
}


/* Название */

.award-modal-title {
    color: white;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}


/* Кнопка закрытия */

.award-modal-close {
    position: absolute;

    top: 22px;
    right: 30px;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    color: white;
    font-size: 32px;

    cursor: pointer;

    transition: 0.25s ease;
}

.award-modal-close:hover {
    background: #7047ff;
    transform: rotate(90deg);
}


/* Мобильная адаптация */

@media (max-width: 600px) {

    #awardImageModal {
        padding: 15px;
    }

    .award-modal-image {
        max-width: 94vw;
        max-height: 75vh;
    }

    .award-modal-close {
        top: 12px;
        right: 12px;
    }

}
