* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

body {
    background: #000;
}

/*
====================================================
СТРАНИЦА
====================================================
*/

.page {
    width: 100vw;
    height: 100vh;
    height: 100dvh;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: #000;

    padding: 20px 10%;
}

/*
====================================================
ВЕРХНЯЯ ПАНЕЛЬ
====================================================
*/

.top-bar {
    position: relative;

    width: 100%;
    height: 80px;

    flex-shrink: 0;

    display: flex;
    align-items: center;

    z-index: 20;
}

/*
====================================================
ЛОГОТИП
====================================================
*/

.logo {
    width: 80px;
    height: 80px;

    object-fit: contain;

    display: block;

    flex-shrink: 0;

    user-select: none;
    -webkit-user-drag: none;
}

/*
====================================================
ЛОЗУНГ

На ПК центрируем относительно свободного места,
а не заставляем его залезать на логотип.
====================================================
*/

.tagline {
    position: absolute;

    left: calc(50% + 40px);
    top: 50%;

    transform:
        translate(-50%, -50%);

    /*
     * Максимальная ширина лозунга.
     * Не позволяет ему растягиваться бесконечно.
     */
    width: min(
        650px,
        calc(100% - 140px)
    );

    padding:
        10px 28px;

    text-align: center;

    color: #fff;

    /*
     * Плавно меняется вместе с шириной экрана.
     */
    font-size:
        clamp(1.3rem, 2.6vw, 2.6rem);

    font-weight: 400;

    font-family:
        'Brush Script MT',
        'Great Vibes',
        'Pacifico',
        cursive;

    line-height: 1.1;

    text-shadow:
        0 4px 30px rgba(0, 0, 0, 0.9);

    background:
        rgba(0, 0, 0, 0.5);

    border-radius: 40px;

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    /*
     * На ПК не переносим.
     */
    white-space: nowrap;

    z-index: 25;
}

/*
====================================================
ОСНОВНОЙ КОНТЕНТ
====================================================
*/

.content {
    width: 100%;

    flex: 1 1 auto;

    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;
}

/*
====================================================
ДО / ПОСЛЕ
====================================================
*/

.labels {
    position: relative;

    width: 100%;
    height: 30px;

    flex-shrink: 0;

    margin-top: 12px;
    margin-bottom: 10px;

    color: #fff;

    font-size: 1.6rem;
    font-weight: 400;

    font-family:
        'Brush Script MT',
        'Great Vibes',
        'Pacifico',
        cursive;

    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.9);

    opacity: 0.85;

    z-index: 20;
}

/*
====================================================
ДО
====================================================
*/

.label-left {
    position: absolute;

    left: calc(50% - 80px);

    transform:
        translateX(-50%);

    white-space: nowrap;
}

/*
====================================================
ПОСЛЕ
====================================================
*/

.label-right {
    position: absolute;

    left: calc(50% + 80px);

    transform:
        translateX(-50%);

    white-space: nowrap;
}

/*
====================================================
СЛАЙДЕР
====================================================
*/

.slider-container {
    position: relative;

    width: 100%;
    max-width: 1400px;

    height: auto;

    flex: 0 1 auto;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    margin: 0 auto;

    background: #000;

    border-radius: 12px;

    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.8);
}

/*
====================================================
КАРТИНКИ
====================================================
*/

.image-right,
.image-left {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}

.image-right img,
.image-left img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: fill;

    display: block;

    user-select: none;
    -webkit-user-drag: none;
}

/*
====================================================
ПРАВАЯ ФОТОГРАФИЯ
====================================================
*/

.image-right {
    z-index: 1;
}

/*
====================================================
ЛЕВАЯ ФОТОГРАФИЯ
====================================================
*/

.image-left {
    z-index: 2;

    clip-path:
        inset(0 50% 0 0);

    -webkit-clip-path:
        inset(0 50% 0 0);
}

/*
====================================================
РУЧКА
====================================================
*/

.slider-handle {
    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 3px;

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

    cursor: ew-resize;

    transform:
        translateX(-50%);

    z-index: 10;

    touch-action: none;
}

/*
====================================================
КРУГ
====================================================
*/

.slider-handle::after {
    content: '';

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    width: 28px;
    height: 28px;

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

    border-radius: 50%;

    box-shadow:
        0 0 20px rgba(0, 0, 0, 0.6);

    border:
        2px solid rgba(255, 255, 255, 0.85);
}

/*
====================================================
О ПРОЦЕДУРЕ
====================================================
*/

.procedure-link {
    flex-shrink: 0;

    display: block;

    position: relative;

    z-index: 30;

    margin-top: 12px;
    margin-bottom: 4px;

    padding:
        4px 12px;

    color: #fff;

    font-size:
        clamp(1.1rem, 2vw, 1.8rem);

    font-weight: 400;

    font-family:
        'Brush Script MT',
        'Great Vibes',
        'Pacifico',
        cursive;

    text-decoration: none;

    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.9);

    opacity: 0.9;

    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.procedure-link:hover {
    opacity: 1;

    transform:
        scale(1.05);
}

.procedure-link:active {
    transform:
        scale(0.97);
}

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

@media (max-width: 768px) {

    .page {
        padding:
            12px 6%;
    }

    /*
     * Логотип
     */

    .top-bar {
        height: 65px;
    }

    .logo {
        width: 65px;
        height: 65px;
    }

    /*
     * Лозунг получает отдельную область.
     *
     * Слева оставляем место под логотип.
     */

    .tagline {
        left: calc(50% + 30px);

        width:
            calc(100% - 95px);

        max-width: none;

        padding:
            7px 14px;

        font-size:
            clamp(1.15rem, 4vw, 1.8rem);

        white-space: nowrap;
    }

    /*
     * ДО / ПОСЛЕ
     */

    .labels {
        height: 25px;

        font-size: 1.3rem;

        margin-top: 8px;
        margin-bottom: 8px;
    }

    .label-left {
        left: calc(50% - 65px);
    }

    .label-right {
        left: calc(50% + 65px);
    }

    /*
     * Круг
     */

    .slider-handle::after {
        width: 34px;
        height: 34px;
    }

    /*
     * О процедуре
     */

    .procedure-link {
        font-size: 1.5rem;

        margin-top: 10px;
        margin-bottom: 2px;
    }
}

/*
====================================================
МАЛЕНЬКИЙ ТЕЛЕФОН
====================================================
*/

@media (max-width: 480px) and (orientation: portrait) {

    .page {
        padding:
            10px 4%;
    }

    /*
     * Верхняя панель
     */

    .top-bar {
        height: 55px;
    }

    /*
     * Логотип
     */

    .logo {
        width: 55px;
        height: 55px;
    }

    /*
     * Лозунг
     *
     * Теперь он НЕ МОЖЕТ залезть на логотип,
     * потому что его область начинается
     * правее логотипа.
     */

    .tagline {
        left: calc(50% + 22px);

        width:
            calc(100% - 70px);

        padding:
            6px 8px;

        font-size:
            clamp(0.95rem, 4vw, 1.3rem);

        line-height: 1.05;

        /*
         * Разрешаем перенос, если телефон
         * совсем узкий.
         */

        white-space: normal;

        border-radius: 25px;
    }

    /*
     * ДО / ПОСЛЕ
     */

    .labels {
        height: 22px;

        font-size: 1.1rem;

        margin-top: 6px;
        margin-bottom: 6px;
    }

    .label-left {
        left: calc(50% - 55px);
    }

    .label-right {
        left: calc(50% + 55px);
    }

    /*
     * Слайдер
     */

    .slider-container {
        border-radius: 8px;
    }

    .slider-handle::after {
        width: 34px;
        height: 34px;
    }

    /*
     * О процедуре
     */

    .procedure-link {
        font-size: 1.3rem;

        margin-top: 8px;
        margin-bottom: 2px;

        padding:
            3px 8px;
    }
}

/*
====================================================
ТЕЛЕФОН В ГОРИЗОНТАЛИ
====================================================
*/

@media (max-height: 500px) and (orientation: landscape) {

    .page {
        padding:
            6px 5%;
    }

    /*
     * Верх
     */

    .top-bar {
        height: 45px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    /*
     * Лозунг
     */

    .tagline {
        left: calc(50% + 22px);

        width:
            calc(100% - 70px);

        max-width: 500px;

        padding:
            3px 8px;

        font-size:
            clamp(0.85rem, 2.8vw, 1.2rem);

        border-radius: 20px;

        white-space: nowrap;
    }

    /*
     * ДО / ПОСЛЕ
     */

    .labels {
        height: 18px;

        font-size: 0.95rem;

        margin-top: 3px;
        margin-bottom: 3px;
    }

    .label-left {
        left: calc(50% - 45px);
    }

    .label-right {
        left: calc(50% + 45px);
    }

    /*
     * Слайдер
     */

    .slider-container {
        border-radius: 7px;
    }

    .slider-handle::after {
        width: 32px;
        height: 32px;
    }

    /*
     * О процедуре
     */

    .procedure-link {
        font-size: 1.1rem;

        margin-top: 3px;
        margin-bottom: 0;

        padding:
            2px 8px;
    }
}

/*
====================================================
ОЧЕНЬ НИЗКИЙ LANDSCAPE
====================================================
*/

@media (max-height: 380px) and (orientation: landscape) {

    .page {
        padding:
            4px 4%;
    }

    .top-bar {
        height: 36px;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    .tagline {
        left: calc(50% + 18px);

        width:
            calc(100% - 55px);

        padding:
            2px 5px;

        font-size:
            clamp(0.75rem, 2.5vw, 1rem);

        border-radius: 15px;
    }

    .labels {
        height: 15px;

        font-size: 0.8rem;

        margin-top: 1px;
        margin-bottom: 1px;
    }

    .label-left {
        left: calc(50% - 38px);
    }

    .label-right {
        left: calc(50% + 38px);
    }

    .slider-handle::after {
        width: 30px;
        height: 30px;
    }

    .procedure-link {
        font-size: 0.95rem;

        margin-top: 2px;

        padding:
            1px 6px;
    }
}


.tagline-gold {
    color: #f5c842;
    text-shadow: 0 0 20px rgba(245, 200, 66, 0.4);
}
.tagline-white {
    color: #ffffff;
}

