:root {
	--green: #009c3b;
	--green-dark: #00662a;
	--green-deep: #04301a;
	--yellow: #ffdf00;
	--yellow-soft: #fff6bf;
	--blue: #002776;
	--text: #14201a;
	--muted: #5b6b62;
	--line: #e3e9e5;
	--bg: #ffffff;
	--surface: #f5f8f6;
	--radius: 16px;
	--max: 1100px;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wrapper {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}

.wrapper > .content {
	flex: 1 0 auto;
}

.footer {
	flex-shrink: 0;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--green-dark);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--blue);
}

.container {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--green-deep);
	border-bottom: 3px solid var(--yellow);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.header__logo img {
	width: 120px;
	height: 60px;
	object-fit: contain;
}

.lang-switch {
	position: relative;
}

.lang-switch summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 223, 0, .5);
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.lang-switch summary::-webkit-details-marker {
	display: none;
}

.lang-switch summary::after {
	content: '▾';
	color: var(--yellow);
	transition: transform .2s;
}

.lang-switch[open] summary::after {
	transform: rotate(180deg);
}

.lang-switch summary:hover,
.lang-switch[open] summary {
	background: rgba(255, 255, 255, .08);
}

.lang-switch__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 220px;
	margin: 0;
	padding: 6px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
	list-style: none;
}

.lang-switch__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--text);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.lang-switch__list a:hover {
	background: var(--surface);
	color: var(--green-dark);
}

.lang-switch__list a[aria-current="true"] {
	background: var(--yellow-soft);
	color: var(--blue);
}

/* Intro / hero */
.intro {
	position: relative;
	overflow: hidden;
	padding: 56px 0 64px;
	color: #fff;
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 223, 0, .18), transparent 40%),
		radial-gradient(circle at 10% 90%, rgba(0, 39, 118, .55), transparent 45%),
		linear-gradient(135deg, var(--green-deep) 0%, #075a2f 60%, var(--green-dark) 100%);
}

.intro__title {
	margin: 0 0 18px;
	font-size: clamp(30px, 4.4vw, 46px);
	line-height: 1.15;
	font-weight: 800;
}

.intro__text {
	margin: 0;
	font-size: 18px;
	color: rgba(255, 255, 255, .88);
}

.intro__author {
	display: flex;
	align-items: center;
	gap: 28px;
}

.intro__avatar {
	flex: 0 0 auto;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	border: 4px solid var(--yellow);
	object-fit: cover;
}

.intro--404 {
	display: flex;
	align-items: center;
	flex: 1 0 auto;
	text-align: center;
	padding: 90px 0;
}

.intro--404 .intro__title,
.intro--404 .intro__text {
	margin-left: auto;
	margin-right: auto;
}

.intro--404 .btn {
	margin-top: 28px;
}

.intro__code {
	margin: 0;
	font-size: clamp(80px, 14vw, 140px);
	line-height: 1;
	font-weight: 800;
	color: var(--yellow);
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 14px;
	color: rgba(255, 255, 255, .7);
}

.breadcrumb a {
	color: var(--yellow);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: #fff;
}

/* Content */
.content {
	padding: 0 0 64px;
}

.author-strip {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin: -32px 0 32px;
	padding: 18px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
	box-shadow: 0 16px 40px rgba(4, 48, 26, .08);
}

.author-strip__person {
	display: flex;
	align-items: center;
	gap: 16px;
}

.author-strip__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 3px solid var(--yellow);
	object-fit: cover;
}

.author-strip__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--green);
}

.author-strip__name {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--text);
	text-decoration: none;
}

.author-strip__name:hover {
	color: var(--green-dark);
}

.author-strip__role {
	font-size: 15px;
	color: var(--muted);
}

.author-strip__date {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--yellow-soft);
	font-size: 14px;
	font-weight: 800;
	color: var(--blue);
}

.content > .container > .article:first-child {
	padding-top: 40px;
}

.article p,
.article ul,
.article ol {
	margin: 0 0 18px;
}

.article ul {
	padding-left: 0;
	list-style: none;
}

.article ul li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 28px;
}

.article ul li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: .55em;
	width: 12px;
	height: 12px;
	transform: rotate(45deg);
	border-radius: 2px;
	background: var(--yellow);
	box-shadow: inset 0 0 0 3px var(--green);
}

.heading {
	margin: 44px 0 16px;
	font-size: clamp(24px, 3vw, 31px);
	line-height: 1.25;
	font-weight: 800;
	color: var(--green-deep);
	scroll-margin-top: 96px;
}

.heading::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	margin-top: 10px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--green) 0 50%, var(--yellow) 50% 100%);
}

.heading--sub {
	margin: 32px 0 12px;
	font-size: clamp(20px, 2.4vw, 23px);
	color: var(--text);
}

.heading--sub::after {
	display: none;
}

.faq__item {
	margin: 0 0 10px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.faq__question {
	position: relative;
	padding: 16px 56px 16px 20px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question::after {
	content: '+';
	position: absolute;
	top: 50%;
	right: 16px;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--green-deep);
	font-size: 20px;
	line-height: 28px;
	text-align: center;
}

.faq__item[open] .faq__question {
	color: var(--green-dark);
}

.faq__item[open] .faq__question::after {
	content: '–';
}

.faq__answer {
	padding: 0 20px 18px;
	color: var(--muted);
}

.faq__answer p {
	margin: 0;
}

.article-figure {
	margin: 0 0 24px;
}

.article-figure img {
	width: auto;
	margin: 0 auto;
	border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(4, 48, 26, .1);
}

/* TOC */
.toc {
	margin: 0 0 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.toc summary {
	padding: 14px 20px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.toc summary::-webkit-details-marker {
	display: none;
}

.toc summary::after {
	content: '▾';
	float: right;
	color: var(--green);
	transition: transform .2s;
}

.toc[open] summary::after {
	transform: rotate(180deg);
}

.toc ol {
	margin: 0;
	padding: 0 20px 18px 44px;
}

.toc li {
	margin-bottom: 6px;
}

/* Tables */
.table {
	margin: 0 0 24px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	-webkit-overflow-scrolling: touch;
}

.table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.table th,
.table td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

.table th {
	background: var(--green-deep);
	color: #fff;
	font-weight: 800;
	white-space: nowrap;
}

.table tbody tr:nth-child(even) {
	background: var(--surface);
}

.table tbody tr:last-child td {
	border-bottom: 0;
}

.table td:first-child {
	font-weight: 800;
	color: var(--green-deep);
}

.table--ranking table {
	min-width: 760px;
}

/* Rating */
.rating {
	margin: 0 0 40px;
}

.rating .heading {
	margin-top: 0;
}

.rating__list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rating__card {
	position: relative;
	display: grid;
	grid-template-columns: 180px minmax(170px, 1fr) minmax(200px, 1.4fr) 190px;
	align-items: center;
	gap: 24px;
	padding: 20px 24px;
	border: 2px solid var(--line);
	border-radius: 20px;
	background: linear-gradient(135deg, #fff 0%, var(--surface) 100%);
	box-shadow: 0 10px 30px rgba(4, 48, 26, .06);
}

.rating__card--top {
	border-color: var(--yellow);
	background: linear-gradient(135deg, #fffdf0 0%, var(--yellow-soft) 100%);
	box-shadow: 0 16px 40px rgba(255, 223, 0, .25);
}

.rating__pos {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-weight: 800;
	box-shadow: 0 4px 10px rgba(0, 156, 59, .35);
}

.rating__card--top .rating__pos {
	background: var(--yellow);
	color: var(--green-deep);
}

.rating__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	border-radius: 14px;
	overflow: hidden;
	border: 2px solid rgba(4, 48, 26, .08);
}

.rating__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rating__name {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--text);
}

.rating__stars {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.rating__stars-icons {
	font-size: 20px;
	letter-spacing: 2px;
	background: linear-gradient(90deg, #f5b301 var(--rating), #cfd8d3 var(--rating));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rating__stars-value {
	font-weight: 800;
	color: var(--muted);
}

.rating__bonus-label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--green);
}

.rating__bonus-value {
	display: block;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--blue);
}

.rating__actions {
	display: grid;
	gap: 10px;
}

.rating__btn {
	display: block;
	padding: 11px 16px;
	border-radius: 12px;
	font-weight: 800;
	text-align: center;
	cursor: pointer;
	transition: filter .15s, background .15s;
}

.rating__btn--play {
	background: linear-gradient(180deg, #12b34c 0%, var(--green-dark) 100%);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0, 156, 59, .3);
}

.rating__btn--play:hover {
	filter: brightness(1.08);
}

.rating__btn--review {
	border: 2px solid var(--green);
	background: #fff;
	color: var(--green-dark);
}

.rating__btn--review:hover {
	background: var(--surface);
}

/* Author bio */
.author-bio {
	display: flex;
	gap: 20px;
	margin-top: 48px;
	padding: 24px;
	border-left: 5px solid var(--green);
	border-radius: var(--radius);
	background: var(--surface);
}

.author-bio__avatar {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.author-bio__name {
	font-size: 20px;
	font-weight: 800;
}

.author-bio__name a {
	color: var(--text);
	text-decoration: none;
}

.author-bio__role {
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--muted);
}

.author-bio p {
	margin: 0;
}

/* Buttons & forms */
.btn {
	display: inline-block;
	padding: 13px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--yellow);
	color: var(--green-deep);
	font: inherit;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}

.btn:hover {
	color: var(--green-deep);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(255, 223, 0, .35);
}

.contact-form {
	display: grid;
	gap: 18px;
	max-width: 640px;
	margin-top: 28px;
}

.contact-form__field {
	display: grid;
	gap: 6px;
}

.contact-form label {
	font-weight: 700;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #c8d4cd;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	color: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--green);
	outline-offset: 1px;
	border-color: var(--green);
}

.contact-form [aria-invalid="true"] {
	border-color: #c62828;
}

.contact-form__field--check label {
	font-weight: 400;
}

.contact-form__error {
	font-size: 14px;
	color: #c62828;
}

.contact-form__hp {
	position: absolute;
	left: -9999px;
}

.contact-form .btn {
	justify-self: start;
}

.form-notice {
	margin: 24px 0;
	padding: 16px 20px;
	border-radius: 12px;
	font-weight: 700;
}

.form-notice--ok {
	background: #e3f5e9;
	color: var(--green-dark);
}

.form-notice--error {
	background: #fdecea;
	color: #b71c1c;
}

/* Footer */
.footer {
	padding: 40px 0 28px;
	background: #061b10;
	color: rgba(255, 255, 255, .75);
	font-size: 14px;
}

.footer a {
	color: #fff;
	text-decoration: none;
}

.footer a:hover {
	color: var(--yellow);
}

.footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer__logo img {
	width: 120px;
	height: 60px;
	object-fit: contain;
}

.footer__badges {
	display: flex;
	align-items: center;
	gap: 14px;
}

.footer__badge-18 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 3px solid #e53935;
	border-radius: 50%;
	font-weight: 800;
	color: #fff;
}

.footer__badge-link {
	padding: 8px 16px;
	border: 1px solid rgba(255, 223, 0, .5);
	border-radius: 999px;
	font-weight: 700;
}

.footer__desc {
	max-width: 880px;
	margin: 20px 0;
}

.footer__partners {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 28px;
	margin: 8px 0 24px;
}

.footer__partners img {
	width: auto;
	height: 42px;
	opacity: .9;
	transition: opacity .2s;
}

.footer__partners a:hover img {
	opacity: 1;
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin: 0;
	padding: 20px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	list-style: none;
}

/* Responsive */
@media (max-width: 960px) {
	.rating__card {
		grid-template-columns: 160px 1fr;
		gap: 16px 20px;
	}

	.rating__bonus,
	.rating__actions {
		grid-column: 1 / -1;
	}

	.rating__actions {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.rating__card {
		grid-template-columns: 1fr;
		justify-items: center;
		padding: 18px 16px;
		text-align: center;
	}

	.rating__logo {
		width: 150px;
		height: 150px;
	}

	.rating__stars {
		justify-content: center;
	}

	.rating__actions {
		width: 100%;
	}

	.intro {
		padding: 40px 0 56px;
	}

	.intro__text {
		font-size: 16px;
	}

	.intro__author {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.intro__avatar {
		width: 120px;
		height: 120px;
	}

	.author-strip {
		padding: 16px;
	}

	.author-bio {
		flex-direction: column;
	}
}
