:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-dark: #0f172a;
    --surface-darker: #111827;
    --line: #e5e7eb;
    --line-strong: #cbd5e1;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
main { min-height: 50vh; }
body.lightbox-open { overflow: hidden; }

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 68px 0 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-eyebrow-light {
    background: rgba(255,255,255,.14);
    color: #dbeafe;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(229,231,235,.9);
}

.nav-wrap {
    position: relative;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-no-icon {
    gap: 0;
}

.brand-mark,
.footer-brand-mark,
.admin-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--surface-darker), #1e3a8a);
    color: #fff;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}

.brand-mark img,
.footer-brand-mark img,
.admin-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-logo,
.footer-logo,
.admin-brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: contain;
}

.brand-copy strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -.04em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 12px 15px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    transition: .22s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: #eff6ff;
}

.main-nav .nav-cta {
    background: var(--surface-darker);
    color: #fff;
    padding-inline: 18px;
    box-shadow: var(--shadow-sm);
}

.main-nav .nav-cta:hover {
    background: #0b1220;
    color: #fff;
}

.mobile-toggle,
.admin-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.hero-section {
    padding: 28px 0 0;
}

.hero-intro-card,
.hero-static {
    background: linear-gradient(145deg, var(--surface-darker), var(--surface-dark));
    color: #fff;
    border-radius: 32px;
    padding: clamp(26px, 4vw, 42px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.06);
}

.hero-intro-card {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 24px;
    margin-bottom: 24px;
}

.hero-intro-card-bottom {
    margin-bottom: 0;
}

.hero-slider-solo {
    min-height: 580px;
}

.hero-intro-copy h1,
.hero-static h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.hero-intro-copy p,
.hero-static p {
    margin: 16px 0 0;
    max-width: 760px;
    font-size: 18px;
    color: rgba(255,255,255,.75);
}

.hero-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-self: end;
}

.hero-stat-box {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
}

.hero-stat-box strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.04em;
}

.hero-stat-box span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    font-weight: 600;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #0b1220;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,.18) 0%, rgba(2,6,23,.42) 40%, rgba(2,6,23,.92) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 34px 34px 88px;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37,99,235,.92);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-content h2 {
    margin: 16px 0 14px;
    max-width: 820px;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta-row span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-actions-compact {
    align-items: center;
    justify-content: space-between;
}

.hero-price {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.05em;
}

.hero-cta-link {
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-arrow,
.detail-gallery-arrow,
.lightbox-arrow,
.lightbox-close {
    border: 0;
    cursor: pointer;
    transition: .22s ease;
}

.hero-arrow {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 30px;
    backdrop-filter: blur(10px);
}

.hero-arrow:hover {
    background: rgba(255,255,255,.24);
}

.hero-dots {
    position: absolute;
    left: 28px;
    bottom: 42px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.42);
    cursor: pointer;
    transition: .22s ease;
}

.hero-dots button.active {
    width: 28px;
    background: #fff;
}

.btn,
.btn-secondary,
.btn-dark,
.btn-outline,
.btn-success,
.mobile-view-btn,
.mobile-logout-btn,
.mobile-switch-chip,
.mobile-full-btn,
.icon-btn,
.mobile-delete-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    transition: .22s ease;
}

.btn {
    background: var(--primary);
    color: #fff;
}
.btn:hover { background: var(--primary-hover); }

.btn-dark,
.mobile-logout-btn,
.mobile-full-btn {
    background: var(--surface-darker);
    color: #fff;
}
.btn-dark:hover,
.mobile-logout-btn:hover,
.mobile-full-btn:hover { background: #0b1220; }

.btn-secondary {
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: #f8fafc; }

.btn-outline,
.mobile-view-btn,
.mobile-switch-chip,
.icon-btn {
    background: #fff;
    color: var(--text);
    border-color: var(--line);
}
.btn-outline:hover,
.mobile-view-btn:hover,
.mobile-switch-chip:hover,
.icon-btn:hover {
    border-color: #bfdbfe;
    color: var(--primary);
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,.24);
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: #15803d; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-head h2,
.section-head h3,
.highlight-box h2,
.content-box h2,
.page-card h2,
.contact-cta-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.06;
    letter-spacing: -.05em;
}

.section-head p,
.highlight-box p,
.page-card p,
.content-box p,
.contact-cta-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--primary);
    font-weight: 800;
}

.section-trust { padding-top: 24px; }

.trust-grid,
.highlight-grid,
.detail-spec-grid,
.about-grid,
.contact-grid,
.footer-grid,
.admin-grid,
.form-grid,
.expertiz-admin-grid {
    display: grid;
    gap: 18px;
}

.trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card,
.detail-spec-card,
.highlight-mini-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(229,231,235,.9);
    box-shadow: var(--shadow-sm);
}

.trust-card strong,
.highlight-mini-card strong,
.detail-spec-card strong {
    display: block;
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.trust-card p,
.highlight-mini-card span,
.detail-spec-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid rgba(229,231,235,.95);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
}

.card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 35%, rgba(15,23,42,.46) 100%);
}

.card-topline {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.badge-top,
.card-year,
.badge,
.result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge-top {
    background: rgba(15,23,42,.8);
    color: #fff;
}

.card-year {
    background: rgba(255,255,255,.84);
    color: var(--text);
    backdrop-filter: blur(8px);
}

.card-price-float {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(15,23,42,.76);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.03em;
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 20px;
}

.card-kicker {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    font-weight: 800;
}

.card h3,
.card h4 {
    margin: 10px 0 14px;
    font-size: 24px;
    line-height: 1.16;
    letter-spacing: -.04em;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.card-bottom {
    margin-top: 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.card-price {
    font-size: clamp(27px, 2vw, 30px);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -.05em;
    white-space: nowrap;
}

.card-subtext {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 800;
}

.highlight-box {
    margin-top: 34px;
    padding: clamp(26px, 4vw, 42px);
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(145deg, var(--surface-darker), #0b4bb3);
    box-shadow: var(--shadow-lg);
}

.highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.highlight-mini-card {
    background: rgba(255,255,255,.09);
    border-color: rgba(255,255,255,.1);
}

.highlight-mini-card span { color: rgba(255,255,255,.72); }

.page-hero {
    padding: 48px 0 10px;
}

.page-hero-spacious { padding-top: 58px; }

.page-hero-shell {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.page-hero-shell-single {
    justify-content: flex-start;
    margin-bottom: 30px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.04;
    letter-spacing: -.05em;
}

.page-hero p {
    margin-top: 14px;
    max-width: 780px;
    color: var(--muted);
}

.result-badge {
    background: #dbeafe;
    color: var(--primary);
}

.filters {
    padding: 20px;
    border-radius: 28px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(229,231,235,.95);
    box-shadow: var(--shadow-sm);
}

.filters-enhanced {
    display: grid;
    grid-template-columns: 1.7fr .95fr .95fr auto;
    gap: 14px;
    margin-bottom: 28px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.field input,
.field textarea,
.field select,
.search-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
    min-height: 140px;
    padding: 14px 16px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.field-actions,
.filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.filter-actions > * { flex: 1; }

.page-card,
.content-box,
.panel,
.detail-main,
.table-wrap,
.stat-box,
.form-card,
.mobile-list-section,
.mobile-form-card,
.admin-login-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(229,231,235,.95);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
}

.page-card,
.content-box,
.panel-body,
.stat-box,
.form-card,
.admin-login-card { padding: 28px; }

.empty-state-card {
    display: grid;
    gap: 14px;
    justify-items: start;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 18px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumb a:hover { color: var(--primary); }

.detail-section {
    padding: 34px 0 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .95fr);
    gap: 28px;
}

.detail-content-column {
    min-width: 0;
}

.detail-sidebar { position: relative; }

.detail-side-panel {
    position: sticky;
    top: 108px;
}

.detail-main { overflow: hidden; }

.detail-gallery-stage {
    position: relative;
    background: #fff;
}

.detail-gallery-main-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.detail-gallery-main-trigger img,
.detail-gallery-stage img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.detail-gallery-main-trigger:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: -6px;
}

.detail-gallery-zoom-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15,23,42,.7);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.detail-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: rgba(15,23,42,.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.detail-gallery-arrow:hover { background: rgba(15,23,42,.92); }
.detail-gallery-arrow-prev { left: 16px; }
.detail-gallery-arrow-next { right: 16px; }

.thumb-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.thumb-row button,
.lightbox-thumbs button {
    position: relative;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: .2s ease;
}

.thumb-row button:hover,
.lightbox-thumbs button:hover {
    transform: translateY(-2px);
}

.thumb-row button.active,
.lightbox-thumbs button.active {
    border-color: var(--primary);
}

.thumb-row img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-spec-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.detail-spec-card strong {
    font-size: 20px;
    margin-top: 8px;
}

.content-box {
    margin-top: 18px;
}

.content-box-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.panel h1,
.content-box h2 {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 38px);
    line-height: 1.08;
    letter-spacing: -.05em;
}

.price-main {
    margin: 14px 0 20px;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.05em;
}

.info-list { display: grid; gap: 12px; }

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.info-row span:first-child { color: var(--muted); font-weight: 600; }
.info-row strong { text-align: right; }

.cta-stack {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.side-note-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.side-note-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.side-note-box p {
    margin: 0;
    color: #334155;
}

.expertiz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.expertiz-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f7;
}

.badge {
    background: #e2e8f0;
    color: var(--text);
}
.badge-success,
.badge-expertiz-original { background: #dcfce7; color: #15803d; }
.badge-warning,
.badge-expertiz-painted { background: #fef3c7; color: #a16207; }
.badge-muted { background: #e2e8f0; color: #475569; }
.badge-expertiz-local { background: #fed7aa; color: #c2410c; }
.badge-expertiz-changed { background: #fecaca; color: var(--danger); }

.lightbox[hidden] { display: none !important; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,.84);
    backdrop-filter: blur(6px);
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: calc(100vh - 32px);
}

.lightbox-content {
    position: relative;
    padding: 22px;
    border-radius: 28px;
    background: rgba(15,23,42,.34);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 30px 80px rgba(0,0,0,.34);
    overflow: hidden;
}

.lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(68vh, 760px);
    touch-action: pan-y;
}

.lightbox-stage img {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 18px;
    background: #020617;
}

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.78);
    color: #fff;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(15,23,42,.96); }

.lightbox-close {
    top: 14px;
    right: 14px;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    font-size: 32px;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    font-size: 34px;
}

.lightbox-arrow-prev { left: 14px; }
.lightbox-arrow-next { right: 14px; }

.lightbox-footer {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.lightbox-counter {
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 800;
}

.lightbox-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(74px, 96px);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.lightbox-thumbs img {
    width: 100%;
    height: 76px;
    object-fit: cover;
}

.about-grid { grid-template-columns: 1.15fr .85fr; }

.about-points {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.about-points strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
}

.about-points span { color: var(--muted); }

.contact-grid {
    grid-template-columns: 1.05fr .95fr;
}

.contact-card-stack,
.contact-cta-card {
    min-height: 100%;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-item:first-child { padding-top: 0; }

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 900;
}

.contact-cta-card {
    background: linear-gradient(145deg, var(--surface-darker), var(--surface-dark));
    color: #fff;
}
.contact-cta-card p { color: rgba(255,255,255,.72); }

.site-footer {
    margin-top: 80px;
    padding: 54px 0 24px;
    background: linear-gradient(180deg, #0b1120 0%, #020617 100%);
    color: #fff;
}

.footer-grid {
    grid-template-columns: 1.3fr .8fr .95fr;
}

.footer-column h4 {
    margin: 0 0 14px;
    font-size: 16px;
    letter-spacing: .02em;
}

.footer-brand-wrap {
    display: flex;
    align-items: start;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-brand {
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.05em;
}

.footer-note,
.footer-column p,
.footer-links li,
.footer-contact-list span {
    color: rgba(255,255,255,.68);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-links a:hover { color: #fff; }

.footer-contact-list li {
    display: grid;
    gap: 4px;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.58);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

/* Admin */
.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-login-card {
    width: min(460px, 100%);
}

.admin-login-card h1 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -.04em;
}

.admin-login-card p { margin: 0 0 18px; color: var(--muted); }

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-weight: 700;
}

.notice.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-sidebar {
    width: 290px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color: #fff;
}

.admin-brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-brand-copy strong {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
}

.admin-brand-copy span {
    color: #60a5fa;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.admin-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(255,255,255,.68);
    font-weight: 800;
}

.admin-nav a.active,
.admin-nav a:hover {
    color: #fff;
    background: rgba(37,99,235,.92);
}

.admin-sidebar-bottom {
    margin-top: auto;
    padding: 20px;
    display: grid;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.admin-view-btn {
    color: var(--text) !important;
}

.settings-media-preview {
    margin-top: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
}

.settings-media-preview img {
    display: block;
    max-width: 220px;
    max-height: 64px;
    object-fit: contain;
}

.settings-media-preview-icon img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 16px;
}

.settings-remove-check {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--danger);
    font-weight: 700;
}

.settings-remove-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--danger);
}

.field-section-title {
    margin-top: 8px;
}

.field-section-title label {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .02em;
}

.admin-main {
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    min-height: 78px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229,231,235,.94);
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-content { padding: 24px; }
.admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.stat-value {
    margin-top: 10px;
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.05em;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.table-wrap {
    overflow: auto;
    padding: 10px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.table-wrap th,
.table-wrap td {
    padding: 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: middle;
}

.table-wrap thead th {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.table-image {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border-radius: 14px;
    background: #f8fafc;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full,
.field.full { grid-column: 1 / -1; }

.check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f8fafc;
    font-weight: 700;
    line-height: 1.3;
}

.inline-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    margin: 0;
    flex: 0 0 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    position: relative;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: none;
}

.inline-check input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.inline-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.image-choice-grid,
.live-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.image-choice,
.live-preview-card {
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.image-choice-main {
    position: relative;
    display: grid;
    gap: 10px;
    cursor: pointer;
    padding-top: 26px;
}

.image-choice-main input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    border: 2px solid #94a3b8;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.image-choice-main input[type="radio"]:checked {
    border-color: var(--primary);
}

.image-choice-main input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: var(--primary);
}

.image-choice-main img,
.live-preview-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.image-delete-btn {
    width: 100%;
    margin-top: 10px;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
    font-weight: 800;
    cursor: pointer;
}

.live-preview-head,
.empty-upload-note {
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 700;
}

.live-preview-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
    word-break: break-word;
}

.mobile-admin-body {
    background: #f7f7f2;
}

.mobile-login-shell,
.mobile-app-shell {
    min-height: 100vh;
}

.mobile-login-shell {
    display: grid;
    place-items: center;
    padding: 18px;
}

.mobile-login-card {
    width: min(480px, 100%);
    padding: 26px;
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(229,231,235,.95);
    box-shadow: var(--shadow-md);
}

.mobile-login-logo {
    width: 84px;
    height: 84px;
    margin: 0 auto 16px;
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
}

.mobile-login-headline {
    text-align: center;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.05em;
}

.mobile-login-subtitle,
.mobile-login-tip {
    text-align: center;
    color: var(--muted);
}

.mobile-login-card p {
    margin: 12px 0 16px;
    text-align: center;
    color: var(--muted);
}

.mobile-app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.mobile-app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-app-brand img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.mobile-app-brand strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
}

.mobile-app-brand span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-app-content {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 16px 16px calc(110px + env(safe-area-inset-bottom));
}

.mobile-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-switch-chip.active {
    background: var(--surface-darker);
    color: #fff;
    border-color: var(--surface-darker);
}

.mobile-list-section,
.mobile-form-card { overflow: hidden; }

.mobile-section-head,
.mobile-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid #eef2f7;
}

.mobile-section-head h1,
.mobile-form-head h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -.05em;
}

.mobile-section-head p,
.mobile-form-head p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.mobile-list-grid,
.mobile-form-grid {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.mobile-list-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.mobile-list-thumb {
    width: 108px;
    height: 108px;
    border-radius: 18px;
    object-fit: cover;
}

.mobile-list-meta h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
}

.mobile-list-sub {
    color: var(--muted);
    font-size: 13px;
}

.mobile-list-price {
    margin: 10px 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.mobile-list-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-card-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
}
.mobile-card-actions > * { flex: 1; }

.mobile-two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-accordion {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f8fafc;
    overflow: hidden;
}

.mobile-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 900;
}
.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion summary::after { content: '+'; font-size: 22px; color: #64748b; }
.mobile-accordion[open] summary::after { content: '−'; }
.mobile-accordion-body { padding: 0 14px 14px; }
.mobile-expertiz-grid { padding: 0 !important; border: 0; background: transparent; display: grid; gap: 12px; }

.mobile-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    margin-top: 8px;
    background: linear-gradient(180deg, rgba(247,247,242,0) 0%, rgba(247,247,242,.96) 26%, rgba(247,247,242,1) 100%);
}

/* Responsive */
@media (max-width: 1100px) {
    .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-intro-card { grid-template-columns: 1fr; }
    .about-grid,
    .contact-grid,
    .footer-grid,
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side-panel { position: static; }
}

@media (max-width: 940px) {
    .header-actions { position: static; }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        width: min(320px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border-radius: 24px;
        background: rgba(255,255,255,.98);
        border: 1px solid rgba(229,231,235,.96);
        box-shadow: var(--shadow-md);
        z-index: 80;
    }

    .main-nav.open { display: flex; }
    .main-nav .nav-cta { width: 100%; }
    .mobile-toggle { display: inline-flex; }
    .trust-grid,
    .highlight-grid,
    .admin-grid,
    .detail-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters-enhanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-actions { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .container { width: min(1240px, calc(100% - 24px)); }
    .hero-slider,
    .hero-slider-solo { min-height: 520px; }
    .hero-content { padding: 24px 22px 86px; }
    .hero-actions-compact { align-items: flex-start; }
    .hero-meta-row span { font-size: 12px; }
    .hero-controls { right: 14px; bottom: 18px; }
    .hero-dots { left: 22px; bottom: 28px; }
    .thumb-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lightbox { padding: 10px; }
    .lightbox-content { padding: 14px 14px 16px; border-radius: 22px; }
    .lightbox-stage { min-height: 54vh; }
    .lightbox-stage img { max-height: 54vh; }
    .lightbox-arrow { width: 46px; height: 46px; font-size: 28px; }
    .lightbox-close { width: 44px; height: 44px; font-size: 28px; top: 8px; right: 8px; }
    .lightbox-thumbs { grid-auto-columns: minmax(64px, 80px); }
    .lightbox-thumbs img { height: 64px; }
    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 70;
        transform: translateX(-100%);
        transition: transform .24s ease;
        box-shadow: var(--shadow-lg);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
    .main-nav {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .section { padding-top: 56px; }
    .nav-wrap { min-height: 78px; }
    .brand-copy strong { font-size: 19px; }
    .hero-intro-card,
    .hero-static,
    .highlight-box,
    .page-card,
    .content-box,
    .panel-body,
    .form-card,
    .admin-login-card { padding: 22px; }
    .hero-stat-strip,
    .trust-grid,
    .highlight-grid,
    .listing-grid,
    .filters-enhanced,
    .admin-grid,
    .detail-spec-grid,
    .form-grid,
    .expertiz-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .section-head,
    .page-hero-shell,
    .content-box-head,
    .toolbar,
    .mobile-section-head,
    .mobile-form-head,
    .footer-bottom {
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
    }
    .hero-slider,
    .hero-slider-solo { min-height: 440px; }
    .hero-content h2,
    .page-hero h1,
    .panel h1,
    .content-box h2 { font-size: 30px; }
    .hero-cta-link { width: 100%; justify-content: center; }
    .thumb-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; gap: 10px; }
    .detail-gallery-arrow { width: 42px; height: 42px; font-size: 28px; }
    .detail-gallery-arrow-prev { left: 10px; }
    .detail-gallery-arrow-next { right: 10px; }
    .detail-gallery-zoom-badge { left: 12px; bottom: 12px; padding: 8px 12px; font-size: 12px; }
    .info-row { align-items: start; }
    .mobile-list-card { grid-template-columns: 96px 1fr; }
    .mobile-list-thumb { width: 96px; height: 96px; }
    .mobile-two-grid,
    .mobile-sticky-actions { grid-template-columns: 1fr; }
}
