/* ====== DESIGN SYSTEM & VARIABLES ====== */
:root {
    --primary: #0052ff;
    --primary-hover: #0041cc;
    --accent: #60a5fa;
    --accent-glow: rgba(96, 165, 250, 0.15);

    --dark: #070b12;
    --dark-surface: #0f172a;
    --dark-border: rgba(255, 255, 255, 0.08);

    --light: #ffffff;
    --light-bg: #f8fafc;
    --light-blue: #f0f5ff;
    --light-border: #e2e8f0;

    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

.text-accent {
    color: var(--accent) !important;
}

/* ====== COMPONENT PADDING & SECTIONS ====== */
.section-padding {
    padding: 120px 0;
}

.max-w-600 {
    max-width: 600px;
}

/* ====== BUTTONS ====== */
.btn {
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 12px;
    padding: 0.8rem 2rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.25);
}

.btn-outline-dark {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: var(--light);
    transform: translateY(-2px);
}

/* ====== NAVBAR ====== */
.navbar {
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(7, 11, 18, 0.95) !important;
    backdrop-filter: blur(16px);
    padding: 16px 0;
    border-bottom: 1px solid var(--dark-border);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-light) !important;
    letter-spacing: -0.03em;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light) !important;
}

/* ====== HERO SECTION ====== */
.hero-section {
    background-color: var(--dark);
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.hero-section > .container {
    width: 100%;
}

.hero-text-col {
    z-index: 10;
}

.hero-desc-col {
    z-index: 10;
    padding-left: 30px;
}

.hero-name {
    font-size: 5.8rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    border-left: 3px solid var(--primary);
    padding-left: 24px;
}

/* Portrait Image Wrapper */
.hero-image-wrapper {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    transform: translateY(96px); /* rasmni biroz pastga tushirish */
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-profile-img {
    height: 90%;
    width: auto;
    max-width: none;
    object-fit: contain;
    opacity: 0.95;
    /* Rasmning to'rtburchak chetlarini yumshoq eritish (fonsiz rasm uchun) */
    -webkit-mask-image: radial-gradient(ellipse 48% 52% at 50% 46%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 48% 52% at 50% 46%, #000 62%, transparent 100%);
}

/* Premium Soft Fading Mask (Vignette) to seamlessly dissolve portrait sharp borders */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 30%, var(--dark) 72%),
        linear-gradient(to top, var(--dark) 6%, transparent 40%),
        linear-gradient(to right, var(--dark) 0%, transparent 25%, transparent 75%, var(--dark) 100%);
    pointer-events: none;
}

/* Glowing cyan wireframe arrow decoration from reference */
.hero-decor-arrow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-top: 2px solid rgba(96, 165, 250, 0.15);
    border-right: 2px solid rgba(96, 165, 250, 0.15);
    pointer-events: none;
    z-index: 2;
}

.hero-decor-left {
    top: 22%;
    left: 26%;
    transform: rotate(-135deg);
}

.hero-decor-right {
    bottom: 22%;
    right: 26%;
    transform: rotate(45deg);
}

/* Background Grids overlay */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(96, 165, 250, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
}

/* ====== PARTNERS / BRAND BANNER ====== */
.partners-banner {
    background-color: var(--primary);
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-logos {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.partner-logos span {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    opacity: 0.9;
    transition: var(--transition);
}

.partner-logos span:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ====== SERVICES ====== */
.service-row-item {
    border-bottom: 1px solid var(--light-border);
    transition: var(--transition);
    cursor: pointer;
}

.service-row-item:hover {
    padding-left: 10px;
    background-color: rgba(0, 82, 255, 0.02);
}

.service-arrow-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    background-color: var(--light);
    transition: var(--transition);
    text-decoration: none;
}

.service-row-item:hover .service-arrow-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
    transform: rotate(45deg);
}

.services-left-mockup {
    background-color: var(--light-bg);
}

.services-title {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.services-sticky {
    position: sticky;
    top: 110px;
}

.service-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--light-blue);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.service-row-item:hover .service-icon {
    background: var(--primary);
    color: var(--light);
}

.services-left-mockup img {
    height: 300px;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.services-left-mockup:hover img {
    transform: scale(1.03);
}

/* ====== PROJECTS ====== */
.project-portfolio-card {
    margin-bottom: 40px;
}

.project-card-image {
    overflow: hidden;
    position: relative;
    border: 1px solid var(--light-border);
}

.project-card-image img {
    height: 240px;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.project-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(7, 11, 18, 0.8);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.project-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--light-blue);
    padding: 3px 10px;
    border-radius: 999px;
}

/* Project filters */
.filter-btn {
    border: 1px solid var(--light-border);
    background: var(--light);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 999px;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.filter-count {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 4px;
}

.project-portfolio-card:hover .project-card-image img {
    transform: scale(1.04);
}

.view-project-btn {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.view-project-btn:hover {
    color: var(--primary-hover);
    transform: translateX(5px);
}

/* ====== TESTIMONIALS ====== */
.testimonials-section {
    background-color: var(--light-blue);
}

.testimonial-wrapper-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--light-blue);
}

/* ====== BLOG ====== */
.blog-entry-card {
    transition: var(--transition);
}

.blog-image-wrapper {
    height: 240px;
    overflow: hidden;
}

.blog-image-wrapper img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-title-link {
    transition: var(--transition);
}

.blog-entry-card:hover .blog-title-link {
    color: var(--primary) !important;
}

/* ====== FOOTER ====== */
.footer-section {
    background-color: var(--dark) !important;
}

.footer-section h2 {
    letter-spacing: -0.03em;
}

/* Bootstrap .text-muted is too dark on the dark footer */
.footer-muted,
.footer-muted a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
}

.footer-muted a:hover {
    color: var(--text-light) !important;
}

.navbar-toggler {
    border: none;
    font-size: 1.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ====== RESPONSIVE LAYOUTS ====== */
@media (max-width: 1200px) {
    .hero-name {
        font-size: 4.8rem;
    }

    .hero-profile-img {
        height: 86%;
    }

    .hero-decor-arrow {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 991px) {
    .navbar {
        background: var(--dark);
        padding: 16px 0;
    }

    .hero-section {
        height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .hero-text-col,
    .hero-desc-col {
        text-align: center !important;
    }

    .hero-desc-col {
        padding-left: 0;
        margin-top: 30px !important;
    }

    .hero-name {
        font-size: 3.8rem;
    }

    .hero-subtitle {
        border-left: none;
        padding-left: 0;
    }

    .hero-image-wrapper {
        position: relative;
        inset: auto;
        transform: none;
        height: auto;
        margin-top: 24px;
        order: -1;
    }

    .hero-profile-img {
        height: 340px;
    }

    .partner-logos {
        justify-content: center;
    }

    .section-padding {
        padding: 80px 0;
    }
}

@media (max-width: 575px) {
    .hero-name {
        font-size: 2.9rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-padding {
        padding: 64px 0;
    }

    .footer-section h2 {
        font-size: 2.2rem;
    }

    .hero-decor-arrow {
        display: none;
    }
}
/* ====================================================== */
/* ====== v3: tillar, statistika, FAB, forma, modal ====== */
/* ====================================================== */

/* Til tanlagich */
.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--dark-border);
    border-radius: 999px;
    padding: 3px;
    width: max-content;
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
}

.lang-switch a:hover {
    color: var(--text-light);
}

.lang-switch a.active {
    background: var(--primary);
    color: var(--text-light);
}

/* Hero tugmalari */
.hero-ctas .btn {
    padding: 0.75rem 1.4rem;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Statistika */
.stats-section {
    background: var(--light);
    padding: 48px 0 0;
}

.stat-card {
    background: var(--light-blue);
    border-radius: 20px;
    padding: 28px 16px;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-label {
    margin-top: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
}

/* Loyihalar bo'limi foni (Process olib tashlangani uchun ajratib turadi) */
.projects-section {
    background-color: var(--light-blue);
}

.project-portfolio-card {
    cursor: pointer;
    background: var(--light);
    border-radius: 24px;
    padding: 14px 14px 20px;
    margin-bottom: 0;
    border: 1px solid transparent;
    transition: var(--transition);
}

.project-portfolio-card:hover,
.project-portfolio-card:focus-visible {
    border-color: var(--light-border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
    outline: none;
}

.project-portfolio-card h3,
.project-portfolio-card p,
.project-portfolio-card .d-flex {
    padding: 0 6px;
}

.project-modal {
    border: 0;
    border-radius: 24px;
}

.project-modal .modal-body img {
    max-height: 380px;
    object-fit: cover;
    object-position: top;
}

/* Kalkulyator banneri */
.calc-cta-section {
    background: var(--light-blue);
    padding: 0 0 100px;
}

.calc-cta {
    background: linear-gradient(120deg, var(--primary), #3b82f6 60%, var(--accent));
    border-radius: 28px;
    padding: 44px 48px;
    box-shadow: 0 24px 60px rgba(0, 82, 255, 0.25);
}

.calc-cta-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Footer aloqa formasi */
.dark-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    border-radius: 14px;
    padding: 14px 16px;
}

.dark-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.dark-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.form-status.is-ok {
    color: #22c55e;
    font-weight: 600;
}

.form-status.is-err {
    color: #f87171;
    font-weight: 600;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* ====== Qalqib turuvchi aloqa tugmasi (o'ng pastda) ====== */
.contact-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.contact-fab-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: var(--text-light);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.4);
    position: relative;
    transition: var(--transition);
}

.contact-fab-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
    z-index: -1;
    animation: fabPulse 2.2s ease-out infinite;
}

.contact-fab.open .contact-fab-toggle::before {
    animation: none;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.7); opacity: 0; }
}

.contact-fab-toggle:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.contact-fab .fab-i-close,
.contact-fab.open .fab-i-open {
    display: none;
}

.contact-fab.open .fab-i-close {
    display: inline;
}

.contact-fab-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: var(--transition);
}

.contact-fab.open .contact-fab-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.fab-action {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.fab-label {
    background: var(--light);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    white-space: nowrap;
}

.fab-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.fab-call .fab-icon {
    background: #16a34a;
}

.fab-tg .fab-icon {
    background: #229ed9;
}

/* ====== KALKULYATOR SAHIFASI ====== */
.calc-page {
    background: var(--light-bg);
}

.calc-hero {
    background: var(--dark);
    color: var(--text-light);
    padding: 150px 0 120px;
    position: relative;
    overflow: hidden;
}

.calc-hero .container {
    position: relative;
    z-index: 2;
}

.calc-back {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.calc-back:hover {
    color: var(--text-light);
}

.calc-title {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 16px 0 12px;
}

.calc-lead {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.15rem;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin: 0;
}

.calc-main {
    margin-top: -70px;
    padding-bottom: 100px;
    position: relative;
    z-index: 3;
}

.calc-block {
    background: var(--light);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
}

.calc-block-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.calc-step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Loyiha turi kartalari */
.type-card {
    display: block;
    height: 100%;
    cursor: pointer;
    margin: 0;
}

.type-card input,
.opt-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid var(--light-border);
    border-radius: 18px;
    padding: 18px;
    transition: var(--transition);
}

.type-card:hover .type-card-body {
    border-color: var(--accent);
}

.type-card input:checked + .type-card-body {
    border-color: var(--primary);
    background: var(--light-blue);
    box-shadow: 0 10px 26px rgba(0, 82, 255, 0.12);
}

.type-card input:focus-visible + .type-card-body,
.opt-item input:focus-visible ~ .opt-check {
    outline: 3px solid var(--accent-glow);
    outline-offset: 2px;
}

.type-icon {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.type-name {
    font-weight: 800;
    color: var(--text-dark);
}

.type-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0 12px;
}

.type-price {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.92rem;
}

/* Qo'shimcha xizmatlar */
.calc-group {
    margin-bottom: 22px;
}

.calc-group-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.opt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--light-border);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    margin: 0;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.opt-item:hover {
    border-color: var(--accent);
}

.opt-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 7px;
    border: 2px solid var(--light-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.85rem;
    transition: var(--transition);
}

.opt-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.93rem;
    line-height: 1.35;
}

.opt-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.opt-item:has(input:checked) {
    border-color: var(--primary);
    background: var(--light-blue);
}

.opt-item input:checked ~ .opt-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.opt-item input:checked ~ .opt-price {
    color: var(--primary);
}

.opt-rush {
    border-style: dashed;
}

.opt-rush .bi-lightning-charge-fill {
    color: #f59e0b;
}

/* Natija paneli */
.calc-summary {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    scrollbar-width: thin;
    background: var(--dark);
    color: var(--text-light);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(7, 11, 18, 0.25);
}

.calc-summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

.calc-total {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-top: 6px;
    color: var(--text-light);
}

.calc-total small {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.calc-term {
    margin-top: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
}

.calc-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    max-height: 240px;
    overflow-y: auto;
}

.calc-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    padding: 7px 0;
    border-bottom: 1px solid var(--dark-border);
    color: rgba(255, 255, 255, 0.8);
}

.calc-list li span:last-child {
    white-space: nowrap;
    font-weight: 600;
}

.calc-list li.is-main {
    color: var(--text-light);
    font-weight: 700;
}

.calc-list li.is-rush {
    color: #fbbf24;
}

.calc-list li.text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
}

.calc-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 16px 0;
}

.calc-send .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    border-radius: 12px;
    padding: 12px 14px;
}

.calc-send .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.calc-send .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.calc-reset {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
}

.calc-reset:hover {
    color: var(--text-light);
}

/* Mobil pastki panel */
.calc-mobile-bar {
    display: none;
}

@media (max-width: 991px) {
    .calc-summary {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .calc-mobile-bar {
        position: fixed;
        left: 12px;
        right: 96px;
        bottom: 24px;
        z-index: 1040;
        background: rgba(7, 11, 18, 0.95);
        backdrop-filter: blur(12px);
        border-radius: 18px;
        padding: 10px 10px 10px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-shadow: 0 12px 30px rgba(7, 11, 18, 0.3);
        transition: var(--transition);
    }

    .calc-mobile-bar.hidden {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }

    .calc-mobile-bar .btn {
        padding: 0.6rem 1rem;
        font-size: 0.88rem;
    }

    .calc-title {
        font-size: 2.6rem;
    }

    .calc-hero {
        padding: 120px 0 100px;
    }

    .lang-switch {
        margin-left: 16px;
    }

    .calc-cta {
        padding: 32px 28px;
    }

    .hero-ctas {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .calc-block {
        padding: 22px 18px;
    }

    .calc-title {
        font-size: 2.1rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    .contact-fab {
        right: 16px;
        bottom: 16px;
    }

    .calc-mobile-bar {
        left: 12px;
        right: 88px;
        bottom: 16px;
    }

    .calc-cta-section {
        padding-bottom: 64px;
    }
}

/* ====== MIJOZLAR ====== */
.min-w-0 {
    min-width: 0;
}

.client-card {
    background: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: 22px;
    padding: 24px;
    gap: 4px;
    transition: var(--transition);
}

.client-card:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    transform: translateY(-4px);
}

.client-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--light);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.client-name {
    font-weight: 800;
    font-size: 0.98rem;
}

.client-name a {
    color: var(--text-dark);
    text-decoration: none;
}

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

.client-name .bi-telegram {
    color: #229ed9;
}

.client-role {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.client-quote {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.client-quote .bi-quote {
    display: block;
    color: var(--primary);
    font-size: 2.2rem;
    line-height: 1;
    margin: -4px 0 8px -4px;
}

.client-quote {
    flex-grow: 1;
}

.client-work {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.client-work .bi {
    color: #16a34a;
}

.client-site {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    width: max-content;
}

.client-site:hover {
    color: var(--primary-hover);
}

/* ====== v4: to'liq ekranli loyiha oynasi ====== */
.project-modal {
    background: var(--light);
}

.project-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: var(--dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 5;
}

.project-modal-bar-title {
    font-weight: 700;
}

.project-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--dark-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.project-modal-close:hover {
    background: var(--primary);
}

.project-modal-media {
    background: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    min-height: 50vh;
}

.project-modal-media img {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.project-modal-info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}

.project-modal-info h3 {
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.project-modal-desc {
    white-space: pre-line;
    line-height: 1.75;
    font-size: 1rem;
}

.project-modal-actions {
    margin-top: auto;
    padding-top: 24px;
}

@media (min-width: 992px) {
    .project-modal .modal-body {
        overflow: hidden;
    }

    .project-modal-media,
    .project-modal-info {
        height: calc(100vh - 70px);
    }

    .project-modal-info {
        overflow-y: auto;
    }
}

/* ====== v4: kalkulyator banneri (to'q, hero uslubida) ====== */
.calc-cta-section {
    background: var(--light);
    padding: 0 0 120px;
}

.calc-cta {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    border-radius: 28px;
    padding: 56px 56px;
    box-shadow: none;
    border: 1px solid var(--dark-border);
}

.calc-cta::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -120px;
    top: -260px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.45), transparent 65%);
    pointer-events: none;
}

.calc-cta-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(96, 165, 250, 0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
    pointer-events: none;
}

.calc-cta-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.calc-cta-eyebrow .bi {
    color: #fbbf24;
}

.calc-cta-title {
    color: var(--text-light);
    font-weight: 800;
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.calc-cta-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
}

/* ====== v4: footer ====== */
.footer-section {
    padding: 110px 0 36px;
    border-top: 1px solid var(--dark-border);
}

.footer-title {
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-light);
    margin-bottom: 14px;
}

.footer-contacts {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

a.footer-contact:hover {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    transform: translateX(4px);
}

.footer-contact small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.fc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 82, 255, 0.18);
    color: var(--accent);
    font-size: 1.05rem;
}

.fc-call {
    background: rgba(22, 163, 74, 0.18);
    color: #4ade80;
}

.fc-tg {
    background: rgba(34, 158, 217, 0.18);
    color: #38bdf8;
}

.footer-form-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 32px;
    height: 100%;
}

.footer-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-form-card .btn {
    border-radius: 12px;
}

.footer-bottom {
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--dark-border);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-light);
}

@media (max-width: 991px) {
    .calc-cta {
        padding: 36px 28px;
    }

    .footer-section {
        padding-top: 80px;
    }

    .footer-contacts {
        margin-top: 0;
    }

    .project-modal-info {
        padding: 28px 22px 40px;
    }

    .project-modal-media {
        padding: 16px;
        min-height: auto;
    }

    .services-sticky {
        position: static;
    }
}

@media (max-width: 575px) {
    .footer-form-card {
        padding: 22px 18px;
    }

    .calc-cta-section {
        padding-bottom: 80px;
    }
}
