/* GLOBAL STYLES */
:root {
	--primary-color: #1a2e4c; /* Глубокий синий */
	--accent-color: #00c9a7; /* Яркая бирюза */
	--bg-light-gray: #f5f7fa;
	--white-color: #ffffff;
	--text-color: #333;
	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Lato', sans-serif;
	--container-width: 1200px;
	--container-padding: 15px;
	--transition-duration: 0.3s;
}

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

html {
	scroll-behavior: smooth;
}

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

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

a {
	text-decoration: none;
	color: inherit;
	transition: color var(--transition-duration) ease;
}

ul {
	list-style: none;
}

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

button {
	cursor: pointer;
	border: none;
	background-color: transparent;
	font-family: inherit;
}

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

.btn {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--accent-color);
	color: var(--white-color);
	font-family: var(--font-family-headings);
	font-weight: 600;
	border-radius: 50px;
	text-align: center;
	transition: background-color var(--transition-duration) ease,
		transform var(--transition-duration) ease;
}

.btn:hover {
	background-color: #00a286;
	transform: translateY(-2px);
}

/* HEADER */
.header {
	background-color: var(--white-color);
	padding: 15px 0;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

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

.logo {
	display: flex;
	align-items: center;
	font-family: var(--font-family-headings);
	font-size: 24px;
	font-weight: 700;
	color: var(--primary-color);
}

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

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

.header__nav-link {
	font-weight: 700;
	font-size: 15px;
	color: var(--primary-color);
	position: relative;
	padding-bottom: 5px;
}

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

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

.header__burger-btn {
	display: none;
	color: var(--primary-color);
}

/* FOOTER */
.footer {
	background-color: var(--primary-color);
	color: #a9b3c1;
	padding-top: 60px;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	padding-bottom: 60px;
}

.footer__logo {
	color: var(--white-color);
	margin-bottom: 20px;
}

.footer__description {
	font-size: 14px;
	line-height: 1.7;
}

.footer__title {
	font-family: var(--font-family-headings);
	font-size: 18px;
	color: var(--white-color);
	margin-bottom: 20px;
}

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

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

.footer__list--contacts li {
	display: flex;
	align-items: flex-start;
}

.footer__address {
	font-style: normal;
	line-height: 1.7;
}

.footer__bottom {
	background-color: #12233d;
	padding: 20px 0;
	text-align: center;
	font-size: 14px;
}

/* MOBILE ADAPTATION */
@media (max-width: 992px) {
	.header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		background-color: var(--white-color);
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
		padding: 20px;
	}

	.header__nav--open {
		display: block;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.header__nav-btn {
		width: 100%;
		max-width: 200px;
	}

	.header__burger-btn {
		display: block;
	}

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

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column--about,
	.footer__list--contacts {
		align-items: center;
	}
}

/* HERO SECTION */
.hero {
	background-color: var(--bg-light-gray);
	padding: 80px 0;
	overflow: hidden; /* Для корректной работы анимаций */
}

.hero__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.hero__content {
	flex: 1;
	max-width: 550px;
}

.hero__title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 20px;
}

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

.hero__btn {
	padding: 15px 40px;
	font-size: 18px;
}

.hero__image-wrapper {
	flex: 1;
	max-width: 500px;
	position: relative;
}

/* Декоративный элемент за изображением */
.hero__image-wrapper::before {
	content: '';
	position: absolute;
	bottom: -20px;
	right: -20px;
	width: 90%;
	height: 90%;
	background-color: var(--accent-color);
	opacity: 0.1;
	border-radius: 20px;
	z-index: 1;
}

.hero__image {
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 2;
}

/* Адаптация для HERO */
@media (max-width: 992px) {
	.hero__container {
		flex-direction: column;
		text-align: center;
	}

	.hero__title {
		font-size: 2rem;
	}

	.hero__content {
		order: 2; /* Текст будет под картинкой */
	}

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

@media (max-width: 576px) {
	.hero {
		padding: 60px 0;
	}
	.hero__title {
		font-size: 1.5rem;
	}
	.hero__description {
		font-size: 16px;
	}
}

/* --- SHARED STYLES --- */
.section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px;
}

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

.section-header__subtitle {
	font-size: 18px;
	color: #555;
	line-height: 1.7;
}

/* --- COURSES SECTION --- */
.courses {
	padding: 80px 0;
	background-color: var(--white-color);
}

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

.courses__card {
	background-color: var(--white-color);
	padding: 35px 30px;
	border-radius: 15px;
	text-align: center;
	border: 1px solid #e8eaf0;
	transition: transform var(--transition-duration) ease,
		box-shadow var(--transition-duration) ease;
}

.courses__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(26, 46, 76, 0.08);
}

.courses__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	background-color: #e6f9f6;
	border-radius: 50%;
	margin-bottom: 20px;
}

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

.courses__card-title {
	font-size: 22px;
	margin-bottom: 10px;
}

.courses__card-description {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
}

/* Адаптация для COURSES */
@media (max-width: 992px) {
	.courses__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.courses {
		padding: 60px 0;
	}
	.section-header {
		margin-bottom: 40px;
	}
	.section-header__title {
		font-size: 28px;
	}
	.section-header__subtitle {
		font-size: 16px;
	}
	.courses__grid {
		grid-template-columns: 1fr;
	}
}

/* --- MENTORS SECTION --- */
.mentors {
	padding: 80px 0;
	background-color: var(--bg-light-gray);
}

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

.mentors__card {
	background-color: var(--white-color);
	padding: 30px;
	border-radius: 15px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: transform var(--transition-duration) ease,
		box-shadow var(--transition-duration) ease;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mentors__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(26, 46, 76, 0.08);
}

.mentors__card-photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 20px;
	border: 4px solid var(--accent-color);
}

.mentors__card-name {
	font-size: 24px;
	margin-bottom: 5px;
	color: var(--primary-color);
}

.mentors__card-specialization {
	font-size: 16px;
	color: var(--accent-color);
	font-weight: 700;
	margin-bottom: 15px;
}

.mentors__card-description {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	flex-grow: 1; /* Забезпечує рівномірну висоту карток */
}

.mentors__card-socials {
	margin-top: 20px;
	display: flex;
	gap: 15px;
}

.mentors__card-social-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: #e6f9f6;
	color: var(--accent-color);
	transition: background-color var(--transition-duration) ease,
		color var(--transition-duration) ease;
}

.mentors__card-social-link:hover {
	background-color: var(--accent-color);
	color: var(--white-color);
}

.mentors__card-social-link i {
	width: 20px;
	height: 20px;
}

/* Адаптация для MENTORS */
@media (max-width: 992px) {
	.mentors__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.mentors {
		padding: 60px 0;
	}
	.mentors__grid {
		grid-template-columns: 1fr;
	}
	.mentors__card-name {
		font-size: 20px;
	}
}

/* --- REVIEWS SECTION --- */
.reviews {
	padding: 80px 0;
	background-color: var(--white-color);
}

.reviews__slider {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
}

.reviews__slider-wrapper {
	overflow: hidden;
	border-radius: 15px;
}

.reviews__slider-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
}

.reviews__slide {
	flex: 0 0 100%;
	width: 100%;
	box-sizing: border-box;
}

.reviews__card {
	background-color: var(--bg-light-gray);
	padding: 40px;
	border-radius: 15px;
	position: relative;
}

.reviews__card::before {
	content: '“';
	font-family: 'Times New Roman', Times, serif;
	position: absolute;
	top: 10px;
	left: 20px;
	font-size: 100px;
	color: #e8eaf0;
	z-index: 1;
	line-height: 1;
}

.reviews__card-text {
	font-size: 18px;
	font-style: italic;
	color: #555;
	line-height: 1.7;
	margin-bottom: 30px;
	position: relative;
	z-index: 2;
}

.reviews__author {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 2;
}

.reviews__author-photo {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 15px;
	border: 3px solid var(--white-color);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reviews__author-name {
	font-size: 18px;
	margin: 0;
	color: var(--primary-color);
}

.reviews__author-course {
	font-size: 14px;
	color: var(--accent-color);
	margin: 0;
}

.reviews__slider-nav {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 30px;
}

.reviews__nav-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--white-color);
	color: var(--accent-color);
	border: 1px solid #e8eaf0;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all var(--transition-duration) ease;
}

.reviews__nav-btn:hover {
	background-color: var(--accent-color);
	color: var(--white-color);
	border-color: var(--accent-color);
}

.reviews__nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background-color: #f0f0f0;
}

/* Адаптация для REVIEWS */
@media (max-width: 576px) {
	.reviews {
		padding: 60px 0;
	}
	.reviews__card {
		padding: 30px;
	}
	.reviews__card-text {
		font-size: 16px;
	}
}

/* --- FAQ SECTION --- */
.faq {
	padding: 80px 0;
	background-color: var(--bg-light-gray);
}

.faq__grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 60px;
	align-items: flex-start;
}

.faq__info-title {
	font-size: 36px;
	margin-bottom: 20px;
}

.faq__info-text {
	font-size: 18px;
	color: #555;
	line-height: 1.7;
	margin-bottom: 30px;
}

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

.faq__item {
	background-color: var(--white-color);
	border-radius: 10px;
	border: 1px solid #e8eaf0;
	overflow: hidden;
}

.faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	text-align: left;
	padding: 20px;
	font-size: 18px;
	font-weight: 600;
	color: var(--primary-color);
	font-family: var(--font-family-headings);
}

.faq__icon {
	flex-shrink: 0;
	margin-left: 15px;
	transition: transform var(--transition-duration) ease;
	color: var(--accent-color);
}

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

.faq__answer p {
	padding: 0 20px 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #555;
}

/* Active state for accordion */
.faq__item.faq__item--active .faq__answer {
	max-height: 300px; /* Достаточно большая высота для контента */
	transition: max-height 0.5s ease-in-out;
}

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

/* Адаптация для FAQ */
@media (max-width: 992px) {
	.faq__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 576px) {
	.faq {
		padding: 60px 0;
	}
	.faq__info-title {
		font-size: 28px;
	}
	.faq__question {
		font-size: 16px;
		padding: 15px;
	}
	.faq__answer p {
		padding: 0 15px 15px;
	}
}

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

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

.contact__info-title {
	font-size: 36px;
	margin-bottom: 20px;
}

.contact__info-text {
	font-size: 18px;
	color: #555;
	line-height: 1.7;
	margin-bottom: 30px;
}

.contact__info-img {
	border-radius: 15px;
	width: 100%;
}

.contact__form-wrapper {
	background-color: var(--bg-light-gray);
	padding: 40px;
	border-radius: 15px;
}

.form__group {
	margin-bottom: 20px;
}

.form__label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--primary-color);
}

.form__input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #dcdfe6;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color var(--transition-duration) ease,
		box-shadow var(--transition-duration) ease;
}

.form__input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.2);
}

/* Custom checkbox */
.form__group--checkbox {
	display: flex;
	align-items: flex-start;
	margin-top: 10px;
}

.form__checkbox-input {
	display: none;
}

.form__checkbox-label {
	position: relative;
	padding-left: 30px;
	cursor: pointer;
	font-size: 14px;
	color: #555;
	font-weight: normal;
}

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

.form__checkbox-label::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	border: 2px solid #dcdfe6;
	border-radius: 4px;
	background-color: var(--white-color);
	transition: all var(--transition-duration) ease;
}

.form__checkbox-label::after {
	content: '✓';
	position: absolute;
	left: 4px;
	top: 2px;
	font-size: 16px;
	font-weight: bold;
	color: var(--white-color);
	opacity: 0;
	transition: opacity var(--transition-duration) ease;
}

.form__checkbox-input:checked + .form__checkbox-label::before {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

.form__checkbox-input:checked + .form__checkbox-label::after {
	opacity: 1;
}

.form__submit-btn {
	width: 100%;
	padding: 15px;
	font-size: 18px;
	margin-top: 20px;
}

/* Success Message */
.success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 20px;
}

.success-message__icon {
	color: var(--accent-color);
	margin-bottom: 15px;
}
.success-message__icon i {
	width: 60px;
	height: 60px;
}
.success-message__title {
	font-size: 24px;
	margin-bottom: 10px;
}
.success-message__text {
	color: #555;
}

/* Адаптация для CONTACT */
@media (max-width: 992px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 576px) {
	.contact {
		padding: 60px 0;
	}
	.contact__info-title {
		font-size: 28px;
	}
	.contact__form-wrapper {
		padding: 25px;
	}
}

/* --- COOKIE POP-UP --- */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 20px 0;
	z-index: 2000;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cookie-popup--visible {
	transform: translateY(0);
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.cookie-popup__text {
	margin: 0;
	font-size: 15px;
}

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

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

/* Адаптация для COOKIE POP-UP */
@media (max-width: 768px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/* --- POLICY & TEXT PAGES --- */
.pages {
	padding: 60px 0;
}

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

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

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

.pages p {
	margin-bottom: 20px;
	line-height: 1.8;
	color: #444;
}

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

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

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

.pages a:hover {
	text-decoration: none;
}

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

/* Адаптація для PAGES */
@media (max-width: 576px) {
	.pages {
		padding: 40px 0;
	}
}
