/* Base Styles and Variables */
:root {
	--primary-color: #292b73;
	--accent-color: #ffb400;
	--bg-color: #f7f7f9;
	--text-color: #111111;
	--light-color: #ffffff;
	--shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
	--border-radius: 5px;
	--header-height: 80px; /* Увеличиваем высоту шапки для лучшей видимости */
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	width: 100%;
	overflow-x: hidden;
	scroll-padding-top: var(--header-height);
	scroll-behavior: smooth;
}

body {
	font-family: "Arial", sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
	overflow-x: hidden;
	max-width: 100%;
	position: relative;
	box-sizing: border-box;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

a {
	text-decoration: none;
	color: var(--primary-color);
	transition: var(--transition);
}

a:hover {
	color: var(--accent-color);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul {
	list-style: none;
}

section {
	padding: 80px 0 60px;
	width: 100%;
	scroll-margin-top: var(--header-height);
	margin-top: 0;
}

section[id] {
	scroll-margin-top: var(--header-height);
}

/* Anchor Targets - добавляем отдельный класс для лучшей видимости при переходе по якорям */
section[id]::before {
	content: "";
	display: block;
	height: var(--header-height);
	margin-top: calc(var(--header-height) * -1);
	visibility: hidden;
	pointer-events: none;
}

#uber-uns,
#dienstleistungen,
#vorteile,
#faq,
#kontakt,
#order-form {
	scroll-margin-top: var(--header-height);
}

.btn {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--accent-color);
	color: var(--light-color);
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	font-weight: bold;
	text-align: center;
}

.btn:hover {
	background-color: var(--primary-color);
	color: var(--light-color);
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.section-title {
	text-align: center;
	margin-bottom: 40px;
	padding-top: 0;
	margin-top: 0;
}

.section-title h2 {
	color: var(--primary-color);
	font-size: 2.5rem;
	margin-bottom: 15px;
	margin-top: 0;
	position: relative;
	display: inline-block;
}

.section-title h2::after {
	content: "";
	position: absolute;
	width: 60px;
	height: 3px;
	background-color: var(--accent-color);
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
}

.section-title p {
	color: var(--text-color);
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto;
}

/* Header Styles */
header {
	background-color: var(--light-color);
	box-shadow: var(--shadow);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	height: var(--header-height);
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	width: 100%;
}

.logo {
	z-index: 101;
}

.logo img {
	height: 50px;
	width: auto;
}

.main-nav {
	position: relative;
}

.main-nav .nav-menu {
	display: flex;
}

.main-nav .nav-menu li {
	margin-left: 30px;
}

.main-nav .nav-menu a {
	color: var(--primary-color);
	font-weight: 600;
	position: relative;
	display: block;
	padding: 5px 0;
}

.main-nav .nav-menu a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	background-color: var(--accent-color);
	bottom: 0;
	left: 0;
	transition: var(--transition);
}

.main-nav .nav-menu a:hover::after {
	width: 100%;
}

.menu-toggle {
	display: none;
}

.menu-icon {
	display: none;
}

/* Hero Section */
.hero {
	background: linear-gradient(to right, rgba(41, 43, 115, 0.9), rgba(41, 43, 115, 0.7)), url("../img/GrbvBn.jpg");
	background-size: cover;
	background-position: center;
	color: var(--light-color);
	text-align: center;
	padding: calc(var(--header-height) + 100px) 0 100px;
	scroll-margin-top: var(--header-height);
}

.hero-content {
	max-width: 800px;
	margin: 0 auto;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 20px;
	animation: fadeInDown 1s ease;
}

.hero p {
	font-size: 1.2rem;
	margin-bottom: 30px;
	animation: fadeInUp 1s ease;
}

.hero .btn {
	animation: fadeIn 1.5s ease;
}

/* About Section */
.about {
	background-color: var(--light-color);
}

.about-content {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.about-text {
	flex: 1;
	min-width: 300px;
	padding-right: 30px;
}

.about-image {
	flex: 1;
	min-width: 300px;
}

.about-image img {
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
}

/* Services Section */
.services-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.service-card {
	background-color: var(--light-color);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	padding: 30px;
	flex: 1;
	min-width: 300px;
	max-width: 350px;
	transition: var(--transition);
	text-align: center;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
	color: var(--primary-color);
	margin: 20px 0;
	font-size: 1.5rem;
}

.service-price {
	font-size: 2rem;
	color: var(--accent-color);
	font-weight: bold;
	margin: 15px 0;
}

.service-features {
	margin: 20px 0;
	text-align: left;
}

.service-features li {
	margin-bottom: 10px;
	position: relative;
	padding-left: 25px;
}

.service-features li::before {
	content: "✓";
	color: var(--accent-color);
	position: absolute;
	left: 0;
}

/* Benefits Section */
.benefits {
	background-color: var(--primary-color);
	color: var(--light-color);
}

.benefits .section-title h2 {
	color: var(--light-color);
}

.benefits-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.benefit-item {
	flex: 1;
	min-width: 250px;
	max-width: 300px;
	text-align: center;
	padding: 20px;
	transition: var(--transition);
}

.benefit-item:hover {
	transform: translateY(-5px);
}

.benefit-item h3 {
	margin: 15px 0;
	color: var(--accent-color);
}

/* Testimonials Section */
.testimonials {
	background-color: var(--light-color);
}

.testimonials-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.testimonial-card {
	background-color: var(--bg-color);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	padding: 30px;
	flex: 1;
	min-width: 300px;
	max-width: 350px;
	position: relative;
}

.testimonial-card::before {
	content: '"';
	font-size: 5rem;
	color: var(--accent-color);
	opacity: 0.2;
	position: absolute;
	top: 10px;
	left: 20px;
}

.testimonial-text {
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.testimonial-author {
	display: flex;
	align-items: center;
}

.testimonial-author img {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-right: 15px;
}

.author-name {
	font-weight: bold;
	color: var(--primary-color);
}

.author-position {
	font-size: 0.9rem;
	color: #666;
}

/* FAQ Section */
.faq {
	background-color: var(--bg-color);
}

.faq-container {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	margin-bottom: 20px;
	background-color: var(--light-color);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.faq-question {
	padding: 20px;
	cursor: pointer;
	position: relative;
	font-weight: bold;
	color: var(--primary-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: var(--transition);
}

.faq-question:hover {
	background-color: rgba(41, 43, 115, 0.05);
}

.faq-question::after {
	content: "+";
	font-size: 1.5rem;
}

.faq-answer {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-item:target .faq-answer {
	padding: 20px;
	max-height: 500px;
}

.faq-item:target .faq-question::after {
	content: "-";
}

/* Contact Section */
.contact {
	background-color: var(--light-color);
}

.contact-container {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.contact-info {
	flex: 1;
	min-width: 300px;
}

.contact-info-item {
	display: flex;
	margin-bottom: 20px;
	align-items: flex-start;
}

.contact-info-item .icon {
	margin-right: 15px;
	color: var(--accent-color);
	font-size: 1.5rem;
}

.contact-map {
	flex: 1;
	min-width: 300px;
	height: 400px;
	border-radius: var(--border-radius);
	overflow: hidden;
}

.contact-map iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* Order Form */
.order-form {
	background-color: var(--light-color);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow);
	padding: 30px;
	max-width: 600px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.form-group {
	margin-bottom: 20px;
	width: 100%;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
	color: var(--primary-color);
}

.form-control {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: var(--border-radius);
	transition: var(--transition);
	box-sizing: border-box;
}

.form-control:focus {
	border-color: var(--primary-color);
	outline: none;
	box-shadow: 0 0 0 3px rgba(41, 43, 115, 0.1);
}

.form-check {
	display: flex;
	align-items: flex-start;
	margin-bottom: 15px;
	width: 100%;
	box-sizing: border-box;
}

.form-check input {
	margin-right: 10px;
	margin-top: 5px;
}

.form-check label {
	font-size: 0.95rem;
	line-height: 1.4;
	flex: 1;
}

/* Footer */
footer {
	background-color: var(--primary-color);
	color: var(--light-color);
	padding: 60px 0 20px;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 40px;
}

.footer-info,
.footer-links,
.footer-description {
	flex: 1;
	min-width: 250px;
}

.footer-info h3,
.footer-links h3 {
	color: var(--accent-color);
	margin-bottom: 20px;
	font-size: 1.3rem;
}

.footer-links ul li {
	margin-bottom: 10px;
}

.footer-links a,
.footer-info a {
	color: var(--light-color);
}

.footer-links a:hover,
.footer-info a:hover {
	color: var(--accent-color);
}

.copyright {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary-color);
	color: var(--light-color);
	padding: 15px;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	box-sizing: border-box;
}

.cookie-text {
	flex: 1;
	min-width: 200px;
}

.cookie-text p {
	margin: 0;
	font-size: 0.95rem;
}

.cookie-buttons {
	display: flex;
	gap: 10px;
}

.cookie-btn {
	padding: 8px 15px;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition);
	border: none;
	font-weight: bold;
}

.accept-cookies {
	background-color: var(--accent-color);
	color: var(--light-color);
}

.decline-cookies {
	background-color: transparent;
	border: 1px solid var(--light-color);
	color: var(--light-color);
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive Styles */
@media (max-width: 991px) {
	.section-title h2 {
		font-size: 2rem;
	}

	.hero h1 {
		font-size: 2.5rem;
	}

	.contact-map {
		height: 350px;
	}
}

@media (max-width: 768px) {
	.header-content {
		padding: 10px 0;
	}

	.logo img {
		height: 40px;
	}

	.menu-icon {
		display: block;
		cursor: pointer;
		width: 30px;
		height: 20px;
		position: relative;
		z-index: 101;
	}

	.menu-toggle {
		position: absolute;
		top: 0;
		right: 0;
		opacity: 0;
		width: 30px;
		height: 30px;
		cursor: pointer;
		z-index: 102;
	}

	.menu-icon span {
		display: block;
		position: absolute;
		height: 3px;
		width: 100%;
		background: var(--primary-color);
		border-radius: 3px;
		opacity: 1;
		left: 0;
		transform: rotate(0deg);
		transition: var(--transition);
	}

	.menu-icon span:nth-child(1) {
		top: 0px;
	}

	.menu-icon span:nth-child(2) {
		top: 8px;
	}

	.menu-icon span:nth-child(3) {
		top: 16px;
	}

	.menu-toggle:checked ~ .menu-icon span:nth-child(1) {
		top: 8px;
		transform: rotate(135deg);
	}

	.menu-toggle:checked ~ .menu-icon span:nth-child(2) {
		opacity: 0;
		left: -60px;
	}

	.menu-toggle:checked ~ .menu-icon span:nth-child(3) {
		top: 8px;
		transform: rotate(-135deg);
	}

	.main-nav .nav-menu {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: var(--light-color);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 50px 0;
		max-height: 0;
		overflow: hidden;
		transition: all 0.5s ease;
		opacity: 0;
		visibility: hidden;
		width: 100%;
		z-index: 100;
	}

	.menu-toggle:checked ~ .nav-menu {
		max-height: 100vh;
		opacity: 1;
		visibility: visible;
	}

	.main-nav .nav-menu li {
		margin: 15px 0;
		width: 100%;
		text-align: center;
	}

	.main-nav .nav-menu a {
		font-size: 1.2rem;
		padding: 10px 0;
	}

	.about-content,
	.contact-container {
		flex-direction: column;
	}

	.about-text {
		padding-right: 0;
		margin-bottom: 30px;
	}

	.hero {
		padding: calc(var(--header-height) + 90px) 0 80px;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.section-title h2 {
		font-size: 1.8rem;
	}

	.service-card,
	.testimonial-card,
	.benefit-item {
		min-width: 100%;
	}

	:root {
		--header-height: 60px;
	}
}

@media (max-width: 576px) {
	section {
		padding: 70px 0 40px;
	}

	.btn {
		padding: 10px 20px;
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	.footer-content {
		flex-direction: column;
	}

	.cookie-consent {
		flex-direction: column;
		align-items: flex-start;
		padding: 15px 20px;
	}

	.cookie-text {
		min-width: 100%;
		margin-bottom: 10px;
	}

	.cookie-buttons {
		width: 100%;
		flex-direction: column;
	}

	.cookie-btn {
		width: 100%;
		text-align: center;
		margin-bottom: 5px;
	}

	.hero h1 {
		font-size: 1.8rem;
	}

	.hero p {
		font-size: 1rem;
	}

	.form-control {
		width: 100%;
		box-sizing: border-box;
	}

	.order-form {
		padding: 20px 15px;
	}

	.contact-map {
		height: 300px;
	}

	.form-check {
		align-items: flex-start;
	}

	.form-check label {
		font-size: 0.9rem;
	}

	.btn[type="submit"] {
		margin-top: 10px;
	}

	:root {
		--header-height: 60px;
	}
}
