/* Header, menus, search and menu sheets, footer. */

.site-header {
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 74px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text);
	font-weight: 700;
	font-size: 19px;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.logo:hover {
	color: var(--text);
}

.logo__mark {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--accent);
	color: var(--accent-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.nav__list {
	display: flex;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 500;
}

.nav__list a:hover,
.nav__list .current-menu-item > a {
	color: var(--text);
}

.site-header__actions {
	margin-left: auto;
	display: flex;
	gap: 8px;
}

.icon-btn {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.icon-btn:hover {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.3);
}

.basket-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}

.basket-count[data-count="0"] {
	display: none;
}

.icon-btn--menu {
	display: none;
}

@media (max-width: 760px) {
	.site-header .nav {
		display: none;
	}

	.icon-btn--menu {
		display: flex;
	}

	.site-header__inner {
		gap: 12px;
	}

	.site-header__actions {
		gap: 6px;
	}
}

@media (max-width: 400px) {
	.logo {
		font-size: 17px;
	}

	.site-header__actions .icon-btn {
		width: 40px;
		height: 40px;
	}
}

/* Search and menu sheets (native <dialog>). */
.sheet {
	width: min(640px, calc(100% - 32px));
	margin: 88px auto auto;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-panel);
	background: var(--surface);
	color: var(--text);
}

.sheet::backdrop {
	background: rgba(3, 5, 4, 0.75);
	backdrop-filter: blur(4px);
}

.sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.sheet--menu .nav__list {
	flex-direction: column;
	gap: 6px;
}

.sheet--menu .nav__list a {
	display: block;
	padding: 10px 0;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--text);
}

.search-pill {
	display: flex;
	gap: 8px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 6px;
	border-radius: var(--radius-pill);
}

.search-pill input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	color: var(--text);
	font: inherit;
	padding: 0 16px;
	outline: 0;
}

.search-pill:focus-within {
	border-color: var(--accent);
}

.search-pill .btn {
	padding: 14px 22px;
}

/* Footer */
.site-footer {
	background: var(--bg-deep);
	border-top: 1px solid var(--line);
}

.site-footer__signup {
	padding-top: 64px;
	padding-bottom: 48px;
}

.site-footer__title {
	font-size: clamp(36px, 5.4vw, 54px);
	line-height: 0.96;
	letter-spacing: -0.045em;
}

.site-footer__note {
	margin: 10px 0 0 18px;
	font-size: 13px;
	color: var(--muted);
}

.site-footer__note--result {
	color: var(--text);
	font-weight: 600;
}

.site-footer__note a {
	color: var(--muted);
}

/* Hidden spam trap in the sign-up form. */
.nb-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.site-footer__bar {
	padding-top: 18px;
	padding-bottom: 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--muted);
}

.site-footer__signup + .site-footer__bar {
	border-top: 1px solid var(--line);
}

.site-footer__links ul {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__links a {
	color: var(--muted);
	text-decoration: none;
}

.site-footer__links a:hover {
	color: var(--text);
}

.site-footer__credit {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	text-decoration: none;
}

.site-footer__credit:hover {
	color: var(--accent);
}

.site-footer__credit svg {
	display: block;
}
