/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@600;700&display=swap');

/* CSS Variables */
:root {
	--background-color: #fdfeff;
	--text-color: #1a202c;
	--primary-color: #3d5afe;
	--secondary-color: #7b8a9e;
	--border-color: #e2e8f0;
	--header-height: 80px;
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;
}

/* Global Styles & Resets */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

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

ul {
	list-style: none;
}

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

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

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

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

/* Header */
.header {
	position: sticky;
	top: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(253, 254, 255, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	z-index: 100;
}

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

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

.header__nav-link {
	font-size: 16px;
	font-weight: 500;
	color: var(--text-color);
	position: relative;
	padding: 8px 0;
}

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

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

.header__nav-link:hover::after {
	width: 100%;
}

.header__nav-link--button {
	background-color: var(--primary-color);
	color: white;
	padding: 10px 20px;
	border-radius: 8px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.header__nav-link--button:hover {
	background-color: #3149d4;
	color: white;
	transform: translateY(-2px);
}

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

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

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

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

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

.footer__copyright {
	font-size: 14px;
}

.footer__title {
	font-family: var(--font-heading);
	color: var(--text-color);
	font-size: 18px;
	margin-bottom: 16px;
}

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

.footer__list--contacts {
	gap: 16px;
}

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

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

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

	.header__burger-btn {
		display: block;
	}

	.header__nav.is-active {
		display: flex;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--background-color);
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.header__nav-list {
		flex-direction: column;
		gap: 40px;
	}

	.header__nav-link {
		font-size: 24px;
	}

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

	.footer__column--about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--about,
	.logo {
		align-items: center;
	}

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

/* Добавьте этот код в конец файла */

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

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

.hero__title {
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 24px;
	/* Минимальная высота, чтобы заголовок не "прыгал" во время анимации */
	min-height: 144px;
}

/* Курсор для эффекта печатания */
.hero__title::after {
	content: '|';
	animation: blink 0.7s infinite;
	display: inline-block;
	vertical-align: bottom;
	color: var(--primary-color);
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__subtitle {
	font-size: 18px;
	color: var(--secondary-color);
	margin-bottom: 40px;
	max-width: 500px;
}

.hero__cta-button {
	display: inline-block;
	background-color: var(--primary-color);
	color: white;
	padding: 16px 32px;
	border-radius: 12px;
	font-size: 18px;
	font-weight: 500;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(61, 90, 254, 0.3);
}

.hero__cta-button:hover {
	background-color: #3149d4;
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 6px 20px rgba(61, 90, 254, 0.4);
}

.hero__image-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero__image {
	width: 100%;
	height: auto;
	border-radius: 24px;
	object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__content {
		order: 2;
	}

	.hero__image-wrapper {
		order: 1;
		margin-bottom: 40px;
	}

	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.hero__title {
		font-size: 40px;
		min-height: 96px; /* Adjust for smaller font size */
	}
}

@media (max-width: 576px) {
	.hero {
		padding: 60px 0;
	}

	.hero__title {
		font-size: 32px;
		min-height: 115px; /* Adjust for smaller font size */
	}

	.hero__subtitle {
		font-size: 16px;
	}
}

/* Добавьте этот код в конец файла */

/* Section Header (Reusable) */
.section-header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 750px;
	margin-left: auto;
	margin-right: auto;
}

.section-header__title {
	font-family: var(--font-heading);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 16px;
	color: var(--text-color);
}

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

/* Features Section */
.features {
	padding: 100px 0;
	background-color: #f7f9fc;
}

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

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

.features__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.features__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	background-color: rgba(61, 90, 254, 0.1);
	color: var(--primary-color);
	border-radius: 50%;
	margin-bottom: 24px;
}

.features__card-icon svg {
	width: 32px;
	height: 32px;
}

.features__card-title {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--text-color);
}

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

/* Responsive */
@media (max-width: 992px) {
	.features__grid {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 576px) {
	.features {
		padding: 80px 0;
	}

	.section-header__title {
		font-size: 30px;
	}

	.section-header__subtitle {
		font-size: 16px;
	}

	.features__card {
		padding: 30px;
	}
}

/* Добавьте этот код в конец файла */

/* Work Section */
.work {
	padding: 100px 0;
}

.work__tabs-container {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 40px;
	background-color: #f7f9fc;
	border: 1px solid var(--border-color);
	border-radius: 24px;
	padding: 40px;
}

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

.work__tab-button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 16px;
	font-size: 16px;
	font-weight: 500;
	font-family: var(--font-body);
	border-radius: 12px;
	border: none;
	background-color: transparent;
	cursor: pointer;
	text-align: left;
	color: var(--secondary-color);
	transition: background-color 0.3s ease, color 0.3s ease;
}

.work__tab-button.is-active {
	background-color: var(--primary-color);
	color: white;
}

.work__tab-button:not(.is-active):hover {
	background-color: #eef2f7;
	color: var(--text-color);
}

.work__tab-button svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.work__tab-pane {
	display: none;
	animation: fadeIn 0.5s ease;
}

.work__tab-pane.is-active {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.work__tab-pane-content h3 {
	font-family: var(--font-heading);
	font-size: 28px;
	margin-bottom: 16px;
	font-weight: 600;
}

.work__tab-pane-content p {
	color: var(--secondary-color);
	margin-bottom: 24px;
}

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

.work__tab-list li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.work__tab-list li svg {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
}

.work__tab-pane-image img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	object-fit: cover;
}

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

/* Responsive */
@media (max-width: 992px) {
	.work__tabs-container {
		grid-template-columns: 1fr;
		padding: 20px;
	}
	.work__tabs-nav {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 10px; /* For scrollbar */
	}
	.work__tab-button {
		white-space: nowrap;
	}
}

@media (max-width: 768px) {
	.work__tab-pane.is-active {
		grid-template-columns: 1fr;
	}
	.work__tab-pane-image {
		order: -1;
		margin-bottom: 30px;
	}
}

/* Добавьте этот код в конец файла */

/* How It Works Section */
.how-it-works {
	padding: 100px 0;
}

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

/* Connecting lines */
.how-it-works__grid::before {
	content: '';
	position: absolute;
	top: 52px; /* Vertically align with the icons */
	left: 16.66%; /* Start after the first item's center */
	width: 66.66%; /* Span across the middle items */
	height: 2px;
	background-image: linear-gradient(
		to right,
		var(--border-color) 50%,
		transparent 50%
	);
	background-size: 16px 2px;
	z-index: -1;
}

.how-it-works__step {
	text-align: center;
	padding: 20px;
}

.how-it-works__icon-wrapper {
	position: relative;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 104px;
	height: 104px;
	background-color: #f7f9fc;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	margin-bottom: 24px;
}

.how-it-works__icon-wrapper i svg {
	width: 40px;
	height: 40px;
	color: var(--primary-color);
}

.how-it-works__step-number {
	position: absolute;
	top: 0;
	right: 0;
	width: 32px;
	height: 32px;
	background-color: var(--primary-color);
	color: white;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	border: 2px solid var(--background-color);
}

.how-it-works__step-title {
	font-family: var(--font-heading);
	font-size: 22px;
	margin-bottom: 12px;
}

.how-it-works__step-description {
	color: var(--secondary-color);
	font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
	.how-it-works__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	/* Hide the horizontal line on mobile and draw vertical ones */
	.how-it-works__grid::before {
		display: none;
	}

	.how-it-works__step:not(:last-child)::after {
		content: '';
		position: absolute;
		bottom: -20px; /* Position between cards */
		left: 50%;
		transform: translateX(-50%);
		width: 2px;
		height: 40px; /* Length of the line */
		background-image: linear-gradient(
			to bottom,
			var(--border-color) 50%,
			transparent 50%
		);
		background-size: 2px 16px;
	}
}

/* Добавьте этот код в конец файла */

/* Contact Section */
.contact {
	padding: 100px 0;
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 60px;
	background-color: #f7f9fc;
	border: 1px solid var(--border-color);
	border-radius: 24px;
	padding: 60px;
}

.contact__info h3 {
	font-family: var(--font-heading);
	font-size: 28px;
	margin-bottom: 16px;
}

.contact__info p {
	color: var(--secondary-color);
	margin-bottom: 32px;
}

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

.contact__info-list li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.contact__info-list li svg {
	color: var(--primary-color);
	flex-shrink: 0;
}

.contact__form-container {
	position: relative;
}

.contact__form-group {
	margin-bottom: 24px;
}

.contact__form-group label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
}

.contact__form-group input[type='text'],
.contact__form-group input[type='email'],
.contact__form-group input[type='tel'] {
	width: 100%;
	padding: 14px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-body);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-group input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.2);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.contact__form-group--checkbox input {
	margin-top: 5px;
	flex-shrink: 0;
}

.contact__form-group--checkbox label {
	font-size: 14px;
	color: var(--secondary-color);
	font-weight: 400;
}
.contact__form-group--checkbox a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__submit-btn {
	width: 100%;
	padding: 16px;
	background-color: var(--primary-color);
	color: white;
	font-size: 18px;
	font-weight: 500;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.contact__submit-btn:hover {
	background-color: #3149d4;
}

/* Validation & Success Message */
.contact__form-error {
	display: none;
	color: #e53e3e;
	font-size: 12px;
	margin-top: 4px;
}
.contact__form-group.is-invalid input:not([type='checkbox']) {
	border-color: #e53e3e;
}
.contact__form-group.is-invalid .contact__form-error {
	display: block;
}

.contact__success-message {
	/* position: absolute;
	top: 0;
	left: 0; */
	width: 100%;
	height: 100%;
	background-color: #f7f9fc;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s, visibility 0.5s;
}
.contact__success-message.is-visible {
	opacity: 1;
	visibility: visible;
}
.contact__success-message svg {
	color: #48bb78;
	width: 60px;
	height: 60px;
	margin-bottom: 20px;
}
.contact__success-message h3 {
	font-family: var(--font-heading);
	font-size: 24px;
}

/* Responsive */
@media (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
		padding: 40px;
	}
}

@media (max-width: 576px) {
	.contact__wrapper {
		padding: 30px 20px;
	}
}

/* Додайте цей код в кінець файлу */

/* Cookie Pop-up */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	z-index: 9999;
	background-color: var(--text-color);
	color: white;
	padding: 20px;
	border-radius: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	transform: translateY(150%);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s,
		visibility 0.6s;
}

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

.cookie-popup__text {
	font-size: 14px;
	line-height: 1.5;
}

.cookie-popup__link {
	color: #90b8f8;
	text-decoration: underline;
}

.cookie-popup__btn {
	background-color: var(--primary-color);
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.cookie-popup__btn:hover {
	background-color: #3149d4;
}

/* Responsive */
@media (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* Додайте цей код в кінець файлу */

/* ==========================================================
   СТИЛІ ДЛЯ СТАТИЧНИХ СТОРІНОК (Політики, Умови і т.д.)
   ========================================================== */
.pages {
	padding: 80px 0 100px;
}

.pages h1,
.pages h2 {
	font-family: var(--font-heading);
	color: var(--text-color);
}

.pages h1 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 24px;
	line-height: 1.2;
}

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

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

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

.pages ul li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 8px;
	line-height: 1.6;
}

.pages ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--primary-color);
}

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

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

/* Адаптивність для текстових сторінок */
@media (max-width: 768px) {
	.pages {
		padding: 60px 0 80px;
	}

	.pages h1 {
		font-size: 36px;
	}

	.pages h2 {
		font-size: 28px;
	}
}

@media (max-width: 576px) {
	.pages h1 {
		font-size: 28px;
	}

	.pages h2 {
		font-size: 22px;
	}
}
