@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Manrope:wght@300;400;500&family=Marcellus&display=swap");


/* =========================================================
   MEDI SIAM SPA
   ПРЕДПРОСМОТР СЕРТИФИКАТА
========================================================= */


/* =========================================================
   РОДИТЕЛИ — РАЗРЕШАЕМ POSITION: STICKY
========================================================= */

/*
 * purchase-certificate.css подключается только на странице
 * покупки сертификата, поэтому эти правила не затронут
 * остальные страницы сайта.
 */

html,
body {
    overflow-x: clip !important;
}

body,
.ms-page,
.ms-main,
.mscert-page,
.mscert-shell {
    overflow-y: visible !important;
}

.mscert-page {
    position: relative;
    overflow-x: clip !important;
}

.mscert-page .mscert-shell {
    position: relative !important;
    align-items: start !important;
    overflow: visible !important;
}

.mscert-page .mscert-card {
    position: relative;
    min-width: 0;
    align-self: start;
}


/* =========================================================
   STICKY-ПРЕДПРОСМОТР
========================================================= */

.mscert-art-preview {
    position: -webkit-sticky !important;
    position: sticky !important;

    z-index: 10;
    top: 105px !important;
    align-self: start !important;

    width: 100%;
    min-width: 0;
    height: fit-content !important;
    max-height: none !important;

    margin: 0;
    padding: 22px 0 48px;

    box-sizing: border-box;
}

.mscert-art-preview *,
.mscert-art-preview *::before,
.mscert-art-preview *::after {
    box-sizing: border-box;
}


/* =========================================================
   ТЕНЬ
========================================================= */

.mscert-art-preview__shadow {
    position: absolute;
    z-index: -1;

    top: 48px;
    right: 3%;
    bottom: 64px;
    left: 5%;

    background: rgba(54, 38, 27, 0.14);
    filter: blur(27px);
    transform: translateY(14px);

    pointer-events: none;
}


/* =========================================================
   ОСНОВНАЯ КАРТОЧКА
========================================================= */

.mscert-art-preview__card {
    position: relative;
    container-type: inline-size;

    width: 100%;
    min-width: 0;
    aspect-ratio: 1123 / 530;
    overflow: hidden;

    color: #594631;

    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(255, 253, 248, 0.82),
            transparent 37%
        ),
        linear-gradient(
            105deg,
            #f4ecdf 0%,
            #efe3d2 100%
        );

    box-shadow:
        0 26px 60px rgba(53, 37, 26, 0.13),
        0 5px 15px rgba(53, 37, 26, 0.06);

    isolation: isolate;
}


/* Фактура бумаги */

.mscert-art-preview__card::before {
    content: "";

    position: absolute;
    z-index: 1;
    inset: 0;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(77, 58, 41, 0.018) 0,
            rgba(77, 58, 41, 0.018) 1px,
            transparent 1px,
            transparent 4px
        );

    opacity: 0.28;
    pointer-events: none;
}


/* Свет */

.mscert-art-preview__light {
    position: absolute;
    z-index: 0;

    top: -85%;
    left: -33%;

    width: 120%;
    height: 250%;

    border-radius: 50%;
    background: rgba(255, 253, 248, 0.42);

    pointer-events: none;
}


/* =========================================================
   ЭМБЛЕМА
========================================================= */

.mscert-art-preview__emblem-window {
    position: absolute;
    z-index: 2;

    top: 0;
    right: 0;

    width: 30.5%;
    height: 100%;
    overflow: hidden;

    pointer-events: none;
}

.mscert-art-preview__emblem {
    position: absolute;

    top: -3%;
    right: -10%;

    display: block;

    width: 111%;
    max-width: none;
    height: 106%;

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

    object-fit: cover;
    object-position: center;

    opacity: 0.72;
}


/* Мягкий переход перед эмблемой */

.mscert-art-preview__emblem-mask {
    position: absolute;
    z-index: 3;

    top: 0;
    left: -1px;

    width: 14%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #efe3d2 0%,
            rgba(239, 227, 210, 0.96) 28%,
            rgba(239, 227, 210, 0.55) 67%,
            transparent 100%
        );

    pointer-events: none;
}


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

.mscert-art-preview__title {
    position: absolute;
    z-index: 6;

    top: 10.5%;
    left: 7%;

    width: 61%;

    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;

    color: #8c693b;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif !important;

    font-size: clamp(24px, 5.15cqw, 44px) !important;
    font-weight: 400 !important;
    font-style: normal;
    line-height: 0.95 !important;
    letter-spacing: -0.035em !important;

    text-transform: none !important;
    text-overflow: clip;
    white-space: nowrap;
}


/* =========================================================
   НОМИНАЛ
========================================================= */

.mscert-art-preview__nominal-label {
    position: absolute;
    z-index: 6;

    top: 29%;
    left: 7%;

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

    color: #927c64;

    font-family:
        "Manrope",
        Arial,
        sans-serif !important;

    font-size: clamp(6px, 1.05cqw, 9px) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0.13em !important;

    text-transform: uppercase !important;
}

.mscert-art-preview__amount {
    position: absolute;
    z-index: 6;

    top: 33%;
    left: 6.6%;

    width: 61%;

    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;

    color: #8c693b;

    font-family:
        "Marcellus",
        "Cormorant Garamond",
        Georgia,
        serif !important;

    font-size: clamp(39px, 10.2cqw, 78px) !important;
    font-weight: 400 !important;
    font-style: normal;
    line-height: 0.92 !important;
    letter-spacing: -0.055em !important;

    text-transform: none !important;
    text-overflow: clip;
    white-space: nowrap;
}


/* =========================================================
   ПОЛУЧАТЕЛЬ
========================================================= */

.mscert-art-preview__recipient {
    position: absolute;
    z-index: 6;

    top: 60.5%;
    left: 7%;

    display: flex;
    width: 48%;
    min-width: 0;

    align-items: baseline;
    gap: clamp(5px, 1.2cqw, 11px);

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

    white-space: nowrap;
}

.mscert-art-preview__recipient-prefix {
    flex: 0 0 auto;

    color: #8c7760;

    font-family:
        "Manrope",
        Arial,
        sans-serif !important;

    font-size: clamp(7px, 1.25cqw, 10px) !important;
    font-weight: 400 !important;
    font-style: normal;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;

    text-transform: lowercase !important;
}

.mscert-art-preview__recipient-name {
    display: block;

    min-width: 0;
    max-width: 100%;
    overflow: hidden;

    color: #6d5439;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif !important;

    font-size: clamp(16px, 3.55cqw, 28px) !important;
    font-weight: 400 !important;
    font-style: italic !important;
    line-height: 1 !important;
    letter-spacing: -0.015em !important;

    text-overflow: ellipsis;
    text-transform: none !important;
    white-space: nowrap;
}


/* Линия ниже получателя */

.mscert-art-preview__recipient-line {
    position: absolute;
    z-index: 5;

    top: 70.5%;
    left: 7%;

    width: 35%;
    height: 1px;

    background: rgba(140, 105, 59, 0.24);
}


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

.mscert-art-preview__logo {
    position: absolute;
    z-index: 6;

    bottom: 7.5%;
    left: 7%;

    display: block;

    width: 8.2% !important;
    max-width: 8.2% !important;
    height: auto !important;
    max-height: 17% !important;

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

    object-fit: contain;
    object-position: left bottom;
}


/* =========================================================
   НИЖНЯЯ ПОДПИСЬ
========================================================= */

.mscert-art-preview__footer {
    position: absolute;
    z-index: 6;

    bottom: 8%;
    left: 17%;

    width: 25%;

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

    color: #766b60;

    font-family:
        "Manrope",
        Arial,
        sans-serif !important;

    font-size: clamp(6px, 1.18cqw, 9px) !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;

    text-transform: none !important;
}

.mscert-art-preview__footer span {
    color: #8c693b;
}


/* =========================================================
   НОМЕР
========================================================= */

.mscert-art-preview__number {
    position: absolute;
    z-index: 6;

    right: 31.7%;
    bottom: 8.4%;

    width: 27%;

    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;

    color: #8e7d6c;

    font-family:
        "Manrope",
        Arial,
        sans-serif !important;

    font-size: clamp(5px, 1.03cqw, 8px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;

    text-align: right;
    text-overflow: clip;
    text-transform: none !important;
    white-space: nowrap;
}


/* =========================================================
   ПОДПИСЬ ПОД КАРТОЧКОЙ
========================================================= */

.mscert-art-preview__caption {
    display: flex;
    justify-content: space-between;
    gap: 22px;

    margin-top: 20px;
    padding: 0 2px;

    color: rgba(36, 29, 24, 0.48);

    font-family:
        "Manrope",
        Arial,
        sans-serif !important;

    font-size: 8px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.14em !important;

    text-transform: uppercase !important;
}

.mscert-art-preview__caption span:last-child {
    text-align: right;
}


/* =========================================================
   GOLD
========================================================= */

.mscert-art-preview[data-design="gold"]
.mscert-art-preview__card {
    color: #594631;

    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(255, 253, 248, 0.82),
            transparent 37%
        ),
        linear-gradient(
            105deg,
            #f4ecdf 0%,
            #efe3d2 100%
        );
}

.mscert-art-preview[data-design="gold"]
.mscert-art-preview__emblem {
    opacity: 0.72;
}

.mscert-art-preview[data-design="gold"]
.mscert-art-preview__emblem-mask {
    background:
        linear-gradient(
            90deg,
            #efe3d2 0%,
            rgba(239, 227, 210, 0.96) 28%,
            rgba(239, 227, 210, 0.55) 67%,
            transparent 100%
        );
}


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

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__card {
    color: #eee5d6;

    background:
        radial-gradient(
            circle at 10% 8%,
            rgba(217, 189, 132, 0.09),
            transparent 36%
        ),
        linear-gradient(
            125deg,
            #251b14 0%,
            #1a120d 100%
        );
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__card::before {
    opacity: 0.13;
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__light {
    background: rgba(217, 189, 132, 0.025);
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__emblem {
    opacity: 0.67;
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__emblem-mask {
    background:
        linear-gradient(
            90deg,
            #1a120d 0%,
            rgba(26, 18, 13, 0.96) 27%,
            rgba(26, 18, 13, 0.54) 66%,
            transparent 100%
        );
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__title,

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__amount {
    color: #d8bb80;
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__nominal-label,

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__recipient-prefix,

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__number {
    color: #aa9880;
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__recipient-name {
    color: #f1e8db;
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__recipient-line {
    background: rgba(216, 187, 128, 0.27);
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__footer {
    color: #b4a58f;
}

.mscert-art-preview[data-design="dark"]
.mscert-art-preview__footer span {
    color: #d8bb80;
}


/* =========================================================
   CLASSIC
========================================================= */

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__card {
    color: #342d26;

    background:
        linear-gradient(
            105deg,
            #f6f2eb 0%,
            #eee9e1 100%
        );
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__light {
    display: none;
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__emblem {
    opacity: 0.11;
    filter: grayscale(1);
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__emblem-mask {
    background:
        linear-gradient(
            90deg,
            #eee9e1 0%,
            rgba(238, 233, 225, 0.97) 28%,
            rgba(238, 233, 225, 0.58) 68%,
            transparent 100%
        );
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__title,

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__amount {
    color: #3c342c;
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__nominal-label,

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__recipient-prefix,

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__number {
    color: #84796e;
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__recipient-name {
    color: #443a31;
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__recipient-line {
    background: rgba(52, 45, 38, 0.20);
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__footer {
    color: #756d65;
}

.mscert-art-preview[data-design="classic"]
.mscert-art-preview__footer span {
    color: #3c342c;
}


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

@media (max-width: 1024px) and (min-width: 821px) {

    .mscert-art-preview {
        top: 96px !important;
        padding-top: 15px;
    }

    .mscert-art-preview__shadow {
        top: 40px;
    }

}


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

@media (max-width: 820px) {

    html,
    body,
    .ms-page,
    .ms-main,
    .mscert-page {
        overflow-x: hidden !important;
    }

    .mscert-page .mscert-shell {
        overflow: hidden !important;
    }

    .mscert-art-preview {
        position: relative !important;

        top: auto !important;
        left: auto !important;

        width: min(680px, 100%);
        height: auto !important;
        max-height: none !important;

        margin: 0 auto;
        padding: 0 0 25px;

        transform: none !important;
    }

    .mscert-art-preview__shadow {
        top: 18px;
        bottom: 42px;
    }

}


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

@media (max-width: 520px) {

    .mscert-art-preview__caption {
        gap: 12px;
        margin-top: 14px;

        font-size: 6px !important;
        letter-spacing: 0.1em !important;
    }

    .mscert-art-preview__emblem-window {
        width: 29%;
    }

    .mscert-art-preview__title {
        width: 62%;
        font-size: 5.05cqw !important;
    }

    .mscert-art-preview__amount {
        width: 62%;
        font-size: 9.8cqw !important;
    }

    .mscert-art-preview__recipient {
        width: 48%;
    }

    .mscert-art-preview__number {
        right: 30.5%;
    }

}


/* =========================================================
   ОТКЛЮЧЕНИЕ АНИМАЦИЙ
========================================================= */

.mscert-art-preview,
.mscert-art-preview *,
.mscert-art-preview *::before,
.mscert-art-preview *::after {
    animation: none !important;
    transition: none !important;
}
