﻿@font-face {
    font-family: "Good Vibes Pro";
    src: local("Good Vibes Pro"), 
        url("/fonts/Good Vibes Pro.otf") format('opentype'), 
        url("/fonts/Good Vibes Pro.woff2") format("woff2"), 
        url("/fonts/Good Vibes Pro.woff") format("woff"), 
        url("/fonts/Good Vibes Pro.svg") format("svg");
    font-weight: normal;
}

.hide-screen{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}


.container.main-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 20px;
    padding-top: 30px;
}

.page-section {
    margin-bottom: 34px;
}

.banner {
    min-height: 560px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url("//cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/banner-back.png") left center no-repeat;
    background-size: cover;
    padding: 0 40px 0 80px;
    border-radius: 20px;
}

    .banner::after {
        display: block;
        content: "";
        background: url("//cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/banner-img.png") bottom -50px center no-repeat;
        background-size: contain;
        width: 636px;
        max-width: 100%;
        height: 568px;
        flex-shrink: 0;
        align-self: flex-end;
    }

.banner-header {
    color: #FFF;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2; /* 67.2px */   
    margin-bottom: 8px;
}

    .banner-header span {
        display: inline-block;
        position: relative;
        z-index: 1;
        padding: 0 6px;
    }

        .banner-header span::before {
            display: block;
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            border-radius: 4px;
            background: #FF6505;
            transform: rotate(-2deg);
            z-index: -1;
        }
.banner-text {
    color: #FFF;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2; /* 28.8px */
    max-width: 340px;
}

.blue-header {
    font-weight: 500;
    font-size: 32px;
    line-height: 1.1;
    color: #004677;
    margin: 0 0 16px 0;
}

.top-section p {
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    color: #000000;
    margin: 0;
}

.second-section .page-section-header {
    font-weight: 600;
    font-size: 30px;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 10px 0;
}

.text-wrapper p {
    color: #181818;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.6; /* 30.4px */
    margin-bottom: 24px;
}

    .text-wrapper p:last-child {
        margin-bottom: 0;
    }

    .text-wrapper p strong {
        font-weight: 700;
    }

.wish-section {
    background: url("//cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/banner2.png") center center no-repeat;
    padding: 40px 0;
    border-radius: 20px;
    position: relative;
    background-size: cover;
    overflow: hidden;
}

.wish-header {
    color: #FFF;
    font-family: "Good Vibes Pro", Montserrat, sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 100px;
}

.wish-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 100px 0;
    display: flex;
    gap: 140px 0;
    flex-wrap: wrap;
    justify-content: center;

}

    .wish-list li {
        position: relative;
        padding-left: 30px;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.4;
        color: #000000;
        width: 200px;
        height: 165px;
        padding: 10px;
        display: flex;
        align-items: center;
        text-align: center;
        color: #FFF;
        text-align: center;
        font-family: Montserrat;
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 1.2; /* 21.6px */
        border-radius: 20px;
        filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.25));
    }

        .wish-list li:last-child {
            background-image: url("//cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/snowflake.png");
            background-repeat: no-repeat;
            background-position: left -2px bottom -2px;
        }

.wish-bottom-text {
    color: #FFF;
    font-family: "Good Vibes Pro", Montserrat, sans-serif;
    text-align: center;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.2; /* 57.6px */
}

#rope{
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    z-index: 0;
    max-width: 100%;
}

.gray-section {
    background: #F8F8F8;
    border-radius: 20px;
    padding: 14px 26px;
    display: flex;
    align-items: center;
    gap: 36px;
}

    .gray-section::before {
        display: block;
        content: "";
        flex-shrink: 0;
        width: 124px;
        height: 126px;
        background: url("//cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/gift2024.png") left center no-repeat;
        background-size: contain;
    }

.gray-section-text {
    color: #181818;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2; /* 28.8px */
}

.form-section {
    border-radius: 15px;
    padding: 0;
    background: url("//cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/banner-bottom.png") center top no-repeat;
    background-size: cover;
   
}

.form-section-header {
    color: #FFF;
    font-family: "Good Vibes Pro", Montserrat, sans-serif;
    text-align: center;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.2; /* 76.8px */
    padding: 40px 40px 0 40px;

}

.letter-wrapper {
    padding-top: 60px;
    background: url("//cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/letter.png") center top no-repeat;
    min-height: 560px;
    width: 90%;
    max-width: 756px;
    margin: auto;
    background-size: 100% 100%;
}

.letter-wrapper form{
    min-height: 50px;

}
    .form-row {
    margin-bottom: 34px;
}

    .form-row textarea {
        display: block;
        width: 87%;
        background: url("//cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/paper.png") top center no-repeat;
        background-size: cover;
        font-weight: 500;
        font-size: 15px;
        line-height: 1.4;
        color: #000000;
        padding: 18px 26px;
        margin: auto;
        border: transparent;
        box-shadow: 1px -3px 3px 1px rgba(0, 0, 0, .1);        
    }

        .form-row textarea::placeholder {
            color: #2E2E2E;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.2; /* 16.8px */
            text-decoration: underline;            
        }

        .form-row textarea:focus {
            outline: 1px solid #FE3145;
        }

.form-send-button {
    display: block;
    cursor: pointer;
    margin: 0 auto;
    border-radius: 10px;
    background: linear-gradient(93deg, #DA4F5D -15.12%, #FE3145 109.53%);
    width: 224px;
    padding: 10px;
    border: none;
    color: #FFF;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; /* 16.8px */
}

    .form-send-button:hover, .form-send-button:focus {
        background: #DA4F5D;
    }

.mail-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.mail-popup-shadow {
    background: #000000;
    opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.mail-popup-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url("https://cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/popup-back.png") top left no-repeat;
    background-size: cover;
    border-radius: 25px;
    padding: 58px 54px 40px 54px;
    max-height: 95vh;
    overflow: auto;
    max-width: 460px;
}

.mail-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-image: url("https://cdn.specialist.ru/content/file/layouts/mailForDedMoroz/img/close.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 0;
}

    .mail-popup-close:hover, .mail-popup-close:focus {
        opacity: 0.7;
    }

.mail-popup-header {
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    text-align: center;
    color: #171820;
    margin-bottom: 22px;
}

.popup-input-wrapper {
    margin-bottom: 12px;
}

    .popup-input-wrapper input {
        background: #F8F8F8;
        border: 1px solid #CCD8E3;
        border-radius: 5px;
        color: #000000;
        font-weight: 400;
        font-size: 14px;
        letter-spacing: 0.04em;
        color: #151C21;
        display: block;
        width: 100%;
        height: 43px;
        padding-left: 12px;
    }

        .popup-input-wrapper input::placeholder {
            color: #151C21;
        }

.form-popup-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #00530C;
    border-radius: 5px;
    color: white;
    padding: 12px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}

    .form-popup-button:after {
        display: block;
        content: "";
        background-image: url(https://cdn.specialist.ru/content/file/layouts/congratulation-teacher/img/right-small.png);
        background-position: center;
        background-repeat: no-repeat;
        width: 22px;
        height: 22px;
        margin-left: 8px;
    }

.popup-button-wrapper {
    margin-bottom: 18px;
}

.agree-wrapper {
    margin-bottom: 0;
}

    .agree-wrapper > label {
        display: flex;
        font-weight: 400;
        font-size: 12px;
        line-height: 1.2;
        color: #000000;
    }

        .agree-wrapper > label a {
            color: #1369C1;
            text-decoration: underline;
        }

    .agree-wrapper input {
        width: 1px;
        height: 1px;
        background: transparent;
        position: absolute;
    }

    .agree-wrapper .fake-input {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
        margin-right: 14px;
        display: block;
        background-color: #FFFFFF;
        border-radius: 5px;
        border: 1px solid #CCD8E3;
    }

    .agree-wrapper input:checked + .fake-input {
        background-image: url(https://cdn.specialist.ru/content/file/layouts/congratulation-teacher/img/checked.png);
        background-position: center center;
        background-repeat: no-repeat;
    }

.mail-popup-header.thanks-text {
    margin-bottom: 0;
}


@media (max-width: 1240px) {
    .container.main-container {
        padding: 10px;
    }
}

@media (max-width: 992px) {
    .banner {
        flex-direction: column;
        padding: 20px 20px 0 20px;
        align-items: flex-start;
        min-height: 0;
    }

        .banner::after {
            width: 536px;
            height: 468px;
            align-self: center;
        }

    .banner-header, .wish-header, .wish-bottom-text, .form-section-header {
        text-shadow: 1px 1px 2px pink;
    } 
}

    @media (max-width: 760px) {
        .mail-popup-body {
            padding: 30px;
        }
    }

    @media (max-width: 650px) {
        .banner-header {
            font-size: 36px;
        }

        .banner-text {
            font-size: 32px;
        }

        .blue-header {
            font-size: 28px;
        }

       

        .form-send-button {
            width: 80%;
        }

        .mail-popup-body {
            padding: 30px;
            width: 90%;
            max-width: none;
        }

        .banner::after {
            width: 436px;
            height: 368px;
            align-self: center;
        }

        .wish-list{
            gap: 24px;
            margin-bottom: 30px;
        }

        .wish-list li {
            transform: none !important;
        }
    }

    @media (max-width: 430px) {
        .banner::after {
            width: 336px;
            height: 268px;
            align-self: center;
        }

        .gray-section{
            flex-direction: column;
        }

        .letter-wrapper {
            padding-top: 10px;
            min-height: 468px;
        }
    }

    .loader {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: rgba(255, 255, 255, .4);
        z-index: 5;
    }

        .loader.active {
            display: block;
        }
