/* GLOBAL STYLES */
:root {
	--color-background: #111827; /* Deep Blue-Gray */
	--color-surface: #1f2937; /* Lighter Gray for surfaces */
	--color-primary: #38bdf8; /* Sky Blue */
	--color-text-main: #f9fafb; /* Almost White */
	--color-text-secondary: #9ca3af; /* Medium Gray */
	--color-border: #374151;

	--font-family-headings: 'Space Grotesk', sans-serif;
	--font-family-body: 'Inter', sans-serif;
}

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

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

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

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

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

ul {
	list-style: none;
}

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

.container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

body.no-scroll {
	overflow: hidden;
}

/* HEADER */
.header {
	background-color: rgba(17, 24, 39, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-family-headings);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text-main);
}

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

.nav__link {
	font-size: 1rem;
	padding: 0.5rem 0;
	position: relative;
}

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

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

.nav__link--cta {
	background-color: var(--color-primary);
	color: var(--color-background);
	padding: 0.5rem 1.25rem;
	border-radius: 999px;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

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

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

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

.footer__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-family-headings);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text-main);
	margin-bottom: 1rem;
}

.footer__description {
	font-size: 0.9rem;
	max-width: 250px;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	color: var(--color-text-main);
}

.footer__list li {
	margin-bottom: 0.75rem;
}

.footer__link {
	font-size: 0.95rem;
}

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

.footer__list--contacts li {
	margin-bottom: 0;
}

.footer__list--contacts .footer__link,
.footer__address {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.footer__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--color-primary);
}

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

.footer__bottom-container {
	text-align: center;
	font-size: 0.9rem;
}

/* RESPONSIVE STYLES (Mobile-first) */
@media (max-width: 992px) {
	.header__nav {
		display: none;
		position: fixed;
		top: 0;
		left: -100%;
		width: 80%;
		max-width: 320px;
		height: 100vh;
		background-color: var(--color-surface);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
		z-index: 1000;
	}

	.header__nav--open {
		display: flex;
		left: 0;
	}

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

	.nav__link {
		font-size: 1.2rem;
	}

	.header__burger {
		display: block;
	}
}

/* ... (попередні стилі залишаються без змін) ... */

/* UTILITY CLASSES */
.button {
	display: inline-block;
	background-color: var(--color-primary);
	color: var(--color-background);
	padding: 0.8rem 2rem;
	border-radius: 999px;
	font-weight: 500;
	font-family: var(--font-family-body);
	text-align: center;
	transition: transform 0.3s ease, background-color 0.3s ease;
	border: 2px solid transparent;
}

.button:hover {
	background-color: transparent;
	border-color: var(--color-primary);
	color: var(--color-primary);
	transform: translateY(-3px);
}

/* KEYFRAMES */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes blink {
	50% {
		border-color: transparent;
	}
}

/* HERO SECTION */
.hero {
	min-height: calc(100vh - 80px); /* 80px - приблизна висота хедера */
	display: flex;
	align-items: center;
	padding: 4rem 0;
}

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

.hero__title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	min-height: 152px; /* Резервуємо місце під текст */
}

.hero__title::after {
	content: '';
	display: inline-block;
	width: 3px;
	height: 3.5rem; /* Висота курсора */
	background-color: var(--color-primary);
	animation: blink 1s infinite;
	margin-left: 8px;
	vertical-align: bottom;
}

.hero__subtitle {
	font-size: 1.1rem;
	max-width: 500px;
	margin-bottom: 2.5rem;
	opacity: 0;
	animation: fadeIn 0.8s ease forwards;
	animation-delay: 2.5s; /* Затримка для появи після друкування */
}

.hero__cta {
	opacity: 0;
	animation: fadeIn 0.8s ease forwards;
	animation-delay: 2.8s; /* З'являється трохи пізніше */
}

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

.hero__image {
	max-width: 100%;
	border-radius: 1rem;
}

/* RESPONSIVE STYLES (Mobile-first) */
@media (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero__content {
		order: 2;
	}
	.hero__visual {
		order: 1;
		margin-bottom: 3rem;
	}
	.hero__title {
		font-size: 1.5rem;
		min-height: 87px;
	}
	.hero__title::after {
		height: 1.5rem;
	}
	.hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}
}

/* SECTION HEADER UTILITY */
.section-header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

.section-header__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.section-header__subtitle {
	font-size: 1.1rem;
	color: var(--color-text-secondary);
}

/* HOW IT WORKS SECTION */
.how-it-works {
	padding: 6rem 0;
	background-color: #141d2f; /* Slightly lighter than main bg for contrast */
}

.how-it-works__steps-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.step-card {
	background-color: var(--color-surface);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid var(--color-border);
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
	transform: translateY(-8px);
	border-color: var(--color-primary);
}

.step-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.step-card__icon {
	width: 36px;
	height: 36px;
	color: var(--color-primary);
}

.step-card__number {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-border);
}

.step-card__title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.step-card__description {
	font-size: 1rem;
	line-height: 1.7;
}

/* RESPONSIVE STYLES (Mobile-first) */
/* ... */
@media (max-width: 992px) {
	/* ... (попередні медіа-запити) ... */

	.section-header__title {
		font-size: 2rem;
	}
}

/* TEXT & IDEAS SECTION */
.text-ideas {
	padding: 6rem 0;
}

.text-ideas__main-content {
	display: grid;
	grid-template-columns: 1fr 1.2fr; /* Ліва колонка менша */
	gap: 4rem;
	align-items: center;
}

.text-ideas__visual-wrapper {
	width: 100%;
}

.text-ideas__image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: cover;
}

/* Tabs Component */
.tabs__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--color-border);
}

.tabs__control {
	background: none;
	border: none;
	font-family: var(--font-family-body);
	font-size: 1rem;
	color: var(--color-text-secondary);
	padding: 0.75rem 0.25rem;
	cursor: pointer;
	position: relative;
	transition: color 0.3s ease;
}

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

.tabs__control::after {
	content: '';
	position: absolute;
	bottom: -1px; /* Розміщуємо на 1px нижче, щоб перекрити бордер */
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--color-primary);
	transform: scaleX(0);
	transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.tabs__control.is-active {
	color: var(--color-primary);
	font-weight: 500;
}

.tabs__control.is-active::after {
	transform: scaleX(1);
}

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

.tabs__panel {
	display: none;
	animation: contentFadeIn 0.5s ease;
}

.tabs__panel.is-active {
	display: block;
}

.tabs__panel h3 {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.tabs__panel p {
	font-size: 1.05rem;
	margin-bottom: 1.5rem;
	max-width: 600px;
}

.tabs__list {
	list-style: none;
	padding: 0;
}

.tabs__list li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 0.75rem;
}

.tabs__list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--color-primary);
	font-weight: bold;
}

@media (max-width: 992px) {
	/* ... */
	.text-ideas__main-content {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.text-ideas__image {
		aspect-ratio: 16 / 9; /* Горизонтальне зображення на мобільних */
	}
}

/* VISUAL & DESIGN SECTION */
.visual-design {
	padding: 6rem 0;
	background-color: #141d2f; /* Такий самий фон, як у 'how-it-works' */
	position: relative; /* Для позиціонування кнопок навігації */
}

.visual-swiper {
	width: 100%;
	padding-bottom: 4rem !important; /* Місце для пагінації */
}

.visual-slide {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1 / 1; /* Робить слайди квадратними */
}

.visual-slide__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.visual-slide:hover .visual-slide__image {
	transform: scale(1.05);
}

.visual-slide__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(
		0deg,
		rgba(17, 24, 39, 0.8) 0%,
		rgba(17, 24, 39, 0) 100%
	);
	color: var(--color-text-main);
	padding: 2rem 1.5rem 1.5rem;
	font-size: 1.1rem;
	font-weight: 500;
	text-align: left;
}

/* Swiper Customization */
.swiper-pagination-bullet {
	background-color: var(--color-text-secondary);
	width: 10px;
	height: 10px;
	opacity: 0.7;
}

.swiper-pagination-bullet-active {
	background-color: var(--color-primary);
	opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
	color: var(--color-text-main) !important;
	background-color: rgba(31, 41, 55, 0.5);
	width: 50px !important;
	height: 50px !important;
	border-radius: 50%;
	backdrop-filter: blur(5px);
	transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background-color: rgba(31, 41, 55, 0.8);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	font-size: 1.2rem !important;
	font-weight: bold;
}

@media (max-width: 768px) {
	.swiper-button-next,
	.swiper-button-prev {
		display: none !important; /* Ховаємо стрілки на мобільних, залишаємо свайп */
	}
}

/* SECTION HEADER UTILITY MODIFIER */
.section-header--left-aligned {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

/* WORK ASSISTANT SECTION */
.work-assistant {
	padding: 6rem 0;
}

.work-assistant__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.work-assistant__image {
	width: 100%;
	border-radius: 12px;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

/* Accordion */
.accordion {
	border-top: 1px solid var(--color-border);
}

.accordion__item {
	border-bottom: 1px solid var(--color-border);
}

.accordion__header {
	width: 100%;
	background: none;
	border: none;
	padding: 1.5rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	text-align: left;
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--color-text-main);
	font-family: var(--font-family-headings);
}

.accordion__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 1rem;
	color: var(--color-primary);
}

.accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding-bottom 0.4s ease-out;
}

.accordion__content p {
	padding-bottom: 0;
	line-height: 1.7;
}

/* Active state for Accordion */
.accordion__item.is-active .accordion__icon {
	transform: rotate(180deg);
}

.accordion__item.is-active .accordion__content {
	max-height: 200px; /* Adjust if content is taller */
	padding-bottom: 1.5rem;
}

@media (max-width: 992px) {
	/* ... */
	.work-assistant__grid {
		grid-template-columns: 1fr;
	}
	.work-assistant__visual {
		order: -1; /* Image on top on mobile */
		margin-bottom: 3rem;
	}
	.section-header--left-aligned {
		text-align: center;
	}
}

/* CONTACT SECTION */
.contact {
	padding: 6rem 0;
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: center;
	background-color: var(--color-surface);
	padding: 4rem;
	border-radius: 16px;
}

.contact__title {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
}

.contact__description {
	font-size: 1.1rem;
	line-height: 1.7;
	max-width: 450px;
}

/* Form Styles */
.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--color-text-secondary);
}

.form-input {
	width: 100%;
	padding: 0.9rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	color: var(--color-text-main);
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
	color: var(--color-text-secondary);
	opacity: 0.7;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 1rem;
}

.form-group--checkbox input[type='checkbox'] {
	margin-top: 5px;
	flex-shrink: 0;
}

.form-group--checkbox label {
	font-size: 0.9rem;
	line-height: 1.5;
}

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

.contact-form__button {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
}

.form-message {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 8px;
	text-align: center;
	display: none; /* Hidden by default */
}

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

@media (max-width: 992px) {
	/* ... */
	.contact__grid {
		grid-template-columns: 1fr;
		padding: 2rem;
	}
	.contact__info {
		text-align: center;
	}
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--color-surface);
	color: var(--color-text-secondary);
	padding: 1.5rem;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	z-index: 2000;
	transform: translateY(200%);
	opacity: 0;
	transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

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

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

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

.cookie-popup__button {
	padding: 0.6rem 1.2rem;
	flex-shrink: 0;
}

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

/* STYLES FOR GENERIC PAGES (privacy.html, terms.html, etc.) */
.pages {
	padding: 4rem 0;
}

.pages .container {
	max-width: 800px; /* Narrower container for better readability */
}

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

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

.pages p {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

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

.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 0.75rem;
}

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

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