/* =========================================================
   Life Marketing — umumiy tuzatishlar (mobil + barcha sahifalar)
   Bu fayl har bir sahifada inline <style> dan KEYIN ulanadi.
   ========================================================= */

/* --- Gorizontal "suzib ketish"ni to'xtatish (iOS ham) --- */
html,
body {
    overflow-x: hidden;
    overflow-x: clip;
}

/* AOS kutubxonasi yuklanmasa kontent ko'rinmay qolmasin */
html.no-aos [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* --- Hero: mobil brauzer manzil satri bilan to'g'ri balandlik --- */
.hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 110px 5% 70px;
}

.hero-content {
    width: 100%;
}

/* "Boshlash" — endi <a> ichida <button> emas, bitta havola */
a.neon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Floating tugmalar: ekrandan chiqib ketmasin --- */
.fab-container {
    right: 16px;
    right: max(16px, env(safe-area-inset-right));
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    align-items: flex-end;
    gap: 10px;
}

.fab-container .fab-item,
.fab-container .btn-primary,
.fab-container .btn-success,
.fab-container .btn-info {
    margin-right: 0 !important;
    width: 52px;
    height: 52px;
}

.fab-container .fab-item-text {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
    background: rgba(3, 3, 5, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

html[data-theme="light"] .fab-container .fab-item-text {
    background: rgba(255, 255, 255, .88);
    color: #17171b;
    border-color: rgba(20, 20, 24, .10);
    box-shadow: 0 4px 14px rgba(20, 20, 24, .10);
}

#scrollTopBtn {
    transform: translateY(12px);
}

#scrollTopBtn.show {
    transform: none;
}

/* Mobil va planshetda matnli "pill"lar kontentni yopib qo'ymasin */
@media (max-width: 900px) {
    .fab-container .fab-item-text {
        display: none;
    }
    .fab-container .fab-item,
    .fab-container .btn-primary,
    .fab-container .btn-success,
    .fab-container .btn-info {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Touch qurilmalarda "yopishib qoladigan" hover effektlarini o'chirish */
@media (hover: none) {
    .icon-card:hover,
    .process-item:hover,
    .adv-item:hover,
    .brand-card:hover,
    .brand-card:hover img,
    .team-showcase:hover,
    .contact-link:hover,
    .quiz-option:hover,
    .fab-item:hover {
        transform: none;
    }
}

/* --- Mijoz logotiplari tungi rejimda ham ko'rinsin --- */
html[data-theme="dark"] .brand-card {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .brand-card img {
    filter: grayscale(1) brightness(.86) contrast(1.08);
}

html[data-theme="dark"] .brand-card:hover {
    background: #fff;
}

html[data-theme="dark"] .brand-card:hover img {
    filter: none;
}

/* =========================================================
   NAV — mobil
   ========================================================= */
nav {
    gap: 12px;
}

.logo {
    flex: 0 1 auto;
    min-width: 0;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.nav-actions {
    flex: 0 0 auto;
}

.team-nav-link,
.home-link {
    white-space: nowrap;
}

/* Til tanlash mobilda ixcham ochiladigan ro'yxatga aylanadi */
@media (max-width: 560px) {
    nav {
        padding: 14px 4%;
        gap: 8px;
    }
    .logo img {
        width: 112px;
    }
    .nav-actions {
        gap: 6px;
    }
    .team-nav-link {
        height: 38px;
        padding: 0 10px;
        font-size: .66rem;
        letter-spacing: .05em;
        border-radius: 10px;
    }
    .theme-toggle {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 10px;
        font-size: 15px;
    }
    .home-link {
        height: 38px;
    }

    .lang-box,
    html[data-theme="light"] .lang-box {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        width: 44px;
        height: 38px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
        position: relative;
        z-index: 2;
    }
    .lang-box .l-btn {
        width: 44px;
        min-height: 38px;
        padding: 0;
        font-size: .74rem;
        border-radius: 10px;
        background: #111;
        color: #bbb;
        border: 1px solid rgba(255, 255, 255, .10);
        box-shadow: none;
        flex: 0 0 auto;
    }
    html[data-theme="light"] .lang-box .l-btn {
        background: #efeff2;
        color: #45454d;
        border-color: rgba(20, 20, 24, .08);
    }
    .lang-box .l-btn.active,
    html[data-theme="light"] .lang-box .l-btn.active {
        order: -1;
        background: #ff740d;
        color: #111114;
        border-color: #ff740d;
        box-shadow: 0 4px 14px rgba(255, 116, 13, .28);
    }
    .lang-box .l-btn.active::after {
        content: " ▾";
        font-size: .6rem;
    }
    .lang-box.open .l-btn.active::after {
        content: " ▴";
    }
    .lang-box:not(.open) .l-btn:not(.active) {
        display: none;
    }
    .lang-box.open .l-btn:not(.active) {
        box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
    }
}

@media (max-width: 380px) {
    nav {
        padding: 12px 3.5%;
        gap: 6px;
    }
    .logo img {
        width: 94px;
    }
    .nav-actions {
        gap: 5px;
    }
    .team-nav-link {
        padding: 0 8px;
        font-size: .6rem;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    .lang-box,
    html[data-theme="light"] .lang-box {
        width: 40px;
        height: 36px;
    }
    .lang-box .l-btn {
        width: 40px;
        min-height: 36px;
    }
}

/* =========================================================
   Asosiy sahifa — mobil bo'shliqlar va bloklar
   ========================================================= */
@media (max-width: 600px) {
    body > section {
        padding: 72px 6%;
    }
    #clients {
        padding: 72px 6% !important;
    }
    #clients .section-head {
        margin-bottom: 36px !important;
    }
    .section-head {
        margin-bottom: 32px;
    }
    .hero h1 {
        font-size: clamp(3rem, 16vw, 4.4rem);
    }
    .hero p {
        font-size: 1.05rem !important;
        margin-bottom: 30px !important;
    }
    .neon-btn {
        padding: 16px 38px;
    }
    .icon-card {
        padding: 24px;
        border-radius: 22px;
    }
    .icon-grid {
        gap: 16px;
    }
    .advantages-section {
        padding: 56px 6%;
        margin: 0 4%;
        border-radius: 28px;
    }
    .advantages-grid,
    .process-grid {
        gap: 16px;
        margin-top: 24px;
    }
    .adv-item,
    .process-item {
        padding: 20px;
        border-radius: 20px;
    }
    .about-section {
        padding: 72px 6%;
    }
    .about-title {
        font-size: 2rem;
    }
}

/* Biz haqimizda — rasmlar mobilda 2x2 (4 ta uzun rasm o'rniga) */
@media (max-width: 768px) {
    .about-right {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .about-photo,
    .about-photo.tall {
        min-height: 0;
        aspect-ratio: 4 / 5;
        border-radius: 16px;
    }
}

/* =========================================================
   Aloqa sahifasi
   ========================================================= */
.mini-node > .mini-node-in {
    display: block;
}

#contactForm {
    scroll-margin-top: 90px;
}

@media (max-width: 760px) {
    .contact-card {
        overflow: hidden;
    }
    .quiz-form {
        min-height: 0;
    }
    .quiz-step h2 {
        font-size: 1.45rem;
    }
}

@media (max-width: 640px) {
    .page-hero h1 {
        font-size: clamp(2.6rem, 13vw, 3.4rem);
    }
    .faq-q {
        font-size: 1rem;
        padding: 20px 0;
    }
    .mini-node {
        min-height: 72px;
        font-size: .84rem;
        padding: 14px 10px;
    }
}

/* =========================================================
   Footer
   ========================================================= */
footer .col-md-6 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}

footer .col-md-6 i {
    font-size: 1.35rem;
}

@media (max-width: 900px) {
    footer {
        padding-bottom: 90px;
    }
}

/* marway.ai logotipi oq fonda ko'rinsin (oq matn -> to'q) */
html[data-theme="light"] footer img[src="Marvay_08.png"] {
    content: url('../../Marvay_08_light.png');
}

/* =========================================================
   Bosh sahifa sarlavhasi "marketing" — bitta rang #F75F0D
   ========================================================= */
.hero h1 span,
html[data-theme="light"] .hero h1 span,
html[data-theme="dark"] .hero h1 span {
    background: none;
    color: #F75F0D;
    -webkit-text-fill-color: #F75F0D;
    animation: none;
    filter: none;
}

/* =========================================================
   Barcha matnlar — Inter shrifti (ikonkalar bundan mustasno)
   ========================================================= */
html body,
html body :not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.bi) {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}
