/* === GOOGLE FONTS === */
/*
font-family: 'Manrope', sans-serif;
font-family: 'Roboto Mono', monospace;
*/

/* === CSS VARIABLES === */
:root {
	--background-color: #f8f9fa;
	--text-color: #212529;
	--primary-color: #4a90e2;
	--accent-color: #f5a623;
	--white: #ffffff;
	--footer-bg: #2c3e50;
	--footer-text: #ecf0f1;
	--header-height: 80px;
	--font-main: 'Manrope', sans-serif;
	--font-mono: 'Roboto Mono', monospace;
}

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

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style-type: none;
}

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

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

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	font-weight: 700;
}

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

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

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

.logo {
	display: flex;
	align-items: center;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 1.5rem;
	color: var(--text-color);
}

.logo svg {
	margin-right: 12px;
}

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

.nav__link {
	font-weight: 700;
	padding: 5px 0;
	position: relative;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

.nav__link:hover::after {
	width: 100%;
}

.nav__link--cta {
	background-color: var(--primary-color);
	color: var(--white);
	padding: 10px 20px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.nav__link--cta:hover {
	background-color: #357abd;
}

.nav__link--cta::after {
	display: none;
}

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

.burger__line {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	margin: 5px 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === FOOTER === */
.footer {
	background-color: var(--footer-bg);
	color: var(--footer-text);
	padding-top: 60px;
}

.footer__container {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 40px;
	padding-bottom: 60px;
}

.footer__column--about .logo {
	margin-bottom: 20px;
	color: var(--white);
}

.footer__description {
	color: #bdc3c7;
	font-size: 0.9rem;
	max-width: 300px;
}

.footer__heading {
	font-family: var(--font-mono);
	margin-bottom: 20px;
	font-size: 1.1rem;
	color: var(--white);
}

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

.footer__link {
	color: #bdc3c7;
	transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer__link:hover {
	color: var(--primary-color);
	padding-left: 5px;
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #bdc3c7;
}

.footer__list--contact .footer__link {
	padding-left: 0;
}

.footer__bottom {
	background-color: #2c3e50;
	border-top: 1px solid #34495e;
	padding: 20px 0;
	text-align: center;
	font-size: 0.9rem;
	color: #bdc3c7;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--white);
		flex-direction: column;
		justify-content: center;
		transition: left 0.4s ease;
		padding: 20px;
	}

	.nav.nav--active {
		left: 0;
	}

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

	.nav__link {
		font-size: 1.5rem;
	}

	.burger {
		display: block;
		z-index: 1001; /* Must be on top of nav */
	}

	.burger.burger--active .burger__line:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	.burger.burger--active .burger__line:nth-child(2) {
		opacity: 0;
	}
	.burger.burger--active .burger__line:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--about .logo,
	.footer__description {
		margin-left: auto;
		margin-right: auto;
	}

	.footer__list--contact li {
		justify-content: center;
	}
}

/* === HERO SECTION === */
.hero {
	padding-top: var(--header-height);
	height: 100vh;
	min-height: 700px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	background-color: #eaf2f8; /* Слегка голубоватый фон для глубины */
}

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

.hero__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	position: relative;
	z-index: 2;
}

.hero__content {
	max-width: 550px;
}

.hero__title {
	font-size: 2.8rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--text-color);
}

.hero__title--accent {
	color: var(--primary-color);
}

.hero__description {
	font-size: 1.2rem;
	margin-bottom: 30px;
	color: #555;
}

.button {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 1rem;
	font-weight: 500;
	color: var(--white);
	background-color: var(--primary-color);
	padding: 15px 30px;
	border-radius: 5px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.hero__visual {
	flex-shrink: 0;
}

.hero__image {
	max-width: 500px;
	border-radius: 15px;
	animation: float 6s ease-in-out infinite;
}

/* Floating animation for image */
@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
	100% {
		transform: translateY(0px);
	}
}

/* === HERO RESPONSIVENESS === */
@media (max-width: 992px) {
	.hero__container {
		flex-direction: column;
		text-align: center;
		padding-top: 40px;
	}

	.hero__title {
		font-size: 2rem;
	}

	.hero__visual {
		margin-top: 40px;
	}

	.hero__image {
		max-width: 400px;
	}
}

@media (max-width: 768px) {
	.hero {
		height: auto;
		min-height: auto;
		padding-bottom: 60px;
	}
	.hero__title {
		font-size: 1.5rem;
	}
	.hero__description {
		font-size: 1rem;
	}
	.hero__image {
		max-width: 320px;
	}
}

/* === UTILITY CLASSES (добавьте их в начало CSS, если еще не создали) === */
.section__title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.section__subtitle {
	font-size: 1.1rem;
	color: #555;
	max-width: 600px;
	margin-bottom: 30px;
}

.text--primary {
	color: var(--primary-color);
}

/* === ABOUT PLATFORM SECTION === */
.about {
	padding: 100px 0;
	background-color: var(--white);
}

.about__container {
	display: flex;
	align-items: center;
	gap: 60px;
}

.about__content {
	flex: 1;
}

.about__visual {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.about__image {
	max-width: 100%;
	border-radius: 15px;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about__image:hover {
	transform: translateY(-10px) scale(1.03);
	box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

.about__list {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.about__item {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.about__item i {
	color: var(--primary-color);
	flex-shrink: 0;
	margin-top: 5px;
	width: 28px;
	height: 28px;
}

.about__item-text h3 {
	font-size: 1.2rem;
	margin-bottom: 5px;
	font-weight: 700;
}

.about__item-text p {
	color: #555;
	font-size: 0.95rem;
}

/* === ABOUT PLATFORM RESPONSIVENESS === */
@media (max-width: 992px) {
	.about__container {
		flex-direction: column;
	}
	.section__title,
	.section__subtitle {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	.about__visual {
		margin-top: 40px;
	}
}

@media (max-width: 768px) {
	.about {
		padding: 60px 0;
	}
	.section__title {
		font-size: 1.5rem;
	}
}

/* === UTILITY CLASSES (добавьте, если еще не создали) === */
.section__title--center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.section__subtitle--center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* === TECH SECTION === */
.tech {
	padding: 100px 0;
	background-color: var(--background-color);
}

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

.tech-card {
	background-color: var(--white);
	padding: 40px;
	border-radius: 15px;
	border: 1px solid #e0e0e0;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

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

.tech-card__icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #eaf2f8;
	margin-bottom: 25px;
}

.tech-card__icon i {
	width: 32px;
	height: 32px;
	color: var(--primary-color);
}

.tech-card__title {
	font-size: 1.5rem;
	margin-bottom: 15px;
}

.tech-card__description {
	color: #555;
	margin-bottom: 25px;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.tech-card__link {
	font-family: var(--font-mono);
	font-weight: 500;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	gap: 8px;
	transition: gap 0.3s ease;
}

.tech-card__link:hover {
	gap: 15px;
}

.tech-card__link i {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.tech-card__link:hover i {
	transform: translateX(5px);
}

/* === TECH SECTION RESPONSIVENESS === */
@media (max-width: 992px) {
	.tech__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.tech {
		padding: 60px 0;
	}
	.tech__grid {
		grid-template-columns: 1fr;
	}
}

/* === UTILITY CLASSES (добавьте, если еще не создали) === */
.section__title--light {
	color: var(--white);
}
.section__subtitle--light {
	color: #bdc3c7; /* Светло-серый для подзаголовка на темном фоне */
}

/* === BENEFITS SECTION === */
.benefits {
	padding: 100px 0;
	background-color: var(--footer-bg); /* Используем темный фон для контраста */
}

.benefits__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin-top: 60px;
}

.benefit-item {
	text-align: center;
	padding: 30px;
	background-color: #34495e; /* Чуть светлее основного фона */
	border-radius: 15px;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.benefit-item:hover {
	transform: translateY(-10px);
	background-color: #4a90e2; /* При наведении меняем фон на основной акцентный цвет */
}

.benefit-item__icon {
	margin: 0 auto 25px;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.1);
	transition: background-color 0.3s ease;
}

.benefit-item:hover .benefit-item__icon {
	background-color: rgba(255, 255, 255, 0.2);
}

.benefit-item__icon i {
	width: 36px;
	height: 36px;
	color: var(--accent-color); /* Оранжевый акцент для иконок */
}

.benefit-item__title {
	color: var(--white);
	font-size: 1.3rem;
	margin-bottom: 15px;
}

.benefit-item__description {
	color: #bdc3c7;
	font-size: 0.9rem;
	line-height: 1.5;
	transition: color 0.3s ease;
}

.benefit-item:hover .benefit-item__description {
	color: var(--white);
}

/* === BENEFITS SECTION RESPONSIVENESS === */
@media (max-width: 992px) {
	.benefits__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.benefits {
		padding: 60px 0;
	}
	.benefits__grid {
		grid-template-columns: 1fr;
	}
}

/* === CONTACT SECTION === */
.contact {
	padding: 100px 0;
	background-color: var(--white);
}

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

.contact__info .section__subtitle {
	margin-bottom: 40px;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact__detail-item {
	display: flex;
	align-items: center;
	gap: 15px;
	font-weight: 700;
}

.contact__detail-item i {
	color: var(--primary-color);
}

.contact__form-wrapper {
	background-color: #eaf2f8;
	padding: 40px;
	border-radius: 15px;
	position: relative;
	overflow: hidden;
}

.form__title {
	font-size: 1.8rem;
	text-align: center;
	margin-bottom: 30px;
}

.form__group {
	position: relative;
	margin-bottom: 25px;
}

.form__input {
	width: 100%;
	padding: 15px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
	background-color: var(--white);
	transition: border-color 0.3s ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
}

.form__label {
	position: absolute;
	top: 15px;
	left: 15px;
	color: #999;
	background-color: var(--white);
	padding: 0 5px;
	transition: all 0.3s ease;
	pointer-events: none;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
	top: -10px;
	left: 10px;
	font-size: 0.8rem;
	color: var(--primary-color);
}

.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 30px;
}

.form__checkbox {
	margin-top: 5px;
	flex-shrink: 0;
}

.form__checkbox-label {
	font-size: 0.9rem;
	color: #555;
}

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

.form__button {
	width: 100%;
	border: none;
	cursor: pointer;
}

.form__success-message {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(74, 144, 226, 0.95);
	color: var(--white);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.form__success-message.is-visible {
	opacity: 1;
	visibility: visible;
}

.form__success-message i {
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
}

/* === CONTACT SECTION RESPONSIVENESS === */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
	}
	.contact__info {
		text-align: center;
	}
	.contact__details {
		align-items: center;
	}
}
@media (max-width: 768px) {
	.contact {
		padding: 60px 0;
	}
	.contact__form-wrapper {
		padding: 25px;
	}
}

/* === COOKIE POP-UP === */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden below the screen */
	left: 0;
	width: 100%;
	background-color: rgba(44, 62, 80, 0.95); /* Semi-transparent footer color */
	color: var(--white);
	padding: 20px;
	z-index: 2000;
	transition: bottom 0.5s ease-in-out;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

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

.cookie-popup__content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.cookie-popup__text {
	font-size: 0.9rem;
}

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

.cookie-popup__button {
	padding: 10px 25px;
	background-color: var(--primary-color);
	flex-shrink: 0;
}

.cookie-popup__button:hover {
	background-color: var(--accent-color);
	box-shadow: none;
	transform: none;
}

/* === COOKIE POP-UP RESPONSIVENESS === */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/* === GENERIC PAGES STYLING (privacy.html, terms.html, etc.) === */

.pages {
	padding: 140px 0 100px; /* Великий відступ зверху через фіксований хедер */
	background-color: var(--white);
	min-height: calc(100vh - 300px); /* Щоб футер не прилипав до контенту */
}

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

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

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

.pages p {
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 20px;
	color: #333;
}

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

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

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

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

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