/* шапка + модалка входа — грузится из header.php на всех страницах */

.header-button {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
	white-space: nowrap;
}

.header-button .btn {
	flex-shrink: 0;
}

.header-button button.btn {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	cursor: pointer;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
}

/* всегда 2 кнопки — Спецпроекты + Войти/Выход */
.header .header-menu ul li a {
	padding: 0 10px;
	color: #fff;
}

.header .header-button .btn-transparent {
	color: #fff;
	border-color: #fff;
}

.header .header-button button.btn.btn-transparent:hover {
	background: #fff;
	color: #000;
}

.header.bg-white .header-menu ul li a {
	color: #000;
}

.header.bg-white .header-button .btn-transparent {
	color: #000;
	border-color: #000;
}

.header.bg-white .header-button button.btn.btn-transparent:hover {
	background: #000;
	color: #fff;
}

.protection-register-modal,
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	overflow-y: auto;
}

.protection-register-modal__content,
.modal-content {
	background-color: #fff;
	margin: 5% auto;
	padding: 30px;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
}

.protection-register-modal__close,
.close-modal {
	position: absolute;
	right: 15px;
	top: 10px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	color: #5a6172;
	line-height: 1;
}

.protection-register-modal__close:hover,
.close-modal:hover {
	color: #243773;
}

.protection-register-modal__title,
.modal h2 {
	font-size: 24px;
	line-height: 1.2;
	font-weight: 600;
	color: #243773;
	margin: 0 0 20px;
	padding: 0;
	text-align: left;
	text-transform: none;
}

.protection-login-modal .bx-authform,
.protection-login-modal .bx-authform-container,
.modal .bx-authform,
.modal .registration-form {
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.protection-login-modal .bx-authform-title,
.protection-login-modal .bx-title,
.protection-login-modal h3 {
	display: none;
}

.protection-login-modal .bx-authform-formgroup-container,
.protection-login-modal .form-group,
.modal .form-group {
	margin: 0 0 15px;
}

.protection-login-modal .bx-authform-label-container,
.protection-login-modal label,
.modal .form-group label {
	display: block;
	font-size: 13px;
	line-height: 1.3;
	color: #212121;
	font-weight: 500;
	margin-bottom: 6px;
}

.protection-login-modal input[type="text"],
.protection-login-modal input[type="email"],
.protection-login-modal input[type="password"],
.modal .form-group input[type="text"],
.modal .form-group input[type="email"],
.modal .form-group input[type="password"],
.modal .form-group input[type="tel"] {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font-size: 14px;
	color: #212121;
	background: #fff;
	border: 1px solid #cfd4e0;
	border-radius: 4px;
	outline: none;
	box-sizing: border-box;
}

.protection-login-modal input[type="text"]:focus,
.protection-login-modal input[type="email"]:focus,
.protection-login-modal input[type="password"]:focus,
.modal .form-group input:focus {
	border-color: #243773;
	box-shadow: 0 0 0 3px rgba(36, 55, 115, 0.12);
}

.protection-login-modal .btn,
.protection-login-modal input[type="submit"],
.protection-login-modal button[type="submit"],
.modal .btn-submit {
	width: 100%;
	height: 48px;
	padding: 0 !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 44px !important;
	color: #243773;
	background: transparent;
	border: 2px solid #243773;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.protection-login-modal .btn:hover,
.protection-login-modal input[type="submit"]:hover,
.protection-login-modal button[type="submit"]:hover,
.modal .btn-submit:hover {
	background: #243773;
	color: #fff;
}

@media (max-width: 575px) {
	.protection-register-modal__content,
	.modal-content {
		margin: 10% auto;
		padding: 20px;
	}
}
