/* Main */
.main{
	max-width: 1250px;
	grid-template-columns: auto;
	grid-template-areas: 	"er"
							"contacts"
							"about";
}



/* Separator */
.separator{
	display: grid;
	position: relative;
	margin-bottom: 10px;
	grid-template-columns: 40px auto 1fr;
	align-items: center;
	text-transform: uppercase;
	white-space: nowrap;
	font-size: 22px;
	color: rgb(var(--main-color));
}
.separator::before, .separator::after{
	content: '';
	width: calc(100% - 10px);
	border: 2px solid rgb(var(--main-color));
	border-radius: 2px;
}
.separator::after{
	justify-self: end;
}



/* Main block */
.main-block{
	display: flex;
	padding: 10px 5px 20px 5px;
	background-color: rgba(16,16,16,0.8);
	border-radius: 5px;
	flex-direction: column;
}



/* ER */
.main-course{
	display: grid;
	grid-template-columns: auto;
	gap: 20px;
}


/* Message */
.message{
	text-align: justify;
	color: white;
}
.message > span{
	color: rgb(var(--main-color));
}


/* Calc */
.calc-container{
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
.calc{
	display: flex;
	min-width: 300px;
	width: 100%;
	padding: 8px 10px;
	border-top: 1px solid rgb(var(--main-color));
	border-bottom: 1px solid rgb(var(--main-color));
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	gap: 20px;
	color: white;
}
.calc-first{
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 10px;
}
.calc-second{
	display: flex;
	width: 225px;
	flex-direction: column;
	gap: 10px;
}
.calc-second > div{
	display: flex;
	flex-direction: column;
	gap: 0;
}




.calc select, .calc input, .calc button{
	width: 160px;
}
.calc button{
	padding: 0;
}
.calc input{
	width: 158px;
}

.calc-label{
	text-align: right;
}
#calc-button{
	grid-column: 2;
}
.calc-caption{
	text-align: center;
	font-size: 20px;
}
.calc-value{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-weight: bold;
}

#calc-output, #calc-course, #calc-output-vip, #calc-course-vip{
	text-align: right;
	font-weight: normal;
	font-size: 20px;
	color: rgb(var(--main-color));
}
#calc-output-vip, #calc-course-vip, #calc-label-course-vip{
	display: none;
}
.calc.is-vip #calc-output, .calc.is-vip #calc-course{
	text-decoration: line-through;
	font-weight: 200;
	font-size: 17px;
	color: white;
}
.calc.is-vip #calc-output-vip, .calc.is-vip #calc-course-vip, .calc.is-vip #calc-label-course-vip{
	display: block;
}
.calc.is-vip #calc-label-course{
	display: none;
}

#calc-label-course-vip > span{
	color: rgb(var(--main-color));
}

#calc-type, #calc-currency, #calc-input{
	animation-duration: 1s;
}


/* Table */
#table tbody td{
	cursor: pointer;
}
#table tbody > tr > td:nth-child(2), #table tbody > tr > td:nth-child(4){
	border-right: 1px solid white;
}
#table img{
	width: 22px;
}
#table img.dollar{
	height: 24px;
}
/* VIP */
#table thead > tr:nth-child(1) > th{
	color: rgb(var(--main-color));
}
#table thead > tr > th:nth-child(3){
	color: rgb(var(--main-color));
}
#table tbody > tr > td:nth-child(5), #table tbody > tr > td:nth-child(6){
	color: rgb(var(--main-color));
} 
/* Table hover */
#table tbody > tr:hover > td{
	color: black;
}



/* Main department */
.main-department{
	display: grid;
	height: 100%;
	grid-template-columns: auto;
	align-items: flex-start;
	justify-items: center;
	gap: 20px;
}
.main-department > iframe{
	width: 100%;
	height: 300px;
	margin-top: auto;
}
.main-department > img{
	width: 100%;
}

.main-department > div{
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	white-space: nowrap;
	color: white;
}
.main-department > div > div{
	text-align: right;
	color: rgb(var(--main-color));
}
.main-department a{
	color: white;
}
.main-department a:hover{
	color: rgb(var(--main-color));
}



/* About */
.main-about{
	text-align: justify;
	color: white;
}
.main-about h1{
	font-weight: 500;
	font-size: 20px;
}
.main-about p{
	font-weight: 200;
}
.main-about b{
	font-weight: 500;
}



/* Courses updated */
.courses-updated{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.courses-updated > div{
	text-align: center;
	font-size: 18px;
}
.courses-updated > div > b{
	font-size: 24px;
	font-weight: 600;
}
.courses-updated > button{
	padding: 6px 15px;
	background: transparent;
	border: 2px solid rgb(10,10,10);
	cursor: pointer;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 15px;
	transition-duration: 0.2s;
}
.courses-updated > button:hover{
	background-color: rgb(10,10,10);
	color: white;
}

/* MEDIA */
/* > 1300px */
@media (min-width: 1300px) {
}

/* > 1100px */
@media (min-width: 1100px) {
    .calc{
		flex-direction: row;
	}
}

/* > 900px */
@media (min-width: 900px) {
    /* Main */
	.main{
		grid-template-columns: 2fr 1fr;
		grid-template-areas:	"er contacts"
								"about about";
	}

    .separator{
        margin-bottom: 20px;
        font-size: 28px;
    }
    .separator::before, .separator::after{
        width: calc(100% - 15px);
    }

    .message{
        font-size: 18px;
    }

    .main-course{
        gap: 30px 20px;
    }

	.calc-label{
		font-size: 18px;
	}
	.calc-caption{
		font-size: 22px;
	}
	#calc-output, #calc-course, #calc-output-vip, #calc-course-vip{
		font-size: 25px;
	}
	#calc-output.is-vip, #calc-course.is-vip{
		font-size: 22px;
	}
	.calc-value{
		font-size: 22px;
	}

    #table > table{
        font-size: 20px;
    }
	#table img{
        margin-top: 5px;
    }
    #table tbody td:nth-child(1) > img{
        width: 28px;
    }
	#table tbody td:nth-child(2) > img{
        width: 24px;
    }
	#table img.dollar{
		height: 28px;
	}

    .main-department{
        font-size: 18px;
    }

    .main-about{
        font-size: 18px;
    }
    .main-about h1{
        font-size: 24px;
    }
}

/* 600 - 900 px */
@media (min-width: 600px) and (max-width: 899px) {
    /* Main */    
}

/* 700 - 900 px */
@media (min-width: 700px) and (max-width: 899px) {
    /* Main */
	.calc{
		flex-direction: row;
	}

	.main-department{
		grid-template-columns: auto 1fr;
	}
	.main-department > iframe{
		grid-column: 1 / 3;
	}
}

/* > 600px */
@media (min-width: 600px) {
    .main-block{
        padding: 25px 35px;
		border-radius: 10px;
    }

    .main-department > img{
		max-width: 500px;
	}

	/* Courses updated */
	.courses-updated{
		gap: 20px;
	}
	.courses-updated > div{
		font-size: 22px;
	}
	.courses-updated > div > b{
		font-size: 28px;
	}
	.courses-updated > button{
		padding: 10px 25px;
		font-size: 18px;
	}
}