body {
    margin: 0; 
    font-family: 'Montserrat', sans-serif;
    
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

*,
*:before,
*:after{
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6{
    margin: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
}

.container1 {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    
}

.container__copy{ 
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 5vh;
    
    background-color: #333;
    background-size: cover;
}



/* Intro */

.intro{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
    
    background: url("../images/fon1.png") center no-repeat;
    background-size: cover;
}



.intro__inner{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}


.intro__title{
    color: #EFA94A;
    font-size: 65px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.intro__title:after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 60px auto;
    background-color: #fff;
}

.intro__subtitle{ 
    margin-bottom: 20%;
    
    font-family: 'Kaushan Script', cursive;
    font-size: 40px;
    color: #EFA94A;
    
}

/* Header */
.header{
    width: 100%;
    padding-top: 30px;

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header__inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo{
    font-size: 30px;
    font-weight: 700;
    color: #EFA94A;
}

/* Nav */
.nav {
    font-size: 14px;
    text-transform: uppercase; 
}

.nav__link{
    display: inline-block;
    vertical-align: top;
    margin: 0 15px;
    position: relative;
    
    color: #fff;
    text-decoration: none;
    transition: color 0.1s linear;
}

.nav__link:after{
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    
    background-color: #fce38a;
    opacity: 0;
    
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    
    transition: opacity 0.1s linear
}

.nav__link:hover{
    color: #fce38a;
}

.nav__link:hover:after,
.nav__link.active:after{
    opacity: 1;
}

.nav__link.active{
    color: #fce38a;
}

/* Button */
.btn {
    display: inline-block;
    vertical-align: top;
    padding: 8px 30px;
    
    border: 3px solid #fff;
    
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    
    transition: background 0.1s
    linear, color 0.1s linear;
}

.btn:hover {
    background-color: #fff;
    color: #333;    
}

/* Section */
.section1 {
    padding: 0;
}

.section {
    padding: 80px 0;
}



.section--gray {
    background-color: #f8f8f8;
    padding-top: 
}

.section__header{
    width: 100%;
    max-width: 1250px;
    margin: 0 auto 40px;
    
    text-align: center;
}

.section__suptitle{
    font-family: 'Kaushan Script', cursive;
    font-size: 24px;
    color: #EFA94A;
}

.section__suptitle__info{
    font-family: 'Kaushan Script', cursive;
    font-size: 24px;
    color: #EFA94A;
}

.section__suptitle__info:after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 30px auto;
    
    background-color: #f38181;
}

.section__title{
    font-size: 30px;
    font-weight: 700;
    color: #EFA94A;
    text-transform: uppercase;
}

.section__title:after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 30px auto;
    
    background-color: #f38181;
}

.section__title__info{
    font-size: 30px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.section__text {
    font-size: 18px;
    color: #999;
    text-align: justify;
}

.section__text1 {
    font-size: 18px;
    color: #999;
    text-align: justify;
}

/* About */
.about {
    display: flex;
    justify-content: space-between;
    margin-left: 0;
}

.about__item {
    width: 520px;
    height: 100%;
    background-color: #95e1d3;
    position: relative;
    border-radius: 40px;
}

.about__item:hover .about__img {
    transform: translate3d(-10px, -10px, 0);
    transition: transform 0.3s linear;
}

.about__item:hover .about__img img {
    opacity: 0.4;
}

.about__item:hover .about__text {
    opacity: 1;
}

.about__img {
    background: linear-gradient(to bottom, #f13181, #fce38a);
    transform: transform 0.1s linear;
    border-radius: 40px;
}

.about__img img {
    display: block;
    transition: opacity 0.2s linear;
    border-radius: 40px;
}

.about__img__size {
    width: 100%;
    height: auto;
    max-width: 520px;
    border-radius: 40px;
}

.about__text {
    width: 100%;
    font-size: 18px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    transform: translate3d(0, -50%, 0);
    transition: opacity 0.2s linear;
}



/* Media Queries */
@media (max-width: 768px) {
    .stat__item {
        padding: 35px 13px;
        flex-wrap: wrap;
    }
    
    .stat__num {
        font-size: 28px;
    }
    
    .stat__text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .stat__item {
        padding: 18px 9px;
    }
    
    .stat__num {
        font-size: 20px;
    }
    
    .stat__text {
        font-size: 8px;
    }
}




/* ФОТО ССЫЛКИ */
.link__img {
    width: 31.6%;
    height: 150px;
    margin: 5px; 
    transition: transform 0.5s;
    border: 4px solid #fce38a;
    border-radius: 10px; 
}

.link__img1 {
    width: 100%;
    height: 150px;
    margin: 5px; 
    transition: transform 0.5s;
    border: 4px solid #fce38a;
    border-radius: 10px; 
}

.link__img:hover,
.link__img1:hover {
    transform: scale(1.05);
    transition: transform 0.5s;
}

.link__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


.link__item {
    width: 12%;    
    position: relative;
    margin-bottom: 5px;
}

.link__item1 {
    width: 20%;    
    position: relative;
    margin-bottom: 5px;
}



.link__item:hover .link__text {
    opacity: 1;
    pointer-events: auto;
}


/* MOTIV */

.motiv__section {
    padding: 80px 0;
}

.motiv{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100vh;
    
    background: url("../images/fon2.png") center no-repeat;
    background-size: cover;
}

.motiv__header{
    width: 100%;
    max-width: 650px;
    margin: 0 auto 40px;
    text-align: center;
    
}

.motiv__suptitle{
    font-family: 'Kaushan Script', cursive;
    font-size: 24px;
    color: #EFA94A;
}

.motiv__title{
    font-size: 30px;
    font-weight: 700;
    color: #EFA94A;
    text-transform: uppercase;
}

.motiv__title:after{
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 30px auto;
    
    background-color: #f38181;
}

.motiv__text {
    font-family: 'Kaushan Script', cursive;
    font-size: 19px;
    color: #fff;
    text-align: center;
}







/* TEEEEEEEEEEEEST */

#slider { /*положение слайдера*/
    position: relative;
	text-align: center;
    top: 10px;
}

#slider{ /*центровка слайдера*/
	margin: 0 auto;
}

#slides article{ /*все изображения справа друг от доруга*/
	width: 20%;
	float: left;
}

#slides .image{ /*устанавливает общий размер блока с изображениями*/
	width: 500%;
	line-height: 0;
}

#overflow{ /*сркывает все, что находится за пределами этого блока*/
	width: 100%;
	overflow: hidden;
}

article img{ /*размер изображений слайдера*/
	width: 100%;
}

#desktop:checked ~ #slider{ /*размер всего слайдера*/
	max-width: 960px; /*максимальнная длинна*/
}

/*настройка переключения и положения для левой стрелки*/
/*если свич1-5 активны, то идет обращение к лейблу из блока с id контролс*/
#switch1:checked ~ #controls label:nth-child(5), 
#switch2:checked ~ #controls label:nth-child(1),
#switch3:checked ~ #controls label:nth-child(2),
#switch4:checked ~ #controls label:nth-child(3),
#switch5:checked ~ #controls label:nth-child(4){
	background: url('prev.png') no-repeat; /*заливка фона картинкой без повторений*/
	float: left;
	margin: 0 0 0 -84px; /*сдвиг влево*/
	display: block;
	height: 68px;
	width: 68px;
}

/*настройка переключения и положения для правой стрелки*/
#switch1:checked ~ #controls label:nth-child(2), 
#switch2:checked ~ #controls label:nth-child(3),
#switch3:checked ~ #controls label:nth-child(4),
#switch4:checked ~ #controls label:nth-child(5),
#switch5:checked ~ #controls label:nth-child(1){
	background: url('next.png') no-repeat; /*заливка фона картинкой без повторений*/
	float: right;
	margin: 0 -84px 0 0; /*сдвиг вправо*/
	display: block;
	height: 68px;
	width: 68px;
}

label, a{ /*при наведении на стрелки или переключатели - курсор изменится*/
	cursor: pointer;
}

.all input{ /*скрывает стандартные инпуты (чекбоксы) на странице*/
	display: none;
}

/*позиция изображения при активации переключателя*/
#switch1:checked ~ #slides .image{
	margin-left: 0;
}

#switch2:checked ~ #slides .image{
	margin-left: -100%;
}

#switch3:checked ~ #slides .image{
	margin-left: -200%;
}

#switch4:checked ~ #slides .image{
	margin-left: -300%;
}

#switch5:checked ~ #slides .image{
	margin-left: -400%;
}

#controls{ /*положение блока всех управляющих элементов*/
	margin: -25% 0 0 0;
	width: 100%;
	height: 50px;
}

#active label{ /*стиль отдельного переключателя*/
	border-radius: 10px; /*скругление углов*/
	display: inline-block; /*расположение в строку*/
	width: 30px;
	height: 15px;
	background: #bbb;
}

#active{ /*расположение блока с переключателями*/
	margin: 20% 0 0;
	text-align: center;
}

#active label:hover{ /*поведение чекбокса при наведении*/
	background: #76c8ff;
	border-color: #777 !important; /*выполнение в любом случае*/
}

/*цвет активного лейбла при активации чекбокса*/
#switch1:checked ~ #active label:nth-child(1),
#switch2:checked ~ #active label:nth-child(2),
#switch3:checked ~ #active label:nth-child(3),
#switch4:checked ~ #active label:nth-child(4),
#switch5:checked ~ #active label:nth-child(5){
	background: #18a3dd;
	border-color: #18a3dd !important;
}

#slides .image{ /*анимация пролистывания изображений*/
	transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
}


.photo{
    width: 950px;
    height: 760px;
    border: 4px solid #fce38a;
    border-radius: 50px; 
}


/* Copy */
.copy {
    font-size: 14x;
    color: #fff;
    text-align: center
}




@media (max-width: 1230px){

    /* Intro */
    .intro__subtitle {
        font-size: 35px;
    }
    
    .intro__title {
        font-size: 50px;
    }
    
    .photo{
    width: 700px;
    height: 560px;
     
}
    
    
}



@media (max-width: 990px){

    /* Intro */
    .intro__subtitle {
        font-size: 30px;
    }
    
    .intro__title {
        font-size: 45px;
    }
    
    /* Stat */
    .stat{
        justify-content: center;
    }
    
    .stat__item {
        flex: none;
        width: 35.33333%;
    }
    
    /* Motiv */ 
    .motiv__suptitle {
        font-size: 20px;
    }
    
    .motiv__title {
        font-size: 24px;
    }
    
    .motiv__text {
        font-size: 16px;
    }
    
    /* Comment */
    .comment__text {
        font-size: 16px;
    }
    
    .comment__photo {
        width: 150px; 
    }
    
    .comment__author {
        font-size: 16px;
    }
    
    .comment__author:before {
        width: 40px;
    }
    
    /* Test */
    .photo {
        width: 500px;
        height: 400px;
    }
    
    /* Copy */ 
    .copy {
        font-size: 12px;
    }
    

}


@media (max-width: 770px){

    /* Intro */
    .intro__subtitle {
        font-size: 20px;
    }
    
    .intro__title {
        font-size: 35px;
    }

    /* Section */
    .section {
        padding: 40px 0;
    }
    
            /* Motiv */ 
    .motiv__suptitle {
        font-size: 17px;
    }
    
    .motiv__title {
        font-size: 22px;
    }
    
    .motiv__text {
        font-size: 14px;
    }
    
     /* Comment */
    .comment__text {
        font-size: 12px;
    }
    
    .comment__photo {
        width: 120px; 
    }
    .comment__author {
        font-size: 12px;
    }
    
    .comment__author:before {
        width: 20px;
    }
    
     /* Copy */ 
    .copy {
        font-size: 10px;
    }
}

@media (max-width: 575px){

    /* Intro */
    .intro__subtitle {
        font-size: 15px;
    }
    
    .intro__title {
        font-size: 25px;
    }
           /* Motiv */ 
    .motiv__suptitle {
        font-size: 16px;
    }
    
    .motiv__title {
        font-size: 20px;
    }
    
    .motiv__text {
        font-size: 14px;
    }
    
    /* Comment */
    .comment__text {
        font-size: 10px;
    }
    
    .comment__photo {
        width: 100px; 
    }
    .comment__author {
        font-size: 10px;
    }
    
    .comment__author:before {
        width: 15px;
    }

    
    
    /* Section */
    .section__header {
        margin-bottom: 50px;
        justify-content: space-between;
    }
    
    .section__suptitle {
        font-size: 20px;
    }
    .section__title {
        font-size: 24px;
    }
    
    .section__title:after{
        margin: 20px auto;
    }
    
    

    
    
         /* Copy */ 
    .copy {
        font-size: 8px;
    }
    
    /* TEST */
    .photo {
        width: 300px;
        height: 200px;
    }
    
}




















