@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
	padding: 0;
	margin: 0
}

body {
	width: 100%;
	background-color: #1a2238;
	color: #4ade80;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.burger {
	display: none;
}

#burger__toggle {
	display: none;
}

.navbar {
	width: 100vw;
	height: 90px;
	background-color: #151c30;
	position: fixed;
	padding: 0;
	margin: 0;
	top: 0;
	box-shadow: 0 0 0 1px #ECECEC;
	z-index: 1000;
}

.divbar {
	width: 100%;
	height: 90px;
	position: relative;
	padding: 0;
	margin: 0;
	color: white;
	bottom: 0;
	box-shadow: 0 0 0 1px #ECECEC;
	margin: 0px 0px 40px 0px;
}

.divbar_text {
	color: white;
	margin: 0px 0px 0px 0px;
}

.tdivbar {
	position: absolute; /* Абсолютное позиционирование */
    bottom: 0; /* Прижимаем к низу */
    left: 0; /* Прижимаем к левому краю */
    padding: 10px; /* Отступ от краев */
}

.navbar .container_1 {
	height: inherit;
	display: flex;
	justify-content: center;
	align-items: center;
}

.navbar_box {
	height: inherit;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.navbar_menu {
	list-style-type: none;
	padding-left: 0;
	margin-bottom: 0;
	display: flex;
}

.navbar__buttons {
	display: flex;
	gap: 25px;
	margin: 0px 0px 0px 0px;
}

.brand_container {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0px 390px 0px 0px;
}

.brand_icon {
	width: 45px;
	height: 45px;
	margin: 0px 10px 0px 0px;
	cursor: pointer;
	border-radius: 100px;
}

.user,
.magnifier,
.shopcart,
.heart {
	width: 40px;
	height: 40px;
	cursor: pointer;
	border-radius: 100px;
}

.magnifier_img,
.user_img,
.shopcart_img,
.heart_img,
.brand_img {
	height: inherit;
	width: inherit;
	user-select: none;
	pointer-events: none;
}

.navbar_menu input {
	background-color: #eee;
	border: none;
	background-image: url('./img/magnifier.webp');
	background-size: 30px;
	background-repeat: no-repeat;
	background-position: 6px center;
	padding: 10px 15px 10px 40px;
	font-size: 14px;
	border-radius: 8px;
	width: 180px;
	outline: none;
	height: 40px;
	box-sizing: border-box;
}

.navbar_menu li {
	display: inline-block;
}

.navbar_menu li a {
	display: inline-block;
	color: black;
	opacity: 0.9;
	text-decoration: none;
	padding: 10px;
	transition: all .07s;
	gap: 20px;
}

.navbar_menu li a:hover {
	opacity: 1;
}

.navbar_brand {
	font-weight: 700;
	font-size: 26px;
	text-decoration: none;
	color: #4ade80;
	text-shadow: 0px 0px 1px rgb(177, 177, 177);
}

.navbar_brand:hover {
	opacity: 0.8;
	transition: all .07s;
}

.hnav {
	display: flex;
    list-style: none;
    padding: 0;
    margin: 0px 0px 0px 20px;
    gap: 20px; /* Расстояние между элементами */
	text-decoration: none;
}

#hnav1, #hnav2, #hnav3 {
	text-decoration: none;
	color: white;
}

.mobile-menu {
	display: none;
}





.main_box {
	width: 1000px;
	height: 735px;
	display: grid;
}

.wrapper_1 {
	width: 1000px;
	height: 225px;
	display: grid;
	grid-template-columns: 450px 530px;
	grid-template-rows: 225px 225px;
	grid-gap: 20px;
}

.slidebar {
	background-color: #2c3a5a;
	border-radius: 15px;
}

/* Слайдбар */
.slider-container {
	position: relative;
	background-color: #2c3a5a;
	max-width: 1200px;
	width: 450px;
	height: 225px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 15px;
}

.slider {
	display: flex;
	transition: transform 0.5s ease;
	width: 100%;
	height: 100%;
}

.slide {
	min-width: 100%;
	width: 100%;
	height: 100%;
	flex-shrink: 0;
}

.bestproducts {
    position: relative;
    overflow: hidden;
}

.bestproducts iframe {
	pointer-events: none;
	overflow: hidden !important;
    margin-top: -196px; /* "Прокрутка" через отрицательный margin */
    height: calc(100% + 196px); /* Компенсируем высоту */
	width: calc(100% + 20px);
	margin-right: -20px; /* Сдвигаем вправо чтобы скрыть скроллбар */
}




.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 10px;
	cursor: pointer;
	z-index: 10;
	font-size: 18px;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.slider-container:hover .slider-arrow {
	opacity: 1;
}

.prev {
	left: 10px;
}

.next {
	right: 10px;
}

.slider-indicator {
	position: sticky;
	/* Изменено с absolute на sticky */
	display: inline-block;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	padding: 5px 10px;
	border-radius: 20px;
	font-size: 14px;
	z-index: 10;
	margin-left: 50%;
	/* Центрирование */
}
/* Слайдбар */

.product_card {
	background-color:  #25304d;
	border-radius: 15px;
	justify-content: center;
	display: grid;
}

.bestproducts {
	background-color: #2c3a5a;
	border-radius: 15px;
}

.wrapper_2 {
	width: 1000px;
	height: 225px;
	display: grid;
	grid-template-columns: 184px 184px 184px 388px;
	grid-template-rows: 225px 225px;
	grid-gap: 20px;
}

.wrapper_3 {
	width: 1000px;
	height: 225px;
	display: grid;
	grid-template-columns: 184px 184px 184px 184px 184px;
	grid-template-rows: 225px 225px;
	grid-gap: 20px;
}

.choice_selection_1,
.choice_selection_3 {
	width: 388px;
	height: 68.3px;
	display: grid;
	grid-template-columns: 230px 148px;
	grid-template-rows: 68.3px 68.3px;
	grid-gap: 10px;
}

.choice_selection_2 {
	width: 388px;
	height: 68.3px;
	display: grid;
	grid-template-columns: 148px 230px;
	grid-template-rows: 68.3px 68.3px;
	grid-gap: 10px;
	margin: 10px 0px 10px 0px;
}

.selection_button_1,
.selection_button_2,
.selection_button_3,
.selection_button_4,
.selection_button_5,
.selection_button_6 {
	background-color: #25304d;
	border-radius: 12px;
}

.selectbtntext {
	font-size: 18px;
	font-weight: 800;
	margin: 0px 0px 0px 8px;
}

input,
textarea,
select {
	font-size: 16px;
	transform: scale(1);
	touch-action: manipulation;
}

.product__box {
	width: 166px;
	height: 145px;
	align-items: center;
	justify-content: center;
	display: grid;
	gap: 1px;
	margin: 7px 0px 0px 0px;
}

.product__box h4 {
	font-size: 13px;
}

.product_img_box {
	width: 166px;
	height: 80px;
	align-items: center;
	justify-content: center;
	display: grid;
}

.product_img {
	width: inherit;
	height: inherit;
	border-radius: 8px;
}

.description_text {
	text-align: justify;
	font-size: 10px;
	color: white;
	font-weight: 600;
}

.buy_button, .raffle, .telegram, .getgems {
  display: inline-block;
  color: white !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 2px 0px;
}

.buy_button {
	margin: 2px 0px 0px 0px;
}

.buy_button:hover, .raffle:hover, .telegram:hover, .getgems {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.footer {
	width: 100%;
	height: 100px;
	background-color: #151c30;
	margin: 6px 0px 0px 0px;
	position: relative;
	display: grid;
	justify-content: center;
	align-items: center;
}

.telegram {
	background: linear-gradient(135deg, #66eae8 0%, #4b67a2 100%);
	padding: 12px 11.5px;
	border-radius: 200px;
}

.getgems {
	background: linear-gradient(135deg, #3232dc 0%, #4b67a2 100%);
	padding: 12px 11.5px;
	border-radius: 200px;
}

.raffle {
	background: linear-gradient(135deg, #6aea66 0%, #98a24b 100%);
	padding: 12px 40px;
	border-radius: 200px;
}
.raffle:hover {
  background: linear-gradient(135deg, #98a24b 0%, #6aea66 100%);
}

.telegram:hover {
	background: linear-gradient(135deg, #4b67a2 0%, #66eae8 100%);
}

.getgems:hover {
	background: linear-gradient(135deg, #4b67a2 0%, #3232dc 100%);
}

.selection_button_1, .selection_button_2, .selection_button_3 {
	display: grid;
    place-items: center;
}

.selection_button_4, .selection_button_5, .selection_button_6 {
	display: grid;
    place-items: center;
}

#btn4 {
	margin: 0px 0px -5px 0px;
}

@media (max-width: 1124px) {
	.main_box {
		width: 800px;
		height: 570px;
	}

	.wrapper_1 {
		width: 800px;
		height: 176px;
		grid-template-columns: 352px 432px;
		grid-template-rows: 176px 176px;
		grid-gap: 16px;
	}

	.slider-container {
		width: 352px;
		height: 176px;
	}

	.wrapper_2 {
		width: 800px;
		height: 176px;
		grid-template-columns: 188px 188px 392px;
		grid-template-rows: 176px 176px;
		grid-gap: 16px;
	}

	.wrapper_3 {
		width: 800px;
		height: 176px;
		grid-template-columns: 188px 188px 188px 188px;
		grid-template-rows: 176px 176px 176px 176px;
		grid-gap: 16px;
	}

	#product_of_wr3_1,
	#product_of_wr3_2 {
		height: 225px;
	}

	#product_of_wr3_3,
	#product_of_wr3_4 {
		margin-bottom: -49px;
		margin-top: 49px;
	}

	.choice_selection_1,
	.choice_selection_3 {
		grid-template-columns: 232px 150px;
	}

	.choice_selection_2 {
		grid-template-columns: 150px 232px;
	}

	.brand_container {
		margin: 0px 224px 0px 0px;
	}

	#desc_t1, #desc_t2, #desc_t5, #desc_t6 {
		display: none;
	}

	.footer {
		margin: 50px 0px 0px 0px;
	}

	.product_img_box {
		height: 90px;
	}

	.product__box h4 {
		font-size: 16px;
	}

	.product__box {
		gap: 4px;
	}

	.description_text {
		font-size: 9px;
		font-weight: 600;
	}

	#change_card_link_1, #change_card_link_2 {
		margin: -3px 0px 0px 0px;
	}

	#change_card_price_1, #change_card_price_2 {
		margin: -4px 0px 0px 0px;
	}
}

@media (max-width: 860px) {
	.main_box {
		width: 758px;
		height: 1350px;
		margin: 0 20px;
	}

	.wrapper_1 {
		display: block;
		width: 758px;
		height: 800px;
	}

	.slidebar {
		display: block;
		width: 758px;
		height: 379px;
		border-radius: 20px;
	}

	.bestproducts {
		display: block;
		width: 500px;
		height: 302px;
		margin: 333px 0px 0px 0px;
		border-radius: 20px;
	}

	.wrapper_2 {
		width: 758px;
		height: 302px;
		grid-template-columns: 242px 500px;
		grid-template-rows: 302px 302px;
		margin: -423px 0px 0px 0px;
	}

	.choice_selection_1,
	.choice_selection_3 {
		height: 94px;
		grid-template-columns: 298px 192px;
		grid-template-rows: 94px 94px;
		border-radius: 30px;
	}

	.choice_selection_2 {
		height: 94px;
		grid-template-columns: 192px 298px;
		grid-template-rows: 94px 94px;
		border-radius: 30px;
	}

	.product_card {
		height: 302px;
		border-radius: 20px;
	}

	.wrapper_3 {
		width: 758px;
		height: 302px;
		grid-template-columns: 242px 242px 242px;
		grid-template-rows: 302px 302px 302px;
		grid-gap: 16px;
		margin: 195px 0px 0px 0px;
	}

	#product_of_wr3_1,
	#product_of_wr3_2,
	#product_of_wr3_3,
	#product_of_wr3_4 {
		height: 302px;
		margin: 0;
	}

	#product_of_wr3_4 {
		margin: -636px -516px 0px 516px;
	}

	.brand_container {
		display: flex;
		align-items: center;
		gap: 5px;
		margin: 0px 0px 0px 0px;
		margin-left: 100px;
	}

	.navbar {
		width: 100%;
		max-width: 100%;
		top: 0;
		left: 0;
		right: 0;
		height: 80px;
		margin: 0;
		padding: 0;
	}

	.divbar {
		height: 80px;
	}

	.navbar .container_1 {
		justify-content: space-between;
		align-items: center;
	}

	.navbar__buttons {
		margin: 0px 22px 0px 0px;
		gap: 15px;
	}

	.brand_icon {
		width: 35px;
		height: 35px;
		margin: 0;
	}

	.navbar_brand {
		font-size: 20px;
		margin: 0;
	}

	.user,
	.magnifier,
	.shopcart,
	.heart {
		width: 35px;
		height: 35px;
	}

	.burger {
		margin: 0px 0px 0px 22px;
		left: 0;
		position: absolute;
		z-index: 10000;
		cursor: pointer;
		display: block;
		border: none;
		background: transparent;
		width: 40px;
		height: 26px;
	}

	.burger::before,
	.burger::after {
		content: '';
		left: 0;
		position: absolute;
		display: block;
		width: 100%;
		height: 4px;
		border-radius: 10px;
		background: white;
	}

	.burger::before {
		top: 0;
		background: white;
		/* Убираем box-shadow и задаем белый цвет напрямую */
		transition: top .3s .15s, transform .3s;
	}

	.burger::after {
		bottom: 0;
		background: white;
		/* Убедимся, что нижняя полоса тоже белая */
		transition: bottom .3s .15s, transform .3s;
	}

	.burger span {
		position: absolute;
		top: 11px;
		left: 0;
		width: 100%;
		height: 4px;
		background: white;
		border-radius: 10px;
		transition: all 0.3s;
	}

	#burger__toggle:checked+.burger::before {
		top: 11px;
		transform: rotate(45deg);
		box-shadow: 0 6px 0 rgba(0, 0, 0, 0);
		transition: box-shadow .15s, top .3s, transform .3s .15s;
	}

	#burger__toggle:checked+.burger::after {
		bottom: 11px;
		transform: rotate(-45deg);
		transition: bottom .3s, transform .3s .15s;
	}

	#burger__toggle:checked+.burger span {
		opacity: 0;
		/* Скрываем при открытии меню */
	}

	#burger__toggle:checked~ul {
		left: 0;
		right: 0;
	}

	/* Меню, которое появляется при клике на бургер */
	.mobile-menu {
		display: block;
		position: fixed;
		top: 70px;
		left: 0;
		width: 100%;
		background-color: #151c30;
		padding: 20px;
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
		transform: translateY(-150%);
		transition: transform 0.5s ease;
		z-index: 9;
	}

	#burger__toggle:checked~.mobile-menu {
		transform: translateY(0);
	}

	.input_box {
		display: flex;
		width: calc(100% - 40px);
		padding: 0 20px;
		justify-content: center;
		align-items: center;
	}

	.mobile-nav {
		list-style: none;
	}

	.mobile-nav li {
		margin-bottom: 15px;
	}

	.mobile-nav li a {
		color: white;
		text-decoration: none;
		font-size: 18px;
	}

	/* Слайдбар */
	.slider-arrow {
		display: none;
	}

	.slider-container {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		width: 758px;
		height: 379px;
		border-radius: 20px;
	}

	.slider {
		scroll-snap-type: x mandatory;
	}

	.slide {
		scroll-snap-align: start;
	}

	.slider-container::-webkit-scrollbar {
		display: none;
	}

	.slider-indicator {
		position: -webkit-sticky;
		/* Для Safari */
		position: sticky;
		display: inline-block;
		bottom: 10px;
		left: 50%;
		/* Центрирование по горизонтали */
		transform: translateX(-50%);
		/* Точное центрирование */
		background: rgba(0, 0, 0, 0.5);
		color: white;
		padding: 5px 10px;
		border-radius: 20px;
		font-size: 14px;
		z-index: 10;
		margin-left: 0;
		/* Удалено предыдущее значение */
	}
	/* Слайдбар */

	.product__box {
		width: 200px;
		height: 200px;
		margin: 12px 0px 0px 0px;
	}

	.product_img_box {
		width: 200px;
		height: 150px;
	}

	.buy_button {
	padding: 6px 0px;
	}

	.description_text {
		font-size: 9px;
	}

	#desc_t1, #desc_t2, #desc_t5, #desc_t6 {
		display: block;
	}

	.footer {
		margin: 0px 0px 0px 0px;
	}

	#change_card_link_1, #change_card_link_2 {
		margin: 0px 0px 0px 0px;
	}

	#change_card_price_1, #change_card_price_2 {
		margin: 0px 0px 0px 0px;
	}

	.selectbtntext {
		font-size: 21px;
	}
}

@media (max-width: 560px) {
	.main_box {
		width: 370px;
		height: 1400px;
	}

	.wrapper_1 {
		display: block;
		width: 370px;
		height: 800px;
	}

	.slidebar {
		display: block;
		width: 370px;
		height: 185px;
		border-radius: 15px;
	}

	.slider-container {
		width: 370px;
		height: 185px;
		border-radius: 15px;
	}

	.bestproducts {
		display: block;
		width: 370px;
		height: 370px;
		margin: 321px 0px 0px 0px;
		border-radius: 15px;
	}

	.wrapper_2 {
		width: 370px;
		height: 302px;
		grid-template-columns: 370px;
		grid-template-rows: 302px 302px;
		margin: -805px 0px 0px 0px;
	}

	.choice_selection_1,
	.choice_selection_3 {
		height: 94px;
		grid-template-columns: 212px 148px;
		grid-template-rows: 94px 94px;
		border-radius: 30px;
	}

	.choice_selection_2 {
		height: 94px;
		grid-template-columns: 148px 212px;
		grid-template-rows: 94px 94px;
		border-radius: 30px;
	}

	.product_card {
		height: 302px;
		border-radius: 15px;
	}

	.wrapper_3 {
		width: 370px;
		max-width: 370px;
		height: 250px;
		grid-template-columns: 180px 180px;
		grid-template-rows: 250px 250px;
		grid-gap: 10px;
		margin: -315px 0px 0px 0px;
	}

	#product_of_wr3_1,
	#product_of_wr3_2,
	#product_of_wr3_3,
	#product_of_wr3_4 {
		height: 250px;
		margin: 0;
	}

	.navbar {
		height: 60px;
	}

	.divbar {
		height: 100px;
		margin: 0px 0px 20px 0px;
	}

	.burger {
		width: 34px;
	}

	.brand_container {
		gap: 3px;
		margin: 0px -112px 0px 112px;
	}

	.brand_icon {
		width: 32px;
		height: 32px;
	}

	.navbar_menu input {
		position: absolute;
		left: 0;
		width: 10px;
		background-size: 26px;
		background-position: 3px center;
		padding: 10px 10px 10px 28px;
		margin: 0px -65px 0px 65px;
		height: 32px;
		font-size: 16px;
		touch-action: manipulation;
		-webkit-text-size-adjust: 100%;
		-ms-text-size-adjust: 100%;
	}

	.navbar_brand {
		font-size: 21px;
	}

	.navbar__buttons {
		gap: 10px;
		margin: 0px 16px 0px -16px;
	}

	.user,
	.magnifier,
	.shopcart,
	.heart {
		width: 32px;
		height: 32px;
	}

	.mobile-menu {
		top: 60px;
	}

	.product__box {
		width: 166px;
		height: 145px;
		margin: 7px 0px 0px 0px;
	}

	.product_img_box {
		width: 166px;
		height: 90px;
	}

	.buy_button {
		padding: 5px 0px;
		font-size: 14px;
		font-weight: 800;
	}

	.telegram, .raffle, .getgems {
		font-weight: 800;
	}

	.description_text {
		font-size: 9px;
	}

	.product__box h4 {
		font-size: 17px;
	}

	.product__box {
		gap: 6px;
	}

	.description_text {
		font-size: 9px;
		font-weight: 900;
		color: #4ade80;
	}

	.buy_button {
		margin: 0px 0px 0px 0px;
	}

	.selectbtntext {
		font-size: 19px;
	}

	#btn4 {
		margin: 0px 0px 0px 25px;
	}

	.bestproducts iframe {
        pointer-events: auto; /* Возвращаем взаимодействие */
        overflow: visible !important; /* или auto */
        margin-top: 0; /* Убираем отрицательный margin */
        margin-right: 0; /* Убираем сдвиг вправо */
        height: 100%; /* Возвращаем стандартную высоту */
        width: 100%;
        transform: none;
        clip-path: none;
    }
}

@media (max-width: 410px) {
	body {
		overflow-x: hidden;
	}

	.main_box {
		transform: scale(.92);
		margin: 0;
	}

	.navbar .container_1 {
		transform: scale(.92);
	}

	.divbar {
		margin: 0px 0px -20px 0px;
	}

	.burger {
		margin: 0px 0px 0px 0px;
	}

	.navbar_menu input {
		margin: 0px -40px 0px 40px;
	}

	.navbar__buttons {
		margin: 0px 0px 0px -0px;
	}

	.brand_container {
		margin: 0px -90px 0px 90px;
	}

	.mobile-menu {
		width: 100%;
		margin: 0px 0px 0px -20px;
	}
}

@media (max-width: 360px) {
	body {
		overflow-x: hidden;
	}

	.container_2 {
		place-items: center;
		width: calc(100% - 40px);
	}

	.main_box {
		transform: scale(.80);
		margin: -80px 0px 0px 0px;
	}

	.navbar .container_1 {
		transform: scale(.80);
	}

	.navbar_brand {
		font-size: 18px;
	}

	.user,
	.magnifier,
	.shopcart,
	.heart {
		width: 28px;
		height: 28px;
	}
}