@import url("_font-onest-var.css");
@import url("_base.css");
@import url("_horizontal-menu.css");
@import url("_page-controls.css");
/* Page */
html {
	color-scheme: light dark;
	background: light-dark(#f6f6f6, #333);
	color: light-dark(#111, #ccc);
	font-family: var(--base-fonts);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}
html.big-text {
	font-size: max(1rem, 22px);
}
body {
	min-inline-size: 320px;
	max-inline-size: 1920px;
	margin-inline: auto;
}
/* Vector icons */
.icon {
	width: 1em;
	height: 1em;
}
/* Dialog layout */
.dialog-layout[open],
.dialog-layout:popover-open {
	box-sizing: border-box;
	background: transparent;
	max-inline-size: none;
	max-block-size: none;
	inline-size: 100%;
	block-size: 100%;
	padding: 1em;
	display: grid;
	place-content: safe center;
}
.dialog-layout-inner {
	background: light-dark(#f0f0f0, #333);
	color: light-dark(#000, #fff);
	padding: 1.5em;
	box-shadow: 0 0 3px 3px rgba(255,255,255,.15);
	border-radius: 4px;
	position: relative;
	overflow: auto;
}
@media all and (prefers-contrast: more) {
	.dialog-layout-inner {
		background: light-dark(#fff, #000);
	}
}
.form-close-dialog {
	position: absolute;
	z-index: 1;
	inset-block-start: .5em;
	inset-inline-end: .5em;
}
.form-close-dialog-button {
	background: transparent;
	color: #b24539;
	border: none;
	cursor: pointer;
	width: 1.5em;
	height: 1.5em;
	line-height: 1.5em;
	text-align: center;
	padding: 0;
	transition: background-color 300ms ease-out, color 300ms ease-out;
}
.form-close-dialog-button:hover,
.form-close-dialog-button:focus {
	background-color: #b24539;
	color: #fff;
}
/* .limit-content is a wrapper for normal content, which needs padding on narrow screens. */
.limit-content {
	display: flow-root;
}
@media not print {
	.limit-content {
		max-inline-size: var(--content-max-width);
		margin-inline: auto;
		padding-inline: 1.5rem;
	}
}
/* Alternatively, one can increase paddings to fill space. */
.pad-content {
	display: flow-root;
}
@media not print {
	.pad-content {
		padding-inline: max(1.5rem, (100% - var(--content-max-width)) / 2);
	}
}
/* Template */
.l-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	background: light-dark(#fff, #111);
	color: light-dark(#1e1e1e, #ccc);
	padding: 1em;
	border-radius: .25em;
}
@media not print {
	@media (max-width: 1599px) {
		.l-top {
			padding-inline-end: 72px;
		}
	}
}
@media print {
	nav {
		display: none !important;
	}
}
.main-menu a,
.add-menu a {
	text-decoration: none;
	transition: color 300ms ease-out;
}
.main-menu a:hover,
.main-menu a:focus,
.add-menu a:hover,
.add-menu a:focus {
	color: light-dark(#3c95cf, #7fccff);
}
.main-menu a:focus-visible,
.add-menu a:focus-visible {
	text-decoration: underline;
}
.add-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2em 4em;
	padding-block: 1.5rem;
}
.add-menu > li {
	list-style: none;
}
.bottom {
	margin-block-start: 3rem;
}
.bottom-2 {
	margin-block-start: 1.5rem;
	font-size: .875rem;
	color: light-dark(#959a9a, #999);
	border-top: 1px solid light-dark(#dedede, #555);
	padding-block: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.bottom-2 > div:nth-child(2) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em 2em;
}
@media all and (min-width: 1520px) {
	.bottom-2 {
		margin-block-start: 3rem;
	}
}
.bottom-1 {
	color: light-dark(#757b7d, #aaa);
	font-size: .9375rem;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
	gap: 2em;
}
.bottom-heading {
	color: light-dark(#1e1e1e, #fff);
	font-family: var(--heading-fonts);
	font-weight: 600;
	overflow-wrap: break-word;
	break-after: avoid;
	break-inside: avoid;
}
.bottom-heading:not(:first-child) {
	margin-block-start: 2rem;
}
.bottom-menu:not(:first-child) {
	margin-block-start: 2rem;
}
.bottom-menu > li {
	list-style: none;
}
.bottom-menu > li:not(:first-child) {
	margin-block-start: 1em;
}
.bottom-menu a {
	text-decoration: none;
	transition: color 300ms ease-out;
}
.bottom-menu a:hover,
.bottom-menu a:focus {
	color: light-dark(#2a2e2f, #ccc);
	text-decoration: underline;
}
.bottom-1 > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 2em;
}
.soc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
	margin-block-start: auto;
}
.soc > a {
	border-radius: 50%;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	background: light-dark(#fff, #111);
	color: light-dark(#000, #ccc);
}
.button-1 {
	display: inline-block;
	font-size: 1.0625rem;
	font-weight: bold;
	padding-block: 1em;
	padding-inline: 2em;
	background: light-dark(#3c95cf, #3585b9);
	color: #fff;
	text-decoration: none;
	transition: background-color 300ms ease-out;
	border-radius: .2em;
}
.button-1:hover,
.button-1:focus {
	background-color: light-dark(#3585b9, #2a6b94);
}
.button-1:focus-visible {
	text-decoration: underline;
}
@media all and (prefers-color-scheme: dark) {
	.button-1 {
		font-weight: 600;
	}
}
.subtitle {
	text-align: center;
}
.subtitle:not(:first-child) {
	margin-block-start: 1em;
}
main > section {
	padding-block: 2rem;
}
@media all and (min-width: 1520px) {
	main > section {
		padding-block: 4rem;
	}
}
.flags:not(:first-child) {
	margin-block-start: 1em;
}
.flags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5em;
}
.flags > .new {
	position: relative;
}
.flags > .new::before {
	content: "NEW";
	font-weight: bold;
	font-size: 10px;
	position: absolute;
	z-index: 1;
	right: 0;
	top: 0;
	transform: translate(50%, -50%);
	pointer-events: none;
	background: light-dark(#ff5555, #ce4646);
	color: #fff;
	padding: .2em .4em;
	border-radius: .2em;
}
.plans-button {
	box-sizing: border-box;
	display: inline-block;
	font-size: 1.0625rem;
	font-weight: bold;
	padding-block: .7em;
	padding-inline: 1em;
	border: none;
	border-radius: .2em;
	background: light-dark(#3c95cf, #3585b9);
	color: #fff;
	text-align: center;
	width: 100%;
	text-decoration: none;
	transition: background-color 300ms ease-out;
}
.plans > a:hover > .plans-button,
.plans > a:focus > .plans-button {
	background-color: light-dark(#3585b9, #2a6b94);
}
.plans-button:focus-visible {
	text-decoration: underline;
}
@media all and (prefers-color-scheme: dark) {
	.plans-button {
		font-weight: 600;
	}
}
.plans-button:not(:first-child) {
	margin-block-start: auto;
}
.plans:not(:first-child) {
	margin-block-start: 4em;
}
.plans {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
}
.plans > a {
	box-sizing: border-box;
	background: light-dark(#fff, #111);
	color: light-dark(#1e1e1e, #ccc);
	border-radius: .2em;
	flex-shrink: 0;
	flex-grow: 1;
	width: 245px;
	max-width: 100%;
	padding-block: 33px 22px;
	padding-inline: 22px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 1em;
	outline: 1px solid transparent;
	transition: outline-color 300ms ease-out;
}
@media all and (max-width: 547px) {
	.plans > a {
		width: 100%;
	}
}
.plans > a:hover,
.plans > a:focus {
	outline-color: light-dark(#3585b9, #2a6b94);
}
.plans-title {
	font-family: var(--heading-fonts);
	line-height: normal;
	font-weight: bold;
	font-size: 30px;
	color: light-dark(#3c95cf, #3585b9);
	overflow-wrap: break-word;
	break-after: avoid;
	break-inside: avoid;
}
.fake-plans-title {
	font-family: var(--heading-fonts);
	line-height: normal;
	font-weight: bold;
	font-size: 26px;
	overflow-wrap: break-word;
	break-after: avoid;
	break-inside: avoid;
}
@media all and (prefers-color-scheme: dark) {
	.plans-title,
	.fake-plans-title {
		font-weight: 600;
	}
}
.plans-data {
	color: light-dark(#1e1e1e, #fff);
}
.plans > .popular {
	position: relative;
}
.plans > .popular::before {
	content: "Популярный";
	font-weight: bold;
	font-size: 16px;
	position: absolute;
	z-index: 1;
	right: -1px;
	top: 0;
	transform: translateY(-50%);
	pointer-events: none;
	background: light-dark(#30bf9e, #2aa689);
	color: #fff;
	padding: .4em .8em;
	border-radius: .2em;
	border-end-end-radius: 0;
}
.plans > .popular {
	outline-color: light-dark(#30bf9e, #2aa689);
}
@media all and (prefers-color-scheme: dark) {
	.plans > .popular::before {
		font-weight: 600;
	}
}
.plans-price {
	font-weight: bold;
	font-size: 32px;
	color: light-dark(#1e1e1e, #fff);
}
@media all and (prefers-color-scheme: dark) {
	.plans-price {
		font-weight: 600;
	}
}
.options:not(:first-child) {
	margin-block-start: 14px;
}
.options {
	font-size: 1.25rem;
	font-weight: 600;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
}
.options > div {
	box-sizing: border-box;
	background: light-dark(#fff, #111);
	color: light-dark(#787878, #ccc);
	border-radius: .2em;
	flex-shrink: 1;
	flex-grow: 1;
	width: 245px;
	max-width: 100%;
	padding: 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
}
.options-price {
	color: light-dark(#1e1e1e, #fff);
}
.what {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
}
.what > article {
	box-sizing: border-box;
	width: 372px;
	max-width: 100%;
	color: light-dark(#777d7f, #ccc);
	padding-block: 1em;
}
.what > article:first-child {
	font-size: 1.125rem;
}
.what > article:first-child > h2 {
	line-height: 1;
	text-align: start;
}
.what > article:not(:first-child) {
	background: light-dark(#fff, #111);
	padding-inline: 1em;
	border-radius: .2em;
}
@media all and (min-width: 1200px) {
	.what > article {
		padding-block: 2em;
	}
	.what > article:not(:first-child) {
		padding-inline: 2em;
	}
}
main > section.active-servers {
	color-scheme: dark;
	background: url("../images/active-servers.webp") center / cover no-repeat #111;
	color: #fff;
}
.active-servers {
	font-size: 26px;
	font-weight: normal;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
}
.active-servers > div:nth-child(2) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
}
@media all and (min-width: 1200px) {
	.active-servers > div:nth-child(2) {
		gap: 2em;
	}
}
.num {
	background: #30bf9e;
	color: #fff;
	padding-block: .4em;
	padding-inline: .5em;
	border-radius: .2em;
}
.num + .num {
	margin-inline-start: 2px;
}
.information-items:not(:first-child) {
	margin-block-start: 2em;
}
.information-items {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
}
.information-items > article {
	box-sizing: border-box;
	flex-grow: 1;
	width: 500px;
	max-width: 100%;
	background: light-dark(#fff, #111);
	color: light-dark(#777d7f, #ccc);
	padding: 1em;
}
@media all and (min-width: 1200px) {
	.information-items > article {
		padding: 2em;
	}
	.information > h2 > .part {
		display: block;
	}
}
main > section.faq {
	background: url("../images/faq.webp") left bottom no-repeat light-dark(#e0e0e0, #323232);
	color: light-dark(#555d5e, #ccc);
}
@media all and (prefers-color-scheme: dark) {
	main > section.faq {
		background-image: url("../images/faq-dark.webp");
	}
}
@media all and (min-width: 1200px) {
	.faq {
		display: flex;
		gap: 1em;
	}
	.faq > h2 {
		width: 350px;
		text-align: start;
	}
	.faq-items {
		flex-grow: 1;
	}
}
@media not all and (min-width: 1200px) {
	.faq-items:not(:first-child) {
		margin-block-start: 2em;
	}
}
details {
	background: light-dark(#fff, #111);
	color: light-dark(#555d5e, #eee);
	padding: 1em;
	border-radius: .2em;
}
summary {
	font-weight: 600;
	font-size: 1.125rem;	
	color: light-dark(#1e1e1e, #ccc)
	transition: color 300ms ease-out;
}
details[open] > summary {
	color: light-dark(#3c95cf, #7cc9fb);
}
@media all and (min-width: 1200px) {
	details {
		padding: 1.45em 2em;
	}
}
