/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* ==================== VARIABLES ==================== */
:root {
	--header-height: 5rem;

	/* Colors */
	--bg-color: #0d1117;
	--bg-secondary-color: #161b22;
	--text-color: #c9d1d9;
	--text-color-light: #8b949e;
	--accent-color: #30a3e6;
	--accent-color-hover: #58a6ff;
	--border-color: #30363d;

	/* Font */
	--body-font: 'Inter', sans-serif;
	--h1-font-size: 2.5rem;
	--h2-font-size: 1.75rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Font weight */
	--font-medium: 500;
	--font-bold: 700;

	/* z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	color: var(--text-color);
	font-weight: var(--font-bold);
}

ul {
	list-style: none;
}

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

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

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

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/* ==================== HEADER ==================== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--z-fixed);
	background-color: rgba(13, 17, 23, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
}

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-color);
	font-weight: var(--font-medium);
}

.header__logo-img {
	width: 32px;
	height: 32px;
}

.header__toggle {
	display: none;
	font-size: 1.5rem;
	color: var(--text-color);
	cursor: pointer;
	background: none;
	border: none;
}

.header__list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header__link {
	color: var(--text-color-light);
	font-weight: var(--font-medium);
	transition: color 0.3s;
}

.header__link:hover,
.header__link.active-link {
	color: var(--text-color);
}

.header__link--button {
	padding: 0.5rem 1rem;
	border: 1px solid var(--accent-color);
	border-radius: 6px;
	color: var(--accent-color);
	transition: background-color 0.3s, color 0.3s;
}

.header__link--button:hover {
	background-color: var(--accent-color);
	color: var(--bg-color);
}

/* Mobile Nav */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0; /* Змінено */
		right: -100%;
		width: 100%;
		height: 100vh; /* Змінено */
		background-color: var(--bg-color);
		transition: right 0.4s ease;

		/* Додано для центрування */
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.header__nav.show-menu {
		right: 0;
	}

	.header__list {
		flex-direction: column;
		gap: 2.5rem;
		text-align: center; /* Для кращого вигляду */
	}

	.header__toggle {
		display: block;
		z-index: var(--z-fixed); /* Переконуємось, що кнопка завжди зверху */
	}
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--bg-secondary-color);
	padding-top: 4rem;
	border-top: 1px solid var(--border-color);
}

.footer__container {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: var(--text-color);
	font-weight: var(--font-medium);
	font-size: var(--h3-font-size);
}

.footer__logo-img {
	width: 28px;
}

.footer__description {
	color: var(--text-color-light);
	font-size: var(--small-font-size);
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

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

.footer__link {
	color: var(--text-color-light);
	font-size: var(--small-font-size);
}

.footer__list--contact .footer__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--text-color-light);
	font-size: var(--small-font-size);
}

.footer__contact-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 4px;
}

.footer__bottom {
	margin-top: 4rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--border-color);
}

.footer__copyright {
	text-align: center;
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

/* ==================== MEDIA QUERIES ==================== */
@media screen and (min-width: 1120px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

/* assets/css/style.css */

/* ==================== REUSABLE CSS CLASSES (доповнення) ==================== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	background-color: var(--accent-color);
	color: var(--bg-color);
	border: 1px solid var(--accent-color);
	border-radius: 6px;
	font-weight: var(--font-medium);
	transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: transparent;
	color: var(--accent-color);
	transform: translateY(-2px);
}

.button__icon {
	width: 1.25rem;
	height: 1.25rem;
	transition: transform 0.3s;
}

.button:hover .button__icon {
	transform: translateX(4px);
}

/* ==================== HERO ==================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: var(--header-height);
	overflow: hidden; /* Ховаємо все, що виходить за межі секції */
}

.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: 1000px;
}

.hero__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1.5rem;
	line-height: 1.3;
}

.hero__description {
	font-size: 1.125rem;
	color: var(--text-color-light);
	margin-bottom: 2.5rem;
	max-width: 1000px;
}

/* Responsive adjustments for HERO */
@media screen and (min-width: 768px) {
	.hero__title {
		font-size: 3.5rem;
	}
}

@media screen and (max-width: 768px) {
	.hero {
		text-align: center;
	}

	.hero__content {
		margin: 0 auto;
	}

	.hero__description {
		font-size: 1rem;
		margin-bottom: 2rem;
	}
}

/* assets/css/style.css */

/* ==================== REUSABLE CSS CLASSES (доповнення) ==================== */
.section {
	padding: 6rem 0 2rem;
}

.section__header {
	text-align: center;
	margin-bottom: 4rem;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

.section__subtitle {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	max-width: 600px;
	margin: 0 auto;
}

/* ==================== FEATURES ==================== */
.features__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.features__card {
	background-color: var(--bg-secondary-color);
	padding: 2rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s, border-color 0.3s;
}

.features__card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-color);
}

.features__card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(48, 163, 230, 0.1);
	border-radius: 6px;
	margin-bottom: 1.5rem;
}

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

.features__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.features__card-description {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	line-height: 1.7;
}

/* Responsive adjustments */
@media screen and (min-width: 992px) {
	.section {
		padding: 8rem 0 4rem;
	}

	.section__title {
		font-size: 2.25rem;
	}
}

/* assets/css/style.css */

/* ==================== CASES ==================== */
.cases {
	background-color: var(--bg-secondary-color);
}

.cases__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr; /* 1 колонка на мобільних */
}

.cases__card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
}

.cases__card-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.cases__card-logo {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	background-color: var(--border-color);
}

.cases__card-company {
	font-size: 1.125rem;
}

.cases__card-body {
	flex-grow: 1; /* Дозволяє цій частині зайняти весь доступний простір */
}

.cases__card-subtitle {
	font-size: 0.875rem;
	color: var(--text-color-light);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
}

.cases__card-subtitle:first-of-type {
	margin-top: 0;
}

.cases__card-text {
	font-size: var(--normal-font-size);
	line-height: 1.7;
}

.cases__card-result {
	margin-top: 2rem;
	padding: 1rem;
	background-color: rgba(48, 163, 230, 0.1);
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: var(--font-medium);
	color: var(--accent-color);
}

.cases__card-result-icon {
	width: 20px;
	height: 20px;
}

/* Responsive adjustments for CASES */
@media screen and (min-width: 992px) {
	.cases__grid {
		grid-template-columns: 1fr 1fr; /* 2 колонки на десктопах */
	}
}

/* assets/css/style.css */

/* ==================== PROCESS ==================== */
.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* The vertical line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 2px;
	background-color: var(--border-color);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1px;
}

.process__item {
	padding: 1rem 2.5rem;
	position: relative;
	width: 50%;
}

/* The circle on the timeline */
.process__item::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	right: -8px;
	background-color: var(--bg-color);
	border: 2px solid var(--accent-color);
	top: 20px;
	border-radius: 50%;
	z-index: 1;
}

/* Positioning the items */
.process__item:nth-child(odd) {
	left: 0;
	padding-right: 3rem;
}

.process__item:nth-child(even) {
	left: 50%;
	padding-left: 3rem;
}

.process__item:nth-child(even)::after {
	left: -8px;
}

.process__item-content {
	padding: 1.5rem;
	background-color: var(--bg-secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	position: relative;
}

.process__item-step {
	position: absolute;
	top: -1rem;
	right: 1.5rem;
	font-size: 2rem;
	font-weight: var(--font-bold);
	color: rgba(201, 209, 217, 0.1);
	line-height: 1;
}

.process__item-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.process__item-description {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

/* Responsive adjustments for PROCESS */
@media screen and (max-width: 768px) {
	.process__timeline::after {
		left: 20px;
	}

	.process__item {
		width: 100%;
		padding-left: 50px;
		padding-right: 0;
	}

	.process__item:nth-child(odd),
	.process__item:nth-child(even) {
		left: 0;
		padding-left: 50px;
	}

	.process__item::after {
		left: 12px;
	}
}

/* assets/css/style.css */

/* ==================== BLOG ==================== */
.blog {
	background-color: var(--bg-secondary-color);
}

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

.blog__card {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s, box-shadow 0.3s;
}

.blog__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog__card-image-wrapper {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.blog__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog__card-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog__card-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: var(--text-color-light);
	margin-bottom: 1rem;
}

.blog__card-meta-divider {
	width: 4px;
	height: 4px;
	background-color: var(--text-color-light);
	border-radius: 50%;
}

.blog__card-title {
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
}

.blog__card-title a {
	color: var(--text-color);
	transition: color 0.3s;
}

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

.blog__card-excerpt {
	color: var(--text-color-light);
	font-size: var(--small-font-size);
	margin-bottom: 1.5rem;
	flex-grow: 1; /* Займає вільний простір, щоб кнопка була внизу */
}

.blog__card-readmore {
	font-weight: var(--font-medium);
	color: var(--accent-color);
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.blog__card-readmore-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.3s;
}

.blog__card-readmore:hover .blog__card-readmore-icon {
	transform: translateX(4px);
}

/* assets/css/style.css */

/* ==================== CONTACT ==================== */
.contact__container {
	max-width: 600px;
	margin: 0 auto;
}

.contact__form-group {
	margin-bottom: 1.5rem;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	background-color: var(--bg-secondary-color);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-color);
	font-size: var(--normal-font-size);
	outline: none;
	transition: border-color 0.3s;
}

.contact__form-input::placeholder {
	color: var(--text-color-light);
}

.contact__form-input:focus {
	border-color: var(--accent-color);
}

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

.contact__form-checkbox {
	width: 1rem;
	height: 1rem;
	margin-top: 0.25rem;
	accent-color: var(--accent-color); /* Стилизует цвет "галочки" */
}

.contact__form-label {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	line-height: 1.5;
}

.contact__form-label a {
	color: var(--accent-color);
	text-decoration: underline;
}

.contact__form-button {
	width: 100%;
}

.contact__message {
	font-size: var(--small-font-size);
	text-align: center;
	margin-top: 1.5rem;
	opacity: 0;
	transition: opacity 0.3s;
}

.contact__message.show-message {
	opacity: 1;
}

/* assets/css/style.css */

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Початково сховано */
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	width: 600px;
	background-color: var(--bg-secondary-color);
	padding: 1.5rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	z-index: var(--z-fixed);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show-popup {
	bottom: 1.5rem; /* З'являється */
}

.cookie-popup__text {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
	margin: 0;
}

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

.button--small {
	padding: 0.5rem 1rem;
	flex-shrink: 0; /* Щоб кнопка не стискалась */
}

@media screen and (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
}

/* assets/css/style.css */

/* ==================== POLICY PAGES ==================== */
.pages {
	padding: calc(var(--header-height) + 4rem) 0 4rem; /* Відступ від фіксованого хедера */
}

.pages .container {
	max-width: 800px; /* Вужчий контейнер для кращої читабельності */
}

.pages h1,
.pages h2 {
	color: var(--text-color);
	margin-bottom: 1rem;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

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

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

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

.pages li {
	color: var(--text-color-light);
	line-height: 1.8;
	margin-bottom: 0.75rem;
}

.pages a {
	color: var(--accent-color);
	text-decoration: underline;
	font-weight: var(--font-medium);
}

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