:root {
	--tbm-yellow: #fdb813;
	--tbm-black: #111111;
	--tbm-white: #ffffff;
	--tbm-accent: #f5f5f5;
	--tbm-text: #242424;
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--tbm-text);
	font-family: Inter, Arial, sans-serif;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: Poppins, Inter, Arial, sans-serif;
	font-weight: 700;
	letter-spacing: 0;
}

a {
	color: var(--tbm-black);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(253, 184, 19, 0.7);
	outline-offset: 3px;
}

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

.tbm-skip-link {
	background: var(--tbm-yellow);
	color: var(--tbm-black);
	font-weight: 800;
	left: 12px;
	padding: 10px 14px;
	position: fixed;
	top: -80px;
	z-index: 100000;
}

.tbm-skip-link:focus {
	top: 12px;
}

.tbm-site-header {
	background: rgba(17, 17, 17, 0.88);
	backdrop-filter: blur(14px);
	color: var(--tbm-white);
	left: 0;
	position: sticky;
	right: 0;
	top: 0;
	z-index: 9990;
}

.tbm-topbar,
.tbm-header-inner {
	align-items: center;
	display: flex;
	gap: 18px;
	margin: 0 auto;
	max-width: 1180px;
	padding-left: 22px;
	padding-right: 22px;
}

.tbm-topbar {
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	justify-content: flex-end;
	min-height: 36px;
}

.tbm-topbar a,
.tbm-site-header a {
	color: var(--tbm-white);
	text-decoration: none;
}

.tbm-header-inner {
	min-height: 74px;
}

.tbm-logo {
	align-items: center;
	display: inline-flex;
	font-family: Poppins, Inter, Arial, sans-serif;
	font-weight: 800;
	gap: 10px;
	line-height: 1.1;
	max-width: 230px;
}

.tbm-logo-mark {
	background: var(--tbm-yellow);
	border-radius: 5px;
	display: inline-block;
	flex: 0 0 34px;
	height: 34px;
	position: relative;
	width: 34px;
}

.tbm-logo-mark::after {
	background: var(--tbm-black);
	content: "";
	height: 8px;
	left: 7px;
	position: absolute;
	top: 13px;
	width: 20px;
}

.tbm-primary-nav {
	flex: 1;
}

.tbm-menu,
.tbm-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbm-menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	justify-content: center;
}

.tbm-menu a {
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	min-height: 48px;
	align-items: center;
}

.tbm-header-book,
.tbm-newsletter button {
	align-items: center;
	background: var(--tbm-yellow);
	border: 2px solid var(--tbm-yellow);
	border-radius: 8px;
	color: var(--tbm-black) !important;
	display: inline-flex;
	font-weight: 900;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
}

.tbm-header-book:hover,
.tbm-newsletter button:hover {
	background: var(--tbm-white);
	border-color: var(--tbm-white);
}

.tbm-site-footer {
	background: var(--tbm-black);
	color: rgba(255, 255, 255, 0.82);
	padding: 60px max(22px, calc((100vw - 1180px) / 2)) 24px;
}

.tbm-footer-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
}

.tbm-site-footer h2 {
	color: var(--tbm-white);
	font-size: 18px;
	margin: 0 0 14px;
}

.tbm-site-footer a {
	color: var(--tbm-white);
}

.tbm-footer-menu a {
	display: inline-flex;
	min-height: 34px;
}

.tbm-newsletter {
	display: grid;
	gap: 10px;
}

.tbm-newsletter input {
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	min-height: 48px;
	padding: 0 12px;
}

.tbm-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-top: 38px;
	padding-top: 22px;
}

.tbm-footer-bottom p {
	margin: 0;
}

.tbm-footer-bottom a + a {
	margin-left: 14px;
}

@media (max-width: 980px) {
	.tbm-topbar {
		display: none;
	}

	.tbm-header-inner {
		align-items: flex-start;
		flex-direction: column;
		padding-bottom: 14px;
		padding-top: 14px;
	}

	.tbm-menu {
		justify-content: flex-start;
	}

	.tbm-header-book {
		width: 100%;
	}

	.tbm-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tbm-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.tbm-menu a {
		background: rgba(255, 255, 255, 0.08);
		border-radius: 8px;
		justify-content: center;
		padding: 0 8px;
		text-align: center;
	}

	.tbm-footer-grid,
	.tbm-footer-bottom {
		display: grid;
		grid-template-columns: 1fr;
	}
}
