@media (min-width: 1920px) {
	.page-content {
		background-size: unset;
	}
}

@media (min-width: 1440px) {
	.container {
		max-width: 1229px;
	}
}

@media (max-width: 1800px) {
	.header-wrapper_right-flex {
		right: 50px;
	}
}

@media (max-width: 1440px) {
	.header-wrapper_left,
	.header-wrapper_right {
		width: auto;
		justify-content: flex-start;
	}
	.header-wrapper-menu {
		justify-content: flex-start;
	}

	.slider-nav .slick-next {
		right: 0px;
	}
	.slider-nav .slick-prev {
		left: 0px;
	}
	.slider-for-slide {
		padding-left: 100px;
		padding-right: 100px;
	}
	.hero-img {
		left: 400px;
	}
}
@media (max-width: 1220px) {
	.header-menu li {
		padding: 0px 0px;
	}
	.header-menu li a {
		font-size: 14px;
	}
	.topThree {
		justify-content: center;
	}
	.topThree-block {
		margin: 5px;
	}
}
@media (max-width: 1000px) {
	.header {
		position: fixed;
		top: 0px;
		left: 0px;
		right: 0px;
		width: 100%;
		height: 50px;
		z-index: 99;
		background-color: #000;
	}

	.burger-menu {
		display: block;
		position: absolute;
		left: 10px;
		top: 7px;
		transition: 0.3s;
		z-index: 101;
	}
	.burger-menu span {
		width: 30px;
		height: 4px;
		display: block;
		background: #fff;
		margin: 6px 0px;
		transition: 0.3s;
		position: relative;
	}
	.burger-menu.active {
		left: 260px;
		top: 12px;
	}

	.burger-menu.active span {
		margin: 8px 0;
	}
	.burger-menu.active span:nth-child(1) {
		transform: rotate(45deg);
		top: 6px;
	}
	.burger-menu.active span:nth-child(2) {
		display: none;
	}
	.burger-menu.active span:nth-child(3) {
		transform: rotate(-45deg);
		bottom: 6px;
	}
	.header-wrapper-menu_h {
		display: block;
		position: fixed;
		left: -320px;
		top: 0px;
		width: 320px;
		background: #000;
		height: 100%;
		padding-top: 70px;
		transition: 0.3s;
		z-index: 10;
	}
	.header-wrapper-menu_h.active {
		left: 0px;
	}
	.header-wrapper-menu {
		display: block;
		height: 100%;
		overflow-y: auto;
	}
	.header-menu {
		display: block;
		width: 100%;
		padding-left: 30px;
	}
	.header-menu li a {
		text-align: center;
		font-size: 18px;
	}
	.header-menu li a i {
		display: block;
	}

	.login-and-reg {
		gap: 10px;
	}

	.langBlock-active {
		height: 50px;
		margin-right: 10px;
	}

	.login-button {
		height: 40px;
		width: 130px;
	}

	.header-wrapper_right-flex {
		right: 10px;
	}

	.news-content-container {
		gap: 50px;
	}
	.slider-for-slide {
		padding-left: 10px;
		padding-right: 10px;
	}
	.hero-title {
		margin-left: 0px;
	}
	.dTop-left,
	.dTop-right {
		width: 100%;
		height: auto;
	}

	.dTop-right {
		padding: 20px 0;
	}

	.text-and-image {
		flex-direction: column;
	}
    .top-container {
        display: none;
    }
}

@media (max-width: 768px) {
	.logo {
		justify-content: center;
		margin: 150px 0;
		margin-top: 55px;
	}

	.logo-link > img {
		width: 300px;
	}

	.rules-title > div {
		gap: 10px;
	}

	.rules-text {
		font-size: 14px;
		line-height: 28px;
		margin-bottom: 15px;
	}

	.about-server-post img {
		margin-bottom: 15px;
	}
	.about-server-post-text {
		font-size: 14px;
		line-height: 28px;
		margin-bottom: 15px;
	}
	.download-info {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
	.hero-img {
		top: 80px;
		left: 200px;
	}
	.hero-title_text span {
		font-size: 30px;
	}
	.hero-text {
		max-width: 100%;
	}
	#media-dots {
		width: 100%;
		max-width: 660px;
		padding: 0px 10px;
	}
	.media-block .slick-dots {
		flex-wrap: wrap;
		justify-content: center;
		padding: 0px 30px;
	}
	.media-block .slick-dots li {
		padding-top: 5px;
	}

	.footer {
		margin-top: 0px;
		padding: 15px 0;
		background: #05070a;
	}
	.footer-container {
		height: fit-content;
		flex-direction: column-reverse;
		justify-content: center;
		align-self: center;
	}
	.footer-content {
		height: 300px;
	}
	.footer::after {
		display: none;
	}

	.footer-text {
		text-align: center;
	}

	.footer-rights {
		align-self: center;
	}

	.download-wrapper {
		padding: 10px;
	}
}
@media (max-width: 600px) {
	.team-online-icon {
		display: none;
	}
	.team-online-block {
		padding: 15px 0;
	}
}

@media (max-width: 500px) {
	body {
		background-position-x: -1060px;
		background-position-y: 55px;
	}

	.article-text-container {
		right: 50%;
		transform: translateX(50%);
		align-items: center;
		text-align: center;
	}
	.news-slider {
		max-width: 320px;
	}
	.hero-icon-class {
		display: none;
	}
	.hero-title {
		margin-bottom: 80px;
	}
	.hero-img {
		left: 100px;
		top: 100px;
	}

	.dTop-cat_block {
		width: calc(50% - 6px);
	}

	.topThree-block {
		flex-wrap: wrap;
	}
	.topThree-block {
		height: auto;
	}
	.topThree-block_text {
		width: 100%;
	}
	.topThree-block_class {
		width: calc(100% - 78px);
	}
	.topThree-block_text-b {
		left: auto;
		right: 20px;
	}
}

@media (max-width: 425px) {
	.rules-title > div {
		padding: 30px 10px;
		justify-content: center;
	}
	.about-server-title > div {
		padding: 30px 10px;
	}

	.about-server-post img {
		min-height: 150px;
		object-fit: cover;
	}
	.news-title > div {
		padding: 30px 10px;
	}

	.news-post-text {
		font-size: 12px;
		line-height: 1.5;
        margin-bottom: 15px;
	}
}

@media (max-width: 375px) {
	.langBlock-active {
		margin-right: 0px;
	}

	.login-and-reg {
		gap: 5px;
		font-size: 11px;
	}

	.login-button {
		font-size: 11px;
		width: 108px;
	}

	.news-slider {
		padding: 0 10px;
	}

	.table-top-rank .table-rank {
		padding-left: 5px;
	}

	.table-top-rank .table-lvl {
		padding-right: 5px;
	}
	.events-btn {
		margin-bottom: 30px;
	}

	.events-content {
		padding: 5px 15px;
	}

	.team-online-barBlock_title {
		width: 100px;
		min-width: unset;
	}
}


/* ---- Layout QA fixes (phone) ---- */
@media (max-width: 1000px) {
	/* Drop List / Rules always visible inside the drawer */
	.header-menu .nav-submenu { display: block; position: static; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0; }
	.header-menu .nav-submenu a { text-align: center; font-size: 15px; padding: 12px 18px; }
	.login-button, .sing-up-button { white-space: nowrap; }
}
@media (max-width: 773px) {
	/* clock sits under the logo instead of on top of it */
	#clock { top: 255px; font-size: 1.1rem; white-space: nowrap; padding: 4px 10px; }
	.passkey-rename { flex-wrap: wrap; }
	.passkey-rename input { flex: 1 1 100%; min-width: 0; }
}


/* ---- Layout QA fixes, round 2 (phone): tap targets, scroll hints, small text, modal spacing ---- */
@media (max-width: 773px) {
	/* wide tables: edge shadow shows there is more to scroll to */
	.table-top-scroll, .dSystem {
		-webkit-overflow-scrolling: touch;
		background:
			linear-gradient(to right, var(--c-bg, #0b1018) 30%, rgba(0,0,0,0)) left center / 30px 100% no-repeat local,
			linear-gradient(to left, var(--c-bg, #0b1018) 30%, rgba(0,0,0,0)) right center / 30px 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(160,190,230,.35), rgba(0,0,0,0)) left center / 14px 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(160,190,230,.35), rgba(0,0,0,0)) right center / 14px 100% no-repeat scroll;
	}
	/* comfortable tap areas for small text links and buttons */
	.logo-link, .cancel-btn, .news-read-more, .rules-link, .auth-links a {
		display: inline-block; min-height: 44px; line-height: 44px; padding-top: 0; padding-bottom: 0;
	}
	.logo-link { display: flex; justify-content: center; line-height: normal; }
	.logo-link > img { margin: 0 auto; }
	.stat-label, .table-top-rank-s th, .table-top-rank-s td { font-size: 12px; }
	/* modals: tighter vertical rhythm so they fit shorter screens */
	.modal-body { padding-top: 10px; padding-bottom: 10px; }
	.modal-body .form-group, .modal-body .field { margin-bottom: 8px; }
	.modal-logo img { max-height: 90px; width: auto; }
}

/* Donate: one card per package on phones instead of a sideways-scrolling table */
@media (max-width: 600px) {
	.table-download:has(td[data-label]), .table-download:has(td[data-label]) tbody { display: block; width: 100%; }
	.table-download:has(td[data-label]) thead { display: none; }
	.table-download:has(td[data-label]) tr { display: block; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
	.table-download:has(td[data-label]) td[data-label] { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: right; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line-2); }
	.table-download:has(td[data-label]) td[data-label]::before { content: attr(data-label); font-weight: bold; text-align: left; opacity: .75; }
	.table-download:has(td[data-label]) td[data-label="Action"] { border-bottom: 0; }
	.table-download:has(td[data-label]) .buybutton { white-space: nowrap; min-height: 44px; }
	.table-download:has(td[data-label]) td:first-child { width: 100%; }
}

/* Breadcrumb links: tap area without changing the look */
@media (max-width: 773px) {
	.breadcrumbs ul li a { display: inline-block; padding: 14px 6px; margin: -14px -6px; }
}
