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

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

	--color-bg: #ffffff;
	--color-text-primary: #1b2a3b;
	--color-text-secondary: #7a869a;
	--color-accent: #4a90e2;
	--color-border: #eaecef;
	--header-height: 70px;
}

/* 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-primary);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

ul {
	list-style: none;
}

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

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

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

/* Logo */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-headings);
	font-size: 24px;
	font-weight: 700;
	color: var(--color-text-primary);
}

.logo__svg path {
	transition: fill 0.3s ease;
}

.logo:hover .logo__svg path:nth-child(1) {
	fill: #3a75b8;
}
.logo:hover .logo__svg path:nth-child(4) {
	fill: #5f9de9;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
	z-index: 1000;
	transition: box-shadow 0.3s ease;
}

.header--scrolled {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.header__nav {
	display: none; /* Hidden on mobile */
}

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

.header__menu-link {
	position: relative;
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text-primary);
	transition: color 0.3s ease;
	padding: 5px 0;
}

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

.header__menu-link:hover {
	color: var(--color-accent);
}

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

.header__menu-link--button {
	background-color: var(--color-accent);
	color: white;
	padding: 8px 20px;
	border-radius: 50px;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.header__menu-link--button:hover {
	background-color: #3a75b8;
	color: white;
	transform: translateY(-2px);
}

.header__menu-link--button::after {
	display: none;
}

.header__burger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 24px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 1001;
}

.header__burger-line {
	width: 100%;
	height: 2px;
	background-color: var(--color-text-primary);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger.is-active .header__burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.header__burger.is-active .header__burger-line:nth-child(2) {
	opacity: 0;
}
.header__burger.is-active .header__burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

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

/* Footer */
.footer {
	background-color: #f8f9fa;
	border-top: 1px solid var(--color-border);
	padding-top: 60px;
	color: var(--color-text-secondary);
}

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

.footer__column--info {
	grid-column: span 1 / span 1;
}

.footer__description {
	margin-top: 15px;
	max-width: 250px;
}

.footer__title {
	font-size: 18px;
	color: var(--color-text-primary);
	margin-bottom: 20px;
}

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

.footer__link {
	transition: color 0.3s ease;
}

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

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__list--contacts .lucide {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--color-accent);
}

.footer__bottom {
	border-top: 1px solid var(--color-border);
	padding: 20px 0;
	text-align: center;
	font-size: 14px;
}

/* Responsive Styles (Mobile-First) */
@media (min-width: 992px) {
	.header__burger {
		display: none;
	}

	.header__nav {
		display: block;
	}
}

@media (max-width: 991px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: 0;
		width: 80%;
		max-width: 320px;
		height: 100vh;
		background-color: white;
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
		padding-top: 100px;
		display: block;
	}

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

	.header__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		padding: 0 30px;
	}

	.header__menu-item {
		width: 100%;
	}

	.header__menu-link {
		font-size: 20px;
		display: block;
		padding: 10px 0;
	}

	.header__menu-link--button {
		display: inline-block;
		margin-top: 20px;
		text-align: center;
		padding: 12px 25px;
	}
}

/* ... (все предыдущие стили) ... */

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

/* Reusable Components */
.btn {
	display: inline-block;
	padding: 14px 32px;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	color: #fff;
	background-color: var(--color-accent);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
	text-decoration: none;
}

.btn:hover {
	background-color: #3a75b8;
	transform: translateY(-3px);
}

/* Hero Section */
.hero {
	padding: 80px 0;
	background-color: #f8f9fa;
	overflow: hidden; /* Для корректной работы анимации */
}

.hero__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 42px;
	line-height: 1.2;
	margin-bottom: 20px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.hero__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	margin-bottom: 30px;
	max-width: 550px;
	margin-left: auto;
	margin-right: auto;
}

.hero__image-wrapper {
	max-width: 500px;
	margin: 0 auto;
}

.hero__image {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
	.hero {
		padding: 120px 0;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}

	.hero__content {
		text-align: left;
	}

	.hero__title,
	.hero__subtitle {
		margin-left: 0;
		margin-right: 0;
	}

	.hero__title {
		font-size: 56px;
	}
}

/* ... (предыдущие стили, включая .btn) ... */

/* --- Reusable Components --- */
.section {
	padding: 80px 0;
}

@media (min-width: 992px) {
	.section {
		padding: 100px 0;
	}
}

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

.section-header__title {
	font-size: 36px;
	margin-bottom: 15px;
}

.section-header__subtitle {
	font-size: 18px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* --- Hero Section --- */
.hero {
	/* ... (стили для hero) ... */
}

/* --- Directions Section --- */
.directions {
	background-color: var(--color-bg);
}

.directions__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 576px) {
	.directions__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.directions__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.directions__card {
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.directions__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(27, 42, 59, 0.1);
}

.directions__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	background-color: #f8f9fa;
	border-radius: 50%;
	margin-bottom: 25px;
}

.directions__card-icon .lucide {
	width: 32px;
	height: 32px;
	color: var(--color-accent);
}

.directions__card-title {
	font-family: var(--font-headings);
	font-size: 22px;
	margin-bottom: 15px;
	color: var(--color-text-primary);
}

.directions__card-text {
	font-size: 16px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* ... (предыдущие стили, включая .directions) ... */

/* --- Cases Section --- */
.cases {
	background-color: #f8f9fa;
}

.cases__list {
	display: flex;
	flex-direction: column;
	gap: 80px;
}

.cases__item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	align-items: center;
}

@media (min-width: 992px) {
	.cases__item {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}

	.cases__item--reversed .cases__image-wrapper {
		order: 2;
	}
}

.cases__image-wrapper {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cases__content {
	text-align: center;
}

@media (min-width: 992px) {
	.cases__content {
		text-align: left;
	}
}

.cases__tag {
	display: inline-block;
	padding: 6px 15px;
	background-color: rgba(74, 144, 226, 0.1);
	color: var(--color-accent);
	font-weight: 700;
	border-radius: 50px;
	margin-bottom: 20px;
	font-size: 14px;
}

.cases__title {
	font-size: 28px;
	margin-bottom: 15px;
}

.cases__description {
	color: var(--color-text-secondary);
	margin-bottom: 25px;
	line-height: 1.7;
}

.cases__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--color-accent);
	transition: color 0.3s ease;
}

.cases__link .lucide {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}

.cases__link:hover {
	color: #3a75b8;
}

.cases__link:hover .lucide {
	transform: translateX(5px);
}

/* ... (предыдущие стили, включая .cases) ... */

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

.process__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 60px 30px;
}

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

/* Vertical line for mobile */
@media (max-width: 991.98px) {
	.process__step:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
		width: 2px;
		height: 30px;
		background-color: var(--color-border);
		margin-top: 15px;
	}
}

.process__step-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	gap: 15px;
}

.process__step-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	background-color: #f8f9fa;
	border: 1px solid var(--color-border);
	border-radius: 50%;
}

.process__step-icon .lucide {
	width: 32px;
	height: 32px;
	color: var(--color-accent);
}

.process__step-number {
	font-family: var(--font-headings);
	font-size: 48px;
	color: var(--color-border);
	font-weight: 700;
}

.process__step-title {
	font-size: 22px;
	margin-bottom: 10px;
}

.process__step-description {
	color: var(--color-text-secondary);
	max-width: 300px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.process__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.process__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.process__step {
		text-align: left;
	}

	.process__step-header {
		justify-content: flex-start;
	}

	.process__step-description {
		margin: 0;
	}

	/* Horizontal connecting line for desktop */
	.process__step:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 32px; /* Vertically center with icon */
		left: 100%;
		width: 100%;
		height: 2px;
		background-image: linear-gradient(
			to right,
			var(--color-border) 60%,
			transparent 40%
		);
		background-size: 15px 2px;
		background-repeat: repeat-x;
		transform: translateY(-50%) translateX(15px);
		margin-left: 0;
	}
}

/* ... (предыдущие стили, включая .process) ... */

/* --- Blog Section --- */
.blog {
	background-color: #f8f9fa;
}

.blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

@media (min-width: 768px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.blog__post {
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog__post:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(27, 42, 59, 0.1);
}

.blog__post-image-link {
	display: block;
	aspect-ratio: 16 / 10;
}

.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: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog__post-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	font-size: 14px;
	color: var(--color-text-secondary);
}

.blog__post-category {
	font-weight: 700;
	color: var(--color-accent);
}

.blog__post-title {
	font-size: 20px;
	line-height: 1.4;
	margin-bottom: 10px;
	flex-grow: 1;
}

.blog__post-title a {
	transition: color 0.3s ease;
}

.blog__post-title a:hover {
	color: var(--color-accent);
}

.blog__post-excerpt {
	font-size: 15px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* ... (предыдущие стили, включая .blog) ... */

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

.contact__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
}

@media (min-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr 1.2fr;
		gap: 80px;
	}
}

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

.contact__info-text {
	color: var(--color-text-secondary);
	margin-bottom: 30px;
}

.contact__info-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 16px;
}

.contact__info-list .lucide {
	width: 22px;
	height: 22px;
	color: var(--color-accent);
	flex-shrink: 0;
}

.contact__form-wrapper {
	position: relative;
}

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

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

.form-group__label {
	font-weight: 700;
	margin-bottom: 8px;
	font-size: 14px;
}

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

.form-group__input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--color-text-secondary);
}

.form-group--checkbox input[type='checkbox'] {
	margin-top: 4px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.form-group--checkbox a {
	color: var(--color-accent);
	text-decoration: underline;
}

.contact__form-button {
	margin-top: 10px;
	width: 100%;
}

.form-success {
	display: none; /* IMPORTANT: Hidden by default */
	margin-top: 20px;
	padding: 15px;
	background-color: #e9f7ef;
	border: 1px solid #a3d5b9;
	border-radius: 8px;
	color: #1e462f;
	align-items: center;
	gap: 10px;
}

.form-success.is-visible {
	display: flex; /* Shown via JS */
}

/* ... (предыдущие стили, включая .contact) ... */

/* Reusable Components - Button Modifier */
.btn--small {
	padding: 8px 20px;
	font-size: 14px;
}

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--color-text-primary);
	color: #fff;
	padding: 15px 0;
	transform: translateY(100%);
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
	z-index: 1100;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

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

.cookie-popup__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	text-align: center;
}

@media (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row;
		justify-content: space-between;
	}
}

.cookie-popup__text {
	margin: 0;
}

.cookie-popup__text a {
	color: #fff;
	text-decoration: underline;
	font-weight: 700;
}

/* ... (предыдущие стили, включая .cookie-popup) ... */

/* --- Policy Pages --- */
.pages {
	padding: 120px 0;
}

.pages .container {
	max-width: 800px; /* Narrower container for better readability */
}

.pages h1,
.pages h2 {
	font-family: var(--font-headings);
	color: var(--color-text-primary);
	margin-bottom: 15px;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 20px;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
}

.pages p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
}

.pages ul {
	list-style: disc;
	padding-left: 20px;
	margin-bottom: 20px;
	color: var(--color-text-secondary);
}

.pages li {
	margin-bottom: 10px;
	line-height: 1.8;
}

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

.pages a:hover {
	color: #3a75b8;
}

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

/* --- Footer --- */
/* ... (стили для футера) ... */
