@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/montserrat/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Xolonium';
    src: url('/public/fonts/Xolonium/Xolonium-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* > a {
    color: #3498db;
}

html {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.2;
    color: #333;
    background-color: black;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
    background-color: black;
}

.container {
    flex: 1 0 auto;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 0px 40px 0px;
    width: 100%;
}

.navbar {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    flex-shrink: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


.logo-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Xolonium', sans-serif;
    font-weight: 900;
    margin: 0px 0px 0px 3px;
}

.montserrat {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

h4 {
    margin-bottom: 8px;
}

.logo-image {
    height: 1.5em;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: #34495e;
}

.site-footer {
    background: #000;
    color: white;
    padding: 40px 0 20px;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-section p {
    color: white;
    line-height: 1.6;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    padding: 8px 15px;
    background: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #3498db;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid #34495e;
    text-align: center;
    color: white;
    font-size: 0.9rem;
}

.footer-bottom p {

    color: gray;
}

.footer-bottom a {
    color: #3498db;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.auth-form-container {

    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.auth-form-container::before {

}

.auth-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-form .form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.auth-form .form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form .form-group input {
    padding: 14px 16px;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.auth-form .form-group input:focus {
    outline: none;

	
	border-color: inherit !important;
    box-shadow: none !important;
	
	
    background: white;

    transform: translateY(-0px);
}

.auth-form .form-group input:hover {
    border-color: #bdc3c7;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-links p {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ad-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.auth-form-container .btn {
    padding: 15px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-form-container .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.auth-form-container .btn-primary:hover {
    transform: translateY(-0px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.auth-form-container .btn-primary:active {
    transform: translateY(0);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-form-container .alert {
    padding: 16px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

.auth-form-container .alert-error {
    background: #fff5f5;
    color: #c53030;
    border-left-color: #fc8181;
    box-shadow: 0 2px 10px rgba(252, 129, 129, 0.1);
}

.auth-form-container .alert p {
    margin: 5px 0;
}

.auth-form-container .alert p:first-child {
    margin-top: 0;
}

.auth-form-container .alert p:last-child {
    margin-bottom: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form .form-group input::placeholder {
    color: #a0aec0;
    transition: color 0.3s ease;
}

.auth-form .form-group input:focus::placeholder {
    color: #cbd5e0;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-notice h3 {
    color: #856404;
    margin-bottom: 10px;
}

.current-balance {
    background: #e9f7ef;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.current-balance h3 {
    color: #155724;
    margin: 0;
}

.chat-container {
    display: flex;
    height: 600px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #ddd;
    background: white;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
}

.message.own {
    background: #3498db;
    color: white;
    margin-left: auto;
}

.message.other {
    background: #e0e0e0;
    color: #333;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
    padding: 0 10px;
}

.ad-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #e0e0e0;
}

.ad-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-card:hover .ad-image img {
    transform: scale(1.05);
}

.ad-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 48px;
    color: #bdc3c7;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ad-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ad-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #27ae60;
    margin: 8px 0;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ad-meta {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
}

.ad-category, .ad-author, .ad-date {
    font-size: 0.9rem;
    color: #5a6c7d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.ad-category strong, .ad-author strong {
    color: #2c3e50;
    min-width: 80px;
    font-weight: 600;
}

.ad-date {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.ad-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.ad-actions .btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
    transform: translateY(-0px);
}

.ad-actions .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
}

.ad-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.no-ads {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.ads-header {
    text-align: center;
    padding-bottom: 30px;
    background: black;
    color: white;
    position: relative;
    overflow: hidden;
}

.ads-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ads-header h1 {
    font-family: 'Xolonium', sans-serif;
    font-weight: 900;
}

.montserrat {
    font-family: 'Montserrat';
}

.ads-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ads-header .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ads-header .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-card {
    animation: fadeInUp 0.6s ease-out;
}

.ad-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.ad-card:nth-child(even) {
    animation-delay: 0.2s;
}

.header_city_background {
    background: url('/public/images/city_header.webp') repeat-x;
    background-size: auto 100%;
    background-position: center bottom;
    width: 100%;
    position: relative;
    min-height: 150px;
}



.header_city_background .navbar {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    margin: 0;
}

.header_city_background .nav-menu a {
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header_city_background .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-0px);
}

.header_city_background .navbar {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    margin: 0;
}

.header_city_background .nav-container {
   /*  padding: 15px 20px; */
}

.header_city_background .nav-logo {
    color: #2c3e50;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.3s ease;
}

.header_city_background .nav-logo:hover {
    color: #3498db;
}

.header_city_background .nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header_city_background .nav-menu a {
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.header_city_background .nav-menu a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    border-color: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.header_city_background .nav-menu a[href="/logout"] {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.header_city_background .nav-menu a[href="/logout"]:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.header_city_background .nav-menu a[href="/balance"] {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
    font-weight: 600;
}

.header_city_background .nav-menu a[href="/balance"]:hover {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}






.static-page {
    margin: 0 auto;
	    margin-top: 10px !important;
    padding: 0px !important;
}

.page-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 40px 20px 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.page-header h1 {
    font-size: 2.5rem;

}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-content section {
    margin-bottom: 10px;
}

.page-content h2:not(.universal-featured-section h2) {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    text-align: center;
}

.metric-item {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.metric-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.investment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.investment-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.investment-card.highlighted {
    border-color: #3498db;
    transform: scale(1.05);
    position: relative;
}

.investment-card.highlighted::before {
    content: "🔥 РЕКОМЕНДУЕМ";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.investment-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.investment-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 20px;
}

.investment-details {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.investment-details li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.investment-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.investment-status {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: #f8f9fa;
}

.team-member {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.member-photo {
    font-size: 4rem;
    margin-bottom: 20px;
}

.team-member h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.member-role {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 15px;
}

.member-bio {
    color: #7f8c8d;
    line-height: 1.6;
}

.contact-section {
    background: white;
    padding: 5px 10px 15px 10px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-info {
    margin: 30px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.investor-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.account-page {
    width: 100%;
    margin: 0 auto;
}

.account-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 10px;
}

.account-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 20px;
    height: fit-content;
    position: sticky;
  
}

.avatar-section {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #e0e0e0;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.btn-avatar-change {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

.rating-section {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.rating-stars {
    margin-bottom: 8px;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.filled {
    color: #ffc107;
}

.rating-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.reviews-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.sidebar-nav {
    margin-bottom: 25px;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
}

.categories-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-item:last-child {
    border-bottom: none;
}

.category-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.ads-count {
    color: #7f8c8d;
}

.remaining-ads {
    color: #27ae60;
    font-weight: bold;
}

.no-remaining {
    color: #e74c3c;
    font-weight: bold;
}

.no-categories {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
}

.account-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    color: #2c3e50;
    margin: 0;
}

.status-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.status-btn {
    background: none;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.status-btn.active {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-btn.active .badge {
    background: white;
    color: #3498db;
}

.account-content .ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.account-content .ad-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-content .ad-card:hover {
    transform: translateY(-0px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.account-content .ad-image {
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.account-content .ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-content .no-image {
    font-size: 3rem;
    color: #bdc3c7;
}

.account-content .ad-content {
    padding: 15px;
}

.account-content .ad-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.3;
}

.account-content .ad-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 8px;
}

.account-content .ad-category {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.account-content .ad-date {
    color: #95a5a6;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.account-content .ad-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.account-content .no-ads, .loading, .error {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.account-content .no-ads h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.avatar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 16px;
    color: #666;
}

.loading-ads {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-size: 14px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: #4CAF50;
}

.notification-error {
    background: #f44336;
}

.notification-info {
    background: #2196F3;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification-error {
    background: #f44336;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
	
	
	
    
    .social-links {
        justify-content: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-menu a {
        margin: 0;
    }
    
    .chat-container {
        height: 400px;
        flex-direction: column;
    }
    
    .ads-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 5px;
    }
    
    .form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .container {
        padding: 0px !important;
    }
    
    .auth-form-container {
        margin: 20px;
        padding: 30px 25px;
    }
    
    .auth-form-container h2 {
        font-size: 24px;
    }
    
    .auth-form .form-group input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .auth-form-container .btn {
        padding: 14px 20px;
    }
    
    .header_city_background {
        min-height: 120px;
        background-size: auto 120px;
    }
    
    .header_city_background .nav-container {
        padding: 10px 15px;
    }
    
    .header_city_background .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .header_city_background .nav-menu a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .header_city_background .nav-logo {
        font-size: 3rem;
        gap: 8px;
    }
    
    .header_city_background .logo-image {
        height: 1.3em;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .metrics-grid,
    .investment-cards,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .investment-card.highlighted {
        transform: none;
    }
    
    .investor-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .investor-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .account-page {
      /*   padding: 10px; */
    }
    
    .account-container {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
    }
    
    .status-nav {
        flex-direction: column;
    }
    
    .account-content .ads-grid {
        grid-template-columns: 1fr;
    }
    
    .account-content .ad-actions {
        flex-direction: column;
    }
    
    .account-content .ad-actions .btn {
        width: 100%;
        text-align: center;
    }

    .nav-logo {
        font-size: 1.3rem;
        gap: 8px;
        margin-top: 20px !important;
        margin: 0 auto;
    }
    
    .logo-image {
        height: 1.3em;
    }
    
    .ads-header {
        margin-bottom: 20px;
    }
    
    .ads-header h1 {
        font-size: 2rem;
    }
    
    .ad-card {
        border-radius: 12px;
    }
    
    .ad-content {
        padding: 16px;
    }
    
    .ad-actions {
        flex-direction: column;
    }
    
    .ad-actions .btn {
        flex: none;
    }
}

@media (max-width: 480px) {
    .ads-header h1 {
        font-size: 1.75rem;
    }
    
    .ad-title {
        font-size: 1.1rem;
    }
    
    .ad-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .account-container {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
    }
}

.nav-menu .nav-link {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid;
    text-decoration: none;
    margin-left: 10px;
    white-space: nowrap;
}

.navbar .nav-link {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link:hover {
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header_city_background .nav-link {
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.header_city_background .nav-link:hover {
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-login {
    border-color: #3498db !important;
    background: rgba(52, 152, 219, 0.15) !important;
    color: #2980b9 !important;
}

.nav-register {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.15) !important;
    color: #229954 !important;
}

.nav-create-ad {
    border-color: #e67e22 !important;
    background: rgba(230, 126, 34, 0.15) !important;
    color: #d35400 !important;
}

.nav-messages {
    border-color: #9b59b6 !important;
    background: rgba(155, 89, 182, 0.15) !important;
    color: #8e44ad !important;
}

.nav-account {
    border-color: #1abc9c !important;
    background: rgba(26, 188, 156, 0.15) !important;
    color: #16a085 !important;
}

.nav-balance {
    border-color: #f1c40f !important;
    background: rgba(241, 196, 15, 0.15) !important;
    color: #f39c12 !important;
    font-weight: bold !important;
}

.nav-logout {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.15) !important;
    color: #c0392b !important;
}

.navbar .nav-login:hover { background: rgba(52, 152, 219, 0.3) !important; }
.navbar .nav-register:hover { background: rgba(39, 174, 96, 0.3) !important; }
.navbar .nav-create-ad:hover { background: rgba(230, 126, 34, 0.3) !important; }
.navbar .nav-messages:hover { background: rgba(155, 89, 182, 0.3) !important; }
.navbar .nav-account:hover { background: rgba(26, 188, 156, 0.3) !important; }
.navbar .nav-balance:hover { background: rgba(241, 196, 15, 0.3) !important; }
.navbar .nav-logout:hover { background: rgba(231, 76, 60, 0.3) !important; }

.header_city_background .nav-login:hover { 
    background: rgba(52, 152, 219, 0.25) !important; 
    color: #21618c !important;
}
.header_city_background .nav-register:hover { 
    background: rgba(39, 174, 96, 0.25) !important; 
    color: #196f3d !important;
}
.header_city_background .nav-create-ad:hover { 
    background: rgba(230, 126, 34, 0.25) !important; 
    color: #b35a0a !important;
}
.header_city_background .nav-messages:hover { 
    background: rgba(155, 89, 182, 0.25) !important; 
    color: #6c3483 !important;
}
.header_city_background .nav-account:hover { 
    background: rgba(26, 188, 156, 0.25) !important; 
    color: #117864 !important;
}
.header_city_background .nav-balance:hover { 
    background: rgba(241, 196, 15, 0.25) !important; 
    color: #b7950b !important;
}
.header_city_background .nav-logout:hover { 
    background: rgba(231, 76, 60, 0.25) !important; 
    color: #922b21 !important;
}

@media (max-width: 768px) {
    .nav-menu .nav-link {
        margin: 5px;
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .nav-logo {
        margin: 0 auto;
    }
}

/* ===== СТИЛИ ДЛЯ НОВОЙ СЕКЦИИ С ИНСТРУМЕНТАМИ ПОД НАВБАРОМ ===== */
.nav-tools-container {
    background: #000;
    padding: 0px 0px 10px 0px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.nav-tools-container .nav-tools-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-tools-container .nav-tools {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* Поиск - теперь первый и занимает больше места */
.nav-tools-container .search-container {
    flex: 1;
    max-width: none;
}

.nav-tools-container .search-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-tools-container .search-input-group:focus-within {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.nav-tools-container .search-input {
    flex: 1;
    padding: 11px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    width: 100%;
    color: white;
}

.nav-tools-container .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Категории - теперь второй */
.nav-tools-container .categories-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nav-tools-container .categories-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tools-container .categories-toggle:hover {
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.nav-tools-container .categories-icon {
    font-size: 1.1rem;
}

.nav-tools-container .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-tools-container .categories-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-tools-container .categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2980b9;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0;
    z-index: 1000;
    display: none;
    border: 1px solid #e0e0e0;
    min-width: 280px;
    width: auto;
    max-width: 400px;
}

.nav-tools-container .categories-dropdown.active .categories-menu {
    display: block;
    animation: slideUp 0.3s ease;
}

.nav-tools-container .categories-hierarchy {
    position: relative;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
}

.nav-tools-container .categories-level {
    display: none;
}

.nav-tools-container .categories-level.active {
    display: block;
}

.nav-tools-container .categories-section {
}

.nav-tools-container .categories-section h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.nav-tools-container .categories-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.nav-tools-container .categories-back {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 10px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-tools-container .categories-back:hover {
    background: #f8f9fa;
}

.nav-tools-container .categories-header h4 {
    margin: 0;
    color: white;
    font-size: 1rem;
}

.nav-tools-container .categories-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Стилизация скроллбара для категорий */
.nav-tools-container .categories-list::-webkit-scrollbar {
    width: 6px;
}

.nav-tools-container .categories-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.nav-tools-container .categories-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.nav-tools-container .categories-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.nav-tools-container .category-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-tools-container .category-link {
    flex: 1;
    text-decoration: none;
    color: #2c3e50 !important;
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-weight: 500;
}

.nav-tools-container .category-link:hover {
    color: #3498db !important;
}

.nav-tools-container .category-name {
    flex-grow: 1;
}

.nav-tools-container .category-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    margin-left: 8px;
    color: white;
    font-size: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.nav-tools-container .category-arrow:hover {
    background-color: #3498db;
    color: white;
    transform: scale(1.1);
}

.nav-tools-container .category-final-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #3498db !important;
    border-radius: 6px;
    margin-bottom: 4px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #3498db;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.1);
}

.nav-tools-container .category-final-link:hover {
    background: #3498db;
    color: white !important;
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.nav-tools-container .loading, 
.nav-tools-container .no-results, 
.nav-tools-container .error {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

.nav-tools-container .error {
    color: #e74c3c;
}

/* Локация - теперь третий */
.nav-tools-container .location-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nav-tools-container .location-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 150px;
}

.nav-tools-container .location-toggle:hover {
    border-color: #3498db;
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.nav-tools-container .location-icon {
    font-size: 1rem;
}

.nav-tools-container .location-text {
    flex: 1;
    text-align: left;
}

.nav-tools-container .location-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #2c3e50;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    margin-top:10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tools-container .location-dropdown:hover .location-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-tools-container .location-search {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tools-container .location-search-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s ease;
    color: white;
}

.nav-tools-container .location-search-input:focus {
    border-color: #3498db;
}

.nav-tools-container .location-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-tools-container .location-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-tools-container .location-section {
    padding: 0 15px;
    margin-bottom: 15px;
}

.nav-tools-container .location-section h4 {
    color: #ecf0f1;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-tools-container .location-section a {
    display: block;
    padding: 4px 0px;
    color: #FFF;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 2px;
}

.nav-tools-container .location-section a:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.2);
}

/* Кнопка Найти - теперь отдельная и четвертая */
.nav-tools-container .search-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-tools-container .search-submit-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.nav-tools-container .search-submit-btn:active {
    transform: translateY(0);
}

.nav-tools-container .search-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-tools-container .search-submit-btn:hover .search-icon {
    transform: scale(1.1);
}

/* Анимации для плавного взаимодействия */
.nav-tools-container .search-input-group,
.nav-tools-container .categories-toggle,
.nav-tools-container .location-toggle,
.nav-tools-container .search-submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 983px) {
    .nav-tools-container {
        padding: 10px 0;
    }
    
    .nav-tools-container .nav-tools-wrapper {
        padding: 0 15px;
    }
    
    .nav-tools-container .nav-tools {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-tools-container .search-container,
    .nav-tools-container .categories-dropdown,
    .nav-tools-container .location-dropdown {
        width: 100%;
    }
    
    .nav-tools-container .search-input-group {
        border-radius: 12px;
    }
    
    .nav-tools-container .categories-toggle,
    .nav-tools-container .location-toggle,
    .nav-tools-container .search-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-tools-container .location-toggle {
        min-width: auto;
    }
    
    .nav-tools-container .categories-menu {
        width: 100%;
        position: fixed;
        left: 0;
        top: auto;
        bottom: 0;
        height: 70vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    
    .nav-tools-container .categories-dropdown.active .categories-menu {
        transform: translateY(0);
    }
    
    .nav-tools-container .categories-menu {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-tools-container .location-menu {
        width: 100%;
        right: auto;
        left: 0;
    }
}

/* Для планшетов */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-tools-container .nav-tools {
        gap: 12px;
    }
    
    .nav-tools-container .categories-menu {
        width: 500px;
        grid-template-columns: 1fr 1fr;
    }
    
    .nav-tools-container .location-toggle {
        min-width: 140px;
    }
}

/* Улучшения для темной темы */
.navbar .nav-tools-container {
    background: rgba(44, 62, 80, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .search-input-group {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar .search-input {
    color: white;
    background: transparent;
}

.navbar .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar .categories-toggle {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.navbar .location-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar .location-toggle:hover {
    border-color: #3498db;
}

.navbar .search-submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.navbar .search-submit-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.navbar .categories-menu,
.navbar .location-menu {
    background: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .categories-section h4,
.navbar .location-section h4 {
    color: #ecf0f1;
    border-color: #3498db;
}

.navbar .categories-section a,
.navbar .location-section a {
    color: #bdc3c7;
}

.navbar .categories-section a:hover,
.navbar .location-section a:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.2);
}

.navbar .location-search-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.navbar .location-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Для темной темы навбара */
.navbar .categories-menu {
    background: #2c3e50;
    border-color: #34495e;
}

.navbar .categories-section h4,
.navbar .categories-header h4 {
    color: #ecf0f1;
    border-color: #3498db;
}

.navbar .category-link {
    color: #ecf0f1 !important;
}

.navbar .category-link:hover {
    color: #3498db !important;
}

.navbar .category-item-wrapper:hover {
    background: #34495e;
    border-color: #4a5f7a;
}

.navbar .categories-back {
    color: white;
    background: rgba(52, 152, 219, 0.1);
}

.navbar .categories-back:hover {
    background: rgba(52, 152, 219, 0.2);
}

.navbar .categories-list::-webkit-scrollbar-track {
    background: #34495e;
}

.navbar .categories-list::-webkit-scrollbar-thumb {
    background: #5a6c7d;
}

.navbar .categories-list::-webkit-scrollbar-thumb:hover {
    background: #6c7d8f;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== СТИЛИ ДЛЯ НОВОЙ СТРУКТУРЫ КАТЕГОРИЙ ===== */

.categories-hierarchy {
    position: relative;
    min-height: 300px;
}

.categories-level {
    display: none;
    margin:20px;
}

.categories-level.active {
    display: block;
}

.categories-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.categories-back {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 10px;
    font-size: 14px;
}

.categories-back:hover {
    text-decoration: underline;
}

.categories-list {
    max-height: 400px;
    overflow-y: auto;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background-color 0.2s;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-name {
    flex: 1;
}

.category-arrow {
    color: #666;
    font-size: 12px;
}

.category-final-link {
    display: block;
    padding: 10px 12px;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2px;
    font-weight: 500;
}

.category-final-link:hover {
    background-color: #e3f2fd;
    color: #0056b3;
}

.loading, .no-results, .error {
    padding: 20px;
    text-align: center;
    color: #666;
}

.error {
    color: #dc3545;
}

.category-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.category-item-wrapper:hover {
    background-color: #f5f5f5;
}

.category-link {
    flex: 1;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.category-link:hover {
    color: #007bff;
}

.category-name {
    flex-grow: 1;
}

.category-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
    transition: all 0.2s;
}

.category-arrow:hover {
    background-color: #e9ecef;
    color: #333;
}

.category-final-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #007bff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.category-final-link:hover {
    background-color: #e3f2fd;
    color: #0056b3;
}

.categories-level {
    position: relative;
}

.categories-level.active {
    display: block !important;
}

.categories-level:not(.active) {
    display: none !important;
}

.categories-menu {
    position: absolute;
    z-index: 1000;
    background: #3498db;
    border: 1px solid #ddd;
}

.categories-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Стили для логотипа в футере */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-logo .logo-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo .logo-text-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    margin: 0px 0px 0px 3px;
}

.footer-logo .logo-image {
    height: 1.5em;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
   /*  filter: brightness(0) invert(1); */
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-logo {
        font-size: 1.3rem;
        gap: 8px;
    }
    
    .footer-logo .logo-image {
        height: 1.3em;
    }
    
    .footer-logo .logo-text-container {
        margin: 0px 0px 0px 2px;
    }
}

.footer-logo.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
  
    font-weight: bold;
}

.footer-logo.nav-logo .logo-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo.nav-logo .logo-text-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Xolonium', sans-serif;
    font-weight: 900;
    margin: 0px 0px 0px 3px;
}

.footer-logo.nav-logo .logo-image {
    height: 1.5em;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
/*     filter: brightness(0) invert(1); */
}

.nav-logo,
.footer-section .nav-logo,
.site-footer .nav-logo {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.nav-logo .logo-text-container,
.footer-section .nav-logo .logo-text-container,
.site-footer .nav-logo .logo-text-container {
}

@media (max-width: 768px) {
    body {
        background: #000;
    }
    
    .page-wrapper {
        overflow-x: hidden;
    }
    
    .header_city_background {
        background-size: cover;
        min-height: 120px;
    }
}

.navbar, .nav-tools-container, .header_city_background {
    width: 100%;
    min-width: 320px;
}

@media (max-width: 1024px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }
    
    .nav-logo {
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    .nav-menu a {
        margin: 2px;
        flex: 1;
        min-width: 140px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu a {
        width: 100%;
        max-width: 280px;
        margin: 3px 0;
    }
    
    .nav-logo {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-tools-container {
        padding: 10px 0;
        background: #000;
    }
    
    .nav-tools-container .nav-tools-wrapper {
        padding: 0 15px;
    }
    
    .nav-tools-container .nav-tools {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .nav-tools-container .search-container,
    .nav-tools-container .categories-dropdown,
    .nav-tools-container .location-dropdown {
        width: 100%;
    }
    
    .nav-tools-container .search-input-group {
        width: 100%;
        border-radius: 12px;
    }
    
    .nav-tools-container .categories-toggle,
    .nav-tools-container .location-toggle,
    .nav-tools-container .search-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .nav-tools-container .location-toggle {
        min-width: auto;
    }
    
    .nav-tools-container .search-input,
    .nav-tools-container .categories-toggle,
    .nav-tools-container .location-toggle,
    .nav-tools-container .search-submit-btn {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
}

.navbar, 
.nav-tools-container, 
.header_city_background {
    position: relative;
    z-index: 100;
}

.nav-menu a,
.nav-tools-container > * {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.container, .nav-container {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .header_city_background {
        min-height: auto;
        background-size: cover;
    }
    
    .nav-tools-container {
        padding: 10px 0;
    }
}

.nav-container {
    max-width: 100% !important;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.nav-logo {
    flex-shrink: 0;
    order: 1;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    order: 2;
    flex: 1;
    margin-left: 20px;
}

@media (max-width: 1100px) {
    .nav-container {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-logo {
        order: 1;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .nav-menu {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        flex: 0 1 auto;
        min-width: 140px;
        text-align: center;
        margin: 2px;
    }
}

@media (max-width: 600px) {
    .nav-container {
        gap: 10px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .nav-menu a {
        width: 100%;
        max-width: 280px;
        margin: 2px 0;
        text-align: center;
        justify-content: center;
    }
    
    .nav-logo {
        padding: 5px 0;
    }
}

@media (max-width: 1100px) {
    .nav-logo {
        display: flex;
        justify-content: center;
        text-align: center;
    }
    
    .logo-text-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nav-logo {
        font-size: 2.5rem;
    }
    
    .logo-image {
        height: 1.3em;
    }
}

.navbar {
    overflow: hidden;
    min-height: 60px;
}

.nav-menu a {
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar, .nav-container, .nav-menu {
    box-sizing: border-box;
}

.static-page .page-content {
    color: #666666;
}

.static-page .page-content h2,
.static-page .page-content h3,
.static-page .page-content h4 {
    color: #2c3e50;
}

.static-page .page-content a {
}

.static-page .page-content a.text-link {
}

.static-page .page-content a:hover,
.static-page .page-content a.text-link:hover {
}

.moderator-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 16px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin: 15px 0;
    color: #333;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.moderator-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.moderator-btn:hover {
    opacity: 0.9;
    transform: translateY(-0px);
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #F44336;
    color: white;
}

.btn-warning {
    background: #FF9800;
    color: white;
}

.btn-info {
    background: #2196F3;
    color: white;
}

.ad-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ad-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.moderation-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.user-info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.user-stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

div#breadcrumbs-bottom {
    margin-top: 10px;
}

.breadcrumbs {
    max-width: 1200px;
    padding: 0px 0px 0px 0px;
    margin-bottom:10px;
    padding: 0 10px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #2c3e50;
    font-weight: 500;
}

div.breadcrumbs:last-of-type {
    margin-top: 10px;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #95a5a6;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 16px;
        margin: 0px auto;
		   margin-bottom:10px;
        padding: 8px 10px 0px 10px;
    }
    
    .category-breadcrumbs {
        padding: 8px 10px;
    }
    
    .breadcrumb-separator {
        margin: 0 5px;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.auth-form-container {

    margin: 0px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.auth-form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
 
}

.btn-primary:hover {
    background-color: #0056b3;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links p {
    margin: 10px 0;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}


/* Masonry стили для главной страницы */
.masonry {
    transition: all .5s ease-in-out;
    column-gap: 30px;
    column-fill: initial;
    column-count: 5;
    max-width: 1800px;
    margin: 0 auto;
  
}

.masonry .brick {
    margin-bottom: 30px;
    display: inline-block;
    vertical-align: top;
    text-align: justify;
    width: 100%;
    break-inside: avoid;
}

.masonry .compact-ad-container {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.masonry .compact-ad-card {
    width: 100% !important;
}

@media (max-width: 1600px) {
    .masonry {
        column-count: 4;
    }
}

@media (max-width: 1200px) {
    .masonry {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry {
        column-count: 2;
        column-gap: 5px !important;
    
    }
    
    .masonry .brick {
        margin-bottom: 5px !important;
    }
}



/* Для совсем маленьких экранов (до 360px) */
@media (max-width: 360px) {
    .masonry {
        column-count: 1; /* Переключаем на одну колонку */
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .masonry .compact-ad-container {
        min-height: 450px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .masonry .compact-ad-container {
        min-height: 500px;
    }
}

@media (min-width: 1201px) and (max-width: 1600px) {
    .masonry .compact-ad-container {
        min-height: 550px;
    }
}

@media (min-width: 1601px) {
    .masonry .compact-ad-container {
        min-height: 600px;
    }
}

.ads-grid {
    display: none;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }
    
    .nav-logo {
        width: 100% !important;
        justify-content: center !important;
        margin: 5px 0 !important;
        padding: 0 !important;
    }
    
    .nav-menu {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .nav-menu .nav-link {
        flex: 1 0 auto !important;
        margin: 2px !important;
        text-align: center !important;
        min-width: 0 !important;
        padding: 8px 5px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }
    
    .nav-icon {
        display: inline-block;
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        margin-top:5px !important;
    }
}

@media (max-width: 768px) {
    .ads-header {
        margin-bottom: -30px;
        margin-top:10px;
    }
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ТЕХОБСЛУЖИВАНИЯ ===== */
.maintenance-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.maintenance-page .maintenance-header-city {
    height: 12.5rem;
    background: url('/public/images/city_header.webp') repeat-x;
    background-size: auto 100%;
    background-position: center bottom;
    min-height: 9.375rem;
}

.maintenance-page .logo-image {
    filter: none !important;
}

.maintenance-page .centered-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.maintenance-page .stub-content {
    max-width: 50rem;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.maintenance-page .maintenance-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 0.9375rem;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.1);
    margin-top: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.maintenance-page .stub-logo.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
    text-decoration: none;
    margin-bottom: 2.5rem;
    color: #2c3e50;
}

.maintenance-page .logo-image-container,
.maintenance-page .logo-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-page .logo-image {
    width: 7.5rem;
    height: 7.5rem;
    object-fit: contain;
}

.maintenance-page .logo-text-container {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
}

.maintenance-page .maintenance-message h1 {
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

.maintenance-page .maintenance-text {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5625rem;
}

.maintenance-page .text-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.maintenance-page .text-link:hover {
    text-decoration: underline;
}

.maintenance-page .maintenance-contact {
    background: #f8f9fa;
    padding: 1.5625rem;
    border-radius: 0.625rem;
    margin: 1.875rem 0;
    text-align: left;
}

.maintenance-page .maintenance-contact h3 {
    color: #2c3e50;
    margin-bottom: 0.9375rem;
    font-size: 1.25rem;
}

.maintenance-page .maintenance-contact p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.maintenance-page .maintenance-contact strong {
    color: #2c3e50;
}

/* Адаптивность для страницы техобслуживания */
@media (max-width: 48rem) {
    .maintenance-page .maintenance-header-city {
        height: 9.375rem;
        min-height: 7.5rem;
        background-size: auto 7.5rem;
    }
    
    .maintenance-page .centered-logo {
        min-height: 60vh;
        padding: 1.25rem;
    }
    
    .maintenance-page .stub-logo.nav-logo {
        margin-bottom: 1.875rem;
    }
    
    .maintenance-page .logo-image {
        width: 4.375rem;
        height: 4.375rem;
    }
    
    .maintenance-page .logo-text-container {
        font-size: 2.25rem;
    }
    
    .maintenance-page .maintenance-message {
        padding: 1.25rem;
        margin-top: 1.25rem;
    }
    
    .maintenance-page .maintenance-message h1 {
        font-size: 1.5rem;
    }
    
    .maintenance-page .maintenance-text {
        font-size: 1rem;
    }
    
    .maintenance-page .maintenance-contact {
        padding: 0.9375rem;
    }
    
    .maintenance-page .maintenance-contact h3 {
        font-size: 1.125rem;
    }
    
    .maintenance-page .maintenance-contact p {
        font-size: 0.875rem;
    }
}

@media (max-width: 30rem) {
    .maintenance-page .maintenance-header-city {
        height: 6.25rem;
        min-height: 6.25rem;
        background-size: auto 6.25rem;
    }
    
    .maintenance-page .logo-image {
        width: 3.125rem;
        height: 3.125rem;
    }
    
    .maintenance-page .logo-text-container {
        font-size: 1.75rem;
    }
    
    .maintenance-page .maintenance-message h1 {
        font-size: 1.25rem;
    }
    
    .maintenance-page .maintenance-text {
        font-size: 0.875rem;
    }
    
    .maintenance-page .maintenance-contact h3 {
        font-size: 1rem;
    }
    
    .maintenance-page .maintenance-contact p {
        font-size: 0.8125rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-logo {
    width: fit-content !important;
    max-width: 100%;
}

.margin-zero-auto {
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    .footer-section:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .footer-logo.nav-logo {
        order: 1 !important;
        margin-bottom: 15px;
    }
    
    .footer-section:first-child p {
        order: 2 !important;
        width: 100%;
        margin: 8px 0;
    }
    
    .footer-section:nth-child(2) {
        order: 2;
    }
    
    .footer-section:nth-child(3) {
        order: 3;
    }
}

div.footer-section >  p:first-of-type {
    font-weight: bold;
}

/* Стили для результатов поиска городов */
#city-search-results {
    max-height: 300px;
    overflow-y: auto;
    background: #2c3e50;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#city-search-results .popular-city.search-result-item {
    display: block;
    padding: 10px 15px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#city-search-results .popular-city.search-result-item:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    transform: translateX(5px);
}

#city-search-results .popular-city.search-result-item:last-child {
    border-bottom: none;
}

#city-search-results .city-icon {
    margin-right: 8px;
    font-size: 1rem;
}

#city-search-results .city-name {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

#city-search-results .search-result-region {
    display: block;
    font-size: 0.8rem;
    color: #95a5a6;
    font-style: italic;
}

#city-search-results .no-results,
#city-search-results .error {
    padding: 15px;
    text-align: center;
    color: #bdc3c7;
    font-style: italic;
}

#city-search-results .error {
    color: #e74c3c;
}

/* Стили для популярных городов в меню */
.popular-cities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.popular-cities .popular-city {
    display: block;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-cities .popular-city:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.popular-cities .city-icon {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* ===== ИСПРАВЛЕНИЯ ДЛЯ ПРИЖАТИЯ ФУТЕРА И СКРОЛЛА ===== */

/* Основной контейнер body */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Обертка страницы - занимает всё доступное пространство */
.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: 0;
}

/* Основной контент - занимает оставшееся пространство */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    z-index: 0;
    background-color: black;
}

/* Контейнер внутри main-content с авто-скроллом */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 0px 40px 0px;
  
    min-height: 0;
    overflow-y: auto;
}

/* Шапка - прижата к верху */
.navbar, .header_city_background {
    flex-shrink: 0;
}

/* Подвал - всегда прижат к низу */
.site-footer {
    background: #000;
    color: white;
    padding: 40px 0 20px;
    flex-shrink: 0;
    margin-top: auto;
}

/* Убираем фиксированную высоту у чата и других элементов */
.chat-container {
    flex: 1;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Исправление для masonry */
.masonry {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Убираем лишние margin/padding для аккуратного скролла */
.container > *:first-child {
    margin-top: 0;
}

.container > *:last-child {
    margin-bottom: 0;
}

/* Адаптивные исправления */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        overflow-y: auto;
    }
    
    .main-content {
        overflow-y: auto;
    }
    
    /* Убираем горизонтальный скролл на мобильных */
    body {
        overflow-x: hidden;
    }
    
    .page-wrapper {
        overflow-x: hidden;
    }
	
	
	
	.container {
		padding: 0px 5px !important;
	}
	
}

/* Улучшение скроллбара для WebKit браузеров */
.container::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.masonry::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.masonry::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.container::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.masonry::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.container::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.masonry::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Для Firefox */
.container {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Гарантируем, что HTML тоже занимает всю высоту */
html {
    height: 100%;
}

/* Базовые стили для masonry */
.ads-header {
    text-align: center;
}

.ads-header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.masonry {
    transition: all .5s ease-in-out;
    column-gap: 10px;
    column-fill: initial;
    column-count: 5;
    max-width: 100%;
    margin: 0 auto;

    box-sizing: border-box;
}

.masonry .brick {
    margin-bottom: 10px;
    display: inline-block;
    vertical-align: top;
    text-align: justify;
    width: 100%;
    break-inside: avoid;
}

.masonry .compact-ad-container,
.masonry .compact-ad-card {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.no-ads {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.2rem;
    column-span: all;
}

/* Responsive columns */
@media (max-width: 1600px) {
    .masonry { column-count: 4; }
}
@media (max-width: 1200px) {
    .masonry { column-count: 3; }
}
@media (max-width: 900px) {
    .masonry { column-count: 2; }
}


/* Исправление для masonry контента */
.masonry {
    flex: 1;
    min-height: 0;
}

.toggle-container {

 

    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;

	width: fit-content;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-label {
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}



.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 5px 0px 15px 0px;
    flex-wrap: wrap;
}

.page-link {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.page-link.current {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

/* В стили добавьте */
.category-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.category-name::after {
    content: attr(data-count);
    font-size: 0.8em;
    color: #888;
    margin-left: 5px;
    font-weight: normal;
}



/* торг */
\     
        
		.blocked-field {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.blocked-field.blocked-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blocked-field.blocked-active input {
    pointer-events: none;
}

.blocked-field.blocked-active .scambio-content {
    pointer-events: none;
}


        /* Flex Standard стили */
        .flexstandard {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: flex-start;
        }
        
        .flexstandard-item {
            flex: 0 0 auto;
            max-width: 100%;
        }
          
        
        /* Дополнительные утилиты */
        .flexstandard-nowrap {
            flex-wrap: nowrap;
            overflow-x: auto;
        }
        
        .flexstandard-center {
            justify-content: center;
        }
        
        .flexstandard-between {
            justify-content: space-between;
        }
        
        .flexstandard-around {
            justify-content: space-around;
        }
		
		.scambio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.scambio-option {
    flex: 0 0 auto;
    cursor: pointer;
    user-select: none;
    max-width: 100%;
}

.scambio-radio {
    display: none;
}

.scambio-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow-wrap: break-word;
    hyphens: auto;
}

.scambio-radio:checked + .scambio-content {
    background: #e7f3ff;
    border-color: #0066cc;
    color: #0066cc;
    font-weight: 500;
}

.scambio-option:hover .scambio-content {
    background: #e9ecef;
}

.scambio-emoji {
    font-size: 16px;
    overflow-wrap: break-word;
    hyphens: auto;
}

.scambio-text {
    font-size: 14px;
    overflow-wrap: break-word;
    hyphens: auto;
}


     

/* Стиль для кнопки "О компании" */
.nav-about {
    border-color: #17a2b8 !important;
    background: rgba(23, 162, 184, 0.15) !important;
    color: #138496 !important;
}

.navbar .nav-about:hover {
    background: rgba(23, 162, 184, 0.3) !important;
}

.header_city_background .nav-about:hover {
    background: rgba(23, 162, 184, 0.25) !important;
    color: #117a8b !important;
}


.account-sidebar {
	width:300px;	
	}	
		
		
		/* Контейнер изображения для позиционирования цены */
.compact-main-image {
    position: relative;
}

/* Стили цены поверх изображения */
.compact-price-on-image {
    position: absolute;
    bottom: 10px;      /* отступ снизу */
    right: 10px;       /* отступ справа */
    margin: 0;
    padding: 5px  5px 5px 10px;
    z-index: 2;        /* поверх картинки */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    /* Стили из .style5 (как в show.php) */
    background: #ffd32a;
    color: #1e272e;
    border-radius: 20px 0px 20px 0;
    transform: rotate(-2deg);
    border: 2px dashed #1e272e;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .compact-price-on-image {
        font-size: 0.9rem;
        padding: 5px;
        bottom: 10px;
        right: 10px;
    }
}