.ts-header {
	background: var(--ts-white);
	color: var(--ts-ink);
	border-bottom: 1px solid var(--ts-line);
}

.ts-header__inner,
.ts-footer__inner {
	width: min(var(--ts-content), calc(100% - 32px));
	margin: 0 auto;
}

.ts-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--ts-header-height);
}

.ts-logo {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}

.ts-logo img {
	width: auto;
	height: 46px;
}

.ts-logo__tagline {
	margin-top: 4px;
	font-size: 12px;
	letter-spacing: 0.04em;
}

.ts-header__panel {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	flex: 1;
}

.ts-nav__list,
.ts-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ts-nav__list a,
.ts-footer__menu a,
.ts-langs__link,
.ts-header__search,
.ts-social a {
	color: var(--ts-ink);
	text-decoration: none;
}

.ts-nav__list a:hover,
.ts-footer__menu a:hover,
.ts-langs__link:hover,
.ts-header__search:hover,
.ts-social a:hover {
	color: var(--ts-button);
}

.ts-nav__list .current-menu-item > a,
.ts-langs__link.is-active {
	color: var(--ts-button);
}

.ts-header__tools {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ts-langs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	letter-spacing: 0.06em;
}

.ts-langs__sep {
	color: var(--ts-coffee);
}

.ts-social {
	display: flex;
	gap: 8px;
}

.ts-icon {
	width: 18px;
	height: 18px;
	display: block;
}

.ts-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: var(--ts-radius-pill);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	border: 1px solid var(--ts-button);
}

.ts-btn--primary {
	background: var(--ts-button);
	color: var(--ts-white);
}

.ts-btn--primary:hover {
	background: var(--ts-button-hover);
	color: var(--ts-white);
}

.ts-btn--ghost {
	background: transparent;
	color: var(--ts-button);
}

.ts-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ts-nav-toggle__bar {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: var(--ts-ink);
}

.ts-footer {
	margin-top: 48px;
	padding: 40px 0;
	background: var(--ts-white);
	border-top: 1px solid var(--ts-line);
}

.ts-footer__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.ts-footer__name,
.ts-footer__heading {
	font-family: var(--ts-font-display);
	font-size: 1.3rem;
	margin: 0 0 12px;
}

.ts-footer__address {
	font-style: normal;
	display: grid;
	gap: 4px;
}

.ts-footer__address a,
.ts-footer__copy {
	color: var(--ts-coffee);
}

.ts-hours {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ts-hours li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	border-bottom: 1px solid var(--ts-line);
	font-size: 14px;
}

.ts-footer__menu {
	flex-direction: column;
	margin-bottom: 16px;
}

.ts-catalog,
.ts-gallery {
	display: grid;
	gap: 28px;
}

.ts-catalog__grid,
.ts-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.ts-product,
.ts-gallery figure {
	margin: 0;
	background: var(--ts-card);
	border-radius: var(--ts-radius);
	box-shadow: var(--ts-shadow);
	overflow: hidden;
}

.ts-product img,
.ts-gallery img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.ts-product__body {
	padding: 14px 16px 18px;
}

.ts-product h3,
.ts-catalog h2 {
	margin: 0 0 8px;
	color: var(--ts-coffee);
}

.ts-product p {
	margin: 0 0 8px;
}

.ts-product__price {
	color: var(--ts-button);
	font-weight: 700;
}

@media (max-width: 900px) {
	.ts-nav-toggle {
		display: inline-block;
	}

	.ts-header__panel {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 16px 20px 24px;
		background: var(--ts-white);
		box-shadow: var(--ts-shadow);
	}

	.ts-header__panel.is-open {
		display: flex;
	}

	.ts-header {
		position: relative;
	}

	.ts-nav__list,
	.ts-header__tools {
		flex-direction: column;
		align-items: flex-start;
	}

	.ts-footer__inner {
		grid-template-columns: 1fr;
	}
}
