/* ==========================================================
   KOSMODRIFT UI CLEANUP V18
   ========================================================== */


/* ==========================================================
   FONTS
   ========================================================== */

@font-face {
    font-family: "KDB V18 Display";

    src:
        url("../fonts/kdb-v4/Oswald-Variable.ffe9883ec811.ttf")
        format("truetype");

    font-weight: 200 700;
    font-display: swap;
}


@font-face {
    font-family: "KDB V18 Text";

    src:
        url("../fonts/kdb-v4/GolosText-Variable.caa4693f600e.ttf")
        format("truetype");

    font-weight: 100 900;
    font-display: swap;
}


/* ==========================================================
   PHOTO REPORTS
   ========================================================== */

.kdb-gallery-clean-v18__main {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


.kdb-gallery18,
.kdb-gallery18 * {
    box-sizing: border-box;
}


.kdb-gallery18 {
    --k18-cyan: #43c9f2;
    --k18-cyan-hot: #57d6fa;

    --k18-bg: #020f18;
    --k18-panel: #062332;
    --k18-panel-2: #041a26;

    --k18-line:
        rgba(72, 199, 239, .27);

    --k18-line-hot:
        rgba(72, 199, 239, .62);

    --k18-text: #f3fbfe;
    --k18-muted: #8ca9b7;


    width:
        min(
            1540px,
            calc(100% - 42px)
        );

    margin: 0 auto;

    padding:
        30px 0
        70px;

    color:
        var(--k18-text);

    font-family:
        "KDB V18 Text",
        sans-serif;
}


/* ==========================================================
   ВАЖНО:
   любые старые social-sync элементы, если какой-то старый
   JS когда-нибудь попытается вставить их ВНУТРЬ MEDIA,
   не отображаются.
   Каноническую соцсеть в общей шапке это НЕ затрагивает.
   ========================================================== */

.kdb-gallery18
[data-kdb-social-platform],

.kdb-gallery18
.social-icon,

.kdb-gallery18
.social-icon--vk,

.kdb-gallery18
a[aria-label="ВКонтакте"] {
    display: none !important;
}


/* ==========================================================
   PANELS
   ========================================================== */

.kdb-gallery18__panel {
    position: relative;

    isolation: isolate;

    overflow: hidden;

    border:
        1px solid var(--k18-line);

    background:
        linear-gradient(
            108deg,
            rgba(7, 41, 58, .98),
            rgba(4, 24, 35, .98)
        );
}


.kdb-gallery18__panel::after {
    content:
        attr(data-watermark);

    position: absolute;

    z-index: -1;

    right:
        clamp(
            18px,
            5vw,
            82px
        );

    bottom:
        -0.20em;

    color:
        rgba(72, 199, 239, .065);

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size:
        clamp(
            78px,
            11vw,
            190px
        );

    font-weight: 700;
    font-style: italic;

    line-height: .75;

    letter-spacing: -.035em;

    white-space: nowrap;

    pointer-events: none;

    user-select: none;
}


.kdb-gallery18__hero {
    min-height: 170px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        27px
        clamp(
            24px,
            4vw,
            60px
        );

    border-left:
        3px solid var(--k18-cyan);
}


.kdb-gallery18__hero-copy {
    width: fit-content;

    text-align: left;
}


.kdb-gallery18__kicker {
    display: block;

    margin-bottom: 7px;

    color:
        var(--k18-cyan);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.kdb-gallery18__hero h1,
.kdb-gallery18__intro h2 {
    margin: 0;

    color:
        var(--k18-text);

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-weight: 650;
    font-style: italic;

    line-height: .92;

    letter-spacing: -.025em;

    text-transform: uppercase;
}


.kdb-gallery18__hero h1 {
    font-size:
        clamp(
            44px,
            5vw,
            78px
        );
}


.kdb-gallery18__hero h1 strong,
.kdb-gallery18__intro h2 strong {
    color:
        var(--k18-cyan);

    font: inherit;
}


.kdb-gallery18__intro {
    min-height: 170px;

    margin-top: 15px;

    display: grid;

    grid-template-columns:
        minmax(300px, .9fr)
        minmax(340px, 1.1fr)
        auto;

    align-items: center;

    gap:
        clamp(
            24px,
            4vw,
            70px
        );

    padding:
        25px
        clamp(
            25px,
            4vw,
            54px
        );
}


.kdb-gallery18__intro h2 {
    font-size:
        clamp(
            38px,
            4vw,
            65px
        );
}


.kdb-gallery18__intro > p {
    max-width: 620px;

    margin: 0;

    color:
        var(--k18-muted);

    font-size: 13px;

    line-height: 1.65;
}


.kdb-gallery18__counter {
    min-width: 130px;

    padding-left: 28px;

    border-left:
        1px solid var(--k18-line);
}


.kdb-gallery18__counter strong {
    display: block;

    color:
        var(--k18-cyan);

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size: 54px;

    line-height: .9;
}


.kdb-gallery18__counter span {
    display: block;

    margin-top: 7px;

    color:
        var(--k18-muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .12em;
}


/* ==========================================================
   CANONICAL SKEW BUTTONS
   ========================================================== */

.kdb-gallery18__filters {
    display: flex;

    gap: 7px;

    margin:
        18px 0
        27px;

    overflow-x: auto;
}


.kdb-gallery18__filters a {
    min-width: 118px;
    min-height: 42px;

    display: inline-flex;

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

    padding:
        0 24px;

    flex: 0 0 auto;

    color:
        var(--k18-muted);

    border:
        1px solid
        rgba(72, 199, 239, .25);

    background:
        rgba(5, 32, 47, .92);

    clip-path:
        polygon(
            10px 0,
            100% 0,
            calc(100% - 10px) 100%,
            0 100%
        );

    text-decoration: none;

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size: 12px;
    font-weight: 650;
    font-style: italic;

    letter-spacing: .055em;

    transition:
        color .18s ease,
        background .18s ease,
        transform .18s ease;
}


.kdb-gallery18__filters a:hover {
    color:
        var(--k18-text);

    background:
        rgba(10, 54, 72, .98);

    transform:
        translateY(-1px);
}


.kdb-gallery18__filters a.is-active {
    color:
        #02131c;

    background:
        var(--k18-cyan);

    border-color:
        var(--k18-cyan);
}


/* ==========================================================
   SERIES
   ========================================================== */

.kdb-gallery18__series {
    margin-top: 31px;
}


.kdb-gallery18__series > header {
    min-height: 64px;

    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 13px;

    padding:
        0 5px 11px;

    border-bottom:
        1px solid var(--k18-line);
}


.kdb-gallery18__series > header small {
    color:
        var(--k18-muted);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .13em;
}


.kdb-gallery18__series > header h2 {
    margin:
        3px 0 0;

    color:
        var(--k18-text);

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size: 29px;

    font-style: italic;

    line-height: 1;

    text-transform: uppercase;
}


.kdb-gallery18__series > header h2 strong {
    color:
        var(--k18-cyan);
}


.kdb-gallery18__series > header > span {
    color:
        var(--k18-muted);

    font-size: 10px;
    font-weight: 800;
}


/* ==========================================================
   ALBUM CARDS
   ========================================================== */

.kdb-gallery18__grid {
    display: grid;

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

    gap: 13px;
}


.kdb-gallery18__album {
    position: relative;

    min-width: 0;
    min-height: 320px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    color:
        var(--k18-text) !important;

    border:
        1px solid
        rgba(72, 199, 239, .20);

    background:
        linear-gradient(
            150deg,
            rgba(7, 37, 52, .98),
            rgba(4, 23, 34, .98)
        );

    text-decoration:
        none !important;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.kdb-gallery18__album:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(72, 199, 239, .58);

    box-shadow:
        0 15px 38px
        rgba(0, 0, 0, .22);
}


.kdb-gallery18__image {
    position: relative;

    height: 220px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0a354b,
            #041b29
        );
}


.kdb-gallery18__image::after {
    content: "";

    position: absolute;

    inset:
        auto 0 0;

    height: 46%;

    pointer-events: none;

    background:
        linear-gradient(
            transparent,
            rgba(2, 15, 24, .82)
        );
}


.kdb-gallery18__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .32s ease;
}


.kdb-gallery18__album:hover
.kdb-gallery18__image img {
    transform:
        scale(1.035);
}


.kdb-gallery18__placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

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

    color:
        rgba(72, 199, 239, .38);
}


.kdb-gallery18__placeholder span {
    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size: 60px;

    font-weight: 700;
    font-style: italic;
}


.kdb-gallery18__placeholder b {
    font-size: 9px;

    letter-spacing: .16em;
}


.kdb-gallery18__photo-count {
    position: absolute;

    z-index: 2;

    right: 12px;
    bottom: 10px;

    color: #fff;

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size: 25px;
}


.kdb-gallery18__photo-count small {
    color:
        var(--k18-cyan);

    font-size: 9px;
}


.kdb-gallery18__album-body {
    padding:
        14px 44px
        17px 16px;
}


.kdb-gallery18__album-body > small {
    color:
        var(--k18-cyan);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .09em;
}


.kdb-gallery18__album-body h3 {
    margin:
        5px 0;

    color:
        var(--k18-text);

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size: 22px;

    line-height: 1.08;

    text-transform: uppercase;
}


.kdb-gallery18__album-body p {
    margin: 0;

    color:
        var(--k18-muted);

    font-size: 11px;
}


.kdb-gallery18__arrow {
    position: absolute;

    right: 14px;
    bottom: 12px;

    color:
        var(--k18-cyan);

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size: 34px;
}


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

.kdb-gallery18__empty {
    min-height: 180px;

    display: flex;

    flex-direction: column;

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

    padding: 35px;

    text-align: center;

    border:
        1px solid var(--k18-line);

    background:
        rgba(5, 30, 43, .72);
}


.kdb-gallery18__empty span {
    color:
        var(--k18-cyan);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .14em;
}


.kdb-gallery18__empty h2 {
    margin:
        6px 0;

    font-family:
        "KDB V18 Display",
        sans-serif;

    font-size:
        clamp(
            28px,
            3vw,
            45px
        );

    font-style: italic;
}


.kdb-gallery18__empty p {
    margin: 0;

    color:
        var(--k18-muted);
}


/* ==========================================================
   КАЛЕНДАРЬ — ТОЛЬКО ИНФОРМАЦИОННЫЙ БЛОК
   ========================================================== */

/*
 * Даже если старый V17-код когда-нибудь снова добавит
 * ссылку PRO / FUN, она не появится визуально.
 */

#calendar.dash-card--calendar
.dash-card__head > a {
    display: none !important;
}


/*
 * Аналогично защищаем чистые заголовки PRO / FUN.
 */

#calendar
.dual-calendar__series > header span {
    display: none !important;
}


/*
 * Никакого pointer/clickable ощущения.
 * Hover самого блока существующими стилями сохраняется.
 */

#calendar.dash-card--calendar,
#calendar
.dual-calendar,
#calendar
.dual-calendar__series {
    cursor: default !important;
}


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

@media (max-width: 1050px) {

    .kdb-gallery18__intro {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }


    .kdb-gallery18__counter {
        grid-column:
            1 / -1;

        width: fit-content;

        padding:
            12px 0 0;

        border-left: 0;

        border-top:
            1px solid
            var(--k18-line);
    }


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

}


@media (max-width: 760px) {

    .kdb-gallery18 {
        width:
            calc(100% - 20px);

        padding-top:
            14px;
    }


    .kdb-gallery18__hero {
        min-height:
            145px;

        justify-content:
            flex-start;
    }


    .kdb-gallery18__intro {
        min-height: 0;

        grid-template-columns:
            1fr;

        gap: 18px;

        padding:
            23px 20px;
    }


    .kdb-gallery18__counter {
        grid-column: auto;
    }


    .kdb-gallery18__grid {
        grid-template-columns:
            1fr;
    }


    .kdb-gallery18__filters a {
        min-width: 96px;
    }


    .kdb-gallery18__panel::after {
        font-size: 88px;
    }

}
