*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.h2Title
{
	text-align: center;
	font-size: 30px;
    margin: 26px 0 26px;
    font-weight: 400;
    line-height: 1;
	color: #616161;
}

body
{
	font: 14px / 1.3 Roboto, Arial, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	margin: 0;
	background-color: #f8f9fa;
}

.container {
	flex: 1;
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
	width: 100%;
}

.footer {
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 40px 0 20px;
	margin-top: auto; /* Это опускает футер вниз */
	width: 100%;
}

html
{
	background-color: #FFFFFF;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
}

.site-info h2 {
	color: #fff;
	margin-bottom: 15px;
	font-size: 28px;
}

.copyright {
	color: #ccc;
	font-size: 14px;
	margin-top: 10px;
}

.footer-links h3,
.contact-info h3 {
	color: #fff;
	margin-bottom: 20px;
	font-size: 18px;
}

.footer-links ul {
	list-style: none;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: #667eea;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	color: #ccc;
}

.contact-item i {
	margin-right: 10px;
	width: 20px;
	text-align: center;
}

.footer-bottom {
	text-align: center;
	padding: 20px 0 0;
	margin-top: 30px;
	border-top: 1px solid #444;
}

@media (max-width: 768px) {
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	
	.main-button {
		min-width: 150px;
		padding: 15px;
	}
}

.top-bar {
	background: #667eea;
	padding: 15px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

.logo-section {
	display: flex;
	align-items: center;
	gap: 25px;
	flex: 1;
}

.logo h1 {
	color: white;
	font-size: 28px;
	font-weight: bold;
	margin: 0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
	white-space: nowrap;
	cursor: pointer;
}

.divider {
	width: 1px;
	height: 35px;
	background: rgba(255, 255, 255, 0.2);
}

.search-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.search-container {
	display: flex;
	background: white;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border: 1px solid #ddd;
}

.search-container:hover {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
	border-color: #ccc;
}

.search-input {
	flex: 1;
	padding: 12px 18px;
	border: none;
	outline: none;
	font-size: 16px;
	background: transparent;
}

.search-input::placeholder {
	color: #888;
}

.search-btn {
	padding: 12px 20px;
	background: #4a5568;
	color: white;
	border: none;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	border-left: 1px solid #ddd;
}

.search-btn:hover {
	background: #2d3748;
}

.search-stats {
	text-align: center;
}

.companies-count {
	color: rgba(255, 255, 255, 0.95);
	font-size: 14px;
	font-weight: 500;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.auth-buttons {
	display: flex;
	gap: 12px;
}

.auth-btn {
	padding: 10px 20px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	background: transparent;
	color: white;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.auth-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
}

.login-btn {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.4);
}

.login-btn:hover {
	background: rgba(255, 255, 255, 0.25);
}

.user-profile {
	display: flex;
	align-items: center;
	gap: 15px;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 10px;
	color: white;
	font-weight: 500;
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 3px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	object-fit: cover;
}

.user-name {
	white-space: nowrap;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.logout-btn {
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 16px;
}

.logout-btn:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.5);
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 2000;
}

.modal {
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-width: 400px;
	position: relative;
}

.register-modal {
	max-width: 450px;
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
}

.modal h2 {
	text-align: center;
	margin-bottom: 25px;
	color: #333;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-group input {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.form-group input:focus {
	outline: none;
	border-color: #667eea;
}

.submit-btn {
	padding: 12px;
	background: linear-gradient(45deg, #667eea, #764ba2);
	color: white;
	border: none;
	border-radius: 4px;
	font-weight: bold;
	cursor: pointer;
	margin-top: 10px;
}

.email-confirm-modal .modal {
	max-width: 400px;
}

.email-confirm-content {
	text-align: center;
}

.email-icon {
	font-size: 50px;
	margin-bottom: 20px;
}

.confirm-message {
	margin-bottom: 25px;
	line-height: 1.5;
	color: #666;
}

.code-inputs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 25px;
}

.code-input {
	width: 40px;
	height: 50px;
	text-align: center;
	font-size: 20px;
	border: 2px solid #ddd;
	border-radius: 5px;
	transition: border-color 0.3s ease;
}

.code-input:focus {
	border-color: #667eea;
	outline: none;
}

.timer {
	margin-bottom: 20px;
	color: #666;
	font-size: 14px;
}

.resend-btn {
	background: #ccc;
	color: #666;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: not-allowed;
	margin-top: 10px;
	width: 100%;
}

.resend-btn:enabled {
	background: #4a5568;
	color: white;
	cursor: pointer;
}

.resend-btn:enabled:hover {
	background: #2d3748;
}

.notification-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 350px;
}

.notification {
	padding: 15px 20px;
	border-radius: 8px;
	color: white;
	font-weight: 500;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transform: translateX(100%);
	opacity: 0;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 10px;
}

.notification.show {
	transform: translateX(0);
	opacity: 1;
}

.notification.hide {
	transform: translateX(100%);
	opacity: 0;
}

.notification.success {
	background: linear-gradient(45deg, #48bb78, #38a169);
	border-left: 4px solid #2f855a;
}

.notification.error {
	background: linear-gradient(45deg, #f56565, #e53e3e);
	border-left: 4px solid #c53030;
}

.notification.warning {
	background: linear-gradient(45deg, #ed8936, #dd6b20);
	border-left: 4px solid #c05621;
}

.notification.info {
	background: linear-gradient(45deg, #4299e1, #3182ce);
	border-left: 4px solid #2b6cb0;
}

.notification-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.notification-content {
	flex: 1;
}

.notification-close {
	background: none;
	border: none;
	color: white;
	font-size: 18px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease;
	padding: 0;
	margin-left: 10px;
}

.notification-close:hover {
	opacity: 1;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideOut {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(100%);
		opacity: 0;
	}
}

@media (max-width: 1024px) {
	.top-bar-container {
		flex-direction: column;
		gap: 20px;
	}
	
	.logo-section {
		width: 100%;
		justify-content: center;
	}
	
	.auth-buttons {
		width: 100%;
		justify-content: center;
	}
	.user-profile {
		flex-direction: column;
		gap: 10px;
	}
}

@media (max-width: 768px) {
	.top-bar-container {
		padding: 0 15px;
	}
	
	.logo-section {
		flex-direction: column;
		gap: 15px;
	}
	
	.divider {
		width: 50px;
		height: 1px;
		background: rgba(255, 255, 255, 0.3);
	}
	
	.logo h1 {
		font-size: 24px;
	}
	
	.search-container {
		flex-direction: column;
		border-radius: 3px;
	}
	
	.search-input {
		padding: 10px 15px;
		border-bottom: 1px solid #eee;
	}
	
	.search-btn {
		padding: 10px 15px;
		border-left: none;
		border-top: 1px solid #eee;
	}
	
	.auth-buttons {
		flex-direction: column;
		gap: 10px;
	}
	
	.auth-btn {
		padding: 8px 16px;
	}

	.user-info {
		flex-direction: column;
		text-align: center;
	}
	.city-modal-content {
		width: 95%;
		margin: 10px;
	}

	.city-modal-header {
		padding: 15px;
	}

	.city-modal-body {
		padding: 15px;
	}

	.city-btn {
		padding: 12px 16px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.logo h1 {
		font-size: 20px;
	}
	
	.search-input {
		font-size: 14px;
	}
	
	.companies-count {
		font-size: 12px;
	}
	
	.auth-btn {
		font-size: 14px;
	}
	
	.user-name {
		font-size: 14px;
	}
}

.city-confirm-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: none;
}

.city-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
}

.city-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 15px;
	padding: 0;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.city-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #eee;
}

.city-modal-header h3 {
	margin: 0;
	color: #333;
	font-size: 20px;
}

.city-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.city-modal-close:hover {
	color: #333;
}

.city-modal-body {
	padding: 20px;
}

.city-modal-body p {
	margin: 0 0 20px 0;
	color: #555;
	line-height: 1.5;
}

.city-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 20px 0;
}

.city-btn {
	padding: 14px 20px;
	border: none;
	border-radius: 8px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 16px;
}

.confirm-btn {
	background: linear-gradient(45deg, #667eea, #764ba2);
	color: white;
}

.confirm-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cancel-btn {
	background: #f8f9fa;
	color: #666;
	border: 1px solid #ddd;
}

.cancel-btn:hover {
	background: #e9ecef;
}

.city-notice {
	text-align: center;
	color: #999;
	margin-top: 15px;
	font-size: 12px;
}