.het-home,
.het-grid-shell,
.het-submit-page,
.het-single {
	--het-blue: #11a0db;
	--het-orange: #f36f21;
	--het-red: #ac2b31;
	--het-bright-red: #ed1c24;
	--het-yellow: #faa41a;
	--het-lime: #b2d234;
	--het-green: #40ae49;
	--het-ink: #142033;
	--het-muted: #667085;
	--het-surface: rgba(255, 255, 255, 0.78);
	--het-line: rgba(17, 160, 219, 0.22);
	--het-shadow: 0 18px 55px rgba(20, 32, 51, 0.05);
	--het-content-max: min(1320px, 94vw);
	color: var(--het-ink);
	direction: rtl;
	font-family: inherit;
}

.het-home {
	width: 100%;
	max-width: var(--het-content-max);
	margin-inline: auto;
	padding-inline: clamp(6px, 1.5vw, 20px);
	box-sizing: border-box;
}

.het-grid-shell {
	width: 100%;
	max-width: var(--het-content-max);
	margin-inline: auto;
	padding-inline: 0;
	box-sizing: border-box;
}

.het-home *,
.het-grid-shell *,
.het-submit-page *,
.het-single * {
	box-sizing: border-box;
}

.het-hero,
.het-filters,
.het-card,
.het-panel,
.het-modal__dialog,
.het-form,
.het-gallery {
	border: 1px solid var(--het-line);
	border-radius: 40px;
	background: var(--het-surface);
	box-shadow: var(--het-shadow);
	backdrop-filter: blur(16px);
}

.het-hero {
	display: grid;
	grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
	gap: clamp(16px, 2.5vw, 28px);
	align-items: center;
	margin: 0 auto 28px;
	padding: clamp(18px, 2.5vw, 28px);
	overflow: hidden;
	width: 100%;
}

.het-hero--simple {
	grid-template-columns: 1fr;
	justify-items: center;
	text-align: center;
}

.het-hero--simple .het-hero__content {
	max-width: 820px;
}

.het-hero--simple .het-hero p:last-child {
	margin-inline: auto;
}

.het-hero__logo,
.het-single__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 126px;
	min-height: 84px;
	border-radius: 32px;
	background: rgba(17, 160, 219, 0.08);
	border: 1px solid rgba(243, 111, 33, 0.24);
}

.het-logo {
	max-width: 108px;
	max-height: 70px;
	object-fit: contain;
}

.het-kicker {
	margin: 0 0 8px;
	color: var(--het-orange);
	font-weight: 800;
	letter-spacing: 0.02em;
}

.het-hero h1 {
	margin: 0;
	color: var(--het-ink);
	font-size: clamp(1.35rem, 2.4vw, 2.05rem);
	line-height: 1.2;
	font-weight: 800;
}

.het-single h1 {
	margin: 0;
	color: var(--het-ink);
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	line-height: 1.15;
}

.het-hero p:last-child {
	max-width: 720px;
	margin: 12px 0 0;
	color: var(--het-muted);
	font-size: 1.08rem;
}

.het-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid rgba(17, 160, 219, 0.34);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--het-ink);
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.het-button:hover:not(.het-button--header-trigger):not(.het-button--primary),
.het-button:focus-visible:not(.het-button--header-trigger):not(.het-button--primary) {
	border-color: var(--het-blue);
	box-shadow: 0 12px 30px rgba(17, 160, 219, 0.12);
	transform: translateY(-1px);
}

.het-button--header-trigger {
	border: 0;
	border-radius: 999px;
	color: #0b2a4a;
	font-weight: 800;
	background: linear-gradient(180deg, rgba(17, 160, 219, 0.38), rgba(17, 160, 219, 0.14));
	border-block-start: 4px solid var(--het-blue);
	border-inline-end: 4px solid var(--het-orange);
	border-block-end: 4px solid var(--het-yellow);
	border-inline-start: 4px solid var(--het-green);
	box-shadow: 0 0 0 1px rgba(17, 160, 219, 0.2);
}

.het-button--header-trigger:hover,
.het-button--header-trigger:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(17, 160, 219, 0.35), 0 10px 28px rgba(17, 160, 219, 0.16);
	border-block-start: 4px solid var(--het-blue);
	border-inline-end: 4px solid var(--het-orange);
	border-block-end: 4px solid var(--het-yellow);
	border-inline-start: 4px solid var(--het-green);
}

.het-header-upload-wrap {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.het-header-upload-wrap .het-button--header-trigger {
	white-space: nowrap;
}

.het-button--primary {
	border: 0;
	background: linear-gradient(118deg, var(--het-orange), var(--het-green));
	color: #fff;
	box-shadow: 0 8px 22px rgba(243, 111, 33, 0.25);
}

.het-button--primary:hover,
.het-button--primary:focus-visible {
	box-shadow: 0 10px 28px rgba(64, 174, 73, 0.28);
	transform: translateY(-1px);
}

.het-button--ghost {
	background: transparent;
}

.het-filters {
	display: grid;
	width: 100%;
	grid-template-columns: minmax(160px, 1.25fr) repeat(4, minmax(0, 1fr)) auto;
	gap: 12px 14px;
	align-items: end;
	margin-bottom: 24px;
	padding: clamp(14px, 2vw, 20px);
	box-sizing: border-box;
}

.het-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	grid-column: -2 / -1;
}

.het-filters label,
.het-form label {
	display: grid;
	gap: 8px;
	margin: 0;
	color: var(--het-ink);
	font-weight: 800;
}

.het-filters span,
.het-form span,
.het-form strong {
	font-size: 0.95rem;
}

.het-filters input,
.het-filters select,
.het-form input,
.het-form select,
.het-form textarea {
	width: 100%;
	min-height: 46px;
	border: 1px solid rgba(20, 32, 51, 0.14);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.82);
	color: var(--het-ink);
	padding: 10px 16px;
	font: inherit;
	outline: none;
}

.het-form textarea {
	min-height: 120px;
	resize: vertical;
}

.het-filters input:focus,
.het-filters select:focus,
.het-form input:focus,
.het-form select:focus,
.het-form textarea:focus {
	border-color: var(--het-blue);
	box-shadow: 0 0 0 4px rgba(17, 160, 219, 0.12);
}

.het-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
}

.het-card {
	display: grid;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.het-card:hover {
	box-shadow: 0 22px 60px rgba(20, 32, 51, 0.08);
	transform: translateY(-3px);
}

.het-card__image {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(17, 160, 219, 0.12), rgba(250, 164, 26, 0.18));
	color: var(--het-blue);
	font-size: 1.4rem;
	font-weight: 900;
	text-decoration: none;
}

.het-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.het-card__body {
	display: grid;
	gap: 10px;
	padding: 18px 20px 12px;
}

.het-card__title {
	color: var(--het-ink);
	font-size: 1.18rem;
	font-weight: 900;
	line-height: 1.25;
	text-decoration: none;
}

.het-card__body p {
	margin: 0;
	color: var(--het-muted);
}

.het-card__chips,
.het-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.het-card__chips span,
.het-chips span {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 12px;
	border: 1px solid rgba(17, 160, 219, 0.24);
	border-radius: 999px;
	background: rgba(17, 160, 219, 0.08);
	color: var(--het-ink);
	font-size: 0.86rem;
	font-weight: 800;
}

.het-card__chips span:first-child,
.het-chips span:nth-child(3) {
	border-color: rgba(243, 111, 33, 0.28);
	background: rgba(243, 111, 33, 0.1);
}

.het-card__stats {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 18px 18px;
	color: var(--het-muted);
	font-size: 0.9rem;
}

.het-card__stats button {
	border: 0;
	background: transparent;
	color: var(--het-muted);
	font: inherit;
	cursor: pointer;
}

.het-card__stats button.is-liked {
	color: var(--het-orange);
	font-weight: 900;
}

.het-empty {
	grid-column: 1 / -1;
	padding: 32px;
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.7);
	text-align: center;
	color: var(--het-muted);
}

.het-modal[hidden] {
	display: none;
}

.het-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 26px;
}

.het-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 32, 51, 0.58);
	backdrop-filter: blur(9px);
}

.het-modal__dialog {
	position: relative;
	width: min(920px, 100%);
	max-height: min(90vh, 980px);
	overflow: auto;
	padding: 28px;
}

.het-modal__dialog h2 {
	margin: 0 0 20px;
	font-size: clamp(1.8rem, 4vw, 3rem);
	text-align: center;
}

.het-modal__close {
	position: sticky;
	top: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-inline-start: auto;
	border: 1px solid rgba(20, 32, 51, 0.1);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--het-muted);
	font-size: 28px;
	cursor: pointer;
}

.het-form {
	padding: 22px;
}

.het-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.het-form__wide,
.het-form__full {
	grid-column: 1 / -1;
}

.het-form__row--cols3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
}

.het-form__row--cols3 > label {
	min-width: 0;
}

.het-form small,
.het-upload-group p,
.het-upload-group__hint {
	color: var(--het-muted);
	font-weight: 500;
}

.het-upload-group__hint {
	margin: 0 0 8px;
	font-size: 0.95rem;
	line-height: 1.45;
}

.het-upload-group {
	padding: 16px;
	border: 1px dashed rgba(17, 160, 219, 0.28);
	border-radius: 28px;
	background: rgba(17, 160, 219, 0.05);
}

.het-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.het-dynamic-slots {
	display: grid;
	gap: 14px;
}

.het-file-slot {
	display: grid;
	gap: 8px;
}

.het-file-slot__caption {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--het-ink);
}

.het-file-slot__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.het-file-pill {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 18px;
	border: 2px solid rgba(17, 160, 219, 0.45);
	background: rgba(255, 255, 255, 0.92);
	color: var(--het-blue);
	font-size: 1.85rem;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.het-file-pill:hover,
.het-file-pill:focus-visible {
	border-color: var(--het-orange);
	box-shadow: 0 0 0 3px rgba(243, 111, 33, 0.12);
	outline: none;
}

.het-file-pill__plus {
	display: block;
	transform: translateY(-1px);
}

.het-file-slot__name {
	flex: 1;
	min-width: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--het-muted);
	word-break: break-word;
}

.het-file-slot__clear {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(20, 32, 51, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--het-muted);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.het-file-slot__clear:hover,
.het-file-slot__clear:focus-visible {
	border-color: rgba(237, 28, 36, 0.35);
	color: var(--het-bright-red);
}

.het-dynamic-add {
	margin-top: 6px;
}

.het-resource-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}

.het-resource-row__file {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.het-resource-row__url {
	min-width: 0;
}

.het-form > .het-button {
	margin-top: 20px;
}

.het-message {
	margin-bottom: 18px;
	padding: 14px 18px;
	border-radius: 22px;
	font-weight: 800;
}

.het-message--success {
	background: rgba(64, 174, 73, 0.14);
	color: #247431;
}

.het-message--error {
	background: rgba(237, 28, 36, 0.12);
	color: var(--het-bright-red);
}

.het-single {
	display: grid;
	gap: 24px;
}

.het-single__header {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: center;
	padding: 26px;
	border-radius: 40px;
	background: linear-gradient(135deg, rgba(17, 160, 219, 0.09), rgba(243, 111, 33, 0.08));
}

.het-gallery {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 14px;
}

.het-gallery__track {
	overflow: hidden;
	border-radius: 30px;
}

.het-gallery__slide {
	display: none;
	margin: 0;
	aspect-ratio: 16 / 9;
	background: rgba(20, 32, 51, 0.04);
}

.het-gallery__slide.is-active {
	display: block;
}

.het-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 30px;
}

.het-gallery__nav {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(17, 160, 219, 0.26);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--het-blue);
	font-size: 28px;
	cursor: pointer;
}

.het-panel {
	padding: 24px;
}

.het-panel h2 {
	margin: 0 0 16px;
	font-size: 1.5rem;
}

.het-text {
	color: var(--het-muted);
	font-size: 1.06rem;
	line-height: 1.8;
}

.het-checklist {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.het-checklist label {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.64);
	cursor: pointer;
}

.het-checklist input {
	width: 20px;
	height: 20px;
	accent-color: var(--het-green);
}

.het-checklist input:checked + span {
	color: var(--het-muted);
	text-decoration: line-through;
}

.het-resources,
.het-people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.het-resources a,
.het-people div {
	display: grid;
	gap: 4px;
	padding: 16px;
	border: 1px solid rgba(17, 160, 219, 0.18);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.62);
	text-decoration: none;
}

.het-resources a {
	color: var(--het-blue);
	font-weight: 900;
}

.het-people span {
	color: var(--het-muted);
}

.het-comments .comment-respond,
.het-comments .comment-list {
	padding: 16px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.55);
}

.het-submit-page {
	width: 100%;
	max-width: var(--het-content-max);
	margin-inline: auto;
	padding-inline: clamp(6px, 1.5vw, 20px);
	box-sizing: border-box;
}

body.het-modal-open {
	overflow: hidden;
}

@media (max-width: 1100px) {
	.het-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.het-filters__search {
		grid-column: 1 / -1;
	}

	.het-filters__actions {
		grid-column: 1 / -1;
		justify-content: stretch;
	}

	.het-filters__actions .het-button {
		flex: 1;
		min-width: 0;
	}
}

@media (max-width: 900px) {
	.het-hero,
	.het-single__header,
	.het-filters {
		grid-template-columns: 1fr;
	}

	.het-filters__actions {
		flex-direction: column;
	}

	.het-filters__actions .het-button {
		width: 100%;
	}

	.het-hero__logo,
	.het-single__logo {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.het-form__grid,
	.het-form__row--cols3,
	.het-resource-row,
	.het-gallery {
		grid-template-columns: 1fr;
	}

	.het-card__stats {
		flex-wrap: wrap;
	}

	.het-modal {
		padding: 12px;
	}
}
