/* Public /rabotni-listove/ + homepage strip under the card decks.
 * Tokens: docs/design/design-system.md §0 (soft UI). Buttons: .sh-btn.
 * Audience tabs: old 3-column segmented track (cream/sand, white selected).
 * Filters: same dropdown as the games hub (cream row, orange check). */

.shturko-free-ws-page .entry-hero,
.shturko-free-ws-page .entry-header { display: none; }

.fws {
	--fws-max: 1100px;
	max-width: var(--fws-max);
	margin: 0 auto;
	padding: 104px 16px 72px;
	color: var(--sh-text, #34506a);
	display: flex;
	flex-direction: column;
	gap: 40px;
}
@media (min-width: 720px) {
	.fws { padding-top: 120px; gap: 52px; }
}
.fws h1, .fws h2, .fws h3 { color: var(--sh-ink, #1f4568); margin: 0; text-wrap: balance; }
.fws p { margin: 0; line-height: 1.55; }
.fws__eyebrow {
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sh-tint-ink, #b83a14);
}
.fws__title { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.2; }
.fws__lead { font-size: 1.05rem; max-width: 42rem; }
.fws__hero, .fws__library, .fws__ideas {
	display: flex;
	flex-direction: column;
	gap: 14px;
	scroll-margin-top: 130px;
}
.fws__skip {
	align-self: flex-start;
	color: var(--sh-text-muted, #5a7088);
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.fws__skip:hover, .fws__skip:focus-visible { color: var(--sh-ink, #1f4568); text-decoration: underline; }

.fws__invite {
	background: #fff6e9;
	border: 1px solid #f7e7d2;
	border-radius: var(--sh-radius, 22px);
	padding: 10px 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.fws__who {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	background: #f7e7d2;
	padding: 4px;
	border-radius: 999px;
}
.fws button.fws__chip,
.fws .fws__chip {
	min-height: 44px;
	padding: 8px 6px;
	border: 0;
	border-radius: 999px;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none;
	color: #123b64 !important;
	font-size:inherit;font-weight:inherit;line-height:inherit;
	font-size: clamp(12px, 3.4vw, 15px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	width: 100%;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}
.fws button.fws__chip:hover,
.fws button.fws__chip:focus,
.fws button.fws__chip:focus-visible,
.fws button.fws__chip:active {
	background: rgba(255, 255, 255, .7) !important;
	color: #123b64 !important;
	transform: none;
	box-shadow: none;
}
.fws button.fws__chip.is-on,
.fws button.fws__chip.is-on:hover,
.fws button.fws__chip.is-on:focus,
.fws button.fws__chip.is-on:focus-visible,
.fws button.fws__chip.is-on:active {
	background: #fff !important;
	color: #123b64 !important;
	box-shadow: 0 1px 4px rgba(196, 106, 42, .16);
}
.fws .fws__chip:focus-visible {
	outline: 2px solid #287b9b;
	outline-offset: 2px;
}
.fws__who-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
.fws__who-panel p { font-size: .95rem; max-width: 40rem; }
.fws__invite-link {
	color: var(--sh-accent, #f04d23);
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.fws__invite-link:hover, .fws__invite-link:focus-visible { text-decoration: underline; }

.fws__card-actions, .homepage__sheets-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.fws__toolbar .sh-btn,
.fws__hook .sh-btn,
.fws__fmt .sh-btn,
.homepage__sheets-actions .sh-btn {
	min-height: 44px;
	padding: 12px 20px;
	font-size: 15px;
}

.fws__empty { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--sh-cream, #fff6e8); color: var(--sh-text, #123b64); text-align: center; }
.fws__hint, .fws__count, .homepage__sheets-who { color: var(--sh-text-muted, #5a7088); font-size: .95rem; }
.fws__filters {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	position: relative;
	z-index: 8;
}
@media (min-width: 560px) {
	.fws__filters { grid-template-columns: 1fr 1fr; }
}
.fws__select-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	position: relative;
}
.fws .shturko-deck-picker--fws {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	z-index: 8;
}
.fws .shturko-deck-picker--fws.is-open { z-index: 40; }
.fws .shturko-deck-picker--fws .shturko-deck-picker__opt.is-active {
	background: #fff3e2 !important;
}
.fws .shturko-deck-picker--fws .shturko-deck-picker__check {
	color: #f04d23 !important;
}
.fws__select[hidden] { display: none !important; }
.fws__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: center;
}
.fws__all { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.fws__deck-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	background: var(--sh-tint, #fbebe3);
	border-radius: var(--sh-radius-sm, 14px);
	padding: 12px 16px;
}

.fws__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 560px) {
	.fws__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.fws__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fws__card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--sh-line, rgba(31, 69, 104, .12));
	border-radius: var(--sh-radius, 22px);
	overflow: hidden;
	box-shadow: var(--sh-shadow, 0 8px 28px rgba(31, 69, 104, .07));
}
.fws__card.is-focus { box-shadow: 0 0 0 2px var(--sh-accent, #f04d23); }
.fws__card[hidden],
.fws__hook[hidden],
.fws__deck-cta[hidden],
.fws__who-panel[hidden],
.fws__fmt [hidden] { display: none !important; }
.fws__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px 10px 8px;
}
.fws__head h3 {
	flex: 1 1 auto;
	font-size: 1.05rem;
}
.fws__pick {
	flex: none;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	cursor: pointer;
}
.fws__pick:hover, .fws__pick:focus-visible { background: var(--sh-tint, #fbebe3); }
.fws input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	flex: none;
	border: 2px solid var(--sh-line, rgba(31, 69, 104, .18)) !important;
	border-radius: 8px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
	vertical-align: middle;
	accent-color: var(--sh-accent, #f04d23);
}
.fws input[type="checkbox"]:hover {
	border-color: var(--sh-tint-ink, #b83a14) !important;
}
.fws input[type="checkbox"]:checked {
	border-color: var(--sh-accent, #f04d23) !important;
	background-color: var(--sh-accent, #f04d23) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.4 8.2l3 3 6.2-6.4'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 12px !important;
}
.fws input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--sh-link, #287b9b);
	outline-offset: 2px;
}
.fws a.fws__dl,
.fws__dl {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff !important;
	background-image: none !important;
	color: var(--sh-accent, #f04d23) !important;
	box-shadow: 0 4px 16px rgba(31, 69, 104, .2);
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.fws__head a.fws__dl,
.fws__head .fws__dl {
	position: relative;
	right: auto;
	bottom: auto;
	flex: none;
}
.fws__dl svg { display: block; }
.fws__dl:hover,
.fws__dl:focus-visible {
	background: var(--sh-accent, #f04d23) !important;
	color: #fff !important;
	outline: none;
}
.fws__dl:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sh-link, #287b9b);
}
.fws__art {
	position: relative;
}
.fws button.fws__preview,
.fws .fws__preview {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none;
	color: inherit !important;
	font-size:inherit;font-weight:inherit;line-height:inherit;
	text-transform: none;
	letter-spacing: 0;
	cursor: zoom-in;
}
.fws button.fws__preview:hover,
.fws button.fws__preview:focus,
.fws button.fws__preview:active {
	background: #fff !important;
	color: inherit !important;
	transform: none;
	box-shadow: none;
}
.fws .fws__preview:focus-visible {
	outline: 2px solid var(--sh-link, #287b9b);
	outline-offset: -2px;
}
.fws__preview img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 420 / 593;
	object-fit: cover;
}
.fws__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
	flex: 1 1 auto;
}
.fws__body h3 { font-size: 1.05rem; }
.fws__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	flex: none;
}
.fws__card-actions { margin-top: auto; }
.fws__tags span {
	flex: none;
	background: #e7eef5;
	color: #1f4568;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
}
.fws__next {
	color: var(--sh-ink, #1f4568);
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.fws__next:hover, .fws__next:focus-visible { text-decoration: underline; }

.fws__hook {
	position: sticky;
	bottom: 12px;
	z-index: 6;
	background: #fff;
	border: 1px solid var(--sh-line, rgba(31, 69, 104, .12));
	border-radius: var(--sh-radius, 22px);
	padding: 16px 44px 16px 18px;
	box-shadow: var(--sh-shadow-hover, 0 12px 34px rgba(31, 69, 104, .11));
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fws__hook-kicker { color: var(--sh-tint-ink, #b83a14); }
.fws__hook-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--sh-ink, #1f4568);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 12px;
}
.fws__hook-close:hover, .fws__hook-close:focus-visible { background: rgba(31, 69, 104, .07); }

.fws__ideas {
	background: #fff;
	border: 1px solid var(--sh-line, rgba(31, 69, 104, .12));
	border-radius: var(--sh-radius, 22px);
	padding: 18px 20px;
	max-width: 40rem;
}
.fws__ideas p { max-width: 40rem; }
.fws__ideas a,
.fws__ideas a.fws__mail {
	color: var(--sh-accent, #f04d23);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.fws__fmt {
	width: min(calc(100% - 32px), 360px);
	padding: 20px 20px 16px;
	border: 0;
	border-radius: var(--sh-radius, 22px);
	background: #fff;
	color: var(--sh-text, #34506a);
	box-shadow: var(--sh-shadow-hover, 0 12px 34px rgba(31, 69, 104, .11));
}
.fws__fmt::backdrop {
	background: rgba(31, 69, 104, .38);
}
.fws__fmt p {
	margin: 0 0 14px;
	font-weight: 400;
	color: var(--sh-ink, #1f4568);
	text-wrap: balance;
}
.fws__fmt-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
@media (min-width: 480px) {
	.fws__fmt-actions { flex-direction: row; }
}
.fws__fmt-actions a {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-decoration: none;
	text-align: center;
	min-height: 52px;
}
.fws__fmt-actions a strong { font-size: 16px; line-height: 1.2; }
.fws__fmt-actions a span {
	font-size: 13px;
	font-weight: 400;
	color: var(--sh-text-muted, #5a7088);
}
.fws__fmt-close {
	display: block;
	width: 100%;
	margin-top: 12px;
	min-height: 44px;
	padding: 8px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--sh-text-muted, #5a7088);
	font-size:inherit;font-weight:inherit;line-height:inherit;
	cursor: pointer;
}
.fws__fmt-close:hover,
.fws__fmt-close:focus-visible {
	background: rgba(31, 69, 104, .07);
	color: var(--sh-ink, #1f4568);
}

.fws__label { color: var(--sh-ink, #1f4568); }
.fws__input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--sh-line, rgba(31, 69, 104, .12));
	border-radius: var(--sh-radius-sm, 14px);
	font-size:inherit;font-weight:inherit;line-height:inherit;
	color: var(--sh-text, #34506a);
	background: #fff;
}
.fws__input:focus { outline: 1px solid var(--sh-ink, #1f4568); outline-offset: 2px; box-shadow: 0 0 0 3px rgba(31, 69, 104, .08); }

/* Homepage strip — sits under «Нашите карти», not a second 100vh. */
.homepage__sheets {
	position: relative;
	z-index: 3;
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	padding: clamp(1.5rem, 4vw, 2.4rem) 0;
	background: #fff6e9;
	color: var(--sh-text, #34506a);
}
.homepage__sheets-inner {
	width: min(100% - 40px, var(--container-width, 1120px));
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: .7rem;
	text-align: center;
	align-items: center;
}
.homepage__sheets-kicker {
	margin: 0;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sh-tint-ink, #b83a14);
}
.homepage__sheets-lead {
	margin: 0;
	max-width: 38rem;
	line-height: 1.5;
}
.homepage__sheets-who { margin: 0; }
.homepage__sheets .homepage__section-title { margin: 0; color: var(--sh-ink, #1f4568); }

@media (max-width: 359px) {
	.fws { padding-left: 12px; padding-right: 12px; }
}
