/* GLOBAL STYLES */
:root {
	--bg-primary: #f5f7fa;
	--accent-primary: #1e90ff;
	--text-primary: #2d3748;
	--text-secondary: #1a202c;
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Roboto', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--text-secondary);
	line-height: 1.2;
}

a {
	color: var(--text-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--accent-primary);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* HEADER */
.header {
	background-color: var(--bg-primary);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
	background-color: rgba(245, 247, 250, 0.95);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--text-secondary);
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	font-family: var(--font-heading);
	font-weight: 500;
	position: relative;
	padding-bottom: 5px;
}

.header__nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent-primary);
	transition: width 0.3s ease-in-out;
}

.header__nav-link:hover::after {
	width: 100%;
}

.header__burger {
	display: none;
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

.header__burger:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Overlay */
.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: rgba(245, 247, 250, 0.98);
	backdrop-filter: blur(10px);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu__close {
	position: absolute;
	top: 2rem;
	right: 2rem;
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

.mobile-menu__close:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu__nav {
	text-align: center;
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu__item {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active .mobile-menu__item {
	opacity: 1;
	transform: translateY(0);
}

.mobile-menu.active .mobile-menu__item:nth-child(1) {
	transition-delay: 0.1s;
}
.mobile-menu.active .mobile-menu__item:nth-child(2) {
	transition-delay: 0.2s;
}
.mobile-menu.active .mobile-menu__item:nth-child(3) {
	transition-delay: 0.3s;
}
.mobile-menu.active .mobile-menu__item:nth-child(4) {
	transition-delay: 0.4s;
}
.mobile-menu.active .mobile-menu__item:nth-child(5) {
	transition-delay: 0.5s;
}

.mobile-menu__link {
	font-family: var(--font-heading);
	font-weight: 500;
	font-size: 1.5rem;
	color: var(--text-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
	position: relative;
}

.mobile-menu__link:hover {
	color: var(--accent-primary);
}

.mobile-menu__link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background-color: var(--accent-primary);
	transition: width 0.3s ease;
}

.mobile-menu__link:hover::after {
	width: 100%;
}

/* FOOTER */
.footer {
	background-color: rgba(0, 0, 0, 0.03);
	padding: 4rem 0 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.footer__column .logo {
	margin-bottom: 1rem;
}

.footer__copy {
	font-size: 0.9rem;
	opacity: 0.7;
}

.footer__title {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	color: var(--text-secondary);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footer__icon {
	width: 18px;
	height: 18px;
	color: var(--accent-primary);
}

.footer__link,
.footer__text {
	font-size: 0.95rem;
}

/* MOBILE ADAPTABILITY */
@media (max-width: 768px) {
	.header__nav {
		display: none; /* Скрываем навигацию для мобильных */
	}

	.header__burger {
		display: block; /* Показываем бургер */
	}

	.footer__container {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
	}
}

@media (max-width: 480px) {
	.footer__container {
		grid-template-columns: 1fr;
	}
}

/* BUTTON */
.button {
	display: inline-block;
	padding: 0.8rem 2rem;
	background-color: var(--accent-primary);
	color: var(--text-secondary);
	font-family: var(--font-heading);
	font-weight: 500;
	border-radius: 5px;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: #0077ff; /* Slightly lighter blue */
	transform: translateY(-3px);
	color: var(--text-secondary);
}

/* HERO SECTION */
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
}

.hero__content {
	max-width: 800px;
	margin: 0 auto;
}

.hero__title {
	font-size: 3.5rem;
	margin-bottom: 1rem;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero__subtitle {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero__cta {
	font-size: 1.1rem;
}

/* MOBILE ADAPTABILITY for HERO */
@media (max-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
	}

	.hero__subtitle {
		font-size: 1rem;
	}
}

/* --- FEATURES SECTION --- */
.features {
	padding: 6rem 0;
	background-color: rgba(0, 0, 0, 0.02);
}

.section-title {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
}

.features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 2rem;
}

.features__card {
	background-color: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.features__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.features__card-icon {
	margin-bottom: 1.5rem;
}

.features__card-icon i {
	width: 48px;
	height: 48px;
	color: var(--accent-primary);
}

.features__card-title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
	color: var(--text-secondary);
}

.features__card-text {
	font-size: 0.95rem;
	line-height: 1.7;
}

/* MOBILE ADAPTABILITY for FEATURES */
@media (max-width: 768px) {
	.section-title {
		font-size: 2rem;
	}
	.features {
		padding: 4rem 0;
	}
}

/* --- SERVICES SECTION --- */
.services {
	padding: 6rem 0;
}

.services__tab-buttons {
	display: flex;
	justify-content: center;
	margin-bottom: 3rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.services__tab-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	background-color: transparent;
	color: var(--text-primary);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.services__tab-button:hover {
	background-color: rgba(30, 144, 255, 0.1);
	border-color: var(--accent-primary);
}

.services__tab-button--active {
	background-color: var(--accent-primary);
	color: var(--text-secondary);
	border-color: var(--accent-primary);
}

.services__tab-content {
	display: none;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 3rem;
	animation: fadeIn 0.5s ease-in-out;
}

.services__tab-content--active {
	display: grid;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.services__content-image img {
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.services__content-text h3 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.services__content-text p {
	margin-bottom: 2rem;
}

/* MOBILE ADAPTABILITY for SERVICES */
@media (max-width: 768px) {
	.services {
		padding: 4rem 0;
	}
	.services__tab-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.services__content-image {
		margin-bottom: 2rem;
	}
	.services__content-text h3 {
		font-size: 1.5rem;
	}
}

/* --- BLOG SECTION --- */
.blog {
	padding: 6rem 0;
	background-color: rgba(0, 0, 0, 0.02);
}

.blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.blog__post {
	background-color: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog__post:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog__post-link {
	display: block;
	height: 100%;
}

.blog__post-image-wrapper {
	height: 200px;
	overflow: hidden;
}

.blog__post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog__post:hover .blog__post-image {
	transform: scale(1.05);
}

.blog__post-content {
	padding: 1.5rem;
}

.blog__post-category {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--accent-primary);
	background-color: rgba(30, 144, 255, 0.1);
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
}

.blog__post-title {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
	color: var(--text-secondary);
	line-height: 1.4;
}

.blog__post-excerpt {
	font-size: 0.95rem;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.blog__post-readmore {
	font-family: var(--font-heading);
	font-weight: 500;
	color: var(--accent-primary);
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	transition: gap 0.3s ease;
}

.blog__post:hover .blog__post-readmore {
	gap: 0.6rem;
}

.blog__post-readmore i {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

.blog__post:hover .blog__post-readmore i {
	transform: translateX(5px);
}

/* MOBILE ADAPTABILITY for BLOG */
@media (max-width: 992px) {
	.blog__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.blog {
		padding: 4rem 0;
	}
}

@media (max-width: 576px) {
	.blog__grid {
		grid-template-columns: 1fr;
	}
}

/* --- CONTACT SECTION --- */
.contact {
	padding: 6rem 0;
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.contact__subtitle {
	font-size: 1.1rem;
	margin-top: 1rem;
	opacity: 0.9;
}

.contact__form-wrapper {
	background-color: #ffffff;
	padding: 3rem;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact__form-group {
	position: relative;
	margin-bottom: 2rem;
}

.contact__form-input {
	width: 100%;
	padding: 0.8rem;
	background-color: var(--bg-primary);
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	color: var(--text-secondary);
	font-size: 1rem;
	outline: none;
	transition: border-color 0.3s ease;
}

.contact__form-label {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	color: var(--text-primary);
	opacity: 0.7;
	transition: all 0.3s ease;
	pointer-events: none;
}

.contact__form-input:focus,
.contact__form-input:not(:placeholder-shown) {
	border-color: var(--accent-primary);
}

.contact__form-input.error {
	border-color: #ff4d4d;
}

.contact__form-input.valid {
	border-color: #4CAF50;
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.7rem;
	left: 0.5rem;
	font-size: 0.8rem;
	background-color: #ffffff;
	padding: 0 0.3rem;
	color: var(--accent-primary);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.contact__form-checkbox {
	margin-top: 0.2rem;
	accent-color: var(--accent-primary);
	width: 1em;
	height: 1em;
}

.contact__form-checkbox-label {
	font-size: 0.9rem;
	line-height: 1.5;
}
.contact__form-checkbox-label a {
	color: var(--accent-primary);
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
	font-size: 1.1rem;
	border: none;
	cursor: pointer;
}

.contact__message {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.95rem;
	display: none; /* Hidden by default */
}

.contact__form-error {
	color: #ff4d4d;
	font-size: 0.85rem;
	margin-top: 0.5rem;
	display: none;
}

.contact__form-error.show {
	display: block;
}

/* MOBILE ADAPTABILITY for CONTACT */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
	.contact__text-content {
		text-align: center;
		margin-bottom: 2rem;
	}
	.contact {
		padding: 4rem 0;
	}
}

/* --- COOKIE POP-UP --- */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 500px;
	background-color: #ffffff;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup--show {
	transform: translateY(0);
}

.cookie-popup__text {
	font-size: 0.9rem;
}

.cookie-popup__text a {
	color: var(--accent-primary);
	text-decoration: underline;
}

.cookie-popup__accept {
	padding: 0.6rem 1.2rem;
	white-space: nowrap; /* Prevent button text from wrapping */
}

/* MOBILE ADAPTABILITY for COOKIE POP-UP */
@media (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		bottom: 1rem;
		left: 1rem;
		right: 1rem;
	}
}

/* --- POLICY PAGES STYLES --- */
.pages {
	padding: 5rem 0;
	min-height: 80vh;
}

.pages .container {
	max-width: 800px;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: var(--text-secondary);
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 3rem;
	margin-bottom: 1.5rem;
	color: var(--text-secondary);
}

.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.8;
	color: var(--text-primary);
}

.pages ul {
	list-style: disc;
	margin-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.pages li {
	margin-bottom: 0.75rem;
}

.pages a {
	color: var(--accent-primary);
	text-decoration: underline;
	transition: color 0.3s ease;
}

.pages a:hover {
	color: var(--text-secondary);
}

.pages strong {
	font-weight: 700;
	color: var(--text-secondary);
}
