/* Goggle Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
	--font-primary: 'Poppins', sans-serif;
	--font-secondary: 'Playfair Display', serif;

	--color-text: #1a1a1a;
	--color-bg: #f5f5f5;
	--color-white: #ffffff;
	--color-primary: #007bff;
	--color-primary-hover: #0056b3;
	--color-border: #e0e0e0;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

h1,
h2,
h3 {
	font-family: var(--font-secondary);
	font-weight: 700;
}

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* Logo */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-text);
}

.logo__svg {
	width: 40px;
	height: 40px;
}

/* Header */
.header {
	background-color: var(--color-white);
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.nav__list {
	display: flex;
	align-items: center;
	gap: 30px;
}

.nav__link {
	position: relative;
	padding: 5px 0;
	transition: color 0.3s ease;
}

.nav__link:hover {
	color: var(--color-primary);
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav__link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

.burger .lucide-x {
	display: none;
}
.burger.is-active .lucide-menu {
	display: none;
}
.burger.is-active .lucide-x {
	display: block;
}

/* Main Content Placeholder */
.main {
	padding-top: var(--header-height);
}

/* Footer */
.footer {
	background-color: var(--color-white);
	padding: 60px 0 0;
	border-top: 1px solid var(--color-border);
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer__column--brand .logo {
	margin-bottom: 15px;
}

.footer__tagline {
	font-size: 0.9rem;
	color: #6c757d;
}

.footer__title {
	font-size: 1.2rem;
	margin-bottom: 20px;
	font-family: var(--font-primary);
	font-weight: 600;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer__list--contact .footer__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer__icon {
	width: 20px;
	height: 20px;
	color: var(--color-primary);
	margin-top: 2px;
}

.footer__link {
	transition: color 0.3s ease;
}

.footer__link:hover {
	color: var(--color-primary);
}

.footer__bottom {
	background-color: var(--color-bg);
	text-align: center;
	padding: 20px 0;
	font-size: 0.9rem;
	color: #6c757d;
}

/* Responsive (Mobile-First) */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--color-white);
		transform: translateX(-100%);
		transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
		padding: 40px;
	}

	.nav.is-active {
		transform: translateX(0);
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 25px;
	}

	.nav__link {
		font-size: 1.5rem;
	}

	.burger {
		display: block;
		z-index: 101;
	}
}

/* Hero Section */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px 0;
	overflow: hidden; /* Скрываем части орбит, выходящие за пределы секции */
	background-color: var(--color-white);
}

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

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

.hero__title {
	font-size: 3.5rem;
	line-height: 1.2;
	margin-bottom: 20px;
	color: var(--color-text);
}

/* Стили для слов в заголовке, управляемые JS */
.hero__title .word {
	display: inline-block;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__title .word.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hero__subtitle {
	font-size: 1.2rem;
	color: #6c757d;
	margin-bottom: 40px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.button {
	display: inline-block;
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 15px 35px;
	border-radius: 50px;
	font-weight: 500;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.button:hover {
	background-color: var(--color-primary-hover);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Анимированный фон */
@keyframes float {
	0% {
		transform: translateY(0px) translateX(0px);
	}
	50% {
		transform: translateY(-20px) translateX(10px);
	}
	100% {
		transform: translateY(0px) translateX(0px);
	}
}

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

.hero__orb {
	position: absolute;
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		rgba(0, 123, 255, 0.1),
		rgba(0, 123, 255, 0)
	);
	filter: blur(20px);
	animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
	width: 400px;
	height: 400px;
	top: -10%;
	left: -5%;
	animation-duration: 10s;
}

.hero__orb--2 {
	width: 300px;
	height: 300px;
	bottom: -15%;
	right: -10%;
	animation-duration: 12s;
	animation-delay: 2s;
}

.hero__orb--3 {
	width: 250px;
	height: 250px;
	top: 20%;
	right: 15%;
	animation-duration: 8s;
	animation-delay: 1s;
}

/* Адаптивность для Hero */
@media (max-width: 768px) {
	.hero {
		min-height: 80vh;
		padding: 80px 0;
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__subtitle {
		font-size: 1rem;
	}

	.button {
		padding: 12px 30px;
		font-size: 0.9rem;
	}
}

/* Section Base Styles */
.section {
	padding: 80px 0;
}

.section__header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

.section__title {
	font-size: 2.8rem;
	margin-bottom: 15px;
}

.section__subtitle {
	font-size: 1.1rem;
	color: #6c757d;
	line-height: 1.7;
}

/* Services Section */
.services {
	background-color: var(--color-bg);
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.service-card {
	background-color: var(--color-white);
	padding: 40px;
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card__icon-wrapper {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background-color: #e7f1ff; /* Light blue background */
	margin-bottom: 25px;
}

.service-card__icon-wrapper .lucide {
	width: 32px;
	height: 32px;
	color: var(--color-primary);
}

.service-card__title {
	font-size: 1.5rem;
	margin-bottom: 15px;
	font-family: var(--font-primary);
	font-weight: 600;
}

.service-card__text {
	color: #6c757d;
	line-height: 1.6;
}

/* Responsive for Services */
@media (max-width: 992px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}
	.section__title {
		font-size: 2.2rem;
	}
	.section__subtitle {
		font-size: 1rem;
	}
	.services__grid {
		grid-template-columns: 1fr;
	}
}

/* About Section */
.about {
	background-color: var(--color-white);
}

.about__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 60px;
}

.about__image-wrapper {
	position: relative;
}

.about__image-bg {
	position: absolute;
	width: 90%;
	height: 90%;
	background-color: #e7f1ff;
	border-radius: 12px;
	top: -20px;
	left: -20px;
	z-index: 1;
}

.about__image {
	position: relative;
	z-index: 2;
	border-radius: 12px;
	width: 100%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about__content .section__title {
	text-align: left;
}

.about__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 30px;
}

.about__features-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 40px;
}

.about__feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.1rem;
	font-weight: 500;
}

.about__feature-icon {
	color: var(--color-primary);
	width: 24px;
	height: 24px;
}

/* Responsive for About Section */
@media (max-width: 992px) {
	.about__grid {
		gap: 40px;
	}
	.about__content .section__title {
		font-size: 2.2rem;
	}
}

@media (max-width: 768px) {
	.about__grid {
		grid-template-columns: 1fr;
	}
	.about__image-wrapper {
		margin-bottom: 20px;
	}
	.about__content .section__title,
	.about__subtitle {
		text-align: center;
	}
	.about__content {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.about__features-list {
		align-self: flex-start;
	}
}

/* Process Section */
.process {
	background-color: var(--color-bg);
}

.process__timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

/* The connecting line for desktop */
.process__timeline::before {
	content: '';
	position: absolute;
	top: 40px; /* Vertically align with the center of the icon wrapper */
	left: 12.5%; /* Start after half of the first item */
	width: 75%; /* Span across the middle two items */
	height: 2px;
	background-color: var(--color-border);
	z-index: 1;
}

.process__step {
	text-align: center;
	position: relative;
	z-index: 2;
}

.process__icon-wrapper {
	position: relative;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background-color: var(--color-white);
	border: 2px solid var(--color-border);
	margin-bottom: 20px;
	box-shadow: 0 0 0 4px var(--color-bg); /* Creates a gap for the line to pass through */
}

.process__icon-wrapper .lucide {
	width: 36px;
	height: 36px;
	color: var(--color-primary);
}

.process__step-number {
	position: absolute;
	top: -5px;
	right: -5px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: var(--color-primary);
	color: var(--color-white);
	font-size: 0.9rem;
	font-weight: 600;
}

.process__step-title {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 10px;
}

.process__step-text {
	color: #6c757d;
	font-size: 0.95rem;
}

/* Responsive for Process Section */
@media (max-width: 992px) {
	.process__timeline {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 50px;
	}
	.process__timeline::before {
		display: none; /* Hide horizontal line on tablet/mobile */
	}
}

@media (max-width: 768px) {
	.process__timeline {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-left: 20px;
	}

	/* Vertical line for mobile */
	.process__timeline::before {
		display: block;
		left: 20px;
		top: 0;
		width: 2px;
		height: calc(100% - 80px); /* Adjust height for vertical layout */
	}

	.process__step {
		text-align: left;
		display: grid;
		grid-template-columns: 80px 1fr;
		grid-template-rows: auto auto;
		column-gap: 20px;
		align-items: center;
	}

	.process__icon-wrapper {
		grid-row: 1 / 3; /* Span icon across both rows */
		margin-bottom: 0;
		box-shadow: 0 0 0 4px var(--color-bg);
	}

	.process__step-title {
		margin-bottom: 5px;
		align-self: end;
	}

	.process__step-text {
		align-self: start;
	}
}

/* Blog Section */
.blog {
	background-color: var(--color-white);
}

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

.blog-card {
	background-color: var(--color-white);
	border-radius: 12px;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-card__image-link {
	display: block;
	overflow: hidden;
}

.blog-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__image {
	transform: scale(1.05);
}

.blog-card__content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Allows the content to fill the card height */
}

.blog-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #6c757d;
	margin-bottom: 15px;
}

.blog-card__meta .lucide {
	width: 16px;
	height: 16px;
}

.blog-card__title {
	font-size: 1.2rem;
	line-height: 1.4;
	margin-bottom: 20px;
	flex-grow: 1; /* Pushes the read-more link to the bottom */
}

.blog-card__title a {
	transition: color 0.3s ease;
}

.blog-card__title a:hover {
	color: var(--color-primary);
}

.blog-card__read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--color-primary);
	font-weight: 500;
	transition: gap 0.3s ease;
}

.blog-card__read-more .lucide {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.blog-card__read-more:hover {
	gap: 12px;
}

.blog-card__read-more:hover .lucide {
	transform: translateX(4px);
}

/* Responsive for Blog Section */
@media (max-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* Contact Section */
.contact {
	background-color: var(--color-bg);
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 60px;
	background-color: var(--color-white);
	padding: 50px;
	border-radius: 12px;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
}

.contact__info-title {
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.contact__info-text {
	color: #6c757d;
	margin-bottom: 30px;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-label {
	margin-bottom: 8px;
	font-size: 0.9rem;
	font-weight: 500;
}

.form-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-family: var(--font-primary);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
}

.form-checkbox {
	margin-top: 5px;
	width: 18px;
	height: 18px;
}

.form-checkbox-label {
	font-size: 0.9rem;
	color: #6c757d;
}
.form-checkbox-label a {
	color: var(--color-primary);
	text-decoration: underline;
}

.contact-form__button {
	width: 100%;
	padding: 18px;
}

.form-success {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 40px;
	border: 2px dashed var(--color-primary);
	border-radius: 12px;
}
.form-success .lucide {
	color: var(--color-primary);
	width: 50px;
	height: 50px;
	margin-bottom: 15px;
}
.form-success__title {
	font-size: 1.8rem;
}

/* Cookie Pop-up */
.cookie-popup {
	position: fixed;
	bottom: -200px; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--color-white);
	padding: 20px;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	z-index: 200;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 0;
}

.cookie-popup__text {
	color: #6c757d;
}
.cookie-popup__text a {
	color: var(--color-primary);
}

.cookie-popup__button {
	padding: 8px 25px;
	white-space: nowrap;
}

/* Styles for Legal Pages (privacy.html etc.) */
.pages .container {
	max-width: 800px;
	padding-top: 120px;
	padding-bottom: 60px;
}
.pages h1,
.pages h2 {
	margin-bottom: 1rem;
}
.pages h1,
.pages h2 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}
.pages p {
	margin-bottom: 1.5rem;
	line-height: 1.7;
}
.pages ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 1.5rem;
}
.pages li {
	margin-bottom: 0.5rem;
}
.pages a {
	color: var(--color-primary);
	text-decoration: underline;
}

/* Responsive for Contact & Cookie */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 768px) {
	.contact__grid {
		padding: 30px;
	}
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}
