/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@700;800&display=swap');

/*=============== CSS VARIABLES ===============*/
:root {
	/* Colors */
	--bg-color: #111827;
	--text-color: #f9fafb;
	--accent-color: #2dd4bf;
	--secondary-text-color: #9ca3af;
	--container-color: #1f2937;

	/* Typography */
	--body-font: 'Inter', sans-serif;
	--heading-font: 'Manrope', sans-serif;
	--h1-font-size: 2.5rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* z-index */
	--z-header: 100;
	--z-menu: 110;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--bg-color);
	color: var(--text-color);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: var(--heading-font);
	font-weight: 700;
}

ul {
	list-style: none;
}

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

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

.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: transparent;
	z-index: var(--z-header);
	transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.header--scrolled {
	background-color: rgba(17, 24, 39, 0.7);
	backdrop-filter: blur(10px);
}

.header__nav {
	height: 5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--heading-font);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--text-color);
	transition: color 0.3s;
}

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

.header__toggle {
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--text-color);
	z-index: var(--z-menu);
}

/* Mobile Menu */
@media screen and (max-width: 767px) {
	.header__menu {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--container-color);
		padding: 6rem 2rem 0;
		transition: right 0.4s ease;
		backdrop-filter: blur(10px);
	}
}

.header__menu--show {
	right: 0;
}

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

.header__link {
	font-weight: 500;
	transition: color 0.3s;
}

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

/*=============== FOOTER ===============*/
.footer {
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--container-color);
}

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--heading-font);
	font-weight: 800;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.footer__copyright {
	font-size: var(--small-font-size);
	color: var(--secondary-text-color);
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1.5rem;
}

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

.footer__link {
	color: var(--secondary-text-color);
	transition: color 0.3s, padding-left 0.3s;
}

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

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--secondary-text-color);
}

.footer__list--contacts i {
	color: var(--accent-color);
	width: 20px;
}

/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.header__toggle {
		display: none;
	}
	.header__menu {
		width: auto;
	}
	.header__list {
		flex-direction: row;
		gap: 2rem;
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}

	.header__nav {
		height: 6rem;
	}
}

/* assets/css/style.css */

/* ... ваш існуючий код ... */

/*=============== BUTTON ===============*/
.button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--bg-color);
	padding: 1rem 2rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-family: var(--heading-font);
	transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
	background-color: #5eead4; /* Світліший відтінок бірюзового */
	transform: translateY(-2px);
}

/*=============== HERO ===============*/
.hero {
	padding-top: 8rem;
	padding-bottom: 4rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
}

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

.hero__title {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

/* Стилі для анімації заголовка */
.hero__title .letter {
	display: inline-block;
	opacity: 0; /* Початково букви невидимі */
}

.hero__description {
	font-size: 1.125rem;
	color: var(--secondary-text-color);
	margin-bottom: 2.5rem;
	max-width: 550px;
	opacity: 0; /* Початково текст невидимий */
}

.hero .button {
	opacity: 0; /* Початково кнопка невидима */
}

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

.hero__image img {
	border-radius: 1rem;
	filter: saturate(0) brightness(0.8);
	opacity: 0.7;
}

/*=============== MEDIA QUERIES (доповнення) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: repeat(2, 1fr);
	}
	.hero__content {
		order: -1; /* Змінюємо порядок, щоб текст був зліва */
	}
}

/* For large devices */
@media screen and (min-width: 1024px) {
	:root {
		--h1-font-size: 3.5rem;
	}
	.hero {
		padding-top: 6rem; /* Зменшуємо верхній відступ, бо хедер менший */
	}
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
	padding: 6rem 0 2rem;
}

.section__title {
	font-size: var(--h2-font-size);
	text-align: center;
	margin-bottom: 3rem;
	font-weight: 800;
}

/*=============== DAILY SECTION ===============*/
.daily__container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

.daily__card {
	background-color: var(--container-color);
	padding: 2.5rem 2rem;
	border-radius: 1rem;
	border: 1px solid transparent;
	transition: border-color 0.3s, transform 0.3s;
}

.daily__card:hover {
	border-color: var(--accent-color);
	transform: translateY(-5px);
}

.daily__card-icon {
	display: inline-block;
	background-color: var(--bg-color);
	padding: 0.75rem;
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
}

.daily__card-icon i {
	width: 32px;
	height: 32px;
	color: var(--accent-color);
}

.daily__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.daily__card-description {
	color: var(--secondary-text-color);
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

/*=============== MEDIA QUERIES (доповнення) ===============*/
/* For medium devices */
@media screen and (min-width: 576px) {
	.daily__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 992px) {
	.section {
		padding: 8rem 0 4rem;
	}
	.section__title {
		font-size: 2.25rem;
	}
	.daily__container {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/* assets/css/style.css */
/* ... ваш існуючий код ... */

/*=============== WORK SECTION ===============*/
.work__container {
	display: grid;
	gap: 5rem;
}

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

.work__image img {
	border-radius: 1rem;
	width: 100%;
}

.work__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

.work__description {
	color: var(--secondary-text-color);
	line-height: 1.6;
}

/*=============== MEDIA QUERIES (доповнення) ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
	.work__item {
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem;
	}

	.work__item--reverse .work__image {
		order: 2; /* Змінюємо порядок для другого блоку */
	}
}

/* assets/css/style.css */
/* ... ваш існуючий код ... */

/*=============== CREATIVITY SECTION ===============*/
.creativity__container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.creativity__card {
	background-color: var(--container-color);
	border-radius: 1rem;
	overflow: hidden; /* Обрізає зображення по кутах картки */
	transition: transform 0.3s, box-shadow 0.3s;
}

.creativity__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.creativity__card-image {
	overflow: hidden;
}

.creativity__card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.4s ease-out;
}

.creativity__card:hover .creativity__card-image img {
	transform: scale(1.05);
}

.creativity__card-content {
	padding: 1.5rem;
}

.creativity__card-title {
	font-size: 1.125rem; /* Трохи менший, ніж h3 за замовчуванням */
	margin-bottom: 0.75rem;
}

.creativity__card-description {
	color: var(--secondary-text-color);
	line-height: 1.6;
}

/*=============== MEDIA QUERIES (доповнення) ===============*/
/* For large devices */
@media screen and (min-width: 992px) {
	.creativity__container {
		gap: 2rem;
	}
}

/* assets/css/style.css */
/* ... ваш існуючий код ... */

/*=============== LEARNING SECTION (ACCORDION) ===============*/
.learning__container {
	max-width: 768px; /* Робимо контейнер вужчим для кращої читабельності */
	margin-left: auto;
	margin-right: auto;
	display: grid;
	gap: 1.5rem;
}

.learning__item {
	background-color: var(--container-color);
	border-radius: 0.5rem;
	padding: 1rem 1.5rem;
	border-left: 3px solid transparent;
	transition: border-left-color 0.3s;
}

.learning__item.learning__item--open {
	border-left-color: var(--accent-color);
}

.learning__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
}

.learning__question {
	font-size: var(--normal-font-size);
	font-weight: 600;
}

.learning__icon {
	color: var(--accent-color);
	transition: transform 0.3s;
}

.learning__item.learning__item--open .learning__icon {
	transform: rotate(45deg);
}

.learning__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.learning__answer {
	color: var(--secondary-text-color);
	line-height: 1.6;
	font-size: var(--small-font-size);
}

.learning__item.learning__item--open .learning__content {
	/* Значення max-height має бути більшим за висоту контенту */
	max-height: 200px;
	padding-top: 1rem;
}

/*=============== MEDIA QUERIES (доповнення) ===============*/
@media screen and (min-width: 768px) {
	.learning__question {
		font-size: 1.125rem;
	}
}

/* assets/css/style.css */
/* ... ваш існуючий код ... */

/*=============== CONTACT SECTION ===============*/
.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__subtitle {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

.contact__description {
	color: var(--secondary-text-color);
	line-height: 1.6;
}

.contact__form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.contact__form-label {
	font-weight: 500;
	font-size: var(--small-font-size);
	color: var(--secondary-text-color);
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--container-color);
	background-color: var(--container-color);
	color: var(--text-color);
	border-radius: 0.5rem;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.contact__form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox {
	margin-top: 0.25rem;
	accent-color: var(--accent-color);
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	color: var(--secondary-text-color);
	line-height: 1.5;
}

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

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

.contact__success-message {
	display: none; /* Повідомлення приховане за замовчуванням */
	text-align: center;
	padding: 2rem;
	background-color: var(--container-color);
	border-radius: 0.5rem;
	color: var(--accent-color);
	font-weight: 600;
}

.contact__success-message--visible {
	display: block;
}

/*=============== MEDIA QUERIES (доповнення) ===============*/
@media screen and (min-width: 768px) {
	.contact__container {
		grid-template-columns: 1fr 1.25fr;
	}
}

/* assets/css/style.css */
/* ... ваш існуючий код ... */

/*=============== COOKIE POPUP ===============*/
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 500px;
	margin: 0 auto;

	background-color: var(--container-color);
	padding: 1.5rem;
	border-radius: 1rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;

	transform: translateY(200%);
	opacity: 0;
	transition: transform 0.5s ease-out, opacity 0.5s ease-out;
	z-index: 200;
}

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

.cookie-popup__text {
	color: var(--secondary-text-color);
	font-size: var(--small-font-size);
	line-height: 1.6;
}

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

.cookie-popup__button {
	padding: 0.75rem 1.5rem;
	width: 100%;
}

/*=============== MEDIA QUERIES (доповнення) ===============*/
@media screen and (min-width: 576px) {
	.cookie-popup {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.cookie-popup__button {
		width: auto;
	}
}

/*=============== STYLES FOR POLICY PAGES ===============*/
.pages {
	padding-top: 8rem;
	padding-bottom: 6rem;
}

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

.pages h1,
.pages h2 {
	font-family: var(--heading-font);
	font-weight: 800;
	margin-bottom: 1.5rem;
}

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

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

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

.pages ul {
	list-style-position: inside;
	list-style-type: disc;
	padding-left: 1rem;
	color: var(--secondary-text-color);
}

.pages li {
	line-height: 1.8;
	margin-bottom: 1rem;
}

.pages a {
	color: var(--accent-color);
	text-decoration: underline;
	transition: color 0.3s;
}

.pages a:hover {
	color: #5eead4; /* Світліший відтінок */
}

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