/* Loyihaga xos qo'shimcha uslublar.
   Shablonning original fayllari (style.css, responsive.css) o'zgartirilmaydi —
   barcha tuzatishlar shu faylga yoziladi. */

/* ======================================================================
   SHRIFTLAR — ALS Agrofont (lokal, CDN'siz)

   Regular       — oddiy matnlar
   Bold          — qalinroq matnlar, kichik sarlavhalar, tugmalar
   BoldExpanded  — asosiy katta sarlavhalar

   Fayllar: app/static/fonts/agrofont/
   Brauzer woff2 ni tanlaydi (eng yengil), eskilari uchun woff va ttf qoldirilgan.
   ====================================================================== */

@font-face {
    font-family: 'ALS Agrofont';
    src: url('../fonts/agrofont/ALSAgrofont-Regular.woff2') format('woff2'),
         url('../fonts/agrofont/ALSAgrofont-Regular.woff') format('woff'),
         url('../fonts/agrofont/ALSAgrofont-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ALS Agrofont';
    src: url('../fonts/agrofont/ALSAgrofont-Bold.woff2') format('woff2'),
         url('../fonts/agrofont/ALSAgrofont-Bold.woff') format('woff'),
         url('../fonts/agrofont/ALSAgrofont-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ALS Agrofont Expanded';
    src: url('../fonts/agrofont/ALSAgrofont-BoldExpanded.woff2') format('woff2'),
         url('../fonts/agrofont/ALSAgrofont-BoldExpanded.woff') format('woff'),
         url('../fonts/agrofont/ALSAgrofont-BoldExpanded.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-body: 'ALS Agrofont', 'Segoe UI', Arial, sans-serif;
    --font-display: 'ALS Agrofont Expanded', 'ALS Agrofont', 'Segoe UI', Arial, sans-serif;

    /* Brend rangi. Shablon CSS'idagi ranglar tools/recolor.py orqali
       almashtiriladi — bu yerdagi qiymat o'sha bilan bir xil bo'lishi kerak. */
    --brand: #00cd69;
    --brand-dark: #00a856;

    /* Footer rangi — tools/recolor.py dagi FOOTER bilan bir xil bo'lishi kerak */
    --footer-bg: #0b0e2e;
    --footer-dark: #06081c;
}

/* Shablonda bu hover'da sariq fon ustiga to'q yashil matn qo'yilgan edi —
   ikkalasi bir rangga aylangani uchun ikonka ko'rinmay qolardi. */
.header-social a:hover,
.footer-social a:hover {
    color: #fff;
}

/* Barcha matnlar — Regular.
   :not(...) ro'yxati ikon shriftlariga (Font Awesome, dripicons) tegmaslik uchun.
   DIQQAT: bu selektorning ustunligi yuqori (0,6,1) — shablonning
   `.main-menu ul li a { font-family: 'PT Serif' }` kabi qoidalarini bosishi shart.
   Shu sababli quyidagi maxsus qoidalarda `!important` ishlatilgan. */
body,
body *:not([class*="fa-"]):not([class*="dripicons"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab) {
    font-family: var(--font-body);
}

/* Kichik sarlavhalar va qalin matnlar — Bold */
h3, h4, h5, h6,
.btn, .ss-btn, button,
strong, b {
    font-family: var(--font-body) !important;
    font-weight: 700;
}

/* Asosiy sarlavhalar, bo'lim sarlavhalari va menyular — BoldExpanded */
h1, h2,
.slider-content h2,
.section-title h2,
.section-t h2,
.breadcrumb-title h2,
.about-title h2,
.newslater-title h2,
.f-widget-title h2,
.widget-title,
.main-menu ul li a,
.mean-nav ul li a,
#cssmenu3 .menu li a,
.footer-link ul li a {
    font-family: var(--font-display) !important;
    font-weight: 700;
}

/* Menyu Expanded shriftda — u ancha keng, bandlar soni ham ko'p.
   Shablonda ustunlar qat'iy (logo 25% / menyu 50% / o'ng 25%) bo'lgani uchun
   menyu sig'masdan ikkinchi qatorga tushib ketardi. Endi logotip va o'ng blok
   o'z kengligini oladi, qolgan bo'sh joy butunlay menyuga beriladi. */
@media (min-width: 992px) {
    /* Ustunlar nisbati: logo 20% / menyu 56% / o'ng blok 24%
       (shablonda 25/50/25 edi — menyuga joy yetmasdi) */
    .second-menu > .row > [class*="col-"]:nth-child(1) {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .second-menu > .row > [class*="col-"]:nth-child(2) {
        flex: 0 0 56%;
        max-width: 56%;
    }

    .second-menu > .row > [class*="col-"]:nth-child(3) {
        flex: 0 0 24%;
        max-width: 24%;
    }

    /* Logotip tor ustunga sig'sin */
    .second-menu .logo img {
        max-width: 100%;
        height: auto;
    }
}

@media (min-width: 1200px) {
    .main-menu {
        margin-right: 0;
        padding-right: 16px;   /* menyu bilan til tugmasi orasida bo'shliq */
    }

    .second-menu .main-menu ul li {
        margin-left: 16px;
    }

    .main-menu ul li a {
        font-size: 14px;
    }
}

/* O'ng blok (til, qidiruv, telefon) doim bitta qatorda tursin */
@media (min-width: 992px) {
    .login ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 12px;
        margin: 0;
        padding: 0;
    }

    .login ul li {
        margin: 0;
        white-space: nowrap;
    }

    .second-header-btn .btn {
        white-space: nowrap;
    }
}

/* Ruscha menyu kirill harflari tufayli yanada kengroq */
@media (min-width: 1200px) and (max-width: 1499px) {
    .main-menu {
        padding-right: 10px;
    }

    .second-menu .main-menu ul li {
        margin-left: 10px;
    }

    .main-menu ul li a {
        font-size: 13px;
    }

    .login ul {
        gap: 8px;
    }

    .login ul li.lang-switcher > .lang-current {
        padding: 0 2px;
    }

    .second-header-btn .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .main-menu {
        padding-right: 4px;
    }

    .second-menu .main-menu ul li {
        margin-left: 6px;
    }

    .main-menu ul li a {
        font-size: 11px;
    }

    .login ul {
        gap: 6px;
    }

    .second-header-btn .btn {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* Shablonda `.copyright-wrap .container { padding: 20px 0 }` deb yozilgan —
   yon bo'shliq nolga tushgani uchun ichidagi .row ning -12px chekkasi tashqariga
   chiqib, 992px kenglikda gorizontal siljish paydo bo'lardi. */
.copyright-wrap .container {
    padding: 20px 12px;
}

/* Agar sichqoncha kursori elementi qaytadan qo'shilsa — sahifani kengaytirmasin */
.cursor,
.js-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* --- «Qanday ishlaymiz» bo'limidagi rasm ---
   Shablonda bu joyda ramka rasmga chizilgan bo'sh placeholder turardi.
   Endi rasm sozlamalardan keladi, ramka esa CSS bilan chiziladi —
   qanday rasm qo'yilsa ham bir xil ko'rinadi. */
.steps-image {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.steps-image::before {
    content: "";
    position: absolute;
    top: -18px;
    left: -18px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--brand);
    border-radius: 16px;
    z-index: 0;
}

.steps-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    height: 560px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

@media (max-width: 991px) {
    .steps-image {
        margin-bottom: 40px;
    }

    .steps-image img {
        height: 420px;
    }
}

/* Yangilik kartochkasidagi sana yorlig'i — shablonda matn to'q rangda
   (#141831) edi, yashil fonda oq yaxshiroq o'qiladi. */
.blog-content2 .date-home,
.blog-content2 .date-home i {
    color: #fff;
}

/* Headerdagi telefon tugmasi — shablonda matn qora edi (color: #000),
   yashil fonda oq yaxshiroq o'qiladi. */
.second-header-btn .btn,
.second-header-btn .btn:hover {
    color: #fff;
}

.second-header-btn .btn:hover {
    background: var(--brand-dark);
}

/* «Tepaga chiqish» tugmasi — shablonda o'q to'q rangda (#141b22) edi,
   yashil doirada oq yaxshiroq ko'rinadi. */
#scrollUp,
#scrollUp:hover {
    color: #fff;
}

#scrollUp:hover {
    background: var(--brand-dark);
}

/* Video blokida pastki bo'shliq yo'q, savol-javob blokida esa faqat pastki
   bo'shliq bor — ular ketma-ket kelganda yopishib qolardi. */
.video-area + .faq-area {
    padding-top: 120px;
}

@media (max-width: 767px) {
    .video-area + .faq-area {
        padding-top: 70px;
    }
}

/* --- Galereya: albomlar va rasmlar --- */
.album-card {
    display: block;
    background: #fff;
    border: 1px solid #e8ecea;
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.album-card:hover {
    border-color: var(--brand);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .09);
    transform: translateY(-4px);
    color: inherit;
}

.album-thumb {
    position: relative;
    overflow: hidden;
}

.album-thumb img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.album-card:hover .album-thumb img {
    transform: scale(1.06);
}

.album-count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(11, 14, 46, .78);
    color: #fff;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 13px;
    font-weight: 600;
}

.album-count i {
    margin-right: 5px;
}

.album-body {
    padding: 20px 22px 24px;
}

.album-body h4 {
    font-size: 19px;
    margin-bottom: 8px;
}

.album-body p {
    color: #6b7a73;
    font-size: 14.5px;
    margin-bottom: 12px;
}

.album-link {
    color: var(--brand);
    font-weight: 700;
    font-size: 14.5px;
}

.album-date {
    color: #6b7a73;
    font-size: 14.5px;
}

/* Rasmlar to'ri — ustiga bosilganda kattalashadi */
.photo-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.photo-item:hover img {
    transform: scale(1.07);
}

.photo-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 205, 105, .55);
    color: #fff;
    font-size: 26px;
    opacity: 0;
    transition: opacity .3s ease;
}

.photo-item:hover .photo-zoom {
    opacity: 1;
}

@media (max-width: 767px) {
    .album-thumb img { height: 200px; }
    .photo-item img { height: 220px; }
}

/* --- Jamoa kartochkalari ---
   Shablonda rasm o'z tabiiy o'lchamida chiqardi (`width:auto; height:auto`),
   shuning uchun har xil suratlar har xil kattalikda ko'rinardi.
   Endi hammasi bir xil maydonga sig'diriladi va kartochkalar teng balandlikda. */
.team-area2 .row {
    /* Shablonda `align-items-center` — u kartochkalarni cho'zilishiga
       yo'l qo'ymaydi, natijada bir qatordagilar har xil balandlikda qoladi */
    align-items: stretch !important;
}

.team-area2 .row > [class*="col-"] {
    display: flex;
}

.team-area2 .single-team {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.team-area2 .team-thumb,
.team-area2 .team-thumb .brd {
    display: block;
    width: 100%;
}

.team-area2 .team-thumb img {
    display: block !important;
    width: 100% !important;
    height: 300px !important;      /* qatorda 4 ta kartochka — rasm pastroq */
    object-fit: cover;
    object-position: top center;   /* portret suratlarda yuz kesilmasin */
    border-radius: 0;
    transition: transform .4s ease;
}

.team-area2 .single-team:hover .team-thumb img {
    transform: scale(1.04);
}

.team-area2 .team-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 20px 26px;
}

.team-area2 .team-info h4 {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 6px;
}

.team-area2 .team-info p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 0;
}

@media (min-width: 992px) and (max-width: 1199px) {
    /* Bu oraliqda qatorda 3 ta kartochka — rasm balandroq bo'lishi mumkin */
    .team-area2 .team-thumb img {
        height: 330px !important;
    }
}

@media (max-width: 991px) {
    .team-area2 .team-thumb img {
        height: 320px !important;
    }
}

@media (max-width: 575px) {
    .team-area2 .team-thumb img {
        height: 280px !important;
    }
}

/* --- Sharh avatarlari ---
   Shablon avatar o'lchamini belgilamagan — yuklangan surat qanday bo'lsa
   shunday chiqardi. Bu yerda hammasi bir xil doira ko'rinishida. */
.testi-author img {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* --- Obuna formasi ---
   Shablonda tugma oq fon + qora matn, hover'da esa pushti (#ff3494) edi —
   tugatilmagan uslub. Bu yerda: oq "tabletka" maydon, ichida brend rangidagi
   tugma. */
.newslater .form-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border-radius: 40px;
    padding: 6px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.newslater input.form-control {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 48px !important;
    padding: 0 8px 0 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-size: 15px;
    color: #23302b !important;
}

.newslater input.form-control:focus {
    outline: none;
}

.newslater button,
.newslater button.btn-custom {
    position: static !important;
    flex: 0 0 auto;
    height: 48px;
    padding: 0 30px;
    border: 0;
    border-radius: 40px;
    background: var(--brand) !important;
    color: #fff !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: background .25s ease;
}

.newslater button:hover,
.newslater button.btn-custom:hover {
    background: var(--brand-dark) !important;
    color: #fff !important;
}

@media (max-width: 575px) {
    .newslater .form-group {
        flex-wrap: wrap;
        border-radius: 24px;
        padding: 10px;
        gap: 10px;
    }

    .newslater input.form-control {
        flex: 1 1 100%;
        height: 44px !important;
        padding-left: 14px !important;
    }

    .newslater button,
    .newslater button.btn-custom {
        flex: 1 1 100%;
        height: 46px;
    }
}

/* --- Yangiliklar yon paneli ---
   Shablonda bu widgetlar uchun tayyor uslub yo'q edi: qidiruv tugmasi
   maydondan pastga tushib qolar, kategoriyalar o'ngga tekislanar,
   so'nggi yangiliklar rasmi butun kenglikni egallardi. */
.widget-area .widget {
    margin-bottom: 40px;
}

.widget-area .widget-title {
    font-size: 20px;
    margin-bottom: 22px;
}

/* Qidiruv */
.widget-area .search-form {
    position: relative;
}

.widget-area .search-form .search-field {
    width: 100%;
    height: 50px;
    padding: 0 52px 0 18px;
    border: 1px solid #e4e9e6;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.widget-area .search-form .search-field:focus {
    border-color: var(--brand);
}

.widget-area .search-form button {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border: 0;
    background: none;
    color: var(--brand);
    cursor: pointer;
}

/* Kategoriyalar */
.widget-area .widget_categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-area .widget_categories li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid #eef1ef;
}

.widget-area .widget_categories li a {
    color: inherit;
}

.widget-area .widget_categories li a:hover,
.widget-area .widget_categories li.active a {
    color: var(--brand);
}

.widget-area .widget_categories li.active a {
    font-weight: 700;
}

.widget-area .widget_categories li span {
    color: #9aa5a0;
    font-size: 13px;
}

/* So'nggi yangiliklar */
.widget-area .widget_recent_entries ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-area .widget_recent_entries li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eef1ef;
}

.widget-area .widget_recent_entries li:first-child {
    padding-top: 0;
}

.widget-area .widget_recent_entries .thum {
    flex: 0 0 80px;
}

.widget-area .widget_recent_entries .thum img {
    width: 80px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.widget-area .widget_recent_entries .text a {
    display: block;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.4;
    color: inherit;
}

.widget-area .widget_recent_entries .text a:hover {
    color: var(--brand);
}

.widget-area .widget_recent_entries .text span {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    color: #9aa5a0;
}

/* --- Kontakt ro'yxati (yon panel, xodim sahifasi) ---
   Shablonning `.services-categories` uslubi havolalar ro'yxati uchun
   mo'ljallangan (ramka va o'ngdagi strelka) — kontakt ma'lumotlariga
   to'g'ri kelmasdi. Bu yerda ikonka va matn bir chiziqda turadi. */
.info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.info-list li + li {
    border-top: 1px solid #eef1ef;
}

.info-list li .ic {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.info-list li a {
    color: inherit;
    word-break: break-word;
}

.info-list li a:hover {
    color: var(--brand);
}

/* --- Yangiliklar ro'yxati ---
   Kartochkalar 3 tadan qatorda, barchasi bir xil balandlikda. */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-filter a {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #e4e9e6;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #5c6b64;
    transition: all .25s ease;
}

.news-filter a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.news-filter a.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.news-search {
    position: relative;
}

.news-search input {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 18px;
    border: 1px solid #e4e9e6;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.news-search input:focus {
    border-color: var(--brand);
}

.news-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    border: 0;
    background: none;
    color: var(--brand);
    cursor: pointer;
}

.news-result {
    font-size: 15px;
    color: #5c6b64;
}

/* Kartochkalar bir xil balandlikda tursin.
   DIQQAT: faqat ro'yxat sahifasida (.news-list) — yangilik detal sahifasi ham
   `.inner-blog` sinfidan foydalanadi, u yerda bu qoidalar tartibni buzadi. */
.news-list .row > [class*="col-"] {
    display: flex;
}

.news-list .single-post2 {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.news-list .single-post2 .blog-content2 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-list .single-post2 .blog-btn {
    margin-top: auto;
}

/* Rasm nisbati bir xil — sarlavhalar bir chiziqda turadi */
.news-list .blog-thumb2,
.blog-area .blog-thumb2 {
    overflow: hidden;
}

.news-list .blog-thumb2 img,
.blog-area .blog-thumb2 img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .news-list .blog-thumb2 img,
    .blog-area .blog-thumb2 img {
        height: 210px;
    }
}

/* --- Footer ---
   Fon rasmining yuqori qirrasi cho'tka izi shaklida kesilgan (shaffof).
   Shu sababli rasm ortidagi rang OQ bo'lishi kerak — aks holda kesik
   ko'rinmay, qirra tekis chiziqqa aylanadi.
   Rasm 619px balandlikda; kontent undan uzun bo'lsa ostida oq chiziq
   qolmasligi uchun ichki bloklarga fon rangi alohida beriladi
   (ular pt-150 dan keyin boshlanadi, ya'ni cho'tka iziga tegmaydi). */
.footer-bg {
    background-color: #fff;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.footer-bg .footer-top {
    background: var(--footer-bg);
}

.copyright-wrap {
    background: var(--footer-dark);
}

/* Footerdagi kontakt ro'yxati.
   Shablonda ikonka `float: left` va qat'iy `margin-top: 7px` bilan qo'yilgan —
   matn bir qator yoki ikki qator bo'lishiga qarab tekislik buzilardi.
   Flex bilan ikonka va matn doim bir markazda turadi. */
.footer-bg .f-contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.footer-bg .f-contact ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    float: none;
    width: 100%;
    margin-bottom: 18px !important;
}

.footer-bg .f-contact ul li .icon {
    float: none;
    margin: 0;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Shablonda ikonka qora edi (color: #000 !important) — yashil doirada oq yaxshiroq */
    color: #fff !important;
}

.footer-bg .f-contact ul li > span {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.6;
}

/* --- Hamkorlar bloki ---
   Logotiplar har xil o'lchamda (SVG, PNG, keng, tor) bo'lishi mumkin.
   Har biri bir xil oq kartochka ichida markazlashtiriladi va nisbatini
   saqlagan holda sig'diriladi — natijada hammasi bir xil ko'rinadi. */
.partners-area {
    background: #fff;
}

/* Aylanuvchi lenta. Chetlari yumshoq so'nadi, sichqoncha ustiga
   kelganda to'xtaydi — logotipni o'qish yoki bosish uchun. */
.partner-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.partner-track {
    --partner-gap: 24px;
    display: flex;
    gap: var(--partner-gap);
    width: max-content;
    animation: partner-scroll var(--partner-duration, 30s) linear infinite;
}

.partner-marquee:hover .partner-track,
.partner-marquee:focus-within .partner-track {
    animation-play-state: paused;
}

/* Ikki nusxadan biri to'liq o'tganda ikkinchisi aynan uning o'rniga
   tushadi: -50% ustiga gapning yarmi qo'shiladi. */
@keyframes partner-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - var(--partner-gap) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
    .partner-track { animation: none; }
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 236px;
    height: 130px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e8ecea;
    border-radius: 12px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.partner-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .07);
    transform: translateY(-3px);
}

.partner-card > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .25s ease;
}

.partner-card:hover img {
    transform: scale(1.04);
}

/* Logotip yuklanmagan bo'lsa — nomi ko'rinadi */
.partner-card .partner-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    color: #9aa5a0;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 991px) {
    .partner-track { --partner-gap: 18px; }
    .partner-card { flex-basis: 200px; height: 110px; padding: 18px; }
}

@media (max-width: 575px) {
    .partner-track { --partner-gap: 14px; }
    .partner-card { flex-basis: 160px; height: 92px; padding: 14px; }
}

/* --- Til almashtirish tugmasi --- */
.login ul li.lang-switcher {
    position: relative;
}

.login ul li.lang-switcher > .lang-current {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    padding: 0 5px;
    cursor: pointer;
}

.login ul li.lang-switcher .lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 70px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
    border-radius: 4px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 99;
}

.login ul li.lang-switcher:hover .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login ul li.lang-switcher .lang-list li {
    display: block;
    margin: 0;
    padding: 0;
}

.login ul li.lang-switcher .lang-list li a {
    display: block;
    padding: 6px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.login ul li.lang-switcher .lang-list li a.active {
    font-weight: 700;
}

/* --- Flash xabarlar --- */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 380px;
}

.flash-messages .alert {
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

/* --- Bo'sh bo'limlar 3-bosqichgacha ko'rinmasin --- */
.section-empty {
    display: none;
}
