/*!
Theme Name: decoder
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Decoder custom theme
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: decoder
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--decoder-container: 1280px;
	--decoder-bg-primary: #0b0f14;
	--decoder-bg-secondary: #212a36;
	--decoder-bg-elevated: #212730;
	--decoder-bg-overlay: #090d13;
	--decoder-border-default: #303b49;
	--decoder-border-strong: #4b545f;
	--decoder-text-primary: #f5f7fa;
	--decoder-text-secondary: #cbd1d9;
	--decoder-text-tertiary: #8e99a6;
	--decoder-text-muted: #66717e;
	--decoder-accent: #3b82f6;
	--decoder-accent-hover: #60a5fa;
	--decoder-accent-active: #2563eb;
	--decoder-white: #ffffff;
	--decoder-font: "Inter", Arial, Helvetica, sans-serif;
}

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

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--decoder-bg-primary);
	color: var(--decoder-text-secondary);
	font-family: var(--decoder-font);
	font-size: 15px;
	line-height: 23px;
}

body.decoder-menu-open {
	overflow: hidden;
}

button,
input {
	font: inherit;
}

button {
	border: 0;
	padding: 0;
	background: transparent;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.site {
	min-height: 100vh;
	background: var(--decoder-bg-primary);
}

.decoder-container {
	width: min(100% - 160px, var(--decoder-container));
	margin-inline: auto;
}

.decoder-button,
.decoder-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.decoder-button {
	padding: 0 24px;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
}

.decoder-button--primary {
	background: var(--decoder-accent);
	color: var(--decoder-white);
}

.decoder-button--primary:hover {
	background: var(--decoder-accent-hover);
}

.decoder-button--primary:active {
	background: var(--decoder-accent-active);
}

.decoder-button--secondary {
	border: 1px solid var(--decoder-text-secondary);
	color: var(--decoder-text-secondary);
}

.decoder-button--secondary:hover {
	background: var(--decoder-text-secondary);
	color: var(--decoder-bg-primary);
}

.decoder-icon-button {
	width: 40px;
	flex: 0 0 40px;
	border: 1px solid var(--decoder-text-secondary);
}

.decoder-icon-button--filled {
	border-color: var(--decoder-bg-elevated);
	background: var(--decoder-bg-elevated);
}

.decoder-icon-button img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.decoder-icon-button:hover {
	border-color: var(--decoder-accent-hover);
}

.decoder-header {
	background: var(--decoder-bg-primary);
}

.decoder-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
}

.decoder-header__logo {
	display: block;
	flex: 0 0 auto;
}

.decoder-header__logo-desktop {
	width: 253px;
	height: 46px;
}

.decoder-header__logo-mobile,
.decoder-header__menu-toggle,
.decoder-header__search--mobile {
	display: none;
}

.decoder-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}

.decoder-language {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	color: var(--decoder-text-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
}

.decoder-language span {
	display: block;
	width: 1px;
	height: 16px;
	background: var(--decoder-border-strong);
	transform: rotate(1.7deg);
}

.decoder-language .is-active {
	color: var(--decoder-text-secondary);
}

.decoder-category-nav {
	background: var(--decoder-bg-elevated);
}

.decoder-category-nav__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 4px 0;
}

.decoder-category-nav__list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 50px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.decoder-category-nav a {
	display: inline-flex;
	align-items: center;
	height: 40px;
	color: var(--decoder-white);
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	white-space: nowrap;
}

.decoder-category-nav a:hover {
	color: var(--decoder-accent-hover);
}

.decoder-desktop-menu {
	position: fixed;
	inset: 0;
	z-index: 999;
	visibility: hidden;
	background: rgba(0, 0, 0, 0.4);
	pointer-events: none;
	opacity: 0;
	transition: opacity 180ms ease, visibility 180ms ease;
}

.decoder-desktop-menu.is-open {
	visibility: visible;
	pointer-events: auto;
	opacity: 1;
}

.decoder-desktop-menu__panel {
	width: 100%;
	min-height: 528px;
	padding: 60px 0;
	background: var(--decoder-bg-overlay);
	color: var(--decoder-text-secondary);
	transform: translateY(-12px);
	transition: transform 180ms ease;
}

.decoder-desktop-menu.is-open .decoder-desktop-menu__panel {
	transform: translateY(0);
}

.decoder-desktop-menu__top {
	display: flex;
	align-items: center;
	gap: 160px;
	width: 100%;
}

.decoder-desktop-menu__search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.decoder-desktop-menu__search input {
	width: 100%;
	height: 40px;
	border: 1px solid var(--decoder-text-muted);
	border-radius: 0;
	background: transparent;
	color: var(--decoder-text-primary);
	padding: 10px 12px;
	font-size: 15px;
	line-height: 23px;
	outline: none;
}

.decoder-desktop-menu__search input::placeholder {
	color: var(--decoder-text-muted);
	opacity: 1;
}

.decoder-desktop-menu__content {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	margin-top: 120px;
}

.decoder-desktop-menu__nav {
	display: flex;
	align-items: flex-start;
	gap: 80px;
	flex: 0 0 424px;
}

.decoder-desktop-menu__aside {
	display: flex;
	flex-direction: column;
	gap: 60px;
	width: 459px;
	flex: 0 0 459px;
}

.decoder-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1000;
	visibility: hidden;
	pointer-events: none;
}

.decoder-mobile-menu.is-open {
	visibility: visible;
	pointer-events: auto;
}

.decoder-mobile-menu__panel {
	width: 360px;
	max-width: 100%;
	min-height: 100vh;
	max-height: 100vh;
	overflow-y: auto;
	padding: 10px 12px 24px;
	background: var(--decoder-bg-overlay);
	color: var(--decoder-text-secondary);
	transform: translateX(-100%);
	transition: transform 180ms ease;
}

.decoder-mobile-menu.is-open .decoder-mobile-menu__panel {
	transform: translateX(0);
}

.decoder-mobile-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.decoder-mobile-menu__search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.decoder-mobile-menu__search input,
.decoder-newsletter input {
	width: 100%;
	height: 40px;
	border: 1px solid var(--decoder-text-muted);
	border-radius: 0;
	background: transparent;
	color: var(--decoder-text-primary);
	padding: 10px 12px;
	font-size: 15px;
	line-height: 23px;
	outline: none;
}

.decoder-mobile-menu__search input::placeholder,
.decoder-newsletter input::placeholder {
	color: var(--decoder-text-muted);
	opacity: 1;
}

.decoder-mobile-menu__nav {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.decoder-mobile-menu__buttons {
	display: flex;
	gap: 16px;
	margin-top: 24px;
}

.decoder-mobile-menu__buttons .decoder-button {
	flex: 1 1 0;
	padding-inline: 12px;
}

.decoder-mobile-menu__social {
	margin-top: 24px;
}

.decoder-mobile-menu__social p,
.decoder-footer__social p,
.decoder-footer__newsletter p {
	margin: 0;
	color: var(--decoder-white);
	font-size: 21px;
	font-weight: 600;
	line-height: 30px;
}

.decoder-mobile-menu__social p {
	font-size: 15px;
	line-height: 22px;
}

.decoder-footer {
	background: var(--decoder-bg-elevated);
	color: var(--decoder-text-secondary);
	padding: 50px 0 40px;
}

.decoder-footer__intro {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	margin-bottom: 80px;
}

.decoder-footer__intro p {
	width: 567px;
	margin: 0;
	color: var(--decoder-text-primary);
	font-size: 21px;
	font-weight: 600;
	line-height: 30px;
}

.decoder-footer__content {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 80px;
	min-height: 240px;
	margin-bottom: 40px;
}

.decoder-footer__menus {
	display: flex;
	gap: 100px;
	flex: 1 1 auto;
}

.decoder-footer__nav-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.decoder-footer__nav-title {
	margin: 0;
	color: var(--decoder-text-primary);
	font-size: 18px;
	font-weight: 600;
	line-height: 23px;
	white-space: nowrap;
}

.decoder-menu-list {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	list-style: none;
	margin: 0;
	padding: 0;
}

.decoder-menu-list a {
	display: flex;
	align-items: center;
	min-height: 36px;
	color: var(--decoder-text-secondary);
	font-size: 15px;
	font-weight: 400;
	line-height: 23px;
}

.decoder-menu-list a:hover {
	color: var(--decoder-accent-hover);
}

.decoder-footer__aside {
	display: flex;
	flex-direction: column;
	gap: 60px;
	width: 459px;
	flex: 0 0 459px;
}

.decoder-footer__social,
.decoder-footer__newsletter {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.decoder-social {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}

.decoder-newsletter {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.decoder-newsletter input {
	flex: 1 1 auto;
	min-width: 0;
}

.decoder-newsletter .decoder-button {
	border: 0;
}

.decoder-footer__policy {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--decoder-border-strong);
	color: var(--decoder-text-tertiary);
	font-size: 15px;
	font-weight: 400;
	line-height: 23px;
}

.decoder-footer__policy p {
	margin: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	word-wrap: normal !important;
	border: 0;
}

.screen-reader-text:focus {
	top: 5px;
	left: 5px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto !important;
	background: var(--decoder-text-primary);
	color: var(--decoder-bg-primary);
	font-size: 14px;
	font-weight: 700;
	line-height: normal;
}

@media (max-width: 900px) {
	.decoder-category-nav,
	.decoder-desktop-menu {
		display: none;
	}

	.decoder-container {
		width: calc(100% - 24px);
	}

	.decoder-header__inner {
		min-height: 54px;
	}

	.decoder-header__menu-toggle {
		display: inline-flex;
	}

	.decoder-header__logo-desktop,
	.decoder-header__desktop-menu,
	.decoder-header__search--desktop,
	.decoder-header__submit,
	.decoder-header__actions .decoder-language {
		display: none;
	}

	.decoder-header__search--mobile {
		display: inline-flex;
	}

	.decoder-header__logo-mobile {
		display: block;
		width: 99px;
		height: 40px;
	}

	.decoder-header__actions {
		gap: 14px;
	}

	.decoder-header__actions .decoder-button {
		padding-inline: 16px;
	}

	.decoder-footer {
		padding: 36px 0 24px;
	}

	.decoder-footer__intro {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		margin-bottom: 24px;
	}

	.decoder-footer__intro p {
		width: 100%;
		font-size: 15px;
		line-height: 22px;
	}

	.decoder-footer__content {
		flex-direction: column;
		gap: 24px;
		min-height: 0;
		margin-bottom: 24px;
	}

	.decoder-footer__menus {
		flex-direction: column;
		gap: 24px;
	}

	.decoder-footer__nav-block {
		gap: 4px;
	}

	.decoder-footer__nav-title {
		font-size: 15px;
		line-height: 22px;
	}

	.decoder-menu-list a {
		font-size: 14px;
		line-height: 21px;
	}

	.decoder-footer__aside {
		width: 100%;
		flex-basis: auto;
		gap: 24px;
	}

	.decoder-footer__social,
	.decoder-footer__newsletter {
		gap: 16px;
	}

	.decoder-footer__social p,
	.decoder-footer__newsletter p {
		font-size: 16px;
		line-height: 24px;
	}

	.decoder-newsletter .decoder-button {
		padding-inline: 8px;
	}

	.decoder-footer__policy {
		flex-direction: column;
		gap: 16px;
		padding-top: 8px;
		font-size: 14px;
		line-height: 21px;
	}
}

@media (max-width: 359px) {
	.decoder-header__actions {
		gap: 8px;
	}

	.decoder-header__logo-mobile {
		width: 86px;
	}

	.decoder-header__actions .decoder-button {
		padding-inline: 10px;
	}

	.decoder-social {
		gap: 8px;
	}
}
