/* ============================================================================
   Главная lineagetwo.ru — дизайн 2026 (LIN-8).
   Подключается ПОСЛЕ main.css и перекрывает его глобальные правила (тёмный фон,
   Stem/PTRootUI в заголовках). Все классы с префиксом lt-, чтобы не конфликтовать
   со старой разметкой попапа «Скачать файлы», который по-прежнему живёт в main.css.
   Шрифты локальные: fonts.googleapis.com из России тянется долго или не тянется
   вовсе — по той же причине из шаблона раньше убрали CDN бутстрапа и jQuery.
   ========================================================================= */

@font-face {
	font-family: 'Philosopher';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/Philosopher-400-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Philosopher';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/Philosopher-400-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Philosopher';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/Philosopher-700-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Philosopher';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/Philosopher-700-latin.woff2') format('woff2');
}
/* Golos Text приехал вариативным файлом — один на все начертания 400…700. */
@font-face {
	font-family: 'Golos Text';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/GolosText-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Golos Text';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('../fonts/GolosText-latin.woff2') format('woff2');
}

:root {
	--lt-page: #f3fbfe;
	--lt-ink: #2a2160;
	--lt-head: #2a1f5e;
	--lt-violet: #3a2c78;
	--lt-cyan: #61c5df;
	--lt-link: #1f9cc2;
	--lt-body: #3c4f78;
	--lt-muted: #6a7aa0;
	--lt-line: #dcf0f7;
	--lt-pad: clamp(16px, 4vw, 48px);
	/* Отступ слева, чтобы текст не налезал на персонажа в шапке. */
	--lt-col: 470px;
	--lt-hero-top: 40px;
	/* Высота полосы неба и отдельно — высота арта. */
	--lt-hero-h: 806px;
	--lt-art-h: 690px;
}

body.lt {
	margin: 0;
	background: var(--lt-page);
	color: var(--lt-ink);
	font-family: 'Golos Text', 'PTRootUI-Regular', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.lt a {
	color: var(--lt-head);
	text-decoration: none;
}
body.lt a:hover {
	color: var(--lt-link);
}
body.lt h1,
body.lt h2,
body.lt h3,
body.lt h4 {
	font-family: 'Philosopher', Georgia, serif;
	color: var(--lt-head);
	letter-spacing: normal;
	margin: 0;
}
body.lt section,
body.lt header,
body.lt footer {
	overflow: visible;
}

.lt-wrap {
	width: 100%;
	overflow: hidden;
	background: var(--lt-page);
}

/* ---------- шапка ---------- */
/* Светлая дымка сверху шапки: лежит поверх арта, но под шапкой и текстом
   (у них свои z-index), поэтому ничего не перекрывает. */
.lt-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(180deg,
		rgba(199, 236, 252, .92) 0%,
		rgba(199, 236, 252, .55) 18%,
		rgba(140, 215, 238, .18) 42%,
		rgba(97, 197, 223, 0) 65%);
}
.lt-hero {
	position: relative;
	background-color: #5fc5de;
	background-image: url(../img/hero-sky.png);
	background-repeat: no-repeat;
	background-position: left top;
	background-size: auto var(--lt-hero-h);
	padding-bottom: 120px;
	overflow: hidden;
}
.lt-hero__pic {
	position: absolute;
	left: 0;
	top: 0;
	line-height: 0;
	pointer-events: none;
	user-select: none;
}
.lt-hero__art {
	display: block;
	height: var(--lt-art-h);
	width: auto;
}
.lt-head {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px var(--lt-pad) 22px var(--lt-col);
}
body.lt a.lt-brand {
	font-family: 'Philosopher', Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	color: var(--lt-violet);
	margin-right: auto;
	white-space: nowrap;
}
.lt-nav {
	display: flex;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .5);
}
.lt-nav a {
	padding: 9px 14px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
}
.lt-nav a:hover {
	background: #fff;
}
.lt-lang--menu {
	display: none;
	padding: 10px 16px 6px;
}
.lt-lang {
	display: flex;
	gap: 6px;
	align-items: center;
}
.lt-lang a {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	overflow: hidden;
	opacity: .55;
	transition: opacity .25s ease;
}
.lt-lang a.is-active,
.lt-lang a:hover {
	opacity: 1;
}
.lt-lang img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
body.lt a.lt-cab {
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--lt-violet);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}
body.lt a.lt-cab:hover {
	background: var(--lt-head);
	color: #fff;
}
.lt-burger {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	cursor: pointer;
	border-radius: 50%;
	background: #fff;
	place-items: center;
	font-size: 20px;
	color: var(--lt-head);
	line-height: 1;
}
.lt-menu {
	position: relative;
	z-index: 3;
	margin: 0 var(--lt-pad) 0 var(--lt-col);
	padding: 8px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 40px rgba(30, 80, 130, .2);
	display: none;
	flex-direction: column;
}
.lt-menu.is-open {
	display: flex;
}
.lt-menu a {
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
}
.lt-menu a:hover {
	background: #eef9fd;
}
.lt-hero__body {
	position: relative;
	z-index: 1;
	padding: var(--lt-hero-top) var(--lt-pad) 0 var(--lt-col);
}
.lt-hero__col {
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: flex-start;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
}
.lt-badge {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .7);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.lt-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #16a36a;
}
.lt-dot--off {
	background: #b0485f;
}
.lt-hero h1 {
	font-weight: 700;
	font-size: clamp(46px, 7vw, 100px);
	line-height: .92;
	color: var(--lt-head);
}
.lt-hero h1 span {
	color: #fff;
	text-shadow: 0 6px 40px rgba(30, 80, 130, .35);
}
.lt-hero__text {
	margin: 0;
	font-size: 19px;
	line-height: 1.55;
	color: #1f3560;
	max-width: 500px;
}
.lt-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
body.lt a.lt-btn,
body.lt button.lt-btn {
	padding: 16px 28px;
	border-radius: 14px;
	background: var(--lt-head);
	color: #fff;
	font-weight: 600;
	border: 0;
	font-family: inherit;
	font-size: 16px;
	cursor: pointer;
}
body.lt a.lt-btn:hover,
body.lt button.lt-btn:hover {
	background: var(--lt-violet);
	color: #fff;
}
body.lt a.lt-btn--ghost {
	background: rgba(255, 255, 255, .75);
	color: var(--lt-head);
}
body.lt a.lt-btn--ghost:hover {
	background: #fff;
	color: var(--lt-head);
}

/* ---------- карточки серверов ---------- */
.lt-servers {
	position: relative;
	z-index: 2;
	margin-top: -80px;
	padding: 0 var(--lt-pad);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}
.lt-srv {
	padding: 24px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 60px rgba(30, 80, 130, .16);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px 12px;
	align-items: center;
}
.lt-srv__name {
	font-family: 'Philosopher', Georgia, serif;
	/* на планшете три карточки сужаются, и фиксированные 28px рвали название
	   «High Five x50» на две строки */
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	color: var(--lt-head);
}
.lt-srv__rate {
	color: var(--lt-cyan);
}
.lt-chip {
	font-size: 12px;
	font-weight: 600;
	color: #16a36a;
	background: #e2f6ec;
	padding: 5px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.lt-chip--off {
	color: #6b6b6b;
	background: #ececec;
}
.lt-srv__desc {
	grid-column: 1 / -1;
	font-size: 14px;
	line-height: 1.5;
	color: var(--lt-body);
}
.lt-srv__meta {
	font-size: 13px;
	color: var(--lt-muted);
}
body.lt a.lt-srv__go {
	font-weight: 600;
	color: var(--lt-link);
	white-space: nowrap;
}
.lt-srv__online {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--lt-body);
}
.lt-srv__online b {
	font-size: 15px;
	color: var(--lt-violet);
}

/* ---------- как начать ---------- */
.lt-sec {
	padding: 64px var(--lt-pad) 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.lt-sec h2 {
	font-size: clamp(30px, 3.4vw, 44px);
}
.lt-steps {
	padding: 32px clamp(20px, 3vw, 40px);
	border-radius: 28px;
	background: #d7eff8;
	border: 1px solid #bfe3f1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
}
.lt-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	height: 100%;
}
.lt-step__t {
	font-family: 'Philosopher', Georgia, serif;
	font-size: 28px;
	line-height: 1.1;
	color: var(--lt-violet);
}
.lt-step__t span {
	color: var(--lt-link);
}
.lt-step__d {
	font-size: 15px;
	line-height: 1.5;
	color: var(--lt-body);
	margin-bottom: 8px;
}
body.lt a.lt-step__cta {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	border-radius: 14px;
	background: var(--lt-violet);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	font-family: inherit;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(58, 44, 120, .22);
}
body.lt a.lt-step__cta:hover {
	background: var(--lt-head);
	color: #fff;
	transform: translateY(-1px);
}

/* ---------- рейтинг ---------- */
.lt-rate__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.lt-tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: #e3f2f8;
}
.lt-tab {
	border: 0;
	cursor: pointer;
	padding: 9px 18px;
	border-radius: 9px;
	font: 600 14px 'Golos Text', sans-serif;
	background: transparent;
	color: #3a4f7a;
}
.lt-tab.is-active {
	background: var(--lt-violet);
	color: #fff;
}
.lt-rate__body {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: stretch;
}
.lt-worlds {
	flex: 1 1 240px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.lt-world {
	text-align: left;
	cursor: pointer;
	padding: 16px 18px;
	border-radius: 18px;
	border: 2px solid var(--lt-line);
	background: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-family: 'Golos Text', sans-serif;
	color: var(--lt-head);
}
.lt-world.is-active {
	background: var(--lt-violet);
	border-color: var(--lt-violet);
	color: #fff;
}
.lt-world span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.lt-world b {
	font-size: 16px;
}
.lt-world small {
	font-size: 13px;
	opacity: .75;
}
.lt-board {
	flex: 999 1 360px;
	min-width: 0;
	padding: 8px 24px;
	border-radius: 24px;
	background: #fff;
	border: 1px solid var(--lt-line);
	display: flex;
	flex-direction: column;
}
.lt-board__head {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 12px;
	padding: 12px 0;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #7a88a8;
	border-bottom: 1px solid #e4f2f8;
}
.lt-row {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid #eef6fa;
	font-size: 16px;
}
.lt-row__rank {
	font-family: 'Philosopher', Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--lt-cyan);
}
.lt-row__name {
	font-weight: 600;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.lt-row__name img {
	width: 16px;
	height: 12px;
	image-rendering: pixelated;
	vertical-align: -2px;
	margin-right: 8px;
}
.lt-row__val {
	font-variant-numeric: tabular-nums;
	color: var(--lt-violet);
	font-weight: 600;
}
.lt-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--lt-muted);
}

/* ---------- соцсети ---------- */
.lt-socials {
	padding: 48px var(--lt-pad);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.lt-social {
	flex: 1 1 220px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--lt-line);
}
body.lt a.lt-social,
body.lt a.lt-social:hover {
	color: var(--lt-ink);
}
body.lt a.lt-social:hover {
	border-color: var(--lt-cyan);
}
.lt-social__ic {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--lt-violet);
	color: #fff;
	display: grid;
	place-items: center;
	flex: none;
}
.lt-social__ic svg {
	width: 22px;
	height: 22px;
	fill: #fff;
}
.lt-social__txt {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.lt-social__txt b {
	font-size: 16px;
}
.lt-social__txt span {
	font-size: 13px;
	color: #4a5a8a;
}
body.lt .lt-social__cta {
	margin-left: auto;
	padding: 9px 14px;
	border-radius: 10px;
	background: #eef9fd;
	font-size: 13px;
	font-weight: 600;
	color: var(--lt-head);
	white-space: nowrap;
}

/* ---------- подвал ---------- */
.lt-footer {
	margin: 0 var(--lt-pad);
	padding: 32px 0 40px;
	border-top: 1px solid #d3e9f2;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px 48px;
	background: none;
}
.lt-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.lt-footer__brand b {
	font-family: 'Philosopher', Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	color: var(--lt-violet);
}
.lt-footer__brand span {
	font-size: 13px;
	color: var(--lt-muted);
}
.lt-footer p {
	margin: 0;
	flex: 1 1 360px;
	max-width: 720px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--lt-muted);
}

/* ---------- адаптив ----------
   Персонаж в шапке занимает слева ~360 px, поэтому колонка контента смещена.
   Ниже 1240 px меню уезжает в бургер, ниже 760 px арт уходит наверх и контент
   занимает всю ширину. */
@media (max-width: 1239px) {
	.lt-nav {
		display: none;
	}
	.lt-burger {
		display: grid;
	}
}
@media (max-width: 1099px) {
	:root {
		--lt-col: 400px;
		--lt-art-h: 580px;
	}
}
@media (max-width: 759px) {
	/* 390 px не хватает на логотип, флаги, кнопку кабинета и бургер разом —
	   переключатель языка уезжает в меню. */
	.lt-head .lt-lang {
		display: none;
	}
	.lt-lang--menu {
		display: flex;
	}
	:root {
		--lt-col: 16px;
		--lt-hero-top: 24px;
	}
	/* На телефоне арта нет совсем: шапка открывается сразу заголовком. */
	.lt-hero__pic {
		display: none;
	}
	.lt-hero {
		background-size: cover;
		padding-bottom: 90px;
	}
	.lt-head {
		gap: 10px;
	}
	.lt-brand {
		font-size: 22px;
	}
	.lt-cab {
		padding: 10px 14px;
		font-size: 13px;
	}
	.lt-servers {
		margin-top: -60px;
	}
	.lt-worlds {
		max-width: none;
	}
	.lt-board {
		padding: 8px 16px;
	}
	.lt-footer {
		gap: 16px;
	}
}

/* ---------- окно «Скачать файлы» ----------
   Раньше это был попап arcticmodal с фиксированными 945×494 и оранжевыми
   кнопками от старой тёмной темы. Теперь та же вёрстка, что и у страницы,
   и на узком экране окно не вылезает за край. */
.lt-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}
.lt-modal[hidden] {
	display: none;
}
.lt-modal__back {
	position: fixed;
	inset: 0;
	background: rgba(26, 20, 60, .55);
	animation: lt-fade .18s ease;
}
.lt-modal__card {
	position: relative;
	width: min(920px, 100%);
	margin: auto;
	background: #fff;
	border-radius: 28px;
	padding: 32px clamp(20px, 3vw, 40px) 28px;
	box-shadow: 0 40px 80px rgba(30, 80, 130, .3);
	animation: lt-pop .2s ease;
	outline: none;
}
@keyframes lt-fade {
	from { opacity: 0 }
}
@keyframes lt-pop {
	from { opacity: 0; transform: translateY(12px) }
}
body.lt .lt-modal__x {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #eef9fd;
	color: var(--lt-head);
	font: 400 26px/1 'Golos Text', sans-serif;
	cursor: pointer;
	display: grid;
	place-items: center;
}
body.lt .lt-modal__x:hover {
	background: var(--lt-cyan);
	color: #fff;
}
.lt-modal__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 18px;
	padding-right: 48px;
	margin-bottom: 24px;
}
.lt-modal__head h2 {
	font-size: clamp(26px, 3vw, 34px);
}
body.lt a.lt-modal__help {
	font-size: 14px;
	font-weight: 600;
	color: var(--lt-link);
}
.lt-modal__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}
.lt-dl {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border-radius: 24px;
	border: 1px solid var(--lt-line);
	background: #f8fcfe;
}
.lt-dl__name {
	font-family: 'Philosopher', Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	color: var(--lt-head);
}
.lt-dl__desc {
	font-size: 14px;
	line-height: 1.5;
	color: var(--lt-body);
	margin-bottom: 4px;
}
body.lt a.lt-dl__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 20px;
	border-radius: 14px;
	background: var(--lt-head);
	color: #fff;
	font-weight: 600;
	margin-top: auto;
}
body.lt a.lt-dl__btn:hover {
	background: var(--lt-violet);
	color: #fff;
}
.lt-dl__btn svg {
	width: 20px;
	height: 20px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
body.lt a.lt-dl__alt {
	padding: 13px 20px;
	border-radius: 12px;
	background: #eef9fd;
	color: var(--lt-head);
	font-weight: 600;
	font-size: 15px;
}
body.lt a.lt-dl__alt:hover {
	background: #dff2fa;
	color: var(--lt-head);
}
.lt-modal__note {
	margin: 20px 0 0;
	font-size: 13px;
	color: var(--lt-muted);
}
@media (max-width: 759px) {
	.lt-modal {
		padding: 12px;
	}
	.lt-modal__card {
		border-radius: 22px;
		padding: 26px 18px 22px;
	}
	.lt-dl {
		padding: 18px;
	}
}
