body:has(.opslagstavle) .header {
	background-color: #ffffff;
}

.opslagstavle {
	margin-top: 70px;
	background-color: #f5f7f8;
}

@media (width < 1247px) {
	.opslagstavle {
		margin-top: 30px;
	}
}

.opslagstavle__container {
	max-width: 1100px;
}

.opslagstavle .hero {
	background: linear-gradient(135deg, rgb(14, 29, 57), rgb(25, 46, 87));
	padding: 50px 0;
	color: #ffffff;
	text-align: center;
}

.opslagstavle .hero-title {
	line-height: 1;
	font-size: 44px;
	margin-bottom: 10px;
}

.opslagstavle .hero-subtitle {
	width: 50%;
	margin: 0 auto;
	color: #b6c2d4;
}

@media (width < 720px) {
	.opslagstavle .hero-subtitle {
		width: 100%;
	}
}


.opslagstavle-search {
	transform: translateY(-50%);
	margin: 0 auto;
	display: flex;
	gap: 20px;
	align-items: center;
}


.opslagstavle-search-form {
	width: 100%;
	flex: 1;
	position: relative;
}

.opslagstavle-search-form .search-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	pointer-events: none;
	width: 20px;
	height: 20px;
}

.opslagstavle-search-form input {
	width: 100%;
	height: 48px;
	line-height: 48px;
	border-radius: 10px;
	font-size: 14px;
	border: 1px solid #ddd;
	padding: 8px 16px 8px 48px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.opslagstavle-search-form input:focus {
	outline: none;
	box-shadow: 0 0 0 2px #ffffff,
	0 0 0 4px #d0661c;
}

.opslagstavle-search-button-group {
	display: flex;
	gap: 16px;
}

.opslagstavle-search-button {
	text-decoration: none;
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 14px;
	display: flex;
	column-gap: 8px;
	align-items: center;
	transition: opacity .3s ease-in-out, background-color .3s ease-in-out, color .3s ease-in-out, border .3s ease-in-out;
}

.opslagstavle-search-button:hover {
	cursor: pointer;
}

.opslagstavle-search-button svg {
	width: 16px;
}

.opslagstavle-search-button__primary {
	border: 1px solid #d0661c;
	background-color: #d0661c;
	color: #ffffff;
}

.opslagstavle-search-button__secondary {
	border: 1px solid #c7c7c7;
	background-color: #ffffff;
	color: #151c28;
}

.opslagstavle-search-button__primary:hover {
	opacity: .8;
}

.opslagstavle-search-button__secondary:hover {
	border: 1px solid #d0661c;
	background-color: #d0661c;
	color: #ffffff;
}

@media (width < 680px) {

	.opslagstavle-search-form input {
		width: 100%;
	}


	.opslagstavle-search {
		flex-wrap: wrap;
		margin-top: 20px;
		transform: translateY(0);
		flex-direction: column;
	}
}

:root {
	--primary-color: #f7b189;
	--bg-light: #f8f9fa;
	--border-color: #e2e8f0;
	--text-dark: #2d3748;
	--text-muted: #718096;
}

/* Модальное окно */

.opslagstavle-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	backdrop-filter: blur(2px);
}
.opslagstavle-modal-overlay .modal-content {
	background: white;
	width: 95%;
	max-width: 500px;
	border-radius: 12px;
	padding: 24px;
	position: relative;
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Элементы формы */
.opslagstavle-modal-overlay .close-x {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: var(--text-muted);
}

.opslagstavle-modal-overlay h2 {
	font-size: 20px;
	margin-bottom: 20px;
}

.opslagstavle-modal-overlay .form-group { margin-bottom: 16px; }

.opslagstavle-modal-overlay label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.opslagstavle-modal-overlay input:not([type="file"]), textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	outline: none;
	font-size: 14px;
}

.opslagstavle-modal-overlay .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* Загрузка фото */
.opslagstavle-modal-overlay .upload-wrapper { display: flex; align-items: center; gap: 12px; }

.opslagstavle-modal-overlay .upload-btn {
	padding: 8px 16px;
	background: var(--bg-light);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}

.opslagstavle-modal-overlay .preview-box {
	position: relative;
	width: 44px;
	height: 44px;
	display: none;
}

.opslagstavle-modal-overlay .preview-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
}

.opslagstavle-modal-overlay .remove-preview {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 16px;
	height: 16px;
	background: #f56565;
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 10px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Кнопки внизу */
.opslagstavle-modal-overlay .form-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 24px;
}

.opslagstavle-modal-overlay .btn {
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	font-size: 14px;
}

.opslagstavle-modal-overlay .btn-cancel {
	background: var(--bg-light);
	border: 1px solid var(--border-color);
}

.opslagstavle-modal-overlay .btn-submit {
	background: var(--primary-color);
	border: none;
	color: white;
}