:root {
    --bg: #101719;
    --surface: #172124;
    --surface-2: #1c292b;
    --white: #f5f4ef;
    --muted: #a5adab;
    --gold: #c9a66b;
    --gold-light: #e1c18d;
    --emerald: #2dd4bf;
    --blue: #60a5fa;
    --line: rgba(255,255,255,.13);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================================================== */
/* HEADER & NAVIGATION                                                        */
/* ========================================================================== */

.header {
    height: 82px;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 23, 25, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow .3s ease;
}

.header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Manrope, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-icon {
    color: var(--gold);
    font-size: 30px;
}

.logo small {
    display: block;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 2.5px;
}

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

.nav a {
    color: #c8cecb;
    font-size: 13.5px;
    font-weight: 500;
    transition: .25s;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--gold);
}

.nav a.nav-highlight {
    color: var(--gold);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn {
    padding: 10px 16px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    transition: .25s;
    white-space: nowrap;
}

.header-btn:hover {
    background: var(--gold);
    color: #101719;
}

.header-btn-secondary {
    padding: 10px 14px;
    background: var(--gold);
    color: #101719;
    font-size: 12px;
    font-weight: 700;
    transition: .25s;
    white-space: nowrap;
}

.header-btn-secondary:hover {
    background: var(--gold-light);
}

.menu-toggle {
    display: none;
    background: #1c292b;
    border: 1px solid var(--line);
    color: var(--gold);
    width: 42px;
    height: 42px;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* ========================================================================== */
/* HERO SECTION                                                               */
/* ========================================================================== */

.hero {
    min-height: 640px;
    display: flex;
    align-items: center;
    padding: 90px 8%;
    position: relative;
    background:
      linear-gradient(90deg, rgba(10,17,18,.96), rgba(10,17,18,.72), rgba(10,17,18,.28)),
      url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1600') center/cover;
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
    animation: appear .8s ease;
}

.eyebrow, .section-label {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2.8px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1 {
    font-family: Manrope, sans-serif;
    font-size: clamp(36px, 5.5vw, 72px);
    line-height: 1.14;
    margin: 20px 0;
    font-weight: 800;
}

.hero h1 span, h2 span {
    color: var(--gold);
}

.hero-content > p {
    max-width: 560px;
    color: #c3ccca;
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gold);
    color: #111819;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,.45);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-bottom {
    position: absolute;
    bottom: 22px;
    left: 8%;
    right: 8%;
    display: flex;
    justify-content: space-between;
    color: #d0d0c9;
    font-size: 10px;
    letter-spacing: 2px;
}

.section {
    padding: 95px 8%;
}

h2 {
    font-family: Manrope, sans-serif;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.2;
}

/* ========================================================================== */
/* E'LONLAR BIRJASI (ARXITEKTORLAR VA XARIDORLAR)                             */
/* ========================================================================== */

.ads-section {
    background: #131c1e;
    border-bottom: 1px solid var(--line);
}

.ads-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.ads-subtitle {
    color: var(--muted);
    max-width: 620px;
    margin-top: 12px;
    font-size: 15px;
}

.btn-post-ad {
    padding: 16px 26px;
    font-size: 14px;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(201, 166, 107, 0.22);
}

.ads-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
    background: #182326;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.ads-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ad-tab {
    background: #202e31;
    color: #d0d6d4;
    border: 1px solid var(--line);
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .25s;
    font-family: inherit;
}

.ad-tab:hover {
    border-color: var(--gold);
    color: var(--white);
}

.ad-tab.active {
    background: var(--gold);
    color: #101719;
    border-color: var(--gold);
    font-weight: 700;
}

.tab-badge {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
}

.ads-filters {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 12px;
}

.ads-filters select,
.ads-filters input {
    padding: 13px 15px;
    background: #101719;
    border: 1px solid var(--line);
    color: var(--white);
    font-size: 14px;
    border-radius: 4px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ads-loading,
.ads-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: #182326;
    border: 1px dashed var(--line);
    color: var(--muted);
    border-radius: 6px;
}

.ad-card {
    background: #1a2629;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: .28s;
}

.ad-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.ad-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ad-role-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

.ad-role-specialist {
    background: rgba(201, 166, 107, 0.18);
    color: var(--gold-light);
    border: 1px solid rgba(201, 166, 107, 0.4);
}

.ad-role-client {
    background: rgba(96, 165, 250, 0.16);
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.38);
}

.ad-region {
    color: var(--muted);
    font-size: 12px;
}

.ad-cat-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}

.ad-card h3 {
    font-family: Manrope, sans-serif;
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--white);
}

.ad-desc {
    color: #c2cac8;
    font-size: 13.5px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-meta {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ad-price {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 14px;
}

.ad-author {
    color: var(--muted);
    font-size: 12px;
}

.ad-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ad-btn-call,
.ad-btn-tg {
    text-align: center;
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 4px;
    transition: .2s;
}

.ad-btn-call {
    background: var(--gold);
    color: #101719;
}

.ad-btn-call:hover {
    background: var(--gold-light);
}

.ad-btn-tg {
    background: #233438;
    color: var(--white);
    border: 1px solid var(--line);
}

.ad-btn-tg:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ========================================================================== */
/* MODAL DIALOG (E'LON QO'SHISH)                                              */
/* ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 12, 0.82);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    background: #172225;
    border: 1px solid var(--gold);
    border-radius: 8px;
    max-width: 620px;
    width: 100%;
    padding: 28px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: Manrope, sans-serif;
    font-size: 22px;
    margin-top: 4px;
}

.modal-close {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--white);
    width: 36px;
    height: 36px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 4px;
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-option input {
    display: none;
}

.role-box {
    display: block;
    padding: 14px;
    background: #101719;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: .2s;
}

.role-box strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.role-box small {
    color: var(--muted);
    font-size: 11.5px;
}

.role-option input:checked + .role-box {
    border-color: var(--gold);
    background: rgba(201, 166, 107, 0.14);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.budget-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.btn-kelishamiz {
    padding: 0 18px;
    background: #233438;
    color: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-kelishamiz:hover {
    background: var(--gold);
    color: #101719;
}

/* ========================================================================== */
/* EXISTING SECTIONS (ABOUT, SERVICES, PROJECTS, ORDER, CONTACT)              */
/* ========================================================================== */

.about-grid, .section-heading, .order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    margin-top: 30px;
}

.about-text {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 25px;
}

.text-link {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.stats div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats strong {
    color: var(--gold);
    font-size: 34px;
    font-family: Manrope, sans-serif;
}

.stats span {
    color: var(--muted);
    font-size: 12px;
}

.services {
    background: #151e20;
}

.section-heading {
    align-items: end;
    margin-bottom: 40px;
}

.section-heading p {
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.service-card {
    background: #1c292b;
    border: 1px solid var(--line);
    padding: 26px 22px;
    min-height: 255px;
    transition: .3s;
    border-radius: 4px;
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    background: #233235;
}

.service-card > span, .project-card span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.service-symbol {
    color: var(--gold);
    font-size: 35px;
    margin: 20px 0 10px;
}

.service-card h3 {
    font-family: Manrope, sans-serif;
    font-size: 17px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 12.5px;
    margin-bottom: 18px;
}

.service-card a {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 18px;
}

.project-card {
    min-height: 340px;
    padding: 25px;
    display: flex;
    align-items: end;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: .35s;
    border-radius: 4px;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
}

.project-card > div {
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-one {
    background-image: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=900');
}

.project-two {
    background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=900');
}

.project-three {
    background-image: url('https://images.unsplash.com/photo-1600566753086-00f18fb6b3ea?w=900');
}

.project-card h3 {
    font-family: Manrope, sans-serif;
    font-size: 20px;
    margin-top: 8px;
}

.cta {
    text-align: center;
    padding: 90px 20px;
    background: #1d292b;
}

.cta > span {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
}

.cta h2 {
    margin: 22px 0 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.order {
    background: #151e20;
}

.order-grid {
    align-items: start;
}

.order-grid > div p {
    color: var(--muted);
    margin-top: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 15px 16px;
    background: #202c2e;
    color: white;
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    border-radius: 4px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
}

select option {
    background: #202c2e;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

form button {
    padding: 16px;
    background: var(--gold);
    color: #111819;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: .25s;
    border-radius: 4px;
}

form button:hover {
    background: var(--gold-light);
}

.form-status {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 600;
}

.contact h2 {
    margin: 25px 0 45px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

.contact-info span {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 2px;
}

.contact-info p {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
}

footer {
    padding: 35px 8%;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: Manrope, sans-serif;
    color: var(--gold);
    font-size: 20px;
    font-weight: 800;
}

footer p, footer > a:last-child {
    color: var(--muted);
    font-size: 12px;
}

/* ========================================================================== */
/* MOBILE QUICK ACTION BOTTOM BAR                                             */
/* ========================================================================== */

.mobile-bottom-bar {
    display: none;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================== */
/* RESPONSIVE MOBILE & TABLET DESIGN                                          */
/* ========================================================================== */

@media (max-width: 1024px) {
    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .header {
        height: 70px;
        padding: 0 5%;
    }

    .header-btn-secondary {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #131d20;
        border-bottom: 1px solid var(--gold);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 6%;
        display: none;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 14px 4px;
        font-size: 15px;
        border-bottom: 1px solid var(--line);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .ads-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: 68px; /* Space for mobile bottom quick bar */
    }

    .section {
        padding: 64px 5%;
    }

    .hero {
        min-height: 520px;
        padding: 60px 5% 75px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .hero-bottom {
        left: 5%;
        right: 5%;
        font-size: 8.5px;
        flex-direction: column;
        gap: 4px;
    }

    .ads-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-post-ad {
        width: 100%;
    }

    .ads-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ad-tab {
        justify-content: space-between;
    }

    .ads-grid {
        grid-template-columns: 1fr;
    }

    .about-grid, .section-heading, .order-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .service-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card:first-child {
        grid-column: auto;
    }

    .project-card {
        min-height: 250px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .form-row-2,
    .role-selector {
        grid-template-columns: 1fr;
    }

    .modal-card {
        padding: 20px 16px;
    }

    /* Prevent iOS zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(16, 23, 25, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--gold);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        z-index: 300;
    }

    .mobile-bar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #d6dcd9;
        background: transparent;
        border: none;
        font-family: inherit;
        cursor: pointer;
    }

    .mobile-bar-item span {
        font-size: 18px;
        line-height: 1;
    }

    .mobile-bar-item small {
        font-size: 11px;
        font-weight: 600;
    }

    .mobile-bar-accent {
        background: var(--gold);
        color: #101719;
    }

    .mobile-bar-accent small {
        font-weight: 800;
    }
}
