html,
body,
header {
    margin: 0;
    padding: 0;
    background-color: #000000;
    height: 100%;
    width: 100%;
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    body {
        background-image: url("/img/rotate-smartphone.png");
        background-position: center;
        background-size: contain;
    }

    header {
        display: none;
    }
}

.wrapContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}


.mastHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24.5%;
}

.logo {
    margin-top: 5%;
    margin-left: 9%;
    width: 40%;
}

.logo svg {
    width: clamp(125px, 100%, 175px);
    height: clamp(125px, 100%, 115px);
}

.menuburger {
    position: fixed;
    top: 11%;
    right: clamp(10px, 9%, 25px);
    background: #000;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 10%;
    width: clamp(10px, 8%, 30px);
    z-index: 2002;
}

.menuburgerMain {
    position: fixed;
    top: 6.5%;
    right: clamp(10px, 9%, 25px);
    background: #000;
    padding-right: 5px;
    padding-left: 5px;
    border-radius: 10%;
    width: clamp(10px, 8%, 30px);
    z-index: 2002;
}

.menuburger svg {
    width: clamp(16px, 100%, 30px);
    height: clamp(16px, 100%, 30px);
}


.menuburger:hover #menuburgeranimation {
    opacity: 0%;
}

.menuburger #menuburgeranimation {
    opacity: 100%;
    -webkit-transition: opacity 0.6s ease;
    transition: opacity 0.6s ease;
}

.menuburger:hover #menuburgeranimationZ {
    opacity: 100%;
}

.menuburger #menuburgeranimationZ {
    opacity: 0%;
    -webkit-transition: opacity 0.6s ease;
    transition: opacity 0.6s ease;
}


[id='nav-toggle']:checked~.wrapContainer .mastHead .menuburger .nav-toggle svg g#layer_x0020_1 #menuburgeranimation {
    opacity: 0%;
    -webkit-transition: opacity 0 ease;
    transition: opacity 0 ease;
}

[id='nav-toggle']:checked~.wrapContainer .mastHead .menuburger .nav-toggle svg g#layer_x0020_1 #menuburgeranimationZ {
    opacity: 0%;
    -webkit-transition: opacity 0 ease;
    transition: opacity 0 ease;
}

[id='nav-toggle']:checked~.wrapContainer .mastHead .menuburgerMain .nav-toggle svg g#layer_x0020_1 #menuburgeranimation {
    opacity: 0%;
    -webkit-transition: opacity 0 ease;
    transition: opacity 0 ease;
}

[id='nav-toggle']:checked~.wrapContainer .mastHead .menuburgerMain .nav-toggle svg g#layer_x0020_1 #menuburgeranimationZ {
    opacity: 0%;
    -webkit-transition: opacity 0 ease;
    transition: opacity 0 ease;
}

[id='nav-toggle']:checked:disabled {
    opacity: 0%;
    -webkit-transition: opacity 0 ease;
    transition: opacity 0 ease;
}

.main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 75.5%;
    justify-content: space-between;
    align-self: center;
}

.slogan {
    display: flex;
    color: #ffe8a3;
    font-size: clamp(16px, 6vw, 30px);
    font-family: "SloganFont";
    height: 20%;
    width: 100%;
    text-align: center;
    margin: 0;
    justify-content: center;
}

.slogan p {
    align-self: center;
    margin: 0;
}

.slogan p span {
    color: #584630;
}

.majorImg {
    display: flex;
    height: 80%;
    width: 100%;
    overflow: hidden;
    justify-content: center;
}

.majorImg img {
    height: 100%;
    align-content: center;
}

.startButton {
    position: absolute;
    left: 50%;
    bottom: 0%;
    transform: translate(-50%, -50%);
    height: clamp(40px, 9vw, 40px);
    width: clamp(150px, 42vw, 150px);
    text-decoration: none;
    color: #ffe8a3;
    background-color: black;
    border-radius: 5px;
    line-height: clamp(40px, 10vw, 40px);
    text-align: center;
    box-shadow: 0 0 5px 3px #ffe8a3;
    font-size: 1.8em;
    font-family: "SloganFont";
}

.startButton:hover {
    box-shadow: 0 0 10px 3px #ffe8a3;
}

.nav {
    width: 280px;
    min-width: 280px;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    margin: 0;
    /* сдвигаем (прячем) панель относительно правого края страницы */
    right: -320px;
    /* внутренние отступы */
    padding: 15px 20px;
    /* плавный переход смещения панели */
    -webkit-transition: right 0.3s;
    -moz-transition: right 0.3s;
    transition: right 0.3s;
    /* определяем цвет фона панели */
    background: #000000;
    /* поверх других элементов */
    z-index: 2003;
}

/* Крестик в открывшемся меню */
.nav svg {
    margin-top: 10%;
    margin-left: 80%;
    width: clamp(16px, 100%, 30px);
    height: clamp(16px, 100%, 30px);
}

.nav-toggle {
    z-index: 2001;
    /* анимируем цвет текста при наведении */
    -webkit-transition: color .25s ease-in-out;
    -moz-transition: color .25s ease-in-out;
    transition: color .25s ease-in-out;
}

.nav-toggle {
    padding-right: 5%;
}

/**
 * Скрытый чекбокс (флажок)
 * невидим и недоступен :)
 * имя селектора атрибут флажка
 */

[id='nav-toggle'] {
    position: absolute;
    display: none;
}

/**
 * изменение положения переключателя 
 * при просмотре на мобильных устройствах
 * когда навигация раскрыта, распологаем внутри панели
*/

[id='nav-toggle']:checked~.nav>.nav-toggle {
    left: auto;
    right: 10px;
    top: 1em;
}

/**
 * Когда флажок установлен, открывается панель
 * используем псевдокласс:checked
 */

[id='nav-toggle']:checked~.nav {
    right: 0;
    box-shadow: -4px 0px 20px 0px #ffe8a3;
    -moz-box-shadow: -4px 0px 20px 0px #ffe8a3;
    -webkit-box-shadow: -4px 0px 20px 0px #ffe8a3;
    overflow-y: auto;
}

/**
 * отображение на средних и маленьких экранах
 * мобильных устройств
 */

@media screen and (min-width: 319px) {

    html,
    body {
        margin: 0;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 319px) {

    html,
    body {
        margin: 0;
        overflow-x: hidden;
    }

    .nav {
        width: 100%;
        box-shadow: none
    }
}


/**
 * Формируем стиль заголовка (логотип) панели 
*/

.nav h2 {
    width: 90%;
    padding: 0;
    margin: 10px 0;
    text-align: center;
    text-shadow: rgba(255, 255, 255, .1) -1px -1px 1px, rgba(0, 0, 0, .5) 1px 1px 1px;
    font-size: 1.3em;
    font-family: "SloganFont";
    line-height: 1.8em;
    border: 1px solid #FFE8A3;
    border-radius: 5px;
    opacity: 0;
    transform: scale(0.1, 0.1);
    -ms-transform: scale(0.1, 0.1);
    -moz-transform: scale(0.1, 0.1);
    -webkit-transform: scale(0.1, 0.1);
    transform-origin: 0% 0%;
    -ms-transform-origin: 0% 0%;
    -moz-transform-origin: 0% 0%;
    -webkit-transform-origin: 0% 0%;
    transition: opacity 0.8s, transform 0.8s;
    -ms-transition: opacity 0.8s, -ms-transform 0.8s;
    -moz-transition: opacity 0.8s, -moz-transform 0.8s;
    -webkit-transition: opacity 0.8s, -webkit-transform 0.8s;
}

.nav h2 a {
    color: #ffe8a3;
    text-decoration: none;
    text-transform: uppercase;
}


/*плавное появление заголовка (логотипа) при раскрытии панели */

[id='nav-toggle']:checked~.nav h2 {
    opacity: 1;
    transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -webkit-transform: scale(1, 1);
}


/**
 * формируем непосредственно само меню
 * используем неупорядоченный список для пунктов меню
 * прикрутим трансфомации и плавные переходы
 */

.nav>ul {
    display: block;
    margin-top: 10%;
    margin-left: 30px;
    margin-right: 30px;
    padding: 0;
    list-style: none;
}

.nav>ul>li {
    line-height: 2.5;
    opacity: 0;
    -webkit-transform: translateX(50%);
    -moz-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
    -webkit-transition: opacity .5s .1s, -webkit-transform .5s .1s;
    -moz-transition: opacity .5s .1s, -moz-transform .5s .1s;
    -ms-transition: opacity .5s .1s, -ms-transform .5s .1s;
    transition: opacity .5s .1s, transform .5s .1s;
}

[id='nav-toggle']:checked~.nav>ul>li {
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}


/* определяем интервалы появления пунктов меню */

.nav>ul>li:nth-child(2) {
    -webkit-transition: opacity .5s .2s, -webkit-transform .5s .2s;
    transition: opacity .5s .2s, transform .5s .2s;
}

.nav>ul>li:nth-child(3) {
    -webkit-transition: opacity .5s .3s, -webkit-transform .5s .3s;
    transition: opacity .5s .3s, transform .5s .3s;
}

.nav>ul>li:nth-child(4) {
    -webkit-transition: opacity .5s .4s, -webkit-transform .5s .4s;
    transition: opacity .5s .4s, transform .5s .4s;
}

.nav>ul>li:nth-child(5) {
    -webkit-transition: opacity .5s .5s, -webkit-transform .5s .5s;
    transition: opacity .5s .5s, transform .5s .5s;
}

.nav>ul>li:nth-child(6) {
    -webkit-transition: opacity .5s .6s, -webkit-transform .5s .6s;
    transition: opacity .5s .6s, transform .5s .6s;
}

.nav>ul>li:nth-child(7) {
    -webkit-transition: opacity .5s .7s, -webkit-transform .5s .7s;
    transition: opacity .5s .7s, transform .5s .7s;
}


/**
 * оформление ссылок пунктов меню
 */

.nav>ul>li>a {
    display: inline-block;
    position: relative;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 1.2em;
    color: #ffe8a3;
    width: 100%;
    text-decoration: none;
    /* плавный переход */
    -webkit-transition: color .5s ease, padding .5s ease;
    -moz-transition: color .5s ease, padding .5s ease;
    transition: color .5s ease, padding .5s ease;
}


/**
 * состояние ссылок меню при наведении
 */

.nav>ul>li>a:hover,
.nav>ul>li>a:focus {
    color: #ffe8a3;
    padding-left: 15px;
}


/**
 * линия подчеркивания ссылок меню
 */

.nav>ul>li>a:before {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    -webkit-transition: width 0s ease;
    transition: width 0s ease;
}

.nav>ul>li>a:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: #ffe8a3;
    -webkit-transition: width .5s ease;
    transition: width .5s ease;
}


/**
 * анимируем линию подчеркивания 
 * ссылок при наведении
 */

.nav>ul>li>a:hover:before {
    width: 0%;
    background: #ffe8a3;
    -webkit-transition: width .5s ease;
    transition: width .5s ease;
}

.nav>ul>li>a:hover:after {
    width: 0%;
    background: transparent;
    -webkit-transition: width 0s ease;
    transition: width 0s ease;
}


/* фон затемнения на основной контент 
 * при этом элементы блокируются
*/
.mask-content {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2002;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.733);
    visibility: hidden;
    opacity: 0;
}

/* активация фона затемнения*/
[id='nav-toggle']:checked~.mask-content {
    visibility: visible;
    opacity: 1;
    -webkit-transition: opacity .5s, visibility .5s;
    transition: opacity .5s, visibility .5s;
}

.content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.section {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
    background: linear-gradient(#000000 1%, #FFE8A3 25%);
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 5%;
    padding-bottom: 5%;
}

.section img {
    max-width: 90%;
    max-height: 90vh;
    margin-bottom: 5%;
}

.section h3 {
    align-self: center;
    text-align: center;
    font-size: 1.8em;
    /* padding: 0% 5% 0% 5%; */
    font-family: "SloganFont";
    color: #000000;
    letter-spacing: 0.07em;
    margin: 5% 0 0 0;
    /* text-shadow: #FFE8A3 0px 0px 10px; */
    /* text-decoration: double underline; */
    background-color: #ecd387;
    /* box-shadow: 0 0 30px #FFE8A3; */
    /* border-radius: 5px; */

}

.section p {
    padding: 0% 5% 0% 5%;
    text-align: justify;
    margin: 5% 0 0 0;
}

.textBox {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.textBox img {
    display: flex;
    justify-content: center;
}

.textBox h3 {
    width: 100%;
}

.socialGroupe {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 75%;
    justify-content: center;

}

.social {
    display: flex;
}

.social a {
    /* display: block; */
    width: 48px;
    height: 48px;
    margin: 0 10px 10px 0;
    text-align: center;
    color: #fff;
    border: 1px solid #ccc;
    border-radius: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.social a:hover {
    border-color: #888;
    opacity: .8;
}

.social svg {
    margin-top: 7px;
    width: 32px;
    height: 32px;
}

.telegram a {
    background: #249bd7
}

.vk a {
    background: #4a76a8
}

.whatsapp a {
    background: #50b154
}


.instagram a {
    background: linear-gradient(-90deg, #7c5acc 0, #ce4aad 100%)
}

footer {
    display: flex;
    width: 100%;
    height: 20%;
    background: linear-gradient(#000000 1%, #FFE8A3 25%);
    justify-content: space-around;
    align-items: center;
    font-family: "SloganFont";
    color: #249bd7;
    padding-top: 10%;
    padding-bottom: 5%;
}

footer svg {
    width: 30%;
}

@font-face {
    font-family: "SloganFont";
    src: url("/PlayfairDisplaySC-Black.ttf") format("truetype");
}

@media screen and (min-width: 768px) {

    .wrapContainer {
        margin: auto;
        max-width: 1024px;
    }

    .logo {
        z-index: 2000;
    }

    .main {
        position: relative;
        flex-direction: row-reverse;
    }

    .majorImg {
        height: 100%;
    }

    .startButton {
        position: absolute;
        left: 75%;
        bottom: 30%;
        height: clamp(40px, 9vw, 60px);
        width: clamp(150px, 42vw, 200px);
        line-height: clamp(40px, 10vw, 60px);
        font-size: clamp(16px, 2.5em, 30px);
    }

    .slogan {
        font-size: clamp(16px, 3vw, 35px);
        margin-top: 10%;
    }

    .section:first-child {
        flex-direction: row;
    }

    .menuburger {
        position: static;
        margin-top: 5%;
        margin-right: clamp(10px, 9%, 25px);
    }

    .menuburgerMain {
        position: static;
        margin-top: 5%;
        margin-right: clamp(10px, 9%, 25px);
    }

    .section {
        display: flex;
    }

    .section img {
        max-width: 40%;
        margin-bottom: 0;
        margin-left: 5%;
    }

    #gallary img {
        margin-bottom: 5%;
    }
}

/* @media screen and (max-width: 1023px) {
    [id='nav-toggle']:checked~.wrapContainer .mastHead .menuburger {
        position: absolute;
        right: 0px;
        margin-top: 15%;
    }


} */