:root {
	--bg: #f5f6f7;
	--surface: #fff;
	--surface-2: #eef2f4;
	--text: #202733;
	--muted: #66717e;
	--line: #e7ebee;
	--green: #17aa71;
	--green-dark: #136e4b;
	--yellow: #fed14a;
	--blue: #3587e8;
	--red: #ef5350;
	--shadow: 0 10px 28px rgba(25, 36, 46, .09);
	--radius: 8px;
	--wrp: 1536px;
}

html.theme-dark {
	--bg: #14181c;
	--surface: #1d2329;
	--surface-2: #262e35;
	--text: #eef3f6;
	--muted: #9ba8b4;
	--line: #303942;
	--shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.45 "Geologica", "Inter", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; vertical-align: middle; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrp { width: min(var(--wrp), calc(100% - 56px)); margin: 0 auto; }
.fc { display: flex; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.muted { color: var(--muted); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.im { display: inline-grid; place-items: center; width: 1em; height: 1em; font-style: normal; line-height: 1; }
.im-search:before { content: "⌕"; }
.im-close:before { content: "x"; }
.im-sun:before { content: "☼"; }
.im-moon:before { content: "◐"; }
.im-login:before { content: "↪"; }
.im-gamepad:before { content: "□"; }
.im-apps:before { content: "▦"; }
.im-cup:before { content: "△"; }
.im-bolt:before { content: "ϟ"; }
.im-addtopic:before { content: "+"; }
.im-burger:before { content: "≡"; }
.im-download:before { content: "↓"; }
.im-kright:before, .im-aright:before { content: "›"; }
.im-aleft:before { content: "‹"; }
.im-aup:before { content: "↑"; }
.im-thumbup:before { content: "▲"; }
.im-thumbdown:before { content: "▼"; }
.im-share:before { content: "↗"; }
.im-info:before { content: "i"; }
.im-update:before { content: "↻"; }
.im-staroutline:before { content: "☆"; }
.im-star:before { content: "★"; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.btn-fill { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(23, 170, 113, .28); }
.btn-fill:hover { color: #fff; background: #119763; }
.btn-link { background: transparent; color: var(--green); box-shadow: none; }
.btn-sm { min-height: 50px; padding: 0 18px; border-radius: 12px; }
.btn-block { width: 100%; }

.brand-mark {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--green);
	color: #fff;
	font-weight: 900;
	font-size: 24px;
	font-style: normal;
}
.brand-text { margin-left: 8px; color: var(--green); font-size: 30px; font-weight: 800; letter-spacing: 0; }
.logotype { display: inline-flex; align-items: center; min-width: 142px; }

.header-first { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); }
.header-first > .wrp { height: 70px; justify-content: space-between; }
.head-l, .head-r { gap: 14px; }
.hbtn {
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
	display: inline-grid;
	place-items: center;
	position: relative;
}
.hbtn:hover { color: var(--green); }
.hbt .im-close, .theme-dark .mod-btn .im-moon, html:not(.theme-dark) .mod-btn .im-sun { display: none; }
.theme-dark .mod-btn .im-sun, html:not(.theme-dark) .mod-btn .im-moon { display: inline-grid; }
.huser img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.pm-num { position: absolute; right: -2px; top: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--yellow); color: #5f4300; font-size: 11px; line-height: 18px; text-align: center; }

.lang-sel { gap: 8px; }
.lang-sel button { width: 25px; height: 25px; border: 0; border-radius: 50%; background: var(--surface-2); }
.lang-sel .active { outline: 2px solid var(--green); }
.lang-sel-border { gap: 4px; }
.lang-sel-border i { width: 16px; height: 10px; border-radius: 2px; background: var(--line); }
.lang-sel-ru { background: linear-gradient(#fff 0 33%, #2b62d9 33% 66%, #d94b4b 66%) !important; }
.lang-sel-en { background: linear-gradient(90deg, #174a9b 0 45%, #fff 45% 55%, #d84949 55%) !important; }

.header-second { position: sticky; top: 70px; z-index: 49; }
.header-tools {
	position: relative;
	min-height: 62px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 0 0 18px 18px;
	box-shadow: var(--shadow);
}
.hmenu { min-height: 62px; overflow: hidden; }
.hmenu-list { gap: 8px; width: 100%; padding: 0 16px; }
.m-item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--text);
	font-weight: 600;
	white-space: nowrap;
}
.m-item:hover { background: var(--surface-2); color: var(--green); }
.qs-form { display: none; position: absolute; inset: 8px; background: var(--surface); }
.search-open .qs-form { display: flex; }
.qs-control { position: relative; width: 100%; }
.qs-input, .form-control, #story {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 0 50px 0 16px;
	outline: 0;
}
.qs-input:focus, .form-control:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,170,113,.12); }
.qs-btn, .qs-control .qs-toggle { position: absolute; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; }
.qs-btn { right: 44px; color: var(--green); }
.qs-control .qs-toggle { right: 4px; color: var(--muted); }

.content-5p { padding: 34px 0 0; }
.sect { margin-bottom: 42px; }
.sect-head { margin: 0 0 18px; font-size: 28px; font-weight: 700; }
.sect-head-link { display: inline-flex; align-items: center; gap: 12px; }
.sect-head-link .im { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.glist { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g8, .cards-v { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.app-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hscroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }

.card { position: relative; min-width: 0; }
.apprecom {
	background: var(--surface);
	border-radius: 0 0 26px 26px;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.card-wallpaper { position: relative; }
.card-wallpaper .cover { aspect-ratio: 304/164; overflow: hidden; background: var(--surface-2); }
.card-wallpaper .cover img { width: 100%; height: 100%; object-fit: cover; }
.appicon { display: block; position: relative; width: 144px; height: 144px; border-radius: 26px; overflow: hidden; background: var(--surface-2); box-shadow: 0 10px 24px rgba(22,33,44,.12); }
.appicon img { width: 100%; height: 100%; object-fit: cover; }
.apprecom .appicon { position: absolute; left: 20px; bottom: -35px; width: 80px; height: 80px; border: 4px solid var(--surface); border-radius: 18px; }
.card-row-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 90px;
	padding: 28px 20px 20px;
}
.card-row-btn .title, .appitem .title { display: block; color: var(--text); font-size: 21px; line-height: 1.2; }
.meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.meta-vers { margin-top: 8px; }
.card-bubble { display: inline-flex; align-items: center; min-height: 19px; padding: 0 5px; border-radius: 9px; background: #ffe38a; color: #7b5a00; font-style: normal; font-size: 13px; line-height: 19px; }
.card-status { color: var(--green); font-style: normal; }
.card-status:before { content: "• "; }
.appitem { min-width: 144px; }
.appitem .card-icon { margin-bottom: 12px; }
.appitem .cont { display: block; }
.appitem .title { color: var(--muted); font-size: 18px; min-height: 43px; }
.card-ratenum { position: absolute; right: 8px; top: 8px; display: none; }

.appview-hero { position: relative; padding: 34px 0 40px; overflow: hidden; }
.appview-intro { position: relative; z-index: 2; }
.appview-intro-cont {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 26px;
	align-items: start;
	background: var(--surface);
	border-radius: 26px;
	padding: 30px;
	box-shadow: var(--shadow);
}
.appview .title { margin: 0; font-size: 34px; line-height: 1.15; }
.appview-intro .title { grid-column: 2; grid-row: 1; }
.appview-intro .appicon { grid-column: 1; grid-row: 1 / span 3; width: 200px; height: 200px; border-radius: 36px; }
.appicon-label { position: absolute; left: 12px; bottom: 12px; min-height: 24px; padding: 0 8px; border-radius: 12px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; line-height: 24px; }
.appview-spec { grid-column: 2; display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.specs-item { min-height: 62px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.spec-label { display: block; color: var(--muted); font-size: 12px; }
.spec-cont { display: block; margin-top: 3px; font-weight: 700; }
.appview-foot { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.appview-likes, .appview-tools, .av-tool-list { display: flex; align-items: center; gap: 10px; }
.appview-likes button, .av-tool button, .dropdown-btn {
	min-height: 42px;
	border: 0;
	border-radius: var(--radius);
	background: var(--surface-2);
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
}
.like-plus { color: var(--green); }
.like-minus { color: var(--red); }
.dropdown { position: relative; }
.dropdown-box { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); z-index: 5; }
.dropdown.open .dropdown-box { display: block; }
.share-list { display: flex; gap: 8px; }
.share-btn, .soc-item { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--green); font-size: 12px; font-weight: 800; }
.appview-screens { position: relative; z-index: 2; margin-top: 24px; }
.screenshots { position: relative; }
.screenshots .hcarousel { display: flex; gap: 16px; overflow-x: auto; }
.screenshots p { display: contents; margin: 0; }
.screenshots a { flex: 0 0 auto; width: min(420px, 72vw); border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.screenshots img { width: 100%; height: 230px; object-fit: cover; }
.scroll-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.scroll-button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.appview-bg { position: absolute; right: -80px; bottom: -80px; opacity: .06; filter: blur(2px); }
.appview-bg img { width: 360px; height: 360px; object-fit: cover; }

.str { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.appview-info, .appview-download { margin-top: 34px; }
.appview-info-cont, .appview-info-rate, .download-box, .block-border, .sys-page-sect {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: var(--shadow);
}
.tab-toggle-head { padding: 12px; border-bottom: 1px solid var(--line); }
.tab-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; border: 0; border-radius: 14px; background: var(--surface-2); padding: 4px; }
.tab-toggle span { padding: 8px 18px; border-radius: 10px; font-weight: 700; }
.tab-toggle span:first-child { background: var(--surface); color: var(--green); }
.tab-container.tab-alt .tab-toggle span:first-child { background: transparent; color: inherit; }
.tab-container.tab-alt .tab-toggle span:last-child { background: var(--surface); color: var(--green); }
.tab-panel { display: block; padding: 24px; }
.tab-panel[data-tab="1"] { display: none; }
.tab-container.tab-alt .tab-panel[data-tab="0"] { display: none; }
.tab-container.tab-alt .tab-panel[data-tab="1"] { display: block; }
.text { color: var(--text); line-height: 1.72; }
.text p { margin: 0 0 1em; }
.text h2, .text h3 { margin: 1.4em 0 .7em; line-height: 1.2; }
.expand .expand-text { max-height: 240px; overflow: hidden; position: relative; }
.expand.expanded .expand-text { max-height: none; }
.expand-btn { margin: 0 24px 24px; border: 0; background: transparent; color: var(--green); font-weight: 800; }
.faq-list { display: grid; gap: 10px; }
.link-faq { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.rating-status { padding: 22px; }
.rstatus-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rstatus-num { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 28px; font-weight: 900; }
.rstatus-line { height: 8px; margin-top: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--green) calc(var(--rating-value) * 1%), var(--line) 0); }
.rating-status-info { margin: 0; padding: 0 22px 22px; list-style: none; }

.download-box-files .title { font-size: 28px; margin: 0 0 18px; }
.download-note { margin-bottom: 14px; }
.download-line { width: 100%; justify-content: space-between; min-height: 56px; margin: 10px 0; border-radius: 16px; }
.download-line .dropdown { order: 2; }
.download-line-link { flex: 1; text-align: center; color: #fff; font-weight: 800; }
.download-line-title { color: var(--text); font-weight: 400; word-break: break-all; }
.uppercase { text-transform: uppercase; }
.download-box-foot { position: relative; margin-top: 20px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.download-box-foot .title { margin: 0 0 6px; font-size: 20px; }
.download-shield { position: absolute; right: 14px; top: 14px; width: 54px; height: 54px; border-radius: 50%; background: rgba(23,170,113,.14); }

.comments .com-list { display: grid; gap: 16px; }
.com-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
.com-head { display: contents; }
.com-avatar img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.com-cloud { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.com-meta, .com-cloud-foot { color: var(--muted); font-size: 13px; }
.com-cloud-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.com-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.footer-5p { margin-top: 40px; padding: 36px 0; background: var(--surface); border-top: 1px solid var(--line); }
.footblock { margin-bottom: 22px; padding: 20px; }
.fmenu-list, .foot-info { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-info { justify-content: space-between; margin-top: 20px; color: var(--muted); }
.foot-logo .brand-mark { width: 32px; height: 32px; font-size: 20px; }
.scroll-up { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: inline-grid; place-items: center; }

.modal-overlay, .mobilemenu { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(8, 13, 18, .58); }
.modal-overlay.open, .mobilemenu.open { display: block; }
.modal-inner { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.modal { position: relative; display: grid; grid-template-columns: 320px 360px; max-width: calc(100vw - 30px); border-radius: 24px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.close-btn { position: absolute; right: 14px; top: 14px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); }
.modal-side-pic { position: relative; min-height: 520px; background: linear-gradient(160deg, #18ad73, #f3ce3b); }
.modal-side-pic .cover, .modal-side-pic img { width: 100%; height: 100%; object-fit: cover; }
.modal-logo { position: absolute; left: 22px; top: 22px; z-index: 1; }
.modal-cont-pad { padding: 52px 30px 30px; }
.form-list { display: grid; gap: 16px; }
.form-group-label { margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.form-submit, .btn-group { display: flex; gap: 10px; flex-wrap: wrap; }
.sep-text { height: 1px; background: var(--line); margin: 6px 0; }
.social-links { gap: 8px; justify-content: center; }
.user-box { right: 0; display: none; min-width: 230px; }
.user-box a { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: var(--radius); }
.user-box a:hover { background: var(--surface-2); }
.user-box-head img { width: 36px; height: 36px; border-radius: 50%; }
.dropdown.open .user-box { display: block; }

.mobilemenu-cont { width: min(360px, 86vw); min-height: 100%; background: var(--surface); padding: 70px 18px 18px; }
.mmenu-list, .mmenu-sublist { display: grid; gap: 6px; }
.mmenu-sublist { margin-top: 24px; color: var(--muted); }
.ms-item { display: block; padding: 8px 0; }

.pageform { min-height: 100vh; display: grid; place-items: center; padding: 30px; position: relative; overflow: hidden; }
.pageform-in { position: relative; z-index: 1; width: min(520px, 100%); }
.pageform-logo { display: inline-flex; align-items: center; margin-bottom: 20px; }
.pform-box { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.pform-box-head { height: 90px; display: grid; place-items: center; background: var(--surface-2); }
.pform-cont { padding: 30px; }
.pageform-bg { position: absolute; inset: auto -10% -35% auto; width: 520px; height: 520px; border-radius: 50%; background: rgba(23,170,113,.16); }
.pageform-copyright { margin-top: 16px; color: var(--muted); text-align: center; }
.login_check { display: flex; gap: 8px; }
.login_check .form-control { flex: 1; }

.sys-page-sect { padding: 24px; }
.search-box { display: flex; gap: 10px; }
.search-box-field { flex: 1; }
.search-extended select, .search-extended input[type="text"] { max-width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.search-box-info { margin-top: 16px; color: var(--muted); }
.search-item { display: flex; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); }
.search-item-img img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.search-item .title { display: block; font-size: 18px; font-weight: 800; }
.search-item-cat, .search-item .desc { display: block; color: var(--muted); }

.navigation { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0; }
.page_next-prev { display: flex; gap: 8px; }
.page_prev a, .page_next a, .pages a, .pages span {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	border-radius: 19px;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 0 12px;
}
.pages span { background: var(--green); color: #fff; border-color: var(--green); }

@media (max-width: 1180px) {
	.g4 { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
	.g8, .cards-v, .app-list { display: flex; }
	.appitem { flex: 0 0 144px; }
	.appview-spec { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
	.str { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.wrp { width: min(100% - 28px, var(--wrp)); }
	.header-first > .wrp { height: 62px; }
	.header-second { top: 62px; }
	.brand-text { display: none; }
	.lang-sel { display: none; }
	.hmenu-list { overflow-x: auto; }
	.g4 { display: flex; }
	.apprecom { flex: 0 0 82vw; }
	.sect-head { font-size: 24px; }
	.appview-intro-cont { grid-template-columns: 96px minmax(0, 1fr); padding: 18px; border-radius: 18px; gap: 16px; }
	.appview .title { font-size: 26px; }
	.appview-intro .appicon { width: 96px; height: 96px; border-radius: 22px; }
	.appview-spec { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.appview-foot { grid-column: 1 / -1; align-items: stretch; flex-direction: column; }
	.appview-tools { flex-direction: column; align-items: stretch; }
	.av-tool-list { flex-wrap: wrap; }
	.modal { grid-template-columns: 1fr; }
	.modal-side-pic { display: none; }
	.form-grid, .search-box { grid-template-columns: 1fr; display: grid; }
	.com-item { grid-template-columns: 42px minmax(0, 1fr); }
	.com-avatar img { width: 42px; height: 42px; }
}
