@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,600;0,700;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
	--first-color: white;
	--second-color: white;
	--third-color: white;
	--text-color: white;

	--box-shadow: 0 5px 25px rgb(2, 2, 2, 0.1);
	--text-shadow: 0 5px 25px rgb(2, 2, 2, 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}


section {
	position: relative;
	margin: 0 80px;
	transition: .5s ease;
}

.main-container {
	position: relative;
}

/* ===== Tab navigation content ===== */
.tab-nav-bar {

	position: relative;
	margin: 65px 10px 40px 10px;
}

.tab-navigation {

	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: fit-content;
	margin: 0 auto;
}

.tab-menu {

	color: var(--text-color);
	list-style: none;
	
	
	padding: 10px;
	white-space: nowrap;
	
	border-radius: 50px;
	
	scroll-behavior: smooth;

	user-select: none;
	overflow-x: auto;
}

.tab-menu.dragging {
	scroll-behavior: unset;
	cursor: grab;
}

.tab-menu::-webkit-scrollbar {
	display: none;
}

.tab-btn {
	display: inline-block;
	color: black;
	font-size: 18px;
	font-weight: 500;
	margin: 0 2px;
	padding: 10px 20px;
	
	cursor: pointer;
	user-select: none;
	transition: background-color .3s ease;
}

.tab-menu.dragging .tab-btn {
	pointer-events: none;
}

.tab-btn:hover {
	background-color: black;
	color:white;
}

.tab-btn.active {
	
	 border: 1px solid black;
	 font-weight: 500;
}

.left-btn,
.right-btn {
	position: absolute;
	color: black;
	font-size: 1.8em;
	padding: 10px;
	cursor: pointer;
}

.left-btn {
	left: 0;
	
	border-top-left-radius: 30px;
	border-bottom-left-radius: 30px;
	display: none;
}

.right-btn {
	right: 0;
	
	border-top-right-radius: 30px;
	border-bottom-right-radius: 30px;
}




/* ===== Tab content ===== */
.tab-content {

	
	position: relative;

	justify-content: center;
	width: 100%;
}

.tab {
	position: absolute;
	top: 0;
	right: auto;
	bottom: 0;
	left: auto;
	max-width: 100%;
	padding: 15px 50px;
	opacity: 0;

	transform: translateX(25px);
	content-visibility: hidden;
}

.tab.active {
	width: 100%;
    box-sizing: border-box; /* Учитывает отступы и границы в ширину */
    padding: 20px;

	transform: translateX(0);
	content-visibility: visible;
	opacity: 1;
	transition: opacity 1s ease, transform 1s ease;
}

.tab .row {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 50px 0;
	gap: 30px;
}

.tab .img-card {
	position: relative;
	width: 450px;
	max-width: 450px;
	height: 300px;
	max-height: 300px;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: var(--box-shadow);
}

.tab .img-card img {
	width: 100%;
	object-fit: cover;
}

.right-column {
	max-width: 800px;
}

.info .city,
.info .description p {
	color: black;
	margin-bottom: 10px;
}

.info .city {
	color: black;
	font-size: 2em;
}

.country {
	color: black;
	font-size: 5em;
	font-weight: 700;
	text-align: center;
	text-shadow: var(--text-shadow);
}



/* ===== Media queries (max-width: 1050px;) ===== */
@media screen and (max-width: 1050px) {
	section {
		margin: 0 0;
	}

	.tab-nav-bar {
		margin: 65px 20px 40px 25px;
	}

	.tab {
		padding: 15px 25px;
	}

	.tab .row {
		all: unset;
    /* Возвращаем базовые стили для корректного отображения */
    all: initial;
    display: revert;
		flex-direction: column;
	}

	.tab .img-card {
		width: auto;
		max-width: 600px;
	}

	.country {
		font-size: 10vw;
		padding-bottom: 50px;
	}

}