/* ==================== GOOGLE FONTS ==================== */
/* font-family: 'Playfair Display', serif;
font-family: 'Roboto', sans-serif;
*/

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--primary-color: #0a6874;
	--secondary-color: #f2b705;
	--bg-color: #f8f9fa;
	--text-color: #333333;
	--text-light: #f8f9fa;
	--container-width: 1140px;
	--container-padding: 1rem;

	/* Fonts */
	--font-body: 'Roboto', sans-serif;
	--font-heading: 'Playfair Display', serif;

	/* Other */
	--header-height: 4.5rem;
	--border-radius: 0.5rem;
	--transition-speed: 0.3s ease;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--primary-color);
	font-weight: 700;
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

/* ==================== UTILITY CLASSES ==================== */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.main {
	/* Додаємо відступ зверху, щоб контент не ховався під фіксований хедер */
	padding-top: var(--header-height);
}

/* ==================== HEADER ==================== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: var(--bg-color);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	z-index: 100;
	transition: var(--transition-speed);
}

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
}

.header__logo-svg {
	height: 2.5rem; /* Висота лого */
	width: auto;
}

.header__toggle {
	display: block;
	font-size: 1.5rem;
	color: var(--primary-color);
	background: none;
	border: none;
	cursor: pointer;
	z-index: 101;
	transition: var(--transition-speed);
}

.header__toggle.is-active {
	color: var(--text-light);
}

.header__nav {
	position: fixed;
	top: 0;
	right: -100%; /* Сховано за замовчуванням */
	width: 70%;
	height: 100vh;
	background-color: var(--primary-color);
	padding: 6rem 2rem 2rem;
	transition: var(--transition-speed);
	z-index: 100;
}

/* Mobile menu active state */
.header__nav.is-active {
	right: 0;
}

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

.header__link {
	color: var(--text-light);
	font-weight: 500;
	transition: var(--transition-speed);
}

.header__link:hover {
	color: var(--secondary-color);
}

.header__link--button {
	background-color: var(--secondary-color);
	color: var(--text-color);
	padding: 0.5rem 1.5rem;
	border-radius: var(--border-radius);
	text-align: center;
}

.header__link--button:hover {
	color: var(--text-color);
	opacity: 0.9;
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--primary-color);
	color: var(--text-light);
	padding: 4rem 0 2rem;
	margin-top: 4rem; /* Відступ від останньої секції */
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

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

.footer__logo-svg {
	height: 2.5rem;
	width: auto;
}

.footer__description {
	font-size: 0.9rem;
	opacity: 0.8;
	max-width: 300px;
}

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

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

.footer__link {
	opacity: 0.8;
	transition: var(--transition-speed);
}

.footer__link:hover {
	opacity: 1;
	color: var(--secondary-color);
	padding-left: 0.25rem;
}

.footer__item--contact {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	opacity: 0.8;
}

.footer__icon {
	width: 1.25rem; /* 20px */
	height: 1.25rem; /* 20px */
	flex-shrink: 0;
}

.footer__bottom {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
}

.footer__copy {
	font-size: 0.9rem;
	opacity: 0.7;
}

/* ==================== MEDIA QUERIES (Mobile-First) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.header__toggle {
		display: none; /* Ховаємо бургер */
	}

	.header__nav {
		position: static;
		width: auto;
		height: auto;
		background-color: transparent;
		padding: 0;
	}

	.header__list {
		flex-direction: row;
		align-items: center;
		gap: 2rem;
	}

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

	.header__link--button {
		color: var(--text-color);
	}

	.footer__container {
		/* 2 колонки для планшетів */
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Large devices (desktops) */
@media (min-width: 1024px) {
	.footer__container {
		/* 4 колонки для десктопів */
		grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
		gap: 3rem;
	}
}

/* ==================== BUTTONS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
	font-weight: 500;
	font-family: var(--font-body);
	border: 2px solid transparent;
	transition: var(--transition-speed);
	cursor: pointer;
	font-size: 1rem;
}

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

.button--primary:hover {
	background-color: transparent;
	border-color: var(--secondary-color);
	color: var(--primary-color);
}

/* ==================== HERO ==================== */
.hero {
	padding: 4rem 0;
	overflow: hidden; /* Важливо для анімації */
}

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

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: 1.5rem; /* 40px */
	line-height: 1.2;
	margin-bottom: 1rem;
}

.hero__subtitle {
	font-size: 1.125rem; /* 18px */
	margin-bottom: 1.5rem;
	opacity: 0.9;
}

.hero__description {
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 2.5rem;
	min-height: 2rem; /* Резервуємо місце, щоб не стрибало */
}

/* Стилі для анімації тексту */
.hero__description span {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero__image {
	width: 100%;
	/* max-width: 450px; */
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==================== MEDIA QUERIES (Hero) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.hero {
		padding: 5rem 0;
	}

	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	.hero__content {
		text-align: left;
	}

	.hero__title {
		font-size: 2.5rem; /* 56px */
	}
}

/* Large devices (desktops) */
@media (min-width: 1024px) {
	.hero__container {
		gap: 4rem;
	}
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding: 4rem 0;
}

.section__header {
	text-align: center;
	margin-bottom: 3rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.section__subtitle {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--secondary-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

.section__title {
	font-size: 2.25rem; /* 36px */
	margin-bottom: 1rem;
}

.section__description {
	font-size: 1.05rem;
	opacity: 0.8;
}

/* ==================== TECHNOLOGY ==================== */
.technology__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.technology__card {
	background-color: #ffffff;
	padding: 2rem;
	border-radius: var(--border-radius);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform var(--transition-speed),
		box-shadow var(--transition-speed);
}

.technology__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.technology__icon-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: var(--bg-color);
	margin-bottom: 1.5rem;
}

.technology__icon {
	width: 28px;
	height: 28px;
	color: var(--primary-color);
}

.technology__card-title {
	font-size: 1.5rem;
	margin-bottom: 0.75rem;
}

.technology__card-description {
	font-size: 0.95rem;
	line-height: 1.7;
}

/* ==================== MEDIA QUERIES (Technology) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.section {
		padding: 5rem 0;
	}

	.section__title {
		font-size: 2.5rem; /* 40px */
	}

	.technology__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
}

/* Large devices (desktops) */
@media (min-width: 1024px) {
	.technology__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==================== PERSPECTIVES ==================== */
.perspectives {
	/* Ледь помітний фон, щоб візуально відділити секцію */
	background-color: #ffffff;
}

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

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

.perspectives__image {
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.perspectives__description {
	font-size: 1.05rem;
	opacity: 0.8;
	margin-bottom: 2rem;
}

.perspectives__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.perspectives__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.perspectives__icon {
	width: 20px;
	height: 20px;
	color: var(--secondary-color);
	flex-shrink: 0;
	margin-top: 2px;
}

/* ==================== MEDIA QUERIES (Perspectives) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.perspectives__container {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	/* На планшетах міняємо порядок: спочатку текст, потім картинка */
	.perspectives__content {
		order: 1;
	}
	.perspectives__image-wrapper {
		order: 2;
	}
}

/* Large devices (desktops) */
@media (min-width: 1024px) {
	.perspectives__container {
		gap: 4rem;
		/* На десктопах повертаємо: картинка зліва, текст справа */
		.perspectives__content {
			order: 2;
		}
		.perspectives__image-wrapper {
			order: 1;
		}
	}
}

/* ==================== CASES (SWIPER) ==================== */
.cases {
	background-color: var(--bg-color); /* Той самий фон, що й у body */
}

.cases__container {
	position: relative;
}

.cases__swiper {
	padding-bottom: 3.5rem; /* Залишаємо місце для пагінації */
}

.cases__card {
	background-color: #ffffff;
	border-radius: var(--border-radius);
	padding: 2rem;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	height: 100%; /* Важливо для Swiper.js, щоб картки були однакової висоти */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.cases__text {
	font-size: 1.05rem;
	font-style: italic;
	line-height: 1.7;
	margin-bottom: 1.5rem;
	color: var(--text-color);
	position: relative;
	padding-left: 2rem;
}

/* Створюємо декоративні лапки */
.cases__text::before {
	content: '“';
	font-family: var(--font-heading);
	font-size: 3.5rem;
	color: var(--secondary-color);
	position: absolute;
	left: -0.5rem;
	top: -1rem;
	opacity: 0.8;
}

.cases__profile {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bg-color);
}

.cases__avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.cases__name {
	font-family: var(--font-body); /* Робимо ім'я звичайним шрифтом */
	font-weight: 500;
	font-size: 1.1rem;
	color: var(--primary-color);
	margin: 0;
}

.cases__role {
	font-size: 0.9rem;
	opacity: 0.7;
}

/* Swiper Controls */
.swiper-pagination-bullet {
	background-color: var(--primary-color);
	opacity: 0.5;
}

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

.swiper-button-next,
.swiper-button-prev {
	width: 3rem !important;
	height: 3rem !important ;
	background-color: #ffffff;
	border-radius: 50% !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	color: var(--primary-color);
	transition: var(--transition-speed);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
	background-color: var(--secondary-color);
	color: var(--text-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
	display: none; /* Ховаємо стандартні стрілки */
}

/* Ховаємо стрілки на мобільних */
.swiper-button-next,
.swiper-button-prev {
	display: none !important;
}

/* ==================== MEDIA QUERIES (Cases) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	/* Показуємо стрілки на планшетах і вище */
	.swiper-button-next,
	.swiper-button-prev {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* ==================== FAQ (Accordion) ==================== */
.faq {
	background-color: #ffffff; /* Відокремлюємо фон */
}

.faq__container {
	max-width: 800px; /* Робимо блок FAQ вужчим для кращої читабельності */
	margin-left: auto;
	margin-right: auto;
}

.faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.faq__item {
	background-color: var(--bg-color);
	border-radius: var(--border-radius);
	overflow: hidden; /* Важливо для анімації */
	transition: var(--transition-speed);
}

.faq__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 1.5rem;
	cursor: pointer;
}

.faq__question {
	font-family: var(--font-body); /* Робимо питання менш "заголовковим" */
	font-weight: 500;
	font-size: 1.1rem;
	color: var(--primary-color);
}

.faq__icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
	transition: transform var(--transition-speed);
	flex-shrink: 0;
	margin-left: 1rem;
}

.faq__content {
	max-height: 0; /* Сховано за замовчуванням */
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq__answer {
	padding: 0 1.5rem 1.5rem;
	line-height: 1.7;
	opacity: 0.9;
}

/* Активний стан (відкрито) */
.faq__item.is-active {
	background-color: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq__item.is-active .faq__icon {
	transform: rotate(180deg);
}

.faq__item.is-active .faq__content {
	max-height: 200px; /* Встановлюємо достатню висоту для контенту */
}

/* ==================== CONTACT ==================== */
.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.contact__info-title {
	font-size: 1.75rem;
	margin-bottom: 1rem;
}

.contact__info-description {
	font-size: 1.05rem;
	opacity: 0.8;
	margin-bottom: 2rem;
}

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

.contact__detail-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.05rem;
	font-weight: 500;
}

.contact__icon {
	width: 24px;
	height: 24px;
	color: var(--secondary-color);
	flex-shrink: 0;
}

.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
}

.contact__form-group {
	display: flex;
	flex-direction: column;
}

.contact__form-label {
	font-weight: 500;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.contact__form-input {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
	font-family: var(--font-body);
	font-size: 1rem;
	transition: var(--transition-speed);
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(10, 104, 116, 0.2);
}

/* Custom Checkbox */
.contact__form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.contact__form-checkbox {
	/* Ховаємо стандартний чекбокс */
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--primary-color);
	border-radius: 4px;
	margin-top: 2px;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
	transition: var(--transition-speed);
}

.contact__form-checkbox:checked {
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
}

/* Створюємо "галочку" */
.contact__form-checkbox:checked::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 6px;
	width: 5px;
	height: 10px;
	border: solid var(--text-color);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.contact__form-checkbox-label {
	font-size: 0.9rem;
	cursor: pointer;
	opacity: 0.9;
	line-height: 1.4;
}

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

.contact__form-button {
	width: 100%;
	justify-content: center;
	font-size: 1.1rem;
	padding: 1rem;
}

/* Success Message */
.contact__success-message {
	display: none; /* ПРИХОВАНО ЗА ЗАМОВЧУВАННЯМ */
	background-color: #ffffff;
	border: 2px solid var(--primary-color);
	border-radius: var(--border-radius);
	padding: 2rem;
	text-align: center;
	margin-top: 1rem;
}

.contact__success-icon {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.contact__success-message h4 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

/* ==================== MEDIA QUERIES (Contact) ==================== */

/* Medium devices (tablets) */
@media (min-width: 768px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: flex-start;
	}

	.contact__form-button {
		width: auto; /* Кнопка не на всю ширину */
	}
}

/* ==================== ANIMATIONS ==================== */
/* Додамо анімацію появи для cookie */
@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	display: none; /* Приховано за замовчуванням */
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
	padding: 1.5rem 0;
	z-index: 1000;
	animation: slideUp 0.5s ease-out;
}

.cookie-popup__container {
	display: flex;
	flex-direction: column; /* Mobile-first: stack text and button */
	gap: 1rem;
	align-items: center;
	text-align: center;
}

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

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

.cookie-popup__button {
	padding: 0.5rem 1.5rem; /* Робимо кнопку трохи компактнішою */
	flex-shrink: 0;
	font-size: 0.9rem;
}

/* ==================== MEDIA QUERIES (Cookie) ==================== */

@media (min-width: 768px) {
	.cookie-popup__container {
		flex-direction: row; /* Side-by-side on desktop */
		justify-content: space-between;
		text-align: left;
	}

	.cookie-popup__button {
		margin-left: 1rem;
	}
}

.pages {
	padding: 4rem 0;
	background-color: #ffffff; /* Чистий фон для тексту */
}

.pages .container {
	max-width: 800px; /* Вузький контейнер для зручності читання */
	margin-left: auto;
	margin-right: auto;
}

.pages h1,
.pages h2 {
	font-family: var(--font-heading);
	color: var(--primary-color);
	margin-bottom: 1rem;
	margin-top: 2rem;
}

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

.pages h2 {
	font-size: 1.5rem; /* 28px */
}

.pages p {
	font-size: 1.05rem; /* 17px */
	line-height: 1.8;
	color: var(--text-color);
	margin-bottom: 1.5rem;
}

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

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

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

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

.pages strong {
	font-weight: 500;
	color: var(--primary-color);
}
