/* G L O B A L S */
:root {
	--color-background: #111827;
	--color-text: #e5e7eb;
	--color-accent: #38bdf8;
	--color-secondary: #9ca3af;
	--color-surface: #1f2937;
	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Poppins', sans-serif;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

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

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

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

ul {
	list-style: none;
}

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

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

/* H E A D E R */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: rgba(17, 24, 39, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-surface);
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-secondary);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-text);
}
.logo:hover {
	color: var(--color-text);
}
.logo__img {
	width: 32px;
	height: 32px;
}

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

.nav__link {
	color: var(--color-secondary);
	font-weight: 500;
	padding: 8px 0;
	position: relative;
}

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

.nav__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.3s ease;
}

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

.nav__link--button {
	background-color: var(--color-accent);
	color: var(--color-background);
	padding: 10px 20px;
	border-radius: 6px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.nav__link--button:hover {
	background-color: var(--color-text);
	color: var(--color-background);
}
.nav__link--button::after {
	display: none;
}

.header__burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text);
}

/* F O O T E R */
.footer {
	background-color: var(--color-surface);
	padding: 60px 0 30px;
	border-top: 1px solid rgba(156, 163, 175, 0.2);
}

.footer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	margin-bottom: 40px;
}

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

.footer__tagline {
	color: var(--color-secondary);
	font-size: 0.9rem;
}

.footer__heading {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-secondary);
}

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

.footer__link {
	color: var(--color-secondary);
	font-size: 0.9rem;
}
.footer__link:hover {
	color: var(--color-accent);
}

.footer__list--contacts {
	gap: 16px;
	font-size: 0.9rem;
	color: var(--color-secondary);
}

.footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.footer__contact-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--color-accent);
}

.footer__bottom {
	border-top: 1px solid rgba(156, 163, 175, 0.2);
	padding-top: 30px;
	text-align: center;
	font-size: 0.85rem;
	color: var(--color-secondary);
}

/* R E S P O N S I V E */
@media (max-width: 992px) {
	.nav__list {
		gap: 24px;
	}
	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 50px;
	}
}

@media (max-width: 768px) {
	.header__burger {
		display: block;
		z-index: 101;
	}

	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: var(--color-surface);
		padding: 120px 40px 40px;
		transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
	}

	.header__nav.nav--open {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.nav__link {
		font-size: 1.2rem;
	}

	.footer__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.footer__contact-item {
		text-align: left;
	}
}

/* G L O B A L S (дополнение) */
.button {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-background);
	padding: 14px 32px;
	border-radius: 6px;
	font-family: var(--font-secondary);
	font-weight: 600;
	text-align: center;
	transition: transform 0.3s ease, background-color 0.3s ease;
}
.button:hover {
	background-color: var(--color-text);
	color: var(--color-background);
	transform: translateY(-3px);
}

/* KEYFRAMES (анімація появи) */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* HERO V2 */
.hero-v2 {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--header-height) 15px 60px;
	text-align: center;
	overflow: hidden;
	background-image: url('../img/hero.webp'); /* Переконайтесь, що шлях правильний */
	background-size: cover;
	background-position: center;
	background-attachment: fixed; /* Ефект паралаксу */
}

.hero-v2__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(17, 24, 39, 0.7); /* Затемнюючий шар */
	z-index: 1;
}

.hero-v2__container {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.hero-v2__title,
.hero-v2__description,
.hero-v2__cta {
	/* Застосовуємо анімацію */
	animation: fadeInUp 0.8s both;
}

.hero-v2__title {
	font-size: 3.75rem; /* 60px */
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.1;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-v2__description {
	font-size: 1.25rem; /* 20px */
	color: var(--color-secondary);
	margin-bottom: 2.5rem;
	animation-delay: 0.2s; /* Затримка для послідовної появи */
}

.hero-v2__cta {
	animation-delay: 0.4s; /* Ще більша затримка */
}

.hero-v2__scroll-down {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	color: var(--color-text);
	animation: bounce 2s infinite;
}
.hero-v2__scroll-down:hover {
	color: var(--color-accent);
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translate(-50%, 0);
	}
	40% {
		transform: translate(-50%, -10px);
	}
	60% {
		transform: translate(-50%, -5px);
	}
}

/* R E S P O N S I V E (доповнення для Hero V2) */
@media (max-width: 768px) {
	.hero-v2__title {
		font-size: 2.5rem; /* 40px */
	}
	.hero-v2__description {
		font-size: 1.125rem; /* 18px */
	}
}

/* C O N C E P T S */
.concepts {
	padding: 80px 0;
}

.concepts__header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.concepts__title {
	font-size: 2.5rem; /* 40px */
	margin-bottom: 1rem;
}

.concepts__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-secondary);
}

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

.concept-card {
	background-color: var(--color-surface);
	padding: 30px;
	border-radius: 12px;
	border: 1px solid transparent;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.concept-card:hover {
	transform: translateY(-8px);
	border-color: var(--color-accent);
	box-shadow: 0 10px 30px rgba(56, 189, 248, 0.1);
}

.concept-card__icon {
	color: var(--color-accent);
	margin-bottom: 20px;
}

.concept-card__icon svg {
	width: 40px;
	height: 40px;
}

.concept-card__title {
	font-size: 1.25rem; /* 20px */
	margin-bottom: 10px;
}

.concept-card__description {
	font-size: 0.95rem;
	color: var(--color-secondary);
	line-height: 1.6;
}

/* R E S P O N S I V E (доповнення для Concepts) */
@media (max-width: 992px) {
	.concepts__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.concepts {
		padding: 60px 0;
	}
	.concepts__title {
		font-size: 2rem;
	}
	.concepts__grid {
		grid-template-columns: 1fr;
	}
}

/* T E C H N O L O G I E S */
.technologies {
	padding: 80px 0;
	background-color: var(--color-surface);
}

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

.technologies__title {
	font-size: 2.5rem; /* 40px */
	margin-bottom: 1rem;
}

.technologies__lead {
	font-size: 1.125rem; /* 18px */
	color: var(--color-text);
	font-weight: 500;
	margin-bottom: 1.5rem;
}

.technologies__text {
	color: var(--color-secondary);
	line-height: 1.7;
}

.technologies__list {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
}

.tech-badge {
	padding: 10px 20px;
	border: 1px solid var(--color-secondary);
	border-radius: 20px;
	color: var(--color-secondary);
	font-size: 0.9rem;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease,
		border-color 0.3s ease;
}

.tech-badge:hover {
	background-color: var(--color-accent);
	color: var(--color-background);
	border-color: var(--color-accent);
	cursor: default;
}

/* R E S P O N S I V E (доповнення для Technologies) */
@media (max-width: 992px) {
	.technologies__grid {
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.technologies {
		padding: 60px 0;
	}
	.technologies__grid {
		grid-template-columns: 1fr;
	}
	.technologies__content {
		text-align: center;
		margin-bottom: 20px;
	}
}
/* C A S E S */
.cases {
	padding: 80px 0;
}

.cases__header {
	text-align: center;
	margin-bottom: 40px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.cases__title {
	font-size: 2.5rem; /* 40px */
	margin-bottom: 1rem;
}

.cases__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-secondary);
}

.cases__nav-list {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.cases__nav-item {
	background-color: var(--color-surface);
	color: var(--color-secondary);
	border: 1px solid var(--color-surface);
	padding: 10px 25px;
	border-radius: 20px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.cases__nav-item:hover {
	background-color: var(--color-accent);
	color: var(--color-background);
}

.cases__nav-item.active {
	background-color: var(--color-accent);
	color: var(--color-background);
	font-weight: 600;
}

.case-content {
	display: none; /* Скрываем все табы по умолчанию */
	animation: fadeIn 0.5s;
}

.case-content.active {
	display: block; /* Показываем активный таб */
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

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

.case-content__image {
	width: 100%;
	border-radius: 12px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.case-content__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 1.5rem;
}

.case-content__tags li {
	background-color: var(--color-surface);
	color: var(--color-accent);
	padding: 5px 12px;
	border-radius: 15px;
	font-size: 0.8rem;
	font-weight: 600;
}

.case-content__title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.case-content__description {
	color: var(--color-secondary);
	line-height: 1.7;
}

/* R E S P O N S I V E (доповнення для Cases) */
@media (max-width: 768px) {
	.cases {
		padding: 60px 0;
	}
	.cases__title {
		font-size: 2rem;
	}
	.case-content__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.case-content__text-wrapper {
		text-align: center;
	}
	.case-content__tags {
		justify-content: center;
	}
}

/* P R O C E S S */
.process {
	padding: 80px 0;
	background-color: var(--color-surface);
}

.process__header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.process__title {
	font-size: 2.5rem; /* 40px */
	margin-bottom: 1rem;
}

.process__subtitle {
	font-size: 1.125rem; /* 18px */
	color: var(--color-secondary);
}

.process__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	position: relative;
}

/* Connecting line */
.process__steps::before {
	content: '';
	position: absolute;
	top: 40px;
	left: 10%;
	right: 10%;
	height: 2px;
	background-image: linear-gradient(
		to right,
		var(--color-secondary) 50%,
		transparent 50%
	);
	background-size: 10px 2px;
	background-repeat: repeat-x;
	z-index: 0;
}

.process-step {
	padding: 20px;
	position: relative;
	z-index: 1;
}

.process-step__number {
	font-size: 4rem;
	font-weight: 700;
	color: rgba(156, 163, 175, 0.1);
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	line-height: 1;
}

.process-step__title {
	font-size: 1.25rem;
	margin-top: 2.5rem; /* Space for the number */
	margin-bottom: 1rem;
}

.process-step__description {
	color: var(--color-secondary);
	font-size: 0.95rem;
}

/* R E S P O N S I V E (доповнення для Process) */
@media (max-width: 992px) {
	.process__steps::before {
		display: none; /* Hide horizontal line on tablet */
	}
}

@media (max-width: 768px) {
	.process {
		padding: 60px 0;
	}
	.process__title {
		font-size: 2rem;
	}
	.process__steps {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.process-step {
		text-align: center;
	}
	.process-step__number {
		position: static;
		display: block;
		margin-bottom: 10px;
		color: var(--color-accent);
		font-size: 2rem;
	}
	.process-step__title {
		margin-top: 0;
	}
}

/* C O N T A C T */
.contact {
	padding: 80px 0;
}

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

.contact__title {
	font-size: 2.5rem; /* 40px */
	margin-bottom: 1rem;
}

.contact__description {
	font-size: 1.125rem; /* 18px */
	color: var(--color-secondary);
	margin-bottom: 2rem;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__detail-item {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 1rem;
}
.contact__detail-item a {
	color: var(--color-text);
}
.contact__detail-item a:hover {
	color: var(--color-accent);
}

.contact__detail-icon {
	color: var(--color-accent);
}

/* Form Styles */
.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;
	color: var(--color-secondary);
}

.form-input {
	background-color: var(--color-surface);
	border: 1px solid var(--color-secondary);
	border-radius: 6px;
	padding: 12px 15px;
	color: var(--color-text);
	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-accent);
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

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

.form-checkbox {
	width: 1.25em;
	height: 1.25em;
	cursor: pointer;
}

.form-checkbox-label {
	font-size: 0.85rem;
	color: var(--color-secondary);
}
.form-checkbox-label a {
	text-decoration: underline;
}

.button--full {
	width: 100%;
}

.form-message {
	display: none; /* Hide by default */
	margin-top: 20px;
	padding: 15px;
	border-radius: 6px;
	text-align: center;
	font-weight: 500;
}
.form-message.visible {
	display: block;
}

.form-message--success {
	background-color: rgba(16, 185, 129, 0.1);
	color: #10b981;
	border: 1px solid #10b981;
}

/* R E S P O N S I V E (доповнення для Contact) */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
	.contact__info {
		text-align: center;
		margin-bottom: 40px;
	}
	.contact__details {
		justify-content: center;
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* C O O K I E   P O P - U P */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(200%); /* Start off-screen */
	max-width: 500px;
	width: calc(100% - 40px);
	background-color: var(--color-surface);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	z-index: 1000;
	transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-popup.visible {
	transform: translateX(-50%) translateY(0); /* Slide in */
}

.cookie-popup__text {
	font-size: 0.9rem;
	color: var(--color-secondary);
}

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

.cookie-popup__accept {
	background-color: var(--color-accent);
	color: var(--color-background);
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}

.cookie-popup__accept:hover {
	background-color: var(--color-text);
}

/* R E S P O N S I V E (доповнення для Cookie Pop-up) */
@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* P A G E S (privacy, terms, etc.) */
.pages {
	padding: calc(var(--header-height) + 60px) 0 80px;
}

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

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

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

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

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

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

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

.pages a {
	text-decoration: underline;
}

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