@import url('https://fonts.googleapis.com/css?family=Open+Sans');

* {
	box-sizing: border-box;
	max-height: 9001em;
}

html,
body {
	padding: 0;
	margin: 0;
}

html {
	font-size: 1em;
}

body {
	font-size: 100%;
}

a img,
:link img,
:visited img {
	border: 0;
}

body {
	background-color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #000;
	font-weight: 100;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	min-width: 400px
}

h2 {
	font-size: 35px;
	font-weight: bold;
	color: #f25000;
	text-shadow: black 1px 1px 0, white -1px -1px 0, white -1px 1px 0, white 1px -1px 0;
	font-family: 'Calibri', sans-serif;
}

header {
	position: fixed;
	display: inline;
	top: 0;
	z-index: 1;
	width: 100%;
	background-color: white;
	height: 100px;
}

header>div {
	margin: 0 auto;
}

#nav_left {
	float: left;
}

#nav_left p {
	margin: 0;
}

#nav_right {
	float: right;
	padding-top: 5px;
}

#nav_right>div {
	text-align: right;
}

header ul {
	padding: 0;
	list-style: none;
	text-align: center;
	border: 1px solid black;
	float: right;
	height: 50px;
}

header li {
	float: left;
	width: 100px;
	margin: 0 25px;
	padding: 0;
	text-align: center;
}

nav a {
	position: relative;
	text-decoration: none;
	color: rgba(34, 34, 34, .8);
	height: 40px;
	margin: 0 auto;
	display: block;
	padding-top: 10px;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0% 100%;
	background-repeat: no-repeat;
	background-size: 0% 2px;
	transition: background-size .3s;
}

nav a:hover {
	color: rgba(34, 34, 34, 1);
	background-size: 100% 2px;
	background-image: linear-gradient(#f25000, #f25000);
	transition: background-size 0.4s ease-out;
}

nav a .car-icon {
	position: absolute;
	bottom: 0px;
	left: 0;
	font-size: 0.6rem;
	color: #f25000;
	opacity: 0;
	transform: translateX(-20px);
	transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

nav a:hover .car-icon {
	opacity: 1;
	transform: translateX(calc(100% + 78px));
}

header span {
	padding: 0 15px;
}

#nav_left {
	width: 130px;
	margin-bottom: 5px;
}

#nav_left a {
	text-decoration: none;
}

#foto {
	min-height: 100vh;
	background-image: url(../images/hero-bg.jpg);
	background-size: cover;
	height: 100%;
}

#fir {
	padding-top: 300px;
	height: 100%;
	text-align: center;
	font-weight: bolder;
	font-size: 35px;
	color: #FFF;
	font-family: 'Calibri', sans-serif;
}

#fir h1 {
	font-size: 50px;
	font-weight: bold;
	color: #f25000;
	text-shadow: white 1px 1px 0, white -1px -1px 0, white -1px 1px 0, white 1px -1px 0;
}

#obl,
#adr,
#con div,
#price div,
#att {
	margin: 10px auto;
	font-size: 25px;
	color: black;
	font-family: 'Calibri', sans-serif;
}

.hero-btn {
	display: inline-block;
	margin-top: 20px;
	padding: 15px 30px;
	background-color: #f25000;
	color: #fff;
	text-decoration: none;
	font-size: 24px;
	font-weight: bold;
	border-radius: 5px;
	transition: background-color .3s, transform .3s;
}

.hero-btn:hover {
	background-color: #d94800;
	transform: translateY(-2px);
}

#con {
	background-color: #00000008;
}

.con-container {
	margin: 10px auto;
	font-size: 20px;
	color: black;
	font-family: 'Calibri', sans-serif;
}

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

.con-column {
	flex: 1;
	min-width: 300px;
	padding: 0 15px;
}

.con-column p {
	margin: 0;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
}

.contact-item i {
	font-size: 2.5rem;
	color: #f25000;
}

.con-column a {
	color: #000;
	text-decoration: none;
}

.con-column a:hover {
	color: #f25000;
	text-decoration: underline;
}
@media (max-width: 767px) {
	.con-content {
		flex-direction: column;
	}
}

#price {
	background-color: #00000008;
}

#price h6 {
	font-size: 20px;
	font-weight: bold;
}

#price div {
	padding-bottom: 20px;
}

#obl div {
	display: inline-block
}

.left {
	float: left;
	width: 450px;
	height: 100%;
}

.right {
	width: 720px;
}

.right img {
	width: 100%;
}

#att div {
	float: left;
	width: 550px;
	margin: 10px;
	padding: 10px;
}

a.bot8 {
	background-color: #FFFFFF;
	border: 1px solid #CCCCCC;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
	transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	border-radius: 4px;
	display: block;
	width: 500px;
	margin: 20px auto;
	font-size: 30px;
	font-weight: bold;
	color: #f25000;
	text-shadow: black 1px 1px 0, white -1px -1px 0, white -1px 1px 0, white 1px -1px 0;
	font-family: 'Calibri', sans-serif;
	text-align: center;
	height: 200px;
	line-height: 50px;
	padding: 4px 6px;
	vertical-align: center;
	text-decoration: none;
	margin: 0;
	padding: 30px;
}

a.bot8:hover,
a.bot8:focus {
	border-color: rgba(240, 80, 0, 0.8);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(240, 80, 0, 0.6);
	outline: 0 none;
}

#foot {
	background-color: black;
	color: white;
	overflow: auto;
}

footer {
	width: 1050px;
	margin: 0 auto;
}

footer div {
	float: left;
	margin: 0 25px;
	width: 300px;
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 20px 0;
}

.footer-column {
	padding: 0 15px;
	margin-bottom: 20px;
}

.footer-column h4 {
	font-size: 1.2rem;
	color: #f25000;
	margin-bottom: 15px;
}

.footer-column p,
.footer-column address,
.footer-column li {
	margin-bottom: 10px;
}

.footer-column a {
	color: white;
	text-decoration: none;
}

.footer-column a:hover {
	text-decoration: underline;
}

.footer-column ul {
	list-style: none;
	padding: 0;
}

.footer-column ul li {
	display: flex;
	justify-content: space-between;
}

#wrap1,
#wrap2,
#wrap3,
#wrap4,
#wrap5,
#wrap6,
#wrap7 {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	padding: 16px;
	background-color: rgba(1, 1, 1, 0.725);
	z-index: 100;
	overflow: auto;
}

#window1,
#window2,
#window3,
#window4,
#window5,
#window6 {
	margin: auto;
	background: #fff;
	z-index: 200;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	overflow: auto;
}

#window2 {
	width: 730px;
	height: 850px;
	overflow: auto;
}

#window1,
#window3,
#window6 {
	width: 80%;
	height: 80%;
}

#window4,
#window5 {
	width: 500px;
	height: 500px;
}

#window1 img {
	width: 570px;
	height: 800px;
}

.close {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 30px;
	height: 30px;
	opacity: 0.3;
}

.close:hover {
	opacity: 1;
}

.close:before,
.close:after {
	position: absolute;
	left: 15px;
	content: ' ';
	height: 30px;
	width: 2px;
	background-color: #333;
}

.close:before {
	transform: rotate(45deg);
}

.close:after {
	transform: rotate(-45deg);
}

.close_out {
	height: 100%;
	weight: 100%;
}

.win_text {
	background-color: #00000008;
	padding-left: 20px;
	margin-left: 20px;
	width: 400px;
	height: 450px;
}

.win_text h2 {
	font-size: 30px
}

.win_text p {
	font-size: 20px;
	font-weight: bold;
}

.win_text span {
	padding-left: 40px;
}

.win_text span span {
	padding-left: 60px;
}

@media screen and (max-width: 576px) {
	header>div {
		width: 400px;
	}

	#obl,
	#adr,
	.con-container,
	#price div,
	#att,
	footer {
		width: 400px;
	}

	.site-footer {
		flex-direction: column;
		align-items: center;
	}

	#fir {
		font-size: 20px;
	}

	#fir h1 {
		font-size: 30px;
	}

	#att div {
		width: 400px;
		height: 240px;
		font-size: 25px;
		margin: 3px auto;
	}

	a.bot8 {
		width: 380px;
		margin: 10px 0;
		padding: 2px;
	}

	.menu-icon {
		display: inline-block;
		cursor: pointer;
		float: right;
		padding: 30px;
	}

	#nav_right>div {
		display: none;
	}

	.dell {
		display: none;
		opacity: 0;
		transition: 1s;
	}

	.worker {
		display: block;
		position: absolute;
		right: 0;
		top: 100px;
		opacity: 1;
		transition: 1s;
		background: white;
	}

	.worker ul {
		display: block;
		float: none;
		height: 100%;
		margin: 3px;
		padding-right: 5px;
	}

	.worker li {
		display: block;
		float: none;
	}

	.right {
		width: 400px;
	}

	#window1,
	#window2,
	#window3,
	#window4,
	#window5,
	#window6 {
		width: 90%;
		height: 90%;
	}

	#window4,
	#window5 {
		width: 90%;
		height: 460px;
	}

	.close {
		right: 0;
		top: 0;
	}

	.win_text {
		width: auto;
		height: auto;
	}
}

@media screen and (min-width: 576px) {
	header>div {
		width: 570px;
	}

	#obl,
	#adr,
	.con-container,
	#price div,
	#att,
	footer {
		width: 570px;
	}

	#att div {
		margin: 3px auto;
	}

	.menu-icon {
		display: inline-block;
		cursor: pointer;
		float: right;
		padding: 30px;
	}

	#nav_right>div {
		display: none;
	}

	.dell {
		display: none;
		opacity: 0;
		transition: 1s;
	}

	.worker {
		display: block;
		position: absolute;
		right: 0;
		top: 100px;
		opacity: 1;
		transition: 1s;
		background: white;
	}

	.worker ul {
		display: block;
		float: none;
		height: 100%;
		margin: 5px;
		padding-right: 5px;
	}

	.worker li {
		display: block;
		float: none;
		margin: 10px;
		width: 150px;
	}

	.right {
		width: 570px;
	}

	#window1,
	#window2,
	#window3,
	#window6 {
		width: 90%;
		height: 90%;
	}

	.close {
		right: 0;
		top: 0;
	}
}

@media screen and (min-width: 768px) {
	#nav_right>div {
		display: block;
	}

	.dell {
		display: block;
		opacity: 1;
	}

	.menu-icon {
		display: none;
	}

	#nav_right {
		display: block;
	}

	header>div,
	.con-container {
		width: 750px;
	}

	#obl,
	#adr,
	#price div,
	#att,
	footer {
		width: 750px;
	}

	#att div {
		margin: 10px auto;
	}

	header li {
		width: 90px;
		margin: 0 10px;
	}

	.right {
		width: 720px;
	}

	#window2 {
		width: 730px;
		overflow: auto;
	}

	#window1,
	#window3,
	#window4,
	#window5,
	#window6 {
		width: 80%;
		height: 80%;
	}

	#window4,
	#window5 {
		width: 500px;
		height: 500px;
	}

	.close {
		right: 20px;
		top: 20px;
	}

	.win_text {
		width: auto;
		height: auto;
	}
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    header {
        height: auto;
    }
}

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

	header>div,
	.con-container {
		width: 950px;
	}

	#obl,
	#adr,
	#price div,
	#att,
	footer {
		width: 950px;
	}

	#att div {
		margin: 10px auto;
	}

	header li {
		width: 100px;
		margin: 0 25px;
	}
}

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

	header>div,
	.con-container {
		width: 1170px;
	}

	#obl,
	#adr,
	#price div,
	#att,
	footer {
		width: 1170px;
	}
}

.bar1,
.bar2,
.bar3 {
	width: 40px;
	height: 5px;
	background-color: #333;
	margin: 6px 0;
	transition: 0.4s;
}

.change .bar1 {
	-webkit-transform: rotate(-45deg) translate(-9px, 6px);
	transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {
	opacity: 0;
}

.change .bar3 {
	-webkit-transform: rotate(45deg) translate(-8px, -8px);
	transform: rotate(45deg) translate(-8px, -8px);
}


/* Стиль для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: 'Calibri', sans-serif;
}

/* Кнопка закрытия */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #f25000;
    text-decoration: none;
}

.modal-content h2 {
    text-align: center;
    margin-top: 0;
}

#appointmentForm {
    display: flex;
    flex-direction: column;
}

#appointmentForm label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

#appointmentForm input[type="text"],
#appointmentForm input[type="email"],
#appointmentForm input[type="tel"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color .2s, box-shadow .2s;
}

#appointmentForm input:focus {
    border-color: #f25000;
    box-shadow: 0 0 8px rgba(242, 80, 0, 0.6);
    outline: none;
}

.submit-button {
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #f25000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color .3s, transform .3s;
}

.submit-button:hover {
    background-color: #d94800;
    transform: translateY(-2px);
}

.submit-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Стили для контейнера и кнопок выбора времени */
.time-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.time-slot-button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.time-slot-button:hover {
    background-color: #e9e9e9;
    border-color: #bbb;
}

.time-slot-button.active {
    background-color: #f25000;
    color: #fff;
    border-color: #d94800;
    font-weight: bold;
}

.no-slots {
    color: #777;
}

/* Стили для уведомлений и индикатора загрузки */
.form-feedback {
    display: none; /* Скрыт по умолчанию */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
}

.form-feedback.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-loader {
    display: none; /* Скрыт по умолчанию */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f25000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стиль для подсветки неверно выбранной даты в календаре */
.input-error {
    border-color: #e74c3c !important; /* Ярко-красный цвет рамки */
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5); /* Легкая тень для акцента */
}
