<style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        }
        
        body {
            background-color: #ffffff;
            color: #1e293b;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* Header */
        header {
            background: white;
            padding: 16px 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo {
            font-size: 20px;
            font-weight: 700;
            color: #FF6B00;
            text-decoration: none;
        }
        
        .search-container {
            flex: 1;
            display: flex;
            gap: 8px;
        }
        
        .search-input {
            flex: 1;
            padding: 10px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .search-input:focus {
            border-color: #FF6B00;
        }
        
        .category-select {
            padding: 10px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            background: white;
            font-size: 14px;
            outline: none;
        }
        
        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 16px auto;
            padding: 0 12px;
            flex: 1;
        }
        
        .grid-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
        
        .card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            text-decoration: none;
            color: inherit;
            transition: transform 0.2s ease;
        }
        
        .card:hover {
            transform: translateY(-2px);
        }
        
        .card-image {
            width: 100%;
            height: 140px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .favorite-icon {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 28px;
            height: 28px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .favorite-icon svg {
            width: 16px;
            height: 16px;
            fill: #64748b;
        }
        
        .favorite-icon.active svg {
            fill: #FF6B00;
        }
        
        .card-content {
            padding: 12px;
        }
        
        .card-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 6px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .card-price {
            font-size: 16px;
            font-weight: 700;
            color: #FF6B00;
            margin-bottom: 4px;
        }
        
        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: #64748b;
        }
        
        .card-location {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .card-location svg {
            width: 12px;
            height: 12px;
            fill: #64748b;
        }
        
        /* Bottom Navigation */
        nav {
            background: white;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 12px 0;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
            border-top: 1px solid #f1f5f9;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #64748b;
            font-size: 12px;
            font-weight: 500;
            transition: color 0.2s ease;
        }
        
        .nav-item.active, .nav-item:hover {
            color: #FF6B00;
        }
        
        .nav-icon {
            width: 24px;
            height: 24px;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-icon svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 14px;
            }
            
            .card-image {
                height: 120px;
            }
            
            .header-content {
                flex-direction: column;
                gap: 12px;
            }
            
            .search-container {
                width: 100%;
            }
        }
        
        @media (max-width: 480px) {
            header {
                padding: 12px 16px;
            }
            
            .logo {
                font-size: 18px;
            }
            
            .search-input, .category-select {
                padding: 8px 10px;
                font-size: 13px;
            }
            
            .card-image {
                height: 110px;
            }
            
            .card-title {
                font-size: 13px;
            }
            
            .card-price {
                font-size: 15px;
            }
        }
        
        /* Single Ad Page Styles */
        .single-ad {
            display: none;
        }
        
        .single-ad.visible {
            display: block;
        }
        
        .gallery {
            height: 300px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
        }
        
        .ad-content {
            padding: 20px;
        }
        
        .ad-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
            color: #1e293b;
        }
        
        .ad-price {
            font-size: 24px;
            font-weight: 700;
            color: #FF6B00;
            margin-bottom: 16px;
        }
        
        .ad-description {
            font-size: 14px;
            line-height: 1.6;
            color: #475569;
            margin-bottom: 16px;
        }
        
        .ad-date {
            font-size: 13px;
            color: #64748b;
            margin-bottom: 24px;
        }
        
        .action-bar {
            position: fixed;
            bottom: 60px;
            left: 0;
            right: 0;
            background: white;
            padding: 16px;
            display: flex;
            gap: 12px;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
            border-top: 1px solid #f1f5f9;
        }
        
        .action-btn {
            flex: 1;
            padding: 14px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background-color 0.2s;
        }
        
        .btn-call {
            background: #dcfce7;
            color: #16a34a;
        }
        
        .btn-whatsapp {
            background: #dcfce7;
            color: #16a34a;
        }
        
        .btn-sms {
            background: #dbeafe;
            color: #2563eb;
        }
        
        .action-btn:hover {
            opacity: 0.9;
        }
        
        .back-btn {
            position: fixed;
            top: 16px;
            left: 16px;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: #1e293b;
            font-weight: 600;
            z-index: 101;
            display: none;
        }
        
        .back-btn.visible {
            display: flex;
        }
        
        .back-btn svg {
            width: 16px;
            height: 16px;
            fill: #1e293b;
        }
		
		/* ---------- мини-кнопки связи ---------- */
.action-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 16px;        /* ← чуть меньше вертикального отступа */
    display: flex;
    gap: 10px;
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    border-top: 1px solid #f1f5f9;
}

.action-btn {
    flex: 1;
    padding: 8px 4px;          /* ← уменьшили высоту */
    border: none;
    border-radius: 10px;
    font-size: 13px;           /* ← меньше текст */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;     /* для <a> */
    color: inherit;
    transition: opacity .2s;
}
.action-btn:hover { opacity: .9; }

.btn-call  { background: #dcfce7; color: #16a34a; }
.btn-whatsapp { background: #dcfce7; color: #16a34a; }
.btn-sms   { background: #dbeafe; color: #2563eb; }

.action-btn svg {
    width: 18px;               /* уменьшили иконки */
    height: 18px;
    fill: currentColor;
}
    </style>