/* Витрина продуктов.
   Посетитель приходит с вопросом «есть ли тут что-то для меня», поэтому первым
   идёт превью и задача, которую продукт решает, а не название и не обещание.
   Палитра общая с VidQuiz: почти-чёрный и янтарный. */
:root {
	--ink: #111111;
	--paper: #FAF8F4;
	--amber: #FFCF51;
	--muted: #6E6A63;
	--line: #E3DFD6;
	--card: #FFFFFF;
	--shot: #EFEBE3;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #F2EFE9; --paper: #131211; --amber: #FFCF51;
		--muted: #9C978D; --line: #2C2A26; --card: #1B1A17; --shot: #201F1B;
	}
}
* { box-sizing: border-box; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }

.top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; }
.top .who { font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.lang button {
	background: none; border: none; font: inherit; font-size: 14px; color: var(--muted);
	cursor: pointer; padding: 0 3px; text-decoration: underline;
}
.lang button.current { color: var(--ink); font-weight: 600; text-decoration: none; }

header { padding: 30px 0 8px; }
h1 {
	font-size: clamp(32px, 5.2vw, 54px); line-height: 1.04; margin: 0 0 18px;
	letter-spacing: -0.035em; font-weight: 700; max-width: 20ch;
}
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--amber) 62%); padding: 0 2px; }
header p { color: var(--muted); font-size: 18px; max-width: 58ch; margin: 0; }

h2 {
	font-size: 13px; text-transform: uppercase; letter-spacing: 0.11em;
	color: var(--muted); font-weight: 600; margin: 54px 0 20px;
	padding-bottom: 9px; border-bottom: 2px solid var(--ink);
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

a.card {
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
	background: var(--card); border: 1px solid var(--line); border-radius: 10px;
	overflow: hidden; transition: transform .14s, border-color .14s;
}
a.card:hover { transform: translateY(-2px); border-color: var(--ink); }
a.card .shot {
	aspect-ratio: 16 / 10; background: var(--shot); overflow: hidden;
	border-bottom: 1px solid var(--line);
}
a.card .shot img {
	width: 100%; height: 100%; object-fit: cover; object-position: top center;
	display: block;
}
a.card .body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
a.card .name { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
a.card:hover .name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a.card .about { color: var(--muted); font-size: 15px; line-height: 1.45; flex: 1; }
a.card .host { font-size: 12.5px; color: var(--muted); opacity: .8; font-variant-numeric: tabular-nums; }

/* Боты выглядят иначе: у них нет страницы, которую можно показать, зато есть
   лицо в телеграме — оно и работает превью. */
.bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
a.bot {
	display: grid; grid-template-columns: 62px 1fr; gap: 15px; align-items: start;
	text-decoration: none; color: inherit; padding: 16px;
	background: var(--card); border: 1px solid var(--line); border-radius: 10px;
	transition: border-color .14s;
}
a.bot:hover { border-color: var(--ink); }
a.bot img { width: 62px; height: 62px; border-radius: 50%; display: block; background: var(--shot); }
a.bot .name { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
a.bot:hover .name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a.bot .about { color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.45; }
a.bot .host { font-size: 12.5px; color: var(--muted); opacity: .8; margin-top: 5px; }

footer { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer a { color: var(--ink); }
