/* =========================================================
   СТРАНИЦА ОДНОЙ НАГРАДЫ
   ========================================================= */

.award-detail {
    padding: 38px 0 150px;
}

.award-detail__container {
    width: min(calc(100% - 80px), 1450px);
    margin: 0 auto;
}


/* =========================================================
   ЗАГОЛОВОК
   ========================================================= */

.award-detail__title {
    max-width: 1400px;
    margin: 0 auto 62px;

    color: #000000;

    font-size: clamp(46px, 4.6vw, 74px);
    font-weight: 500;
    line-height: 1.05;
    text-align: center;
}


/* =========================================================
   ОСНОВНАЯ СЕТКА
   ========================================================= */

.award-detail__layout {
    display: grid;
    grid-template-columns: minmax(390px, 540px) minmax(0, 760px);
    justify-content: center;
    gap: 70px;
    align-items: start;
}


/* =========================================================
   ГАЛЕРЕЯ
   ========================================================= */

.award-gallery {
    position: relative;

    width: 100%;
    min-width: 0;
}

.award-gallery__viewport {
    width: 100%;
    overflow: hidden;
}

.award-gallery__track {
    display: flex;
    align-items: flex-start;

    width: 100%;

    transition: transform 0.45s ease;
    will-change: transform;
}

.award-gallery__slide {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: center;

    width: 100%;
    margin: 0;
}

.award-gallery__image {
    display: block;

    width: 100%;
    height: 510px;

    object-fit: contain;
    object-position: center top;
}

.award-gallery__caption {
    max-width: 440px;
    margin-top: 14px;

    color: #666666;

    font-size: 15px;
    line-height: 1.35;
    text-align: center;
}


/* =========================================================
   СТРЕЛКИ СЛАЙДЕРА
   ========================================================= */

.award-gallery__arrow {
    position: absolute;
    top: 255px;
    z-index: 2;

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

    width: 46px;
    height: 60px;
    padding: 0;

    color: #111111;
    background: transparent;
    border: 0;

    font-family: Arial, sans-serif;
    font-size: 45px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.award-gallery__arrow:hover {
    color: #0079c8;
}

.award-gallery__arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.award-gallery__arrow:focus-visible {
    outline: 2px solid #0079c8;
    outline-offset: 2px;
}

.award-gallery__arrow--previous {
    left: -58px;
}

.award-gallery__arrow--next {
    right: -58px;
}


/* =========================================================
   СЧЁТЧИК И ТОЧКИ
   ========================================================= */

.award-gallery__counter {
    margin-top: 17px;

    color: #777777;

    font-size: 15px;
    line-height: 1;
    text-align: center;
}

.award-gallery__dots {
    display: flex;
    justify-content: center;
    gap: 9px;

    margin-top: 14px;
}

.award-gallery__dot {
    width: 9px;
    height: 9px;
    padding: 0;

    background-color: #c7c7c7;
    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        width 0.2s ease,
        background-color 0.2s ease;
}

.award-gallery__dot--active {
    width: 25px;

    background-color: #0079c8;
    border-radius: 6px;
}

.award-gallery__dot:focus-visible {
    outline: 2px solid #0079c8;
    outline-offset: 3px;
}


/* =========================================================
   ЗАГЛУШКА ПРИ ОТСУТСТВИИ ФОТОГРАФИИ
   ========================================================= */

.award-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 420px;

    color: #999999;
    background-color: #f6f6f6;

    font-size: 18px;
    text-align: center;
}


/* =========================================================
   ОПИСАНИЕ
   ========================================================= */

.award-detail__content {
    min-width: 0;
    padding-top: 2px;
}

.award-detail__description {
    color: #111111;

    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.award-detail__description > :first-child {
    margin-top: 0;
}

.award-detail__description > :last-child {
    margin-bottom: 0;
}

.award-detail__description p {
    margin: 0 0 18px;
}

.award-detail__description ul,
.award-detail__description ol {
    margin: 0 0 18px;
    padding-left: 28px;
}

.award-detail__description img {
    max-width: 100%;
    height: auto;
}

.award-detail__description a {
    color: #0079c8;
}

.award-detail__empty-description {
    margin: 0;

    color: #777777;

    font-size: 19px;
    line-height: 1.45;
}


/* =========================================================
   НЕБОЛЬШИЕ МОНИТОРЫ
   ========================================================= */

@media (max-width: 1350px) {

    .award-detail__container {
        width: min(calc(100% - 70px), 1200px);
    }

    .award-detail__layout {
        grid-template-columns: minmax(330px, 430px) minmax(0, 690px);
        gap: 55px;
    }

    .award-gallery__image {
        height: 480px;
    }

    .award-gallery__arrow {
        top: 240px;
    }

    .award-gallery__arrow--previous {
        left: -45px;
    }

    .award-gallery__arrow--next {
        right: -45px;
    }

    .award-detail__description {
        font-size: 20px;
    }
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1000px) {

    .award-detail {
        padding-top: 30px;
        padding-bottom: 120px;
    }

    .award-detail__container {
        width: calc(100% - 48px);
    }

    .award-detail__title {
        margin-bottom: 45px;

        font-size: 48px;
    }

    .award-detail__layout {
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
        gap: 38px;
    }

    .award-gallery__image {
        height: 420px;
    }

    .award-gallery__arrow {
        top: 210px;
    }

    .award-gallery__arrow--previous {
        left: -35px;
    }

    .award-gallery__arrow--next {
        right: -35px;
    }

    .award-detail__description {
        font-size: 18px;
        line-height: 1.45;
    }
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 700px) {

    .award-detail {
        padding: 22px 0 90px;
    }

    .award-detail__container {
        width: calc(100% - 30px);
    }

    .award-detail__title {
        margin-bottom: 34px;

        font-size: 34px;
        line-height: 1.08;
    }

    .award-detail__layout {
        display: flex;
        flex-direction: column;
        gap: 34px;
    }

    .award-gallery {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .award-gallery__image {
        height: min(112vw, 510px);
    }

    .award-gallery__arrow {
        top: 50%;

        width: 38px;
        height: 52px;

        font-size: 40px;
    }

    .award-gallery__arrow--previous {
        left: -8px;
    }

    .award-gallery__arrow--next {
        right: -8px;
    }

    .award-gallery__counter {
        margin-top: 14px;
    }

    .award-detail__description {
        font-size: 17px;
        line-height: 1.5;
    }

    .award-detail__description p {
        margin-bottom: 16px;
    }
}


/* =========================================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 400px) {

    .award-detail__container {
        width: calc(100% - 24px);
    }

    .award-detail__title {
        font-size: 29px;
    }

    .award-gallery__image {
        height: 116vw;
        max-height: 470px;
    }

    .award-detail__description {
        font-size: 16px;
    }
}