/* Comfortaa */

@font-face {
	font-family: 'Comfortaa';
	src: url('./fonts/Comfortaa/Comfortaa-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Comfortaa';
	src: url('./fonts/Comfortaa/Comfortaa-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'Comfortaa';
	src: url('./fonts/Comfortaa/Comfortaa-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: 'Comfortaa';
	src: url('./fonts/Comfortaa/Comfortaa-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'Comfortaa';
	src: url('./fonts/Comfortaa/Comfortaa-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
}

/* Підключення Montserrat Alternates (якщо є файли) */

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-Thin.ttf') format('truetype');
	font-weight: 100;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-ThinItalic.ttf') format('truetype');
	font-weight: 100;
	font-style: italic;
}


@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-ExtraLight.ttf') format('truetype');
	font-weight: 200;
	font-style: normal;
}
@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-ExtraLightItalic.ttf') format('truetype');
	font-weight: 200;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-LightItalic.ttf') format('truetype');
	font-weight: 300;
	font-style: italic;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-MediumItalic.ttf') format('truetype');
	font-weight: 500;
	font-style: italic;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-SemiBoldItalic.ttf') format('truetype');
	font-weight: 600;
	font-style: italic;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-BoldItalic.ttf') format('truetype');
	font-weight: 700;
	font-style: italic;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-ExtraBold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-ExtraBoldItalic.ttf') format('truetype');
	font-weight: 800;
	font-style: italic;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-Black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
}

@font-face {
	font-family: 'Montserrat Alternates';
	src: url('./fonts/Montserrat_Alternates/MontserratAlternates-BlackItalic.ttf') format('truetype');
	font-weight: 900;
	font-style: italic;
}



/* Скидання всіх стилів */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Встановлення базових стилів для HTML і body */
html, body {
	height: 100%;
	line-height: 1.5; /* Покращує читабельність тексту */
}

/* Встановлення стандартного стилю для списків */
ul, ol {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Скидання стилів посилань */
a {
	text-decoration: none;
	color: inherit; /* Наслідує колір тексту */
}

a:hover {
	text-decoration: none;
}

/* Скидання стилів для таблиць */
table {
	border-collapse: collapse; /* Видаляє відступи між клітинками */
	border-spacing: 0;
}

/* Скидання стилів для зображень */
img {
	max-width: 100%; /* Адаптивність зображень */
	display: block;
}

/* Скидання стилів для кнопок */
button {
	all: unset; /* Видаляє всі стилі браузера */
	display: inline-block;
	cursor: pointer;
}

/* Встановлення базового стилю для елементів форми */
input, textarea, select, button {
	font: inherit; /* Наслідує шрифт від батьківського елемента */
	outline: none; /* Видаляє обведення */
	border: none; /* Видаляє рамку */
	background: none; /* Скидає фон */
}

/* Встановлення стандартного стилю для полів введення */
textarea {
	resize: none; /* Забороняє зміну розміру */
}

/* Скидання стилів для заголовків */
h1, h2, h3, h4, h5, h6 {
	font-size: inherit; /* Наслідує розмір шрифту */
	font-weight: inherit; /* Наслідує жирність */
}

h1, h2, h3, h4, h5, h6, p {
	margin: 0;
}

/* Скидання стилів для інлайнових елементів */
strong, b {
	font-weight: bold; /* Встановлення жирності */
}
em, i {
	font-style: italic; /* Встановлення курсиву */
}



:root {
	--color-text-hover-red: rgba(226, 40, 51, 1);
	--color-text-hover-yellow: #E3A124;
	--color-text-hover-black: #1A1A1A;
	--color-link-red: #e22833;
	--font-family-main: "Comfortaa", serif;
	--font-family-minor: "Montserrat Alternates", serif;
	--transition-time-default: 300ms ease-in-out;

}

.backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	z-index: -1;
	transition: all var(--transition-time-default);
}

.backdrop.open {
	opacity: 1;
	z-index: 999;
}

body.modal-open {
	overflow: hidden;
}

::-webkit-scrollbar {
	width: 8px;
	height: 4px;
}


::-webkit-scrollbar-track {
	border-radius: 29px;
	background: #DADFE6;
}


::-webkit-scrollbar-thumb {
	border-radius: 29px;
	background: #A9B4C2;
}

/* Повзунок при наведенні */
::-webkit-scrollbar-thumb:hover {
	background-color: #999;
}

@media screen and (min-width: 1280px) {
	main {
		padding-top: 68px;
	}
}

/* --- Стилі для Попапу --- */

.popup-overlay-single-image {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(40, 40, 40, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}

.popup-overlay-single-image.is-visible {
	opacity: 1;
	visibility: visible;
}

.popup-content-single-image {
	position: relative;
	max-width: 1320px;
	width: 90%;
	background: none;
}

.popup-content-single-image a {
	display: block;
	line-height: 0;
}

.popup-content-single-image img {
	width: 96%;
	height: auto;
	display: block;
	border-radius: 16px;
}

.popup-close-btn-single-image {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.4);
	color: white;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 26px;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
	z-index: 10;
	transition: background-color 0.2s ease;
}

.popup-close-btn-single-image:hover {
	background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
	.popup-close-btn-single-image {
		top: 20px;
		right: 20px;
		width: 28px;
		height: 28px;
		font-size: 22px;
		line-height: 26px;
	}
}