/*
 * Хаб сети complainsite.com — выбор страны.
 * Токены те же, что в cs-redesign.css, чтобы хаб и страны выглядели одним сайтом.
 */

:root {
	--cs-ink: #0e1116;
	--cs-ink-2: rgba(14, 17, 22, .76);
	--cs-ink-3: rgba(14, 17, 22, .45);
	--cs-line: #e8ebf2;
	--cs-bg: #ffffff;
	--cs-soft: #f3f6fb;
	--cs-blue: #2f5bea;
	--cs-blue-soft: #e7edff;
	--cs-amber: #ffd23f;
	--cs-r-lg: 26px;
	--cs-r-md: 18px;
	--cs-wrap: 1220px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.cs-hub {
	margin: 0;
	background: var(--cs-bg);
	color: var(--cs-ink);
	font-family: 'Onest', 'Segoe UI', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.cs-hub a {
	color: inherit;
	text-decoration: none;
}

.cs-hub__wrap {
	max-width: var(--cs-wrap);
	margin: 0 auto;
	padding: 0 16px;
}

.cs-hub__header {
	padding: 22px 0;
	border-bottom: 1px solid var(--cs-line);
}

.cs-hub__logo {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.cs-hub__logo-accent {
	color: var(--cs-blue);
}

.cs-hub__hero {
	padding: 64px 0 40px;
	background: linear-gradient(180deg, var(--cs-soft) 0%, var(--cs-bg) 100%);
}

.cs-hub__title {
	max-width: 820px;
	margin: 0 0 18px;
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.03em;
}

.cs-hub__lead {
	max-width: 720px;
	margin: 0;
	color: var(--cs-ink-2);
	font-size: 19px;
}

.cs-hub__stats {
	display: inline-block;
	margin: 24px 0 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--cs-amber);
	font-weight: 600;
}

.cs-hub__countries,
.cs-hub__how {
	padding: 40px 0;
}

.cs-hub__h2 {
	margin: 0 0 22px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.cs-hub__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.cs-country {
	border: 1px solid var(--cs-line);
	border-radius: var(--cs-r-lg);
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}

.cs-country:hover {
	border-color: var(--cs-blue);
	box-shadow: 0 10px 30px rgba(47, 91, 234, .12);
}

.cs-country__head {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 14px;
	align-items: center;
	padding: 22px;
	background: var(--cs-soft);
}

.cs-country__code {
	grid-row: span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--cs-blue);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: .04em;
}

.cs-country__name {
	font-size: 22px;
	font-weight: 700;
}

.cs-country__meta {
	color: var(--cs-ink-3);
	font-size: 14px;
}

.cs-country__list {
	margin: 0;
	padding: 10px 22px 18px;
	list-style: none;
}

.cs-country__item {
	border-bottom: 1px solid var(--cs-line);
}

.cs-country__item:last-child {
	border-bottom: 0;
}

.cs-country__link {
	display: block;
	padding: 9px 0;
	color: var(--cs-ink-2);
}

.cs-country__link:hover {
	color: var(--cs-blue);
}

.cs-hub__steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: cs-step;
}

.cs-hub__step {
	position: relative;
	padding: 56px 22px 22px;
	border-radius: var(--cs-r-md);
	background: var(--cs-soft);
	color: var(--cs-ink-2);
	counter-increment: cs-step;
}

.cs-hub__step::before {
	content: counter(cs-step);
	position: absolute;
	top: 18px;
	left: 22px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--cs-blue);
	color: #fff;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}

.cs-hub__step-title {
	display: block;
	margin-bottom: 6px;
	color: var(--cs-ink);
	font-weight: 700;
}

.cs-hub__footer {
	margin-top: 24px;
	padding: 28px 0 40px;
	border-top: 1px solid var(--cs-line);
	color: var(--cs-ink-3);
	font-size: 14px;
}

.cs-hub__note,
.cs-hub__copy {
	margin: 0 0 6px;
}

@media (max-width: 600px) {
	.cs-hub__hero {
		padding: 40px 0 28px;
	}

	.cs-hub__lead {
		font-size: 17px;
	}
}
