@import url('reset.css');
@import url('fonts.css');

html {
	font-size: 62.5%;
	height: 100%;
	line-height: 180%;
}

body {
	font: 3.6rem 'td_volshebstvoregular';
	color: #ba281e;
	text-align: center;
}

.wrapper {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px;
}


img {
	max-width: 100%;
}

.fluid {
	display: block;
	width: 100%;
}

header {
	background-image: url('../images/bg.jpg');
	overflow: hidden;
	background-position: 50% 50%;
	background-size: cover;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
/*	padding: 40px;*/
}

header .okno {
	background-image: url('../images/main.png');
	background-position: 50% 50%;
	background-size: cover;
	height: 90vh;
	aspect-ratio: 712/962;
}

.timer {
	margin: 60px auto 40px;
  color: #fff;
  transform: scale(1.5);
}

.timer small {
	font-size: 1.6rem;
	display: block;
	margin-bottom: 8px;
}

.logo {
	max-width: 820px;
}

.names {
	max-width: 780px;
	margin-top: 30px;
}

.intro {
	height: 200px;
	background-image: url('../images/uzor.png');
	background-size: contain;
}

.welcome {
	background-color: #ba281e;
	color: #fff;
}

.welcome .simple-text {
	color: #fae0a7;
	display: block;
}

.welcome .wrapper {
	display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome .rules {
	padding: 15px 0;
	border-top: 3px solid #fae0a7;
	border-bottom: 3px solid #fae0a7;
}

h2, h3, h4 {
	text-transform: uppercase;
}

h2 {
	font-size: 7.5rem;
	margin: 4rem auto 3rem;
	line-height: 110%;
}

h3 {
	font-size: 6.5rem;
	margin: 8rem auto 2.5rem;
	position: relative
}

h3:after {
	content: "";
	display: block;
	margin: 0 auto 0;
	width: 190px;
	height: 3px;
	background-color: #ba281e;
}

h4 {
	font-size: 4.2rem;
	margin: 2rem auto 1.5rem;
}

.text {
	display: inline-block;
}

.simple-text {
	color: #444444;
	margin: 3rem auto;
}

span a {
	color: #8f001c;
	text-decoration: underline;
}

.palette {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 680px;
	margin: 0 auto 3rem;
}

.palette > div {
	margin: 0 10px 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.palette .color {
	width: 80px;
	height: 80px;
	border-radius: 100%;
	border:2px solid #ddd;
}

.color-bur {
	background-color: #8f001c;
}
.color-red {
	background-color: #c3001d;
}
.color-beg {
	background-color: #d6c2a9;
}
.color-bel {
	background-color: #fff;
}
.color-ser {
	background-image: -moz-linear-gradient( 0deg, rgb(134,134,134) 0%, rgb(236,236,236) 39%, rgb(132,132,132) 100%);
	background-image: -webkit-linear-gradient( 0deg, rgb(134,134,134) 0%, rgb(236,236,236) 39%, rgb(132,132,132) 100%);
	background-image: -ms-linear-gradient( 0deg, rgb(134,134,134) 0%, rgb(236,236,236) 39%, rgb(132,132,132) 100%);
}
.color-zol {
	background-image: -moz-linear-gradient( 0deg, rgb(224,209,94) 0%, rgb(169,128,12) 39%, rgb(250,243,137) 100%);
	background-image: -webkit-linear-gradient( 0deg, rgb(224,209,94) 0%, rgb(169,128,12) 39%, rgb(250,243,137) 100%);
	background-image: -ms-linear-gradient( 0deg, rgb(224,209,94) 0%, rgb(169,128,12) 39%, rgb(250,243,137) 100%);
}
.color-zel {
	background-color: #81a857;
}
.color-cher {
	background-color: #1b1b1b;
}
.palette span {
	font-size: 2rem;
	color: #949494;
	margin-top: 15px;
}

.programm {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 7rem auto 11rem;
}

.programm > div {
	width: 28%;
	display: flex;
	position: relative;
}

.programm > div:not(:last-child):after {
	content: "";
	position: absolute;
	left: 80%;
	top: 30px;
	width: 120px;
	height: 2px;
	border-bottom: 2px dotted #8f001c;
}

.programm img {
	max-width: 75px;
}

.programm .desc {
	display: flex;
	flex-direction: column;
	text-align: left;
	margin-left: 15px;
	margin-top: 10px;
}

.programm .time {
	font-size: 3.8rem;
}

.programm .title {
	font-size: 2.5rem;
	color: #444444;
}

.wishes {
	max-width: 700px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	counter-reset: wishes;
}

.wishes > .text {
	padding-left: 105px;
	position: relative;
	text-align: left;
	counter-increment: wishes;
}

.wishes > .text:before {
	content: counter(wishes);
	text-align: center;
	line-height: 65px;
	font-size: 5rem;
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -32px;
	width: 65px;
	height: 65px;
	border-radius: 100%;
	background-color: #ba281e;
	color: #fff;
}

.countdown {
	width: 660px;
	height: 660px;
	position: relative;
	margin: 60px auto 90px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	padding: 70px 0;
}

.countdown:after {
	content: "";
	position: absolute;
	width: 620px;
	height: 620px;
	border-radius: 100%;
	background-color: #8f001c;
	top: 20px;
	left: 20px;
	z-index: -1;
}

.countdown > span {
	color: #fff;
	text-transform: uppercase;
}
.countdown .begin {
	font-size: 4.2rem;
}

.countdown .date {
	font-size: 5.3rem;
}

.countdown > span b {
	display: block;
}

.countdown > div {
	background-color: #fff;
	padding: 50px 0;
	box-shadow: 0px 9px 54px 0px rgba(85, 86, 86, 0.41);
}

.anketa {
	background-color: #f0ebeb;
}

.dress {
	background-image: url('../images/kok.jpg');
	background-position: 100% 430px;
	background-repeat: no-repeat;
}


form {
	color: #444444;
	margin: 7rem auto;
}

input[type="text"]::placeholder {
	color: #989595;
}

input {
	font-size: 2.8rem;
}

.textlabel {
	margin-bottom: 15px;
	font-size: 2.6rem;
}

.inputs {
	max-width: 780px;
	margin: 0 auto;
	padding: 20px 25px;
 box-shadow: -60px 0px 100px -130px #777, 60px 0px 100px -130px #777;

}

.inputs .row {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-bottom: 1px solid #bcb9b9;
	padding-bottom: 20px;
	margin-bottom: 2.5rem;
}

.inputs .row > div {
	display: flex;
	justify-content: center;
/*	gap:15px;*/
}

.inputs .row > div > div {
	margin: 0 15px;
}

input[type="text"] {
    padding: 8px 10px;
}

.is-invalid {
    border:1px solid red;
}

.inputs .row > div > div div {
	margin: 10px 0;
}

.action {
	background-color: #ba281e;
	color: #fff;
	font-size: 2.6rem;
	padding: 2rem 7rem;
	border-radius: 30px;
	margin-top: 4rem;
	transition: .2s;
}

.action:hover {
	background-color: red;
}


.custom-checkbox {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.custom-checkbox+label {
  display: flex;
  align-items: center;
  user-select: none;
  color: #9a9797;
  font-size: 2.8rem;

}
.custom-checkbox+label::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  flex-grow: 0;
  border: 2px solid #9a9797;
  border-radius: 0.2em;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
  vertical-align: top;
}
.custom-checkbox:checked+label::before {
  border-color: #444444;
  background-color: #444444;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
.custom-checkbox:checked+label {
	color: #444444;
}
.custom-checkbox:not(:disabled):not(:checked)+label:hover::before {
  border-color: #b3d7ff;
}
.custom-checkbox:not(:disabled):active+label::before {
  background-color: #b3d7ff;
  border-color: #b3d7ff;
}
.custom-checkbox:focus+label::before {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.custom-checkbox:focus:not(:checked)+label::before {
  border-color: #80bdff;
}
.custom-checkbox:disabled+label::before {
  background-color: #e9ecef;
}


.custom-radio {
    position: absolute;
    z-index: -1;
    opacity: 0;
  }
  .custom-radio+label {
    display: flex;
    align-items: center;
    user-select: none;
    color: #989595;
  	font-size: 2.8rem;
  }
  .custom-radio+label::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid #9a9797;
    border-radius: 50%;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    vertical-align: top;
  }
  .custom-radio:not(:disabled):not(:checked)+label:hover::before {
    border-color: #b3d7ff;
  }
  .custom-radio:not(:disabled):active+label::before {
    background-color: #b3d7ff;
    border-color: #b3d7ff;
  }
  .custom-radio:focus+label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  .custom-radio:focus:not(:checked)+label::before {
    border-color: #80bdff;
  }
  .custom-radio:checked+label::before {
    border-color: #444444;
    background-color: #444444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  }
  .custom-radio:checked+label {
  	color: #444444;
  }
  .custom-radio:disabled+label::before {
    background-color: #e9ecef;
  }

footer {
	display: flex;
	justify-content: center;
	align-items: center;
}

footer.wrapper {
	padding: 8rem 4rem;
}

footer > div {
	margin: 0 20px;
}

footer img {
	max-width: 175px;
}

footer .org {
	font: 1.8rem/1.8 'Gotham Pro';
	text-align: left;
	color: #444444;
}

footer .org a {
	font-weight: 500;
	text-decoration: underline;
}

@media screen and (max-width: 900px) {
	html {
		font-size: 50%;
	}
	.logo, .names {
	    max-width: 100%;
	}
	.dress {
		background-position: 100% 340px;
	}
}

@media screen and (max-width: 800px) {
	.programm > div:not(:last-child):after {
	    left: 93%;
	    width: 60px;
	}
	.dress {
		background-position: 100% 370px;
		background-size: 180px 282px;
	}
}

@media screen and (max-width: 740px) {
	h2 {
	    font-size: 9rem;
/*	    margin: 7rem auto;*/
	}
	.countdown {
	    width: 560px;
	    height: 560px;
	}
	.countdown:after {
	    width: 520px;
	    height: 520px;
	}
	.intro {
    height: 140px;
}
.inputs .row > div {
    gap: 15px;
    flex-direction: column;
}
}

@media screen and (max-width: 680px) {
	.programm {
	    margin: 7rem auto 8rem;
	    justify-content: center;
	}
	.programm > div {
	    width: 45%;
	    margin-bottom: 30px;
	}
	.programm > div:not(:last-child):after {
		display: none;
	}
}

@media screen and (max-width: 640px) {
	.countdown {
	    width: 460px;
	    height: 460px;
	}
	.countdown:after {
	    width: 420px;
	    height: 420px;
	}

	.countdown .begin {
	    font-size: 3.2rem;
	}
	.countdown .date {
	    font-size: 4.3rem;
	}
	.countdown {
	    padding: 45px 0;
	}

	.countdown > div > div {
	    transform: scale(0.7) !important;
	}
	.timer {
    margin: 40px auto 40px;
    transform: initial;
	}
	.timer small {
    font-size: 2.4rem;
	}
}

@media screen and (max-width: 580px) {
	.dress {
    font-size: 3rem
	}
	h2 {
	    font-size: 8rem;
	    margin: 2rem auto;
	}
	h3 {
	    font-size: 5.5rem;
	    margin: 6rem auto 2.5rem;
	}
	.programm {
	    flex-direction: column;
	    align-items: center;
	}
	.inputs {
		padding: 20px 0px;
	 box-shadow: none;

	}
	.wrapper {
		padding: 20px;
	}
	.dress {
		background-position: 100% 310px;
		background-size: 130px 204px;
	}
}

@media screen and (max-width: 500px) {
	html {
	    font-size: 45%;
	}
	.programm .time {
	    font-size: 5.8rem;
	}
	.programm .title {
	    font-size: 3rem;
	}
	.wishes > .text {
	    padding-left: 80px;
	}
	.wishes > .text:before {
	    line-height: 45px;
	    font-size: 4rem;
	    margin-top: -22px;
	    width: 45px;
	    height: 45px;
	}

	.countdown {
	    width: 100%;
	    background-color: #8f001c;
	    margin: 30px auto 40px;
	}
	.countdown:after {
	    display: none;
	}
	.countdown .date, .countdown .begin {
	    font-size: 4.6rem;
	}
	.countdown > div {
	    margin: 20px 0 30px;
	}
	.dress {
		background-image: none;
	}
}




