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

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

	/*========== Colors ==========*/
	--primary-color: #4f46e5;
	--primary-color-alt: #4338ca;
	--text-color: #111827;
	--text-color-light: #6b7280;
	--body-color: #f9fafb;
	--container-color: #ffffff;
	--border-color: #e5e7eb;

	/*========== Font and typography ==========*/
	--body-font: 'Inter', sans-serif;
	--heading-font: 'Roboto Mono', monospace;

	--h1-font-size: 2.25rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;
	--tiny-font-size: 0.75rem;

	--font-medium: 500;
	--font-bold: 700;

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

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

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

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

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

/*=============== HEADER & NAV ===============*/
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: var(--body-color);
	border-bottom: 1px solid var(--border-color);
	z-index: var(--z-fixed);
	transition: background-color 0.3s;
}

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

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

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

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

@media screen and (max-width: 767px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		background-color: var(--container-color);
		width: 80%;
		height: 100%;
		box-shadow: -2px 0 12px hsla(0, 0%, 0%, 0.1);
		padding: 4rem 2rem 0;
		transition: right 0.4s ease;
	}
}

.nav__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

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

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

.nav__close {
	position: absolute;
	top: 1.15rem;
	right: 1.15rem;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-color);
	border: none;
	background: none;
}

/* Show menu */
.nav--show {
	right: 0;
}

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

.footer__container {
	display: grid;
	gap: 2.5rem;
}

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

.footer__logo-icon {
	width: 32px;
	height: 32px;
}

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

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

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

.footer__link {
	color: var(--text-color-light);
	transition: color 0.3s;
}

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

.footer__address {
	color: var(--text-color-light);
	font-style: normal;
}

.footer__list--contacts {
	line-height: 1.6;
}

/*=============== MEDIA QUERIES ===============*/

/* For medium devices */
@media screen and (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 768px) {
	.header__toggle,
	.nav__close {
		display: none;
	}

	.nav {
		width: auto;
	}

	.nav__list {
		flex-direction: row;
		gap: 2.5rem;
	}
}

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

	.footer__col:first-child {
		grid-column: span 1;
	}
}

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

/*=============== REUSABLE CSS CLASSES (доповнення) ===============*/
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 1rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: var(--font-medium);
	transition: background-color 0.3s;
	border: none;
	cursor: pointer;
}

.button:hover {
	background-color: var(--primary-color-alt);
}

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

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

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

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

.hero__title {
	font-size: var(--h1-font-size);
	margin-bottom: 1rem;
}

.hero__description {
	font-size: var(--h3-font-size);
	color: var(--text-color-light);
	margin-bottom: 2.5rem;
	line-height: 1.6;
	font-family: var(
		--body-font
	); /* Використовуємо основний шрифт для кращої читабельності */
}

/*=============== MEDIA QUERIES (доповнення для HERO) ===============*/
@media screen and (min-width: 768px) {
	:root {
		--h1-font-size: 3rem;
		--h2-font-size: 1.75rem;
		--h3-font-size: 1.5rem;
	}
	.hero__title {
		font-size: 3.5rem;
		line-height: 1.2;
	}
}

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

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

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

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

/*=============== FEATURES ===============*/
.features__grid {
	display: grid;
	gap: 1.5rem;
}

.features__card {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	padding: 2rem;
	border-radius: 0.75rem;
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

.features__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.1);
}

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

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

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

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

/*=============== MEDIA QUERIES (доповнення для FEATURES) ===============*/
@media screen and (min-width: 576px) {
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.section {
		padding: 6rem 0 4rem;
	}
	.features__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/*=============== PROCESS ===============*/
.process {
	background-color: var(--container-color);
}

.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 0;
}

/* The actual timeline line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 2px;
	background-color: var(--border-color);
	top: 0;
	bottom: 0;
	left: 25px;
}

.process__item {
	padding-left: 60px;
	position: relative;
	margin-bottom: 2.5rem;
}

.process__item:last-child {
	margin-bottom: 0;
}

.process__marker {
	position: absolute;
	left: 0;
	top: -30px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--container-color);
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: var(--font-bold);
	font-family: var(--heading-font);
	z-index: 1;
}

.process__content {
	padding: 1.5rem;
	background-color: var(--body-color);
	border-radius: 0.5rem;
	border: 1px solid var(--border-color);
}

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

.process__item-text {
	color: var(--text-color-light);
	line-height: 1.6;
	font-size: var(--normal-font-size);
}

/*=============== MEDIA QUERIES (доповнення для PROCESS) ===============*/
@media screen and (min-width: 768px) {
	.process__timeline::after {
		left: 50%;
		margin-left: -1px;
	}

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

	/* Left side items */
	.process__item:nth-child(odd) {
		left: 0;
		padding-right: 50px;
		text-align: right;
	}

	/* Right side items */
	.process__item:nth-child(even) {
		left: 50%;
		padding-left: 50px;
	}

	.process__marker {
		left: calc(50% - 25px);
	}

	/* Arrows */
	.process__content::before {
		content: '';
		position: absolute;
		top: 20px;
		width: 0;
		height: 0;
		border-style: solid;
	}

	.process__item:nth-child(odd) .process__content::before {
		right: -10px;
		border-width: 10px 0 10px 10px;
		border-color: transparent transparent transparent var(--border-color);
	}

	.process__item:nth-child(even) .process__content::before {
		left: -10px;
		border-width: 10px 10px 10px 0;
		border-color: transparent var(--border-color) transparent transparent;
	}
}

/*=============== SOLUTIONS ===============*/
.solutions__tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.solutions__tab-button {
	background-color: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-color-light);
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: var(--font-medium);
	cursor: pointer;
	transition: all 0.3s;
}

.solutions__tab-button:hover {
	background-color: var(--body-color);
	color: var(--primary-color);
}

.solutions__tab-button--active {
	background-color: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.solutions__content {
	display: none;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	animation: fadeIn 0.4s;
}

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

.solutions__content--active {
	display: grid;
}

.solutions__content-title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.solutions__content-description {
	color: var(--text-color-light);
	line-height: 1.6;
	margin-bottom: 2rem;
}

.solutions__content-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.solutions__content-list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.solutions__content-list i {
	color: var(--primary-color);
	width: 20px;
	height: 20px;
}

.solutions__content-img img {
	border-radius: 0.75rem;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/*=============== MEDIA QUERIES (доповнення для SOLUTIONS) ===============*/
@media screen and (min-width: 768px) {
	.solutions__content {
		grid-template-columns: repeat(2, 1fr);
		text-align: left;
	}
}

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

.cases__grid {
	display: grid;
	gap: 1.5rem;
}

.cases__card {
	background-color: var(--container-color);
	border: 1px solid var(--border-color);
	border-radius: 0.75rem;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.cases__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.1);
}

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

.cases__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cases__card-content {
	padding: 1.5rem;
}

.cases__card-tag {
	display: inline-block;
	background-color: var(--primary-color-alt);
	background-image: linear-gradient(
		to right,
		var(--primary-color) 0%,
		var(--primary-color-alt) 100%
	);
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 0.25rem;
	font-size: var(--tiny-font-size);
	font-weight: var(--font-medium);
	margin-bottom: 1rem;
	text-transform: uppercase;
}

.cases__card-title {
	font-size: 1.15rem; /* slightly smaller than h3 */
	margin-bottom: 0.5rem;
	font-family: var(--body-font);
	font-weight: var(--font-bold);
}

.cases__card-description {
	color: var(--text-color-light);
	font-size: var(--small-font-size);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.cases__card-metrics {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
}

.cases__metric-item {
	text-align: center;
}

.cases__metric-value {
	display: block;
	font-size: 1.5rem;
	font-weight: var(--font-bold);
	color: var(--primary-color);
	font-family: var(--heading-font);
}

.cases__metric-label {
	font-size: var(--tiny-font-size);
	color: var(--text-color-light);
}

/*=============== MEDIA QUERIES (доповнення для CASES) ===============*/
@media screen and (min-width: 576px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/*=============== CONTACT ===============*/
.contact {
	background-color: var(--container-color);
}

.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__description {
	color: var(--text-color-light);
	line-height: 1.6;
}

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

.contact__form-label {
	display: block;
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
	margin-bottom: 0.5rem;
}

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

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

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

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

.contact__form-checkbox {
	margin-top: 5px;
	width: 1rem;
	height: 1rem;
}

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

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

.contact__form-checkbox-label a:hover {
	text-decoration: none;
}

.contact__form-button {
	width: 100%;
}

.contact__message {
	font-size: var(--normal-font-size);
	color: var(--text-color);
	padding: 1rem;
	border-radius: 0.5rem;
	text-align: center;
	display: none; /* Initially hidden */
}

.contact__message--success {
	margin-top: 2rem;
	background-color: #d1fae5; /* Green */
	border: 1px solid #6ee7b7;
	color: #065f46;
}

/*=============== MEDIA QUERIES (доповнення для CONTACT) ===============*/
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
	}
}

/*=============== COOKIE POPUP ===============*/
.cookie {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--container-color);
	box-shadow: 0 -2px 16px hsla(0, 0%, 0%, 0.1);
	padding: 1.5rem 0;
	z-index: var(--z-fixed);
	transform: translateY(110%);
	visibility: hidden;
	transition: transform 0.4s, visibility 0.4s;
}

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

.cookie__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

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

.cookie__text a {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie__text a:hover {
	text-decoration: none;
}

.cookie__button {
	padding: 0.75rem 1.5rem;
}

/*=============== MEDIA QUERIES (доповнення для COOKIE) ===============*/
@media screen and (min-width: 768px) {
	.cookie__container {
		flex-direction: row;
		justify-content: space-between;
	}
}

/*=============== POLICY & TEXT PAGES ===============*/
.pages {
	padding: 6rem 0 4rem;
	background-color: var(--container-color);
}

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

.pages h1,
.pages h2 {
	font-family: var(
		--body-font
	); /* Для текстових сторінок краще підходить звичайний шрифт */
	font-weight: var(--font-bold);
}

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

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.pages p {
	line-height: 1.7;
	color: var(--text-color);
	margin-bottom: 1rem;
}

.pages ul,
.pages ol {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

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

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

.pages a:hover {
	color: var(--primary-color-alt);
	text-decoration: none;
}

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