/* ===== COOKIE CONSENT BANNER ===== */
#cookieConsent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #ffffff;
	border-top: 2px solid #e0e0e0;
	padding: 20px;
	z-index: 9999;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.10);
	transform: translateY(100%);
	transition: transform 0.4s ease-out;
}

#cookieConsent.show {
	transform: translateY(0);
}

.cookie-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.cookie-text {
	flex: 1;
	min-width: 300px;
}

.cookie-title {
	font-size: 18px;
	font-weight: 700;
	color: #111111;
	margin-bottom: 8px;
}

.cookie-description {
	font-size: 14px;
	color: #555555;
	line-height: 1.5;
}

.cookie-description a {
	color: #111111;
	text-decoration: underline;
}

.cookie-description a:hover {
	color: #444444;
}

.cookie-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.cookie-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	min-width: 120px;
}

.cookie-btn-accept {
	background: #111111;
	color: #ffffff;
}

.cookie-btn-accept:hover {
	background: #333333;
	transform: translateY(-2px);
}

.cookie-btn-decline {
	background: transparent;
	color: #555555;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

.cookie-btn-decline:hover {
	background: #f0f0f0;
	color: #111111;
}

.cookie-btn-settings {
	background: transparent;
	color: #555555;
	border: 1px solid rgba(0, 0, 0, 0.2);
}

.cookie-btn-settings:hover {
	background: #f0f0f0;
	color: #111111;
}

/* Cookie Settings Modal */
#cookieSettingsModal {
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
}

#cookieSettingsModal .modal-content {
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	border-radius: 16px;
	max-width: 700px;
	width: 90%;
	max-height: 85vh;
	/* Use flex layout to keep footer visible and body scrollable */
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	animation: modalSlideIn 0.3s ease-out;
	margin: 0 auto;
	color: #111111;
}

#cookieSettingsModal .modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#cookieSettingsModal .modal-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #111111;
}

#cookieSettingsModal .modal-close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #111111;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

#cookieSettingsModal .modal-close:hover {
	background: rgba(255, 59, 48, 0.2);
	border-color: rgba(255, 59, 48, 0.4);
	transform: scale(1.1);
}

#cookieSettingsModal .modal-body {
	padding: 24px 32px;
	/* Body takes remaining space and scrolls internally */
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.cookie-category {
	margin-bottom: 24px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.cookie-category-title {
	font-size: 18px;
	font-weight: 600;
	color: #111111;
	margin: 0;
}

.cookie-toggle {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
}

.cookie-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #555;
	transition: 0.3s;
	border-radius: 24px;
}

.cookie-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

input:checked + .cookie-slider {
	background-color: var(--primary-color);
}

input:checked + .cookie-slider:before {
	transform: translateX(26px);
}

.cookie-category-description {
	font-size: 14px;
	color: #b8b8b8;
	line-height: 1.5;
	margin: 0;
}

#cookieSettingsModal .modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 32px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	/* Keep action buttons visible */
	background: linear-gradient(180deg, rgba(26,26,26,0.95) 0%, rgba(45,45,45,0.98) 100%);
}

/* On mobile keep cookie modal buttons sticky at the bottom of the modal */
@media (max-width: 768px) {
	#cookieSettingsModal .modal-footer {
		position: sticky;
		bottom: 0;
		z-index: 5;
	}
}

/* ===== MODAL STYLES ===== */

/* Базовые стили для всех модалок */
.modal,
.portfolio-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	animation: modalFadeIn 0.3s ease-out;
}

.modal.show,
.portfolio-modal.show {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Анимации */
@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ===== SMS CONSENT MODAL ===== */
#consentModal {
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
}

#consentModal .modal-content {
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	border-radius: 16px;
	max-width: 600px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	animation: modalSlideIn 0.3s ease-out;
	margin: 0 auto;
	color: #111111;
}

#consentModal .modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	background: linear-gradient(135deg, #eeeeee 0%, #e0e0e0 100%);
	border-radius: 16px 16px 0 0;
}

#consentModal .modal-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #111111;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#consentModal .modal-close {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #111111;
	font-size: 20px;
	font-weight: 300;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

#consentModal .modal-close:hover {
	background: rgba(255, 59, 48, 0.2);
	border-color: rgba(255, 59, 48, 0.4);
	transform: scale(1.1);
	color: #ff3b30;
}

#consentModal .modal-body {
	padding: 24px 32px;
	line-height: 1.6;
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

#consentModal .modal-body h4 {
	color: var(--primary-color);
	font-size: 18px;
	font-weight: 600;
	margin: 20px 0 12px 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#consentModal .modal-body h4:first-child {
	margin-top: 0;
}

#consentModal .modal-body p {
	color: #cccccc;
	font-size: 15px;
	margin-bottom: 16px;
	line-height: 1.6;
}

#consentModal .modal-body ul {
	color: #e0e0e0;
	margin: 12px 0;
	padding-left: 20px;
}

#consentModal .modal-body li {
	color: #e0e0e0;
	margin: 10px 0;
	font-size: 14px;
	line-height: 1.5;
}

#consentModal .modal-body strong {
	color: var(--primary-color);
	font-weight: 600;
}

#consentModal .modal-note {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
	padding: 16px;
	border-radius: 8px;
	border-left: 4px solid var(--primary-color);
	margin-top: 20px;
	color: #111111;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#consentModal .modal-note strong {
	color: var(--primary-color);
}

#consentModal .modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 32px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	background: linear-gradient(135deg, #eeeeee 0%, #e0e0e0 100%);
	border-radius: 0 0 16px 16px;
}

#consentModal .modal-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: 120px;
}

#consentModal .modal-btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #cccccc;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

#consentModal .modal-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #111111;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#consentModal .modal-btn-primary {
	background: linear-gradient(135deg, var(--primary-color) 0%, #bbbbbb 100%);
	color: #111111;
	border: 1px solid var(--primary-color);
}

#consentModal .modal-btn-primary:hover {
	background: linear-gradient(135deg, #bbbbbb 0%, var(--primary-color) 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

/* ===== CONTACT MODAL ===== */
#contactModal {
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
}

#contactModal .modal-content {
	background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	z-index: 10001;
	animation: modalSlideIn 0.3s ease-out;
}

#contactModal .modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#contactModal .modal-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #111111;
}

#contactModal .modal-close {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #111111;
	font-size: 20px;
	font-weight: 300;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

#contactModal .modal-close:hover {
	background: rgba(255, 59, 48, 0.2);
	border-color: rgba(255, 59, 48, 0.4);
	transform: scale(1.1);
}

#contactModal .modal-body {
	padding: 0;
}

#contactModal .modal-body .contact-form-wrapper {
	background: transparent;
	padding: 32px;
	border-radius: 0;
	max-width: none;
	width: 100%;
	margin: 0;
}

#contactModal .modal-body .contact-form-wrapper .form-input,
#contactModal .modal-body .contact-form-wrapper .form-textarea {
	background: #f0f0f0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #111111;
}

#contactModal .modal-body .contact-form-wrapper .form-input::placeholder,
#contactModal .modal-body .contact-form-wrapper .form-textarea::placeholder {
	color: #888;
	font-weight: 400;
}

#contactModal .modal-body .contact-form-wrapper .form-input:focus,
#contactModal .modal-body .contact-form-wrapper .form-textarea:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

#contactModal .modal-body .form-description {
	color: #b8b8b8;
	text-align: left;
}

#contactModal .modal-body .form-checkbox label {
	color: #b8b8b8;
}

#contactModal .modal-body .consent-link {
	color: var(--primary-color);
}

#contactModal .modal-body .consent-link:hover {
	color: #aaaaaa;
}

/* ===== PORTFOLIO MODAL ===== */
.portfolio-modal .modal-content {
	background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
	border-radius: 12px;
	max-width: 900px;
	width: 95%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
	animation: modalSlideIn 0.3s ease-out;
}

.portfolio-modal .modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	
	background: #dddddd;
	border-radius: 12px 12px 0 0;
}

.portfolio-modal .modal-header h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #111111;
}

.portfolio-modal .modal-close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #111111;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.portfolio-modal .modal-close:hover {
	background: rgba(255, 59, 48, 0.2);
	border-color: rgba(255, 59, 48, 0.4);
	transform: scale(1.1);
}

/* ===== ОБЩИЕ СТИЛИ ===== */
.consent-link {
	color: var(--primary-color);
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.3s ease;
}

.consent-link:hover {
	color: var(--primary-color);
}

/* ===== EMAIL VERIFICATION MODAL ===== */
#formVerificationModal {
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
}

#formVerificationModal .modal-content {
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	border-radius: 16px;
	max-width: 500px;
	width: 90%;
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	animation: modalSlideIn 0.3s ease-out;
	margin: 0 auto;
	color: #111111;
	padding: 0;
}

#formVerificationModal .modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #111111;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

#formVerificationModal .modal-close:hover {
	background: rgba(255, 59, 48, 0.2);
	border-color: rgba(255, 59, 48, 0.4);
	transform: scale(1.1);
}

#formVerificationModal .modal-header {
	padding: 30px 30px 20px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#formVerificationModal .modal-title {
	margin: 0 0 15px 0;
	font-size: 24px;
	font-weight: 700;
	color: #111111;
}

#formVerificationModal .modal-subtitle {
	margin: 0;
	font-size: 15px;
	color: #b8b8b8;
	line-height: 1.6;
}

#formVerificationModal .modal-subtitle strong {
	color: var(--primary-color);
	font-weight: 600;
	display: inline;
}

#formVerificationModal .modal-body {
	padding: 30px;
}

#formVerificationModal .verification-code-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#formVerificationModal .form-label {
	font-size: 14px;
	color: #b8b8b8;
	text-align: center;
	margin: 0;
}

#formVerificationModal .verification-code-inputs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 10px 0;
}

#formVerificationModal .verification-code-input {
	width: 50px;
	height: 50px;
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	color: #111111;
	transition: all 0.3s ease;
}

#formVerificationModal .verification-code-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.08);
}

#formVerificationModal .verification-error {
	color: #ff6b6b;
	font-size: 14px;
	text-align: center;
	margin: 10px 0 0;
	padding: 10px;
	background: rgba(255, 107, 107, 0.1);
	border-radius: 8px;
	border-left: 3px solid #ff6b6b;
}

#formVerificationModal .verification-timer {
	text-align: center;
	color: #b8b8b8;
	font-size: 14px;
}

#formVerificationModal .verification-timer strong {
	color: var(--primary-color);
	font-weight: 600;
}

#formVerificationModal .modal-footer {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 20px 30px 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#formVerificationModal .modal-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: 140px;
}

#formVerificationModal .modal-btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #cccccc;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

#formVerificationModal .modal-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #111111;
	transform: translateY(-1px);
}

#formVerificationModal .modal-btn-primary {
	background: linear-gradient(135deg, var(--primary-color) 0%, #bbbbbb 100%);
	color: #111111;
	border: 1px solid var(--primary-color);
}

#formVerificationModal .modal-btn-primary:hover {
	background: linear-gradient(135deg, #bbbbbb 0%, var(--primary-color) 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

/* Скрываем body overflow когда модальное окно открыто */
body.modal-open {
	overflow: hidden !important;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
	/* SMS Modal */
	#consentModal .modal-content {
		width: 95%;
		max-height: 90vh;
		margin: 20px;
	}

	#consentModal .modal-header,
	#consentModal .modal-body,
	#consentModal .modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	#consentModal .modal-header h3 {
		font-size: 20px;
	}

	#consentModal .modal-footer {
		flex-direction: column;
		gap: 8px;
	}

	#consentModal .modal-btn {
		width: 100%;
		min-width: auto;
	}

	#consentModal .modal-body {
		padding: 20px;
	}

	#consentModal .modal-body h4 {
		font-size: 16px;
	}

	#consentModal .modal-body p,
	#consentModal .modal-body li {
		font-size: 14px;
	}

	/* Contact Modal */
	#contactModal .modal-content {
		width: 95%;
		max-height: 90vh;
		margin: 20px;
	}

	#contactModal .modal-header,
	#contactModal .modal-body .contact-form-wrapper {
		padding-left: 20px;
		padding-right: 20px;
	}

	#contactModal .modal-header h3 {
		font-size: 20px;
	}

	/* Portfolio Modal */
	.portfolio-modal .modal-content {
		width: 100vw;
		height: 100dvh;
		max-width: 100vw;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
		overflow: hidden;
	}

	.portfolio-modal .modal-header,
	.portfolio-modal .modal-title,
	.portfolio-modal .modal-specs {
		display: none !important;
	}

	.portfolio-modal .modal-close {
		position: absolute;
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		z-index: 10005;
	}

	.portfolio-modal .modal-gallery {
		height: 100%;
		display: grid;
		grid-template-rows: minmax(0, 1fr) auto;
		margin-top: 0;
	}

	.portfolio-modal .gallery-main {
		height: auto;
		min-height: 0;
		align-items: stretch;
		justify-content: stretch;
	}

	.portfolio-modal .gallery-main img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.portfolio-modal .gallery-nav {
		display: flex !important;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.92);
		border: 1px solid rgba(255, 255, 255, 0.92);
		color: #111111;
		z-index: 10006;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto;
		top: 50% !important;
		transform: translateY(-50%) !important;
	}

	.portfolio-modal .gallery-nav.prev {
		left: 12px;
	}

	.portfolio-modal .gallery-nav.next {
		right: 12px;
	}

	.portfolio-modal .gallery-nav svg path {
		stroke: #111111 !important;
	}

	.portfolio-modal .gallery-thumbnails {
		padding: 10px 10px 12px;
		gap: 8px;
		border-radius: 0;
	}

	.portfolio-modal .thumbnail {
		width: 78px;
		height: 56px;
	}
	
	/* Email Verification Modal */
	#formVerificationModal .modal-content {
		width: 95%;
		max-width: 95%;
	}
	
	#formVerificationModal .modal-header {
		padding: 25px 20px 15px;
	}
	
	#formVerificationModal .modal-title {
		font-size: 20px;
	}
	
	#formVerificationModal .modal-subtitle {
		font-size: 14px;
	}
	
	#formVerificationModal .modal-body {
		padding: 20px;
	}
	
	#formVerificationModal .verification-code-input {
		width: 45px;
		height: 45px;
		font-size: 20px;
	}
	
	#formVerificationModal .modal-footer {
		flex-direction: column;
		gap: 10px;
	}
	
	#formVerificationModal .modal-btn {
		width: 100%;
		min-width: auto;
	}
}

@media (max-width: 480px) {
	#consentModal .modal-body h4 {
		font-size: 15px;
	}

	#consentModal .modal-body p,
	#consentModal .modal-body li {
		font-size: 13px;
	}

	#consentModal .modal-btn {
		padding: 10px 16px;
		font-size: 13px;
	}
}

/* Мобильная адаптация для Cookie Consent */
@media (max-width: 768px) {
	.cookie-content {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.cookie-text {
		min-width: auto;
		margin-bottom: 16px;
	}

	.cookie-buttons {
		justify-content: center;
	}

	.cookie-btn {
		flex: 1;
		min-width: 100px;
	}

	#cookieSettingsModal .modal-content {
		width: 95%;
		margin: 20px;
	}

	#cookieSettingsModal .modal-header,
	#cookieSettingsModal .modal-body,
	#cookieSettingsModal .modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.cookie-category-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}

/* Email Verification Modal Styles */
#formVerificationModal .verification-code-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

#formVerificationModal .form-label {
	font-size: 14px;
	color: #b8b8b8;
	text-align: center;
	margin: 0;
}

#formVerificationModal .verification-code-inputs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 10px 0;
}

#formVerificationModal .verification-code-input {
	width: 50px;
	height: 50px;
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	color: #111111;
	transition: all 0.3s ease;
}

#formVerificationModal .verification-code-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.08);
}

#formVerificationModal .verification-error {
	color: #ff6b6b;
	font-size: 14px;
	text-align: center;
	margin: 10px 0 0;
	padding: 10px;
	background: rgba(255, 107, 107, 0.1);
	border-radius: 8px;
	border-left: 3px solid #ff6b6b;
}

#formVerificationModal .verification-timer {
	text-align: center;
	color: #b8b8b8;
	font-size: 14px;
}

#formVerificationModal .verification-timer strong {
	color: var(--primary-color);
	font-weight: 600;
}

#formVerificationModal .modal-footer {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 20px 30px 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile styles for verification modal */
@media (max-width: 768px) {
	#formVerificationModal .modal-content {
		padding: 20px;
	}
	
	#formVerificationModal .verification-code-input {
		width: 45px;
		height: 45px;
		font-size: 20px;
	}
	
	#formVerificationModal .modal-footer {
		flex-direction: column;
		gap: 10px;
	}
}

/* Fixed close button on mobile for all modals */
@media (max-width: 768px) {
	.modal-close {
		position: sticky !important;
		top: 15px !important;
		right: 15px !important;
		z-index: 1001 !important;
		background: rgba(0, 0, 0, 0.8) !important;
		backdrop-filter: blur(10px);
		border: 1px solid rgba(255, 255, 255, 0.2) !important;
		border-radius: 50% !important;
		width: 45px !important;
		height: 45px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		font-size: 20px !important;
		color: #111111 !important;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
		margin-left: auto !important;
		margin-bottom: 15px !important;
	}
}
