/* ===================================================
   Karavany24.cz – hlavní stylesheet
   =================================================== */

:root {
    --green:        #1D9E75;
    --green-dark:   #0F6E56;
    --green-light:  #E1F5EE;
    --green-mid:    #9FE1CB;
    --amber:        #EF9F27;
    --amber-light:  #FAEEDA;
    --blue-light:   #E6F1FB;
    --blue:         #185FA5;
    --red:          #E24B4A;
    --red-light:    #FCEBEB;

    --bg:           #F7F8F6;
    --surface:      #FFFFFF;
    --border:       #E2E8E4;
    --border-dark:  #C8D4CE;

    --text:         #1A2420;
    --text-muted:   #5A6B65;
    --text-light:   #8FA39C;

    --radius:       10px;
    --radius-lg:    14px;
    --shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    --shadow-md:    0 4px 16px rgba(0,0,0,.10);

    --font:         'DM Sans', system-ui, sans-serif;
    --font-serif:   'DM Serif Display', serif;

    --max-w:        1200px;
    --header-h:     64px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---- layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===================================================
   HEADER
   =================================================== */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 400;
    flex-shrink: 0;
}
.logo strong { font-weight: 600; color: var(--green); }
.logo-icon {
    width: 32px; height: 32px;
    background: var(--green);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 18px; height: 18px; }
.logo-icon-sm { width: 24px; height: 24px; border-radius: 6px; }
.logo-icon-sm svg { width: 14px; height: 14px; }
.logo-small { font-size: 1rem; }

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
}
.nav-link {
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: .9rem;
    transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link.active {
    background: var(--green-light);
    color: var(--green-dark);
}

.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: .2s;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-dark);
    background: var(--surface);
    color: var(--text);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { background: var(--bg); border-color: var(--green-mid); color: var(--text); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--bg); border-color: var(--border); }
.btn-danger { background: var(--red-light); border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: .8rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===================================================
   FORMS
   =================================================== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(29,158,117,.12);
}
.form-control.error { border-color: var(--red); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 1rem; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-hint { font-size: .8rem; color: var(--text-light); margin-top: 3px; }

/* ===================================================
   ALERTS / FLASH
   =================================================== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}
.alert-success { background: var(--green-light); border-color: var(--green-mid); color: var(--green-dark); }
.alert-error   { background: var(--red-light);   border-color: #f09595;          color: #A32D2D; }
.alert-info    { background: var(--blue-light);   border-color: #B5D4F4;          color: var(--blue); }
.alert-warning { background: var(--amber-light);  border-color: #FAC775;          color: #633806; }

/* ===================================================
   BADGES
   =================================================== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: .75rem;
    font-weight: 500;
}
.badge-top      { background: var(--amber-light); color: #633806; }
.badge-firm     { background: var(--blue-light);  color: var(--blue); }
.badge-active   { background: var(--green-light); color: var(--green-dark); }
.badge-pending  { background: var(--amber-light); color: #633806; }
.badge-expired  { background: var(--bg);          color: var(--text-muted); border: 1px solid var(--border); }
.badge-rejected { background: var(--red-light);   color: #A32D2D; }

/* ===================================================
   HERO / SEARCH BAR
   =================================================== */
.hero {
    background: linear-gradient(135deg, var(--green-light) 0%, #c5eedd 100%);
    padding: 48px 0 36px;
    border-bottom: 1px solid var(--green-mid);
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--green-dark);
    margin-bottom: .4rem;
}
.hero p { color: var(--green-dark); opacity: .8; margin-bottom: 1.5rem; font-size: 1rem; }
.hero-stats { display: flex; gap: 24px; margin-top: 1.25rem; }
.hero-stat { font-size: .875rem; color: var(--green-dark); }
.hero-stat strong { font-weight: 600; }

.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--surface);
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--green-mid);
    box-shadow: var(--shadow);
}
.search-form .form-control {
    flex: 1;
    min-width: 140px;
    border-color: var(--border);
    background: var(--bg);
}
.search-form .form-control:focus { background: var(--surface); }

/* ===================================================
   AD GRID / CARDS
   =================================================== */
.content-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
}

.sidebar-filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.sidebar-filters h3 {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.filter-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-section label { font-size: .8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 5px; display: block; }
.filter-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .875rem; cursor: pointer; }
.checkbox-item input[type=checkbox] { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.toolbar-count { font-size: .9rem; color: var(--text-muted); }
.toolbar-count strong { color: var(--text); }
.toolbar-sort select { padding: 6px 10px; border: 1px solid var(--border-dark); border-radius: var(--radius); font-size: .85rem; background: var(--surface); }

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.ad-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    display: flex;
    flex-direction: column;
}
.ad-card:hover {
    border-color: var(--green-mid);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.ad-card a { text-decoration: none; color: inherit; }

.ad-thumb {
    position: relative;
    height: 155px;
    background: var(--green-light);
    overflow: hidden;
}
.ad-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.ad-card:hover .ad-thumb img { transform: scale(1.04); }
.ad-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--green-mid);
}
.ad-thumb-placeholder svg { width: 52px; height: 52px; }

.ad-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.ad-badge-right { position: absolute; top: 8px; right: 8px; }

.ad-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.ad-title { font-size: .925rem; font-weight: 600; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
.ad-price { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin-top: auto; }
.ad-price span { font-size: .75rem; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.ad-footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.ad-location, .ad-date { font-size: .75rem; color: var(--text-light); }

/* ===================================================
   AD DETAIL
   =================================================== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 28px 0 48px;
    align-items: start;
}
.detail-gallery { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 420px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 6px; padding: 8px; background: var(--bg); flex-wrap: wrap; }
.gallery-thumb {
    width: 68px; height: 52px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--green); }

.detail-title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 400; margin: 16px 0 4px; }
.detail-price { font-size: 2rem; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; }
.detail-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 14px;
}
.param-item {}
.param-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.param-value { font-size: .95rem; font-weight: 600; color: var(--text); }
.detail-description { font-size: .95rem; line-height: 1.75; color: var(--text); white-space: pre-wrap; }

.seller-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.seller-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.seller-name { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.seller-type { font-size: .8rem; color: var(--text-muted); margin-bottom: 16px; }
.seller-contact { display: flex; flex-direction: column; gap: 10px; }
.contact-btn { text-align: center; }
.contact-form textarea { min-height: 90px; }

/* ===================================================
   PAYMENT PAGE
   =================================================== */
.payment-card {
    max-width: 520px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.payment-card h1 { font-size: 1.4rem; margin-bottom: 6px; }
.payment-amount { font-size: 2.5rem; font-weight: 700; color: var(--green-dark); margin: 16px 0; }
.payment-qr { text-align: center; margin: 20px 0; }
.qr-placeholder {
    width: 160px; height: 160px;
    background: var(--bg);
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: .8rem; color: var(--text-muted);
}
.payment-details { background: var(--bg); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.payment-detail-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .9rem; }
.payment-detail-row:last-child { margin-bottom: 0; }
.payment-detail-row .label { color: var(--text-muted); }
.payment-detail-row .value { font-weight: 600; }

/* ===================================================
   AUTH FORMS
   =================================================== */
.auth-wrap {
    min-height: calc(100vh - var(--header-h) - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 24px; font-size: .9rem; }
.auth-footer { margin-top: 20px; text-align: center; font-size: .875rem; color: var(--text-muted); }

/* ===================================================
   DASHBOARD
   =================================================== */
.dashboard-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    margin-bottom: 28px;
}
.dashboard-header h1 { font-size: 1.4rem; }
.dashboard-header p { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.subscription-banner {
    background: linear-gradient(135deg, var(--green-light), #c5eedd);
    border: 1px solid var(--green-mid);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.my-ads-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.my-ads-table th { background: var(--bg); padding: 10px 14px; font-size: .8rem; font-weight: 600; text-align: left; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.my-ads-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
.my-ads-table tr:last-child td { border-bottom: none; }
.my-ads-table tr:hover td { background: var(--bg); }
.td-title { font-weight: 500; color: var(--text); }
.td-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===================================================
   ADMIN
   =================================================== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.stat-card .label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 6px; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.stat-card .value.green { color: var(--green-dark); }

.admin-section { margin-bottom: 36px; }
.admin-section h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); font-size: .875rem; }
.admin-table th { background: var(--bg); padding: 9px 12px; font-size: .75rem; font-weight: 600; text-align: left; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

/* ===================================================
   PRICING BAR
   =================================================== */
.pricing-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.pricing-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: border-color .2s, box-shadow .2s;
}
.pricing-card:hover { border-color: var(--green-mid); box-shadow: var(--shadow); }
.pricing-card.featured { border-color: var(--green); border-width: 2px; }
.pricing-card .plan-name { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 8px; }
.pricing-card .plan-price { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.pricing-card .plan-price span { font-size: .875rem; font-weight: 400; color: var(--text-muted); }
.pricing-card .plan-desc { font-size: .875rem; color: var(--text-muted); margin-top: 6px; }
.pricing-card ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.pricing-card ul li { font-size: .85rem; color: var(--text); }
.pricing-card ul li::before { content: '✓ '; color: var(--green); font-weight: 600; }

/* ===================================================
   PAGINATION
   =================================================== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: .875rem;
    color: var(--text-muted);
    background: var(--surface);
    transition: .15s;
    text-decoration: none;
}
.pagination a:hover { border-color: var(--green-mid); color: var(--green-dark); }
.pagination span.current { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 40px; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-bottom: 32px; }
.footer-tagline { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 10px; }
.footer-col a { display: block; font-size: .875rem; color: var(--text-muted); margin-bottom: 6px; transition: color .15s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 14px 0;
    display: flex;
    align-items: center;
}
.footer-bottom .container { display: flex; justify-content: space-between; width: 100%; font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--green); }

/* ===================================================
   EMPTY STATE
   =================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 16px; opacity: .3; }
.empty-state h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: .9rem; }

/* ===================================================
   UTILITIES
   =================================================== */
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: .5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-600 { font-weight: 600; }
.section-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 4px; }
.section-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }
.page-wrap { padding: 32px 0 60px; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 960px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar-filters { position: static; }
    .detail-layout { grid-template-columns: 1fr; }
    .seller-card { position: static; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-actions { display: none; }
    .hamburger { display: flex; }

    .main-nav.open, .header-actions.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--surface);
        padding: 16px;
        border-bottom: 1px solid var(--border);
        z-index: 99;
        box-shadow: var(--shadow-md);
    }

    .hero h1 { font-size: 1.5rem; }
    .search-form { flex-direction: column; }
    .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
    .ads-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ads-grid { grid-template-columns: 1fr; }
    .gallery-main img { height: 260px; }
    .detail-params { grid-template-columns: 1fr; }
    .my-ads-table { font-size: .8rem; }
    .payment-card { padding: 20px; }
}
