/* =====================================================================
   O'zagrosug'urta — sayt bo'ylab umumiy uslublar
   style.css / responsive.css dan keyin yuklanadi va mavzuning eskirgan
   joylarini brend uslubiga keltiradi. Landing komponentlari: landing.css
   ===================================================================== */

:root {
    --ag-green: #339F4A;        /* logotip rangi */
    --ag-green-dark: #2C8C41;   /* faqat hover va kontrast uchun */
    --ag-green-light: #4DB664;  /* gradientlar uchun och ton */
    --ag-gold: #E4BD63;
    --ag-ink: #1F2D3A;
    --ag-muted: #5B6B78;
    --ag-line: #E3E8EC;
    --ag-tint: #F4F8F5;
    --ag-radius: 16px;
    --ag-radius-sm: 10px;
    --ag-shadow: 0 10px 30px rgba(20, 45, 30, .08);
    --ag-header-h: 65px;
}

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; }

/* ---------------------------------------------------------------------
   HEADER
   --------------------------------------------------------------------- */
/* Menyu ostidagi kulrang chiziq (mavzudagi -10px 10px soya) */
.pearo-nav .navbar { box-shadow: none; }
.navbar-area { border-bottom: 1px solid var(--ag-line); }
.navbar-area.is-sticky { border-bottom: 0; }

.top-header { padding-top: 8px; padding-bottom: 8px; }
.lang-button, .lang-text { font-weight: 600; font-size: 13px; }

/* Desktop menyu 1200px dan kichikda sig'maydi — mobil menyuga o'tamiz.
   (base.html dagi sidepanel JS ham 1200px chegarasida ishlaydi) */
@media (max-width: 1199.98px) {
    .header-area { display: none !important; }
    .app-header { display: block !important; }
    .site-main { padding-top: var(--ag-header-h); }
}
@media (min-width: 1200px) {
    .app-header { display: none !important; }
}

.app-header { height: var(--ag-header-h); }

/* ---------------------------------------------------------------------
   SAHIFA SARLAVHASI (barcha ichki sahifalar)
   --------------------------------------------------------------------- */
.page-title-area,
.page-title-area.page-title-bg1,
.page-title-area.page-title-bg2,
.page-title-area.page-title-bg3 {
    position: relative;
    height: auto;
    padding: 44px 0 40px;
    background: linear-gradient(120deg, var(--ag-green) 0%, var(--ag-green-light) 100%);
    overflow: hidden;
}
.page-title-area::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, .05);
    pointer-events: none;
}
.page-title-area .d-table, .page-title-area .d-table-cell { display: block; height: auto; }
.page-title-content { position: relative; z-index: 1; margin-top: 0 !important; text-align: left; }
.page-title-content h2 {
    margin: 0 0 12px;
    max-width: 820px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    color: #fff;
}
.page-title-content ul { margin: 0; padding: 0; list-style: none; }
.page-title-content ul li {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .75);
}
.page-title-content ul li a { color: #fff; }
.page-title-content ul li a:hover { color: var(--ag-gold); }
.page-title-content ul li { margin-left: 0; }
.page-title-content ul li::before,
.page-title-content ul li:last-child::before { display: none !important; }
.page-title-content ul li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: rgba(255, 255, 255, .5);
}

/* ---------------------------------------------------------------------
   UMUMIY BO'LIMLAR
   --------------------------------------------------------------------- */
.site-main .ptb-100 { padding-top: 56px; padding-bottom: 56px; }
.site-main .bg-f8f8f8 { background-color: var(--ag-tint); }
.site-main .quote-area, .site-main .road-map { background-image: none; }

.site-main .section-title { max-width: 720px; margin: 0 auto 32px; }
.site-main .section-title h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    color: var(--ag-ink);
}
.site-main .section-title p { color: var(--ag-muted); }
.site-main .section-title:empty { display: none; }

/* Tugmalar */
.site-main .default-btn,
.site-main .btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--ag-green);
    color: #fff;
    font-weight: 600;
    text-transform: none;
    box-shadow: 0 6px 16px rgba(51, 159, 74, .25);
    transition: background-color .2s, transform .2s;
}
.site-main .default-btn:hover, .site-main .btn-success:hover { background: var(--ag-green-dark); color: #fff; transform: translateY(-1px); }
.site-main .default-btn span { display: none; }

/* Formalar */
.site-main .form-control {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius-sm);
    background-color: #fff;
    font-size: 15px;
    color: var(--ag-ink);
    box-shadow: none;
}
.site-main textarea.form-control { height: auto; min-height: 140px; padding: 12px 16px; }
.site-main .form-control:focus { border-color: var(--ag-green); box-shadow: 0 0 0 3px rgba(51, 159, 74, .15); }
.site-main .form-control:disabled, .site-main .form-control[readonly] { background-color: var(--ag-tint); }
.site-main .form-group label, .site-main form label { font-weight: 600; color: var(--ag-ink); }
.site-main .nice-select {
    height: 50px;
    line-height: 48px;
    border-radius: var(--ag-radius-sm);
    border-color: var(--ag-line);
}
.site-main .nice-select .list { border-radius: var(--ag-radius-sm); }

/* Tablar (murojaat, agent, migratsiya sahifalari) */
.site-main .quote-list-tab {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    box-shadow: var(--ag-shadow);
}
.site-main .quote-list-tab .tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 24px;
    padding: 6px;
    background: var(--ag-tint);
    border-radius: var(--ag-radius);
}
.site-main .quote-list-tab .tabs li { flex: 1 1 auto; width: auto; float: none; margin: 0; padding: 0; }
.site-main .quote-list-tab .tabs li a {
    display: block;
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    color: var(--ag-muted);
}
.site-main .quote-list-tab .tabs li a::before, .site-main .quote-list-tab .tabs li a::after { display: none; }
.site-main .quote-list-tab .tabs li.current a,
.site-main .quote-list-tab .tabs li a:hover { background: var(--ag-green); color: #fff; }
.site-main .quote-list-tab .tab_content .tabs_item { padding: 0; background: transparent; }

/* Jadvallar */
.site-main .table {
    overflow: hidden;
    border-radius: var(--ag-radius-sm);
    background: #fff;
    font-size: 15px;
}
.site-main .table thead th, .site-main .thead-dark th {
    border-color: var(--ag-green-dark);
    background: var(--ag-green);
    color: #fff;
    font-weight: 600;
}
.site-main .table td, .site-main .table th { padding: 12px 16px; vertical-align: middle; border-color: var(--ag-line); }

/* Sidebar vidjetlar */
.site-main .widget-area .widget {
    padding: 24px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
}
.site-main .widget-area .widget-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ag-line);
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}
.site-main .widget-area .widget-title::before { display: none; }
.site-main .widget_categories ul li a { color: var(--ag-ink); }
.site-main .widget_categories ul li a:hover { color: var(--ag-green); }

/* Akkordeon (investorlar, FAQ) */
.site-main .faq-accordion .accordion .accordion-item {
    margin-bottom: 12px;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius-sm);
    box-shadow: none;
    overflow: hidden;
}
.site-main .faq-accordion .accordion .accordion-title { padding: 16px 48px 16px 20px; font-weight: 600; }
.site-main .faq-accordion .accordion .accordion-title.active { color: var(--ag-green); }

/* Sahifalash (includes/pagination.html) — ixcham, minimal */
.ag-pager {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    margin: 40px 0 0;
}
.ag-pager__pages { display: flex; align-items: center; gap: 4px; }
.site-main .ag-pager__page,
.site-main .ag-pager__nav,
.ag-pager__dots {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 15px; font-weight: 600; line-height: 1;
    color: var(--ag-muted);
    transition: background-color .2s, color .2s, border-color .2s;
}
.site-main a.ag-pager__page:hover { background: #fff; color: var(--ag-ink); box-shadow: 0 0 0 1px var(--ag-line); }
.site-main .ag-pager__page.is-current { background: var(--ag-green); color: #fff; }
.ag-pager__dots { min-width: 20px; padding: 0; letter-spacing: 1px; }
.site-main .ag-pager__nav {
    width: 40px; padding: 0;
    border: 1px solid var(--ag-line);
    background: #fff;
    color: var(--ag-ink);
}
.site-main .ag-pager__nav:first-child { margin-right: 8px; }
.site-main .ag-pager__nav:last-child { margin-left: 8px; }
.ag-pager__nav i { font-size: 12px; }
.site-main a.ag-pager__nav:hover { border-color: var(--ag-green); background: var(--ag-green); color: #fff; }
.site-main .ag-pager__nav.is-disabled { background: transparent; color: #C5CDD3; cursor: default; }
@media (max-width: 575.98px) {
    .site-main .ag-pager__page, .site-main .ag-pager__nav { min-width: 36px; height: 36px; }
    .site-main .ag-pager__nav { width: 36px; }
}

/* ---------------------------------------------------------------------
   CMS MATNI (admin paneldan kiritilgan HTML)
   --------------------------------------------------------------------- */
.ag-prose {
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    box-shadow: var(--ag-shadow);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ag-ink);
    overflow-wrap: anywhere;
}
.ag-prose:empty { display: none; }
.ag-prose h1, .ag-prose h2, .ag-prose h3, .ag-prose h4 { margin: 1.4em 0 .6em; line-height: 1.3; color: var(--ag-ink); text-transform: none; }
.ag-prose > :first-child { margin-top: 0; }
.ag-prose > :last-child { margin-bottom: 0; }
.ag-prose h2 { font-size: 22px; }
.ag-prose h3 { font-size: 18px; }
.ag-prose p { margin-bottom: 1em; color: inherit; }
.ag-prose a { color: var(--ag-green); text-decoration: underline; text-underline-offset: 2px; }
.ag-prose img { height: auto !important; border-radius: var(--ag-radius-sm); }
.ag-prose ul, .ag-prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.ag-prose li { margin-bottom: .4em; }
/* CKEditor jadvallari telefonda gorizontal suriladi */
.ag-prose table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin-bottom: 1.2em;
    font-size: 15px;
}
.ag-prose table td, .ag-prose table th { padding: 10px 12px; border: 1px solid var(--ag-line); vertical-align: top; }
.ag-prose table tr:first-child td, .ag-prose table th { background: var(--ag-tint); font-weight: 600; }
.ag-prose iframe, .ag-prose video { max-width: 100%; border-radius: var(--ag-radius-sm); }

/* ---------------------------------------------------------------------
   RAHBARIYAT / XODIMLAR KARTOCHKALARI
   --------------------------------------------------------------------- */
.site-main .leadership-about,
.site-main .about-text-box {
    padding: 24px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    box-shadow: var(--ag-shadow);
}
/* Admin (CKEditor) matnida about-text-box bo'lsa — .ag-prose o'zi karta,
   ichida ikkinchi karta chiqmasin */
.site-main .ag-prose .about-text-box {
    padding: 0; margin: 0; min-height: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
}
.site-main .ag-prose .about-text-box::before { display: none; }
.site-main .leadership-about img.img-fluid {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--ag-radius-sm);
}
.site-main .leadership-about ul { padding: 0; list-style: none; }
.site-main .leadership-about ul li { position: relative; margin-bottom: 14px; padding-left: 34px; }
.site-main .leadership-about ul li i { position: absolute; left: 0; top: 2px; color: var(--ag-green); font-size: 18px; }
.site-main .leadership-about ul li i::before { margin: 0; font-size: 18px; }
.site-main .leadership-about ul li .h6 { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--ag-muted); }
.site-main .leadership-about ul li h4 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.site-main .leadership-about .card-header.btn {
    padding: 10px 16px;
    border: 1px solid var(--ag-green);
    border-radius: 999px;
    background: transparent;
    color: var(--ag-green);
    font-weight: 600;
}
.site-main .leadership-about .card-header.btn:hover,
.site-main .leadership-about .card-header.btn[aria-expanded="true"] { background: var(--ag-green); color: #fff; }
.site-main .leadership-about .card-body { padding: 16px 0 0; }
.site-main .leadership-about > .row > .row { width: 100%; margin: 12px 0 0; }

/* ---------------------------------------------------------------------
   XODIM KARTOCHKASI (includes/person_card.html)
   Rahbariyat, Markaziy apparat, Filial boshqaruvchilari
   --------------------------------------------------------------------- */
.ag-person {
    display: flex; flex-direction: column; gap: 20px;
    width: 100%;
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    transition: border-color .2s, box-shadow .2s;
}
.ag-person:hover { border-color: #CFE3D4; box-shadow: var(--ag-shadow); }

.ag-person__head { display: flex; align-items: center; gap: 20px; }
.ag-person__photo {
    flex: 0 0 auto;
    width: 104px; height: 128px;
    object-fit: cover; object-position: top;
    border-radius: 12px;
    background: var(--ag-tint);
}
.ag-person__role {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ag-tint);
    color: var(--ag-green-dark);
    font-size: 12px; font-weight: 600; line-height: 1.4;
}
.site-main .ag-person__name {
    margin: 0;
    font-size: 19px; font-weight: 700; line-height: 1.35;
    color: var(--ag-ink);
    text-transform: none;
}

.ag-person__info {
    display: grid; gap: 14px;
    margin: 0; padding: 16px 0 0;
    border-top: 1px solid var(--ag-line);
    list-style: none;
}
.ag-person__info li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ag-person__info li > span:last-child { min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ag-ink); overflow-wrap: anywhere; }
.ag-person__info small { display: block; margin-bottom: 1px; font-size: 12px; font-weight: 400; color: var(--ag-muted); }
.ag-person__info a { color: inherit; }
.ag-person__info a:hover { color: var(--ag-green); }
.ag-person__icon {
    flex: 0 0 36px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--ag-tint);
    color: var(--ag-green);
}
.ag-person__icon i, .ag-person__icon i::before { margin: 0; font-size: 15px; line-height: 1; }

.ag-person__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ag-person__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border: 0; border-radius: 10px;
    background: var(--ag-tint);
    color: var(--ag-green-dark);
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.ag-person__btn i { font-size: 11px; transition: transform .25s; }
.ag-person__btn:hover { background: #E6F2E9; }
.ag-person__btn:not(.collapsed) { background: var(--ag-green); color: #fff; }
.ag-person__btn:not(.collapsed) i { transform: rotate(180deg); }
.ag-person__btn:focus-visible { outline: 2px solid var(--ag-green); outline-offset: 2px; }
.ag-person__panel {
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--ag-tint);
    font-size: 14px; line-height: 1.65;
    color: var(--ag-ink);
}
.ag-person__panel > :last-child { margin-bottom: 0; }
.ag-person__panel--empty { color: var(--ag-muted); font-style: italic; }
.ag-person__panel ul, .ag-person__panel ol { padding-left: 1.2em; }

@media (max-width: 575.98px) {
    .ag-person { padding: 18px; }
    .ag-person__head { gap: 14px; }
    .ag-person__photo { width: 84px; height: 104px; }
    .site-main .ag-person__name { font-size: 17px; }
    .ag-person__btn { flex: 1 1 auto; justify-content: center; }
}

/* Aloqa sahifasi kartochkalari */
.site-main .auto-line {
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    box-shadow: none;
}
.site-main .contact-info .auto-line { height: calc(100% - 16px); padding: 24px !important; }
.site-main .contact-info .auto-line h2 { color: var(--ag-green); }
.site-main .contact-info img.auto-line { width: 100%; height: auto; }

/* ---------------------------------------------------------------------
   MATNLI SAHIFALAR: bitta karta (yagona telefon, ishonch telefoni, YTH, lug'at)
   --------------------------------------------------------------------- */
.ag-page > * + .ag-file, .ag-page > .ag-file + * { margin-top: 20px; }
.site-main .ag-page h3 { margin: 0 0 16px; font-size: 20px; color: var(--ag-ink); }
.ag-page__note { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ag-green-dark); }

.ag-contact-rows { display: grid; gap: 10px; margin-bottom: 20px; }
.ag-contact-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--ag-tint);
    color: var(--ag-ink);
}
.ag-contact-row strong { font-weight: 600; }
.ag-contact-row__icon {
    flex: 0 0 36px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #fff;
    color: var(--ag-green);
}
.ag-contact-row__icon i, .ag-contact-row__icon i::before { margin: 0; font-size: 15px; line-height: 1; }

/* Yuklab olinadigan fayl qatori */
.site-main .ag-prose a.ag-file,
.site-main a.ag-file {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--ag-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ag-ink);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.site-main a.ag-file:hover { border-color: var(--ag-green); box-shadow: var(--ag-shadow); }
.ag-file__icon {
    flex: 0 0 44px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #FDECEC; color: #D92D20;
    font-size: 20px;
}
.ag-file__text { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.ag-file__text small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ag-muted); }
.ag-file__action {
    flex: 0 0 40px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--ag-tint); color: var(--ag-green);
    transition: background-color .2s, color .2s;
}
.site-main a.ag-file:hover .ag-file__action { background: var(--ag-green); color: #fff; }

/* Sug'urta lug'ati: atamalar bitta kartada, chiziq bilan ajratilgan */
.ag-glossary .ag-file { margin-bottom: 8px; }
.ag-term { padding: 18px 0; border-bottom: 1px solid var(--ag-line); }
.ag-term:last-child { border-bottom: 0; padding-bottom: 0; }
.site-main .ag-term h6 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ag-green-dark); }
.site-main .ag-term p { margin: 0; color: var(--ag-ink); }
.site-main .user-manual { align-items: center; color: var(--ag-ink); }

/* Yangilik ichki sahifasi */
.site-main .blog-details-desc .article-image img { width: 100%; border-radius: var(--ag-radius); }
.site-main .blog-details-desc .article-content h3 { font-size: 24px; line-height: 1.3; }
.site-main .blog-details-desc .article-content { font-size: 15px; line-height: 1.7; }
.site-main .blog-details-desc .article-content img { height: auto !important; border-radius: var(--ag-radius-sm); }

/* Yuqoriga tugmasi va jivochat bilan ustma-ust tushmasligi uchun */
.go-top { border-radius: 50%; background: var(--ag-green); }

/* ---------------------------------------------------------------------
   MOSLASHUVCHANLIK
   --------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
}

@media (max-width: 991.98px) {
    .site-main .ptb-100 { padding-top: 48px; padding-bottom: 48px; }
    .page-title-area, .page-title-area.page-title-bg1, .page-title-area.page-title-bg2, .page-title-area.page-title-bg3 { padding: 36px 0 32px; }
    .page-title-content h2 { font-size: 24px; }
    .site-main .section-title h2 { font-size: 23px; }
    .ag-prose { padding: 24px; }
    /* sidebar ostiga tushganda yon ustunlar to'liq kenglikda */
    .site-main .col-md-3 .widget-area, .site-main .col-lg-4 .widget-area { margin-top: 32px; }
}

@media (max-width: 767.98px) {
    .site-main .ptb-100 { padding-top: 40px; padding-bottom: 40px; }
    .page-title-area, .page-title-area.page-title-bg1, .page-title-area.page-title-bg2, .page-title-area.page-title-bg3 { padding: 28px 0 24px; }
    .page-title-content h2 { font-size: 21px; }
    .page-title-content ul li { font-size: 13px; }
    .site-main .section-title { margin-bottom: 28px; }
    .site-main .section-title h2 { font-size: 21px; }
    .site-main .quote-list-tab { padding: 18px; }
    .site-main .quote-list-tab .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .site-main .quote-list-tab .tabs::-webkit-scrollbar { display: none; }
    .site-main .quote-list-tab .tabs li { flex: 0 0 auto; }
    .site-main .leadership-about { padding: 20px; }
    .site-main .leadership-about img.img-fluid { max-width: 240px; margin: 0 auto 8px; display: block; }
    .site-main .table-responsive-sm, .site-main .tbl-content { overflow-x: auto; }
    .ag-prose { padding: 22px 18px; font-size: 15px; }
    .site-main .blog-details-desc .article-content h3 { font-size: 20px; }

}

/* Kartochkasiz variant: yangilik matni, yoki matn allaqachon karta ichida bo'lsa */
.ag-prose.ag-prose--flat,
.site-main .quote-list-tab .ag-prose,
.site-main .auto-line .ag-prose { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }

/* Desktopda mavzu headeri (top bar + menyu ≈ 132px) sahifa ustida absolute turadi —
   sarlavha banneri uning ostidan boshlanishi uchun yuqoriga joy qo'shamiz */
@media (min-width: 1200px) {
    .page-title-area,
    .page-title-area.page-title-bg1,
    .page-title-area.page-title-bg2,
    .page-title-area.page-title-bg3 { padding-top: calc(132px + 44px); }
}


/* =====================================================================
   MOBIL HEADER VA DRAWER (1200px dan kichik ekranlar)
   ===================================================================== */
.app-header { height: var(--ag-header-h); border-bottom: 1px solid var(--ag-line); box-shadow: none; }
.m-header { display: flex; align-items: center; justify-content: space-between; height: var(--ag-header-h); }
.m-header__logo img { width: 190px; height: auto; display: block; }

/* Gamburger tugmasi */
.m-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px;
    border: 0; border-radius: 12px;
    background: var(--ag-tint);
    cursor: pointer;
    transition: background-color .2s;
}
.m-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ag-green); transition: transform .3s, opacity .2s; }
.m-burger span:nth-child(2) { width: 70%; }
.m-burger:hover { background: #E6F2E9; }
.m-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.m-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer konteyneri */
.m-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.m-drawer.is-open { visibility: visible; pointer-events: auto; }
@media (min-width: 1200px) { .m-drawer { display: none; } }

.m-drawer__backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 35, 22, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s ease;
}
.m-drawer.is-open .m-drawer__backdrop { opacity: 1; }

.m-drawer__panel {
    position: absolute; top: 0; left: 0; bottom: 0;
    display: flex; flex-direction: column;
    width: min(86vw, 360px);
    background: #fff;
    border-radius: 0 20px 20px 0;
    box-shadow: 12px 0 40px rgba(15, 35, 22, .18);
    transform: translateX(-100%);
    transition: transform .38s cubic-bezier(.22, .8, .25, 1);
    will-change: transform;
}
.m-drawer.is-open .m-drawer__panel { transform: translateX(0); }

/* Ochiqligida sahifa scroll bo'lmaydi */
body.drawer-open { overflow: hidden; }

.m-drawer__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid var(--ag-line);
}
.m-drawer__logo img { width: 170px; height: auto; display: block; }
.m-drawer__close {
    flex: 0 0 40px; width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: var(--ag-tint);
    color: var(--ag-ink);
    font-size: 16px;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .3s;
}
.m-drawer__close:hover { background: var(--ag-green); color: #fff; transform: rotate(90deg); }

.m-drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px; overscroll-behavior: contain; }

/* Til tanlash */
.m-lang { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--ag-tint); border-radius: 12px; }
.m-lang__item {
    flex: 1; height: 36px;
    border: 0; border-radius: 9px;
    background: transparent;
    font-size: 13px; font-weight: 700; letter-spacing: .04em;
    color: var(--ag-muted);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}
.m-lang__item.is-active { background: #fff; color: var(--ag-green); box-shadow: 0 2px 8px rgba(15, 35, 22, .08); }

/* Qidiruv */
.m-search { position: relative; margin-bottom: 10px; }
.m-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ag-muted); pointer-events: none; }
.m-search i::before { margin: 0; font-size: 15px; }
.m-search input {
    width: 100%; height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--ag-line); border-radius: 12px;
    background: #fff;
    font-size: 15px; color: var(--ag-ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.m-search input:focus { border-color: var(--ag-green); box-shadow: 0 0 0 3px rgba(51, 159, 74, .15); }

/* Menyu */
.m-nav ul { margin: 0; padding: 0; list-style: none; }
.m-nav > ul > li { border-bottom: 1px solid var(--ag-line); }
.m-nav > ul > li:last-child { border-bottom: 0; }
.m-nav > ul > li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px;
    font-size: 15px; font-weight: 600;
    color: var(--ag-ink);
    transition: color .2s;
}
.m-nav > ul > li > a:hover, .m-nav > ul > li.is-open > a { color: var(--ag-green); }
.m-nav > ul > li > a i { font-size: 12px; color: var(--ag-muted); transition: transform .25s, color .2s; }
.m-nav > ul > li.is-open > a i { transform: rotate(180deg); color: var(--ag-green); }

.m-nav ul ul { display: none; margin: 0 0 12px 6px; padding-left: 12px; border-left: 2px solid #D7EBDC; }
.m-nav ul ul li a, .m-nav ul ul .nav-link {
    display: block;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 14px; font-weight: 500;
    color: var(--ag-muted);
    transition: background-color .2s, color .2s;
}
.m-nav ul ul li a:hover { background: var(--ag-tint); color: var(--ag-green); }

/* Ochilishda menyu bandlari ketma-ket paydo bo'ladi */
.m-drawer__body > *, .m-nav > ul > li { opacity: 0; transform: translateX(-16px); transition: opacity .3s ease, transform .3s ease; }
.m-drawer.is-open .m-drawer__body > *, .m-drawer.is-open .m-nav > ul > li { opacity: 1; transform: none; }
.m-drawer.is-open .m-lang { transition-delay: .08s; }
.m-drawer.is-open .m-search { transition-delay: .12s; }
.m-drawer.is-open .m-nav { transition-delay: .14s; }
.m-drawer.is-open .m-nav > ul > li:nth-child(1) { transition-delay: .16s; }
.m-drawer.is-open .m-nav > ul > li:nth-child(2) { transition-delay: .19s; }
.m-drawer.is-open .m-nav > ul > li:nth-child(3) { transition-delay: .22s; }
.m-drawer.is-open .m-nav > ul > li:nth-child(4) { transition-delay: .25s; }
.m-drawer.is-open .m-nav > ul > li:nth-child(5) { transition-delay: .28s; }
.m-drawer.is-open .m-nav > ul > li:nth-child(6) { transition-delay: .31s; }

/* Pastki qism */
.m-drawer__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ag-line);
    background: #FBFDFB;
}
.m-call { display: flex; align-items: center; gap: 10px; color: var(--ag-ink); font-weight: 700; font-size: 16px; }
.m-call i {
    width: 38px; height: 38px; display: grid; place-items: center;
    border-radius: 50%; background: var(--ag-green); color: #fff; font-size: 14px;
}
.m-call small { display: block; font-size: 11px; font-weight: 500; color: var(--ag-muted); line-height: 1.2; }
.m-call:hover { color: var(--ag-green); }
.m-social { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.m-social a {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; background: var(--ag-tint); color: var(--ag-green); font-size: 14px;
    transition: background-color .2s, color .2s;
}
.m-social a:hover { background: var(--ag-green); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .m-drawer__panel, .m-drawer__backdrop, .m-drawer__body > *, .m-nav > ul > li, .m-burger span { transition: none !important; }
}

/* Drawer ochiqligida jivochat tugmasi menyu ustini yopmasin */
body.drawer-open jdiv { visibility: hidden !important; }

/* ---------------------------------------------------------------------
   DESKTOP DROPDOWN MENYULAR
   --------------------------------------------------------------------- */
/* Menyu va ochiladigan bandlar — oddiy qalinlik */
.pearo-nav .navbar .navbar-nav .nav-item a,
.pearo-nav .navbar .navbar-nav .nav-item .dropdown-menu li a { font-weight: 400; }

.pearo-nav .navbar .navbar-nav .nav-item .dropdown-menu {
    max-height: calc(100vh - 180px);   /* uzun ro'yxat ekrandan chiqib ketmasin */
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0 0 12px 12px;
    scrollbar-width: thin;
}
/* Bandlari ko'p menyu (Ochiq ma'lumotlar) — uch ustun */
.pearo-nav .navbar .navbar-nav .nav-item .dropdown-menu.dropdown-menu--wide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 860px;
    max-width: calc(100vw - 48px);
    left: auto;
    right: 0;
}
/* Biz haqimizda — ikki ustun (menyu chap tomonda, shuning uchun chapdan ochiladi) */
.pearo-nav .navbar .navbar-nav .nav-item .dropdown-menu.dropdown-menu--cols2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 600px;
    max-width: calc(100vw - 48px);
}
/* Bir qatordagi bandlar bir xil balandlikda — pastki chiziqlar tekis turadi */
.pearo-nav .navbar .navbar-nav .nav-item .dropdown-menu.dropdown-menu--wide li,
.pearo-nav .navbar .navbar-nav .nav-item .dropdown-menu.dropdown-menu--cols2 li { display: flex; }
.pearo-nav .navbar .navbar-nav .nav-item .dropdown-menu.dropdown-menu--cols2 li a,
.pearo-nav .navbar .navbar-nav .nav-item .dropdown-menu.dropdown-menu--wide li a { flex: 1; display: flex; align-items: center; line-height: 1.4; }

/* ---------------------------------------------------------------------
   MAXSUS IMKONIYATLAR PANELI
   --------------------------------------------------------------------- */
.a11y { position: relative; }
.a11y .a11y__toggle { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; white-space: nowrap; }

.a11y .a11y__panel {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 100001;
    width: 280px;
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 35, 22, .16);
    color: var(--ag-ink);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
/* hover oralig'ida panel yopilib qolmasligi uchun ko'rinmas ko'prik */
.a11y .a11y__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.a11y:hover .a11y__panel,
.a11y:focus-within .a11y__panel,
.a11y.is-open .a11y__panel { opacity: 1; visibility: visible; transform: none; }

.a11y__title {
    display: flex; align-items: center; gap: 8px;
    margin: -2px 0 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--ag-line);
    font-size: 15px; font-weight: 700; color: var(--ag-ink);
}
.a11y__title .fa { color: var(--ag-green); }

.a11y__group { margin-bottom: 16px; }
.a11y__group:last-child { margin-bottom: 0; }
.a11y__label {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--ag-muted);
}
.a11y__value { font-size: 12px; font-weight: 700; color: var(--ag-green); letter-spacing: 0; }

/* A− / A / A+ */
.a11y__seg { display: flex; gap: 4px; padding: 4px; background: var(--ag-tint); border-radius: 10px; }
.a11y .a11y__seg button {
    flex: 1; height: 36px;
    border: 0; border-radius: 7px;
    background: transparent;
    font-size: 15px; font-weight: 700; color: var(--ag-ink);
    cursor: pointer;
    transition: background-color .15s, color .15s, box-shadow .15s;
}
.a11y .a11y__seg button sup { font-size: 10px; top: -.5em; }
.a11y .a11y__seg button:hover { background: #fff; color: var(--ag-green); box-shadow: 0 2px 6px rgba(15, 35, 22, .08); }
.a11y .a11y__seg button:active { background: var(--ag-green); color: #fff; }

/* Slayder */
.a11y .a11y__range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px;
    border-radius: 6px;
    background: #DDE9E0;
    accent-color: var(--ag-green);
    cursor: pointer;
}
.a11y .a11y__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--ag-green);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.a11y .a11y__range::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--ag-green);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* Ko'rinish (kun / tun) almashtirgich */
.a11y__row { display: flex; align-items: center; justify-content: space-between; }
.a11y .a11y__switch {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    width: 56px; height: 30px;
    padding: 0 8px;
    border: 0; border-radius: 30px;
    background: var(--ag-tint);
    box-shadow: inset 0 0 0 1px var(--ag-line);
    cursor: pointer;
    transition: background-color .25s;
}
.a11y .a11y__switch i { position: relative; z-index: 1; font-size: 11px; transition: color .25s; }
.a11y .a11y__switch .fa-sun { color: #fff; }
.a11y .a11y__switch .fa-moon { color: var(--ag-muted); }
.a11y .a11y__switch .tumbler {
    position: absolute; left: 3px; top: 3px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--ag-gold);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    transition: transform .25s ease, background-color .25s;
}
body.night-mode .a11y .a11y__switch { background: #2B3D4B; box-shadow: none; }
body.night-mode .a11y .a11y__switch .tumbler { transform: translateX(26px); background: #fff; }
body.night-mode .a11y .a11y__switch .fa-sun { color: #9FB0BD; }
body.night-mode .a11y .a11y__switch .fa-moon { color: #2B3D4B; }

/* ---------------------------------------------------------------------
   QIDIRUV SAHIFASI
   --------------------------------------------------------------------- */
.search-hero .page-title-content { margin-bottom: 20px; }
.search-hero__form {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    max-width: 680px;
    padding: 6px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 60, 30, .18);
}
.search-hero__form i { margin-left: 12px; color: var(--ag-muted); }
.search-hero__form i::before { margin: 0; font-size: 17px; }
.search-hero__form input {
    flex: 1; min-width: 0; height: 46px;
    padding: 0 6px;
    border: 0; outline: none; background: transparent;
    font-size: 16px; color: var(--ag-ink);
}
.search-hero__form button {
    height: 46px; padding: 0 24px;
    border: 0; border-radius: 10px;
    background: var(--ag-green); color: #fff;
    font-weight: 600; cursor: pointer;
    transition: background-color .2s;
}
.search-hero__form button:hover { background: var(--ag-green-dark); }

.search-results { padding: 40px 0 64px; }
.search-results__summary { margin: 0 0 18px; font-size: 15px; color: var(--ag-muted); }
.search-results__summary strong { color: var(--ag-ink); }

.search-list { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 900px; }
.search-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: 14px;
    color: var(--ag-ink);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.search-item:hover { border-color: var(--ag-green); box-shadow: 0 8px 24px rgba(15, 60, 30, .08); transform: translateY(-1px); color: var(--ag-ink); }
.search-item__icon {
    flex: 0 0 42px; width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--ag-tint);
    color: var(--ag-green);
    font-size: 16px;
}
.search-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.search-item__section {
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 999px;
    background: #E8F4EB;
    font-size: 12px; font-weight: 600;
    color: var(--ag-green-dark);
}
.search-item__title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ag-ink); }
.search-item:hover .search-item__title { color: var(--ag-green); }
.search-item__snippet { font-size: 14px; line-height: 1.6; color: var(--ag-muted); overflow-wrap: anywhere; }
.search-item mark { padding: 0 2px; border-radius: 3px; background: #FCEFC7; color: inherit; }
.search-item__arrow { align-self: center; color: #B7C6BC; font-size: 14px; transition: color .2s, transform .2s; }
.search-item:hover .search-item__arrow { color: var(--ag-green); transform: translateX(3px); }
.search-results .ag-pager { margin-left: 0; }

.search-empty { max-width: 560px; margin: 16px auto; padding: 40px 24px; text-align: center; }
.search-empty__icon {
    display: inline-grid; place-items: center;
    width: 64px; height: 64px; margin-bottom: 16px;
    border-radius: 50%; background: var(--ag-tint); color: var(--ag-green);
}
.search-empty__icon i::before { margin: 0; font-size: 26px; }
.search-empty h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.search-empty p { margin: 0 0 20px; color: var(--ag-muted); }
.search-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.search-empty__links a {
    padding: 8px 16px;
    border: 1px solid var(--ag-line); border-radius: 999px;
    font-size: 14px; font-weight: 500; color: var(--ag-ink);
    transition: border-color .2s, color .2s;
}
.search-empty__links a:hover { border-color: var(--ag-green); color: var(--ag-green); }

@media (max-width: 767.98px) {
    .search-hero__form { padding: 4px; }
    .search-hero__form button { padding: 0 16px; }
    .search-results { padding: 28px 0 44px; }
    .search-item { padding: 14px; gap: 12px; }
    .search-item__icon { flex-basis: 36px; width: 36px; height: 36px; font-size: 14px; }
    .search-item__arrow { display: none; }
}

/* Xato sahifalari (404) */
.error-page { padding: 80px 0; text-align: center; }
.error-page__code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--ag-green); letter-spacing: -.02em; }
.error-page__title { margin: 16px 0 8px; font-size: 26px; font-weight: 700; color: var(--ag-ink); }
.error-page__text { max-width: 520px; margin: 0 auto 28px; color: var(--ag-muted); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 767.98px) { .error-page { padding: 56px 0; } .error-page__code { font-size: 72px; } }
@media (min-width: 1200px) { .error-page { padding-top: calc(132px + 64px); } }  /* absolute header ostidan */

/* =====================================================================
   MUROJAAT FORMASI (contacts/appeal_form.html)
   ===================================================================== */
.ag-appeal {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    box-shadow: var(--ag-shadow);
}
.ag-appeal__head { margin-bottom: 24px; }
.site-main .ag-appeal__head h3 { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: var(--ag-ink); text-transform: none; }
.ag-appeal__head p { margin: 0; font-size: 15px; color: var(--ag-muted); }

.ag-appeal__alert {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px; padding: 12px 16px;
    border-radius: 12px;
    background: #FDECEC; color: #B42318;
    font-size: 14px; font-weight: 600;
}

/* Segmentli tablar */
.site-main .ag-appeal__tabs {
    display: flex; gap: 4px;
    margin: 0 0 28px; padding: 4px;
    list-style: none;
    background: var(--ag-tint);
    border-radius: 12px;
}
.site-main .ag-appeal__tabs li { flex: 1 1 0; margin: 0; padding: 0; float: none; width: auto; }
.site-main .ag-appeal__tabs li a {
    display: flex; align-items: center; justify-content: center;
    height: 100%; min-height: 44px;
    padding: 8px 14px;
    border-radius: 9px;
    background: transparent;
    text-align: center;
    font-size: 14px; font-weight: 600; line-height: 1.3;
    text-transform: none;
    color: var(--ag-muted);
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.site-main .ag-appeal__tabs li a::before, .site-main .ag-appeal__tabs li a::after { display: none; }
.site-main .ag-appeal__tabs li a:hover { color: var(--ag-ink); }
.site-main .ag-appeal__tabs li.current a { background: #fff; color: var(--ag-green); box-shadow: 0 2px 8px rgba(15, 35, 22, .08); }

/* Maydonlar */
.ag-appeal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ag-field--full { grid-column: 1 / -1; }
.site-main .ag-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ag-ink); }
.ag-field__req { color: #D92D20; }
.site-main .ag-appeal .form-control {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--ag-line);
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.site-main .ag-appeal textarea.form-control { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; }
.site-main .ag-appeal .form-control::placeholder { color: #A0ABB4; }
.site-main .ag-appeal .form-control:focus { border-color: var(--ag-green); box-shadow: 0 0 0 3px rgba(51, 159, 74, .15); outline: none; }
.site-main .ag-appeal .nice-select {
    float: none; width: 100%;
    height: 48px; line-height: 46px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--ag-line); border-radius: 10px;
    background: #fff;
    font-size: 15px; font-weight: 400; text-transform: none; color: var(--ag-ink);
    font-family: inherit;
}
.site-main .ag-appeal .nice-select.open, .site-main .ag-appeal .nice-select:focus { border-color: var(--ag-green); }
.site-main .ag-appeal .nice-select .list { width: 100%; max-height: 260px; overflow-y: auto; border-radius: 10px; }

/* Pastki qism: captcha + yuborish */
.ag-appeal__footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 24px; padding-top: 24px;
    border-top: 1px solid var(--ag-line);
}
.ag-captcha { display: flex; align-items: center; gap: 10px; }
.ag-captcha__code {
    display: inline-flex; flex-direction: column; justify-content: center;
    height: 48px; padding: 0 16px;
    border: 1px dashed #CFE3D4; border-radius: 10px;
    background: var(--ag-tint);
    font-size: 20px; font-weight: 700; letter-spacing: .2em; line-height: 1.1;
    color: var(--ag-green-dark);
    user-select: none;
}
.ag-captcha__code small { font-size: 10px; font-weight: 600; letter-spacing: 0; color: var(--ag-muted); }
.site-main .ag-captcha .form-control { width: 160px; }
.site-main .ag-captcha .form-control:not(:placeholder-shown) { letter-spacing: .15em; font-weight: 600; }
.ag-appeal__submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; padding: 0 28px;
    border: 0; border-radius: 10px;
    background: var(--ag-green);
    color: #fff;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}
.ag-appeal__submit:hover { background: var(--ag-green-dark); transform: translateY(-1px); }
.ag-appeal__submit i { font-size: 13px; }

.site-main .ag-appeal__check {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 24px;
    font-size: 14px; font-weight: 600;
    color: var(--ag-green);
}
.site-main .ag-appeal__check:hover { color: var(--ag-green-dark); text-decoration: underline; }

@media (max-width: 767.98px) {
    .ag-appeal { padding: 20px; }
    .site-main .ag-appeal__tabs { overflow-x: auto; scrollbar-width: none; }
    .site-main .ag-appeal__tabs::-webkit-scrollbar { display: none; }
    .site-main .ag-appeal__tabs li { flex: 0 0 auto; }
    .ag-appeal__grid { grid-template-columns: 1fr; }
    .ag-appeal__footer { flex-direction: column; align-items: stretch; }
    .ag-captcha .form-control { flex: 1; width: auto; }
    .ag-appeal__submit { width: 100%; }
}

/* =====================================================================
   BOG'LANISH SAHIFASI (contacts/contacts.html)
   ===================================================================== */
.ag-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.ag-contact-card {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    transition: border-color .2s, box-shadow .2s;
}
.ag-contact-card:hover { border-color: #CFE3D4; box-shadow: var(--ag-shadow); }
.ag-contact-card__icon {
    flex: 0 0 48px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--ag-tint);
    color: var(--ag-green);
}
.ag-contact-card__icon i, .ag-contact-card__icon i::before { margin: 0; font-size: 20px; line-height: 1; }
.site-main .ag-contact-card h5 { margin: 2px 0 6px; font-size: 13px; font-weight: 600; color: var(--ag-muted); text-transform: none; }
.ag-contact-card p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--ag-ink); }
.ag-contact-card a { color: inherit; }
.ag-contact-card a:hover { color: var(--ag-green); }
.ag-muted { font-size: 14px; font-weight: 400; color: var(--ag-muted); }

/* ---------------------------------------------------------------------
   IJTIMOIY TARMOQLAR — har biri o'z brend rangida
   --------------------------------------------------------------------- */
.ag-sm--telegram  { --sm: #229ED9; --sm-soft: #E6F4FB; }
.ag-sm--instagram { --sm: #E1306C; --sm-soft: #FDE8EF; --sm-bg: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.ag-sm--facebook  { --sm: #1877F2; --sm-soft: #E8F1FE; }
.ag-sm--youtube   { --sm: #FF0000; --sm-soft: #FFE8E8; }
.ag-sm--twitter   { --sm: #1DA1F2; --sm-soft: #E8F5FE; }

/* Bog'lanish sahifasi: och fon + rangli ikonka, hoverda to'liq rang */
.ag-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.site-main .ag-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--sm-soft, var(--ag-tint));
    color: var(--sm, var(--ag-green));
    font-size: 17px;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.site-main .ag-social a:hover {
    background: var(--sm-bg, var(--sm));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -4px var(--sm);
}

/* Footer: oq doira + rangli ikonka, hoverda to'liq rang */
.single-footer-widget .ag-footer-social li a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; line-height: 1;
    background: #fff;
    color: var(--sm, var(--ag-green));
    font-size: 17px;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.single-footer-widget .ag-footer-social li a:hover,
.single-footer-widget .ag-footer-social li a:focus-visible {
    background: var(--sm-bg, var(--sm));
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .45);
}

.ag-map {
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
    background: #fff;
    line-height: 0;
}
.ag-map iframe { display: block; width: 100%; height: 400px; border: 0; }

.ag-transport {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: var(--ag-radius);
}
.site-main .ag-transport h5 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--ag-ink); text-transform: none; }
.ag-transport h5 i { color: var(--ag-green); }
.ag-transport__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.site-main .ag-transport__grid a {
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
    border: 1px solid var(--ag-line);
    border-radius: 12px;
    background: #fff;
    cursor: zoom-in;
    transition: border-color .2s;
}
.site-main .ag-transport__grid a:hover { border-color: var(--ag-green); }
.ag-transport__grid img { width: auto; max-width: 100%; height: auto; }

@media (max-width: 767.98px) {
    .ag-contacts, .ag-transport__grid { grid-template-columns: 1fr; }
    .ag-map iframe { height: 300px; }
    .ag-transport { padding: 18px; }
}

/* =====================================================================
   KORRUPSIYAGA QARSHI BLOK (includes/antikor.html)
   ===================================================================== */
.ag-antikor {
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column; gap: 14px;
    padding: 24px 20px;
    border-radius: var(--ag-radius);
    background:
        linear-gradient(165deg, rgba(20, 92, 46, .94) 0%, rgba(32, 128, 64, .9) 55%, rgba(44, 140, 65, .82) 100%),
        var(--antikor-bg) center / cover no-repeat;
    color: #fff;
    box-shadow: 0 16px 36px -18px rgba(20, 70, 40, .55);
}
/* Dekorativ doira */
.ag-antikor::after {
    content: "";
    position: absolute; right: -60px; top: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}
@media (min-width: 992px) {
    .ag-antikor { position: sticky; top: 110px; }
}
.ag-antikor > * { position: relative; z-index: 1; }
.ag-antikor__logo { width: 100%; max-width: 220px; height: auto; margin-bottom: 4px; }
.ag-antikor__badge {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.site-main .ag-antikor__title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; color: #fff; text-transform: none; }
.ag-antikor__text { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .85); }

.ag-antikor__links { display: grid; gap: 8px; margin-top: 4px; }
.site-main .ag-antikor__link {
    display: flex; align-items: center; gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, transform .2s;
}
.site-main .ag-antikor__link:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); color: #fff; transform: translateX(3px); }
.ag-antikor__icon {
    flex: 0 0 36px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: #fff;
    color: var(--ag-green-dark);
    font-size: 14px;
}
.ag-antikor__link > span:last-child { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ag-antikor__link small { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .7); }

@media (max-width: 991.98px) {
    .ag-antikor { margin-top: 24px; }
}
.ag-antikor__icon i::before { margin: 0; font-size: 15px; line-height: 1; }

/* =====================================================================
   HEADER QIDIRUV (includes/header.html — .ag-search)
   ===================================================================== */
.pearo-nav .navbar .others-option .ag-search__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--ag-tint);
    color: var(--ag-green);
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s;
}
.pearo-nav .navbar .others-option .ag-search__toggle i::before { margin: 0; font-size: 17px; line-height: 1; }
.pearo-nav .navbar .others-option .ag-search__toggle:hover { background: var(--ag-green); color: #fff; }
.pearo-nav .navbar .others-option .ag-search__toggle:focus-visible { outline: 2px solid var(--ag-green); outline-offset: 2px; }
.pearo-nav .navbar .others-option .close-btn.ag-search__toggle { width: 42px; font-size: inherit; }
.pearo-nav .navbar .others-option .close-btn.ag-search__toggle:not(.active) { display: none; }
.pearo-nav .navbar .others-option .close-btn.ag-search__toggle.active { background: var(--ag-green); color: #fff; }

.search-overlay.search-popup.ag-search__popup {
    width: 440px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--ag-line);
    border-radius: 16px;
    box-shadow: 0 24px 48px -16px rgba(15, 35, 22, .25);
}
/* Kichik "dum" — tugmaga qarab */
.ag-search__popup::before {
    content: "";
    position: absolute; top: -7px; right: 15px;
    width: 12px; height: 12px;
    background: #fff;
    border-left: 1px solid var(--ag-line); border-top: 1px solid var(--ag-line);
    transform: rotate(45deg);
}
.ag-search__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ag-ink); }
.ag-search__form {
    position: relative;
    display: flex; align-items: center; gap: 8px;
    padding: 5px 5px 5px 42px;
    border: 1px solid var(--ag-line);
    border-radius: 12px;
    background: var(--ag-tint);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ag-search__form:focus-within { border-color: var(--ag-green); background: #fff; box-shadow: 0 0 0 3px rgba(51, 159, 74, .15); }
.ag-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ag-muted); line-height: 1; pointer-events: none; }
.ag-search__icon::before { margin: 0; font-size: 16px; }
.ag-search__input {
    flex: 1; min-width: 0;
    height: 40px; padding: 0;
    border: 0; outline: 0;
    background: transparent;
    font-size: 15px; color: var(--ag-ink);
}
.ag-search__input::placeholder { color: #9AA6AF; }
.ag-search__input::-webkit-search-cancel-button { cursor: pointer; }
.ag-search__submit {
    flex: 0 0 auto;
    height: 40px; padding: 0 18px;
    border: 0; border-radius: 9px;
    background: var(--ag-green);
    color: #fff;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: background-color .2s;
}
.ag-search__submit:hover { background: var(--ag-green-dark); }
.ag-search__hint { margin: 10px 0 0; font-size: 12px; color: var(--ag-muted); }
.ag-search__hint kbd {
    padding: 1px 6px;
    border: 1px solid var(--ag-line); border-radius: 5px;
    background: #fff;
    font-family: inherit; font-size: 11px; font-weight: 600;
    color: var(--ag-ink);
    box-shadow: 0 1px 0 var(--ag-line);
}

/* =====================================================================
   PRELOADER (base.html — .ag-preloader)
   ===================================================================== */
.ag-preloader {
    position: fixed; inset: 0;
    z-index: 2147483000;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #F2F8F4 70%);
    transition: opacity .45s ease, visibility .45s ease;
}
.ag-preloader.is-hidden { opacity: 0; visibility: hidden; }
.ag-preloader.is-hidden .ag-preloader__mark { transform: scale(1.08); }
.ag-preloader__mark {
    position: relative;
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .45s ease;
}
.ag-preloader__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ag-spin 1.1s linear infinite; }
.ag-preloader__track, .ag-preloader__arc { fill: none; stroke-width: 4; }
.ag-preloader__track { stroke: rgba(51, 159, 74, .14); }
.ag-preloader__arc {
    stroke: var(--ag-green, #339F4A);
    stroke-linecap: round;
    stroke-dasharray: 340;
    stroke-dashoffset: 250;
    animation: ag-dash 1.4s ease-in-out infinite;
}
.ag-preloader__logo { width: 64px; height: 64px; animation: ag-pulse 1.4s ease-in-out infinite; }

@keyframes ag-spin { to { transform: rotate(360deg); } }
@keyframes ag-dash {
    0%   { stroke-dashoffset: 300; }
    50%  { stroke-dashoffset: 110; }
    100% { stroke-dashoffset: 300; }
}
@keyframes ag-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(.92); opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
    .ag-preloader__ring, .ag-preloader__arc, .ag-preloader__logo { animation-duration: 3s; }
}

/* =====================================================================
   ONLAYN YORDAMCHI (templates/pages/chat.html, assets/js/agros-chat.js)
   ===================================================================== */
.ag-chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }

.ag-chat {
    display: flex; flex-direction: column;
    height: min(780px, calc(100vh - 150px)); min-height: 580px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: 24px;
    box-shadow: 0 30px 60px -36px rgba(15, 50, 28, .35);
    overflow: hidden;
}

/* Sarlavha — brend gradienti */
.ag-chat__head {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(120deg, #1E7A3A 0%, #2E9A4B 55%, #4DB664 100%);
    color: #fff;
    overflow: hidden;
}
.ag-chat__head::after {
    content: ""; position: absolute; right: -40px; top: -70px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); pointer-events: none;
}
.ag-chat__who { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.ag-chat__avatar {
    position: relative;
    flex: 0 0 52px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}
.ag-chat__avatar img { width: 32px; height: 32px; }
.ag-chat__online {
    position: absolute; right: 1px; bottom: 1px;
    width: 13px; height: 13px; border-radius: 50%;
    background: #4ADE80; border: 2px solid #fff;
}
.site-main .ag-chat__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; color: #fff; text-transform: none; }
.ag-chat__sub { margin: 3px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.ag-chat__sub span { color: #BBF7D0; font-weight: 600; }
.ag-chat__clear {
    position: relative; z-index: 1;
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 13px; font-weight: 600; color: #fff;
    cursor: pointer;
    transition: background-color .2s, opacity .2s;
}
.ag-chat__clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ag-chat__clear:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }
.ag-chat__clear:disabled { opacity: .45; cursor: default; }

/* Xabarlar maydoni — yengil nuqtali fon */
.ag-chat__body {
    flex: 1; overflow-y: auto;
    padding: 24px;
    background-color: #F7FAF8;
    background-image: radial-gradient(rgba(51, 159, 74, .09) 1px, transparent 1px);
    background-size: 18px 18px;
    scroll-behavior: smooth;
}
.ag-chat__empty { display: flex; flex-direction: column; gap: 18px; }
.ag-chat__empty[hidden] { display: none; }
.ag-chat__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-left: 42px; }
.ag-chat__chip {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ag-line); border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ag-chat__chip:hover { border-color: var(--ag-green); box-shadow: 0 10px 22px -14px rgba(51, 159, 74, .6); transform: translateY(-2px); }
.ag-chat__chip-icon {
    flex: 0 0 38px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--ag-tint); color: var(--ag-green);
    font-size: 15px;
    transition: background-color .2s, color .2s;
}
.ag-chat__chip:hover .ag-chat__chip-icon { background: var(--ag-green); color: #fff; }
.ag-chat__chip strong { display: block; font-size: 14px; font-weight: 600; color: var(--ag-ink); }
.ag-chat__chip small { display: block; margin-top: 1px; font-size: 12px; color: var(--ag-muted); }

/* Xabarlar */
.ag-chat__list { display: flex; flex-direction: column; gap: 14px; }
.ag-msg { display: flex; align-items: flex-end; gap: 10px; max-width: 100%; animation: ag-msg-in .25s ease; }
.ag-msg--user { justify-content: flex-end; }
.ag-msg__avatar {
    flex: 0 0 32px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px -2px rgba(15, 35, 22, .2);
}
.ag-msg__avatar img { width: 20px; height: 20px; }
.ag-msg__bubble {
    max-width: min(76%, 600px);
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px; line-height: 1.6;
    overflow-wrap: anywhere;
}
.ag-msg--user .ag-msg__bubble {
    background: linear-gradient(135deg, #2E9A4B, #3BAA57);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 8px 18px -12px rgba(46, 154, 75, .8);
}
.ag-msg--assistant .ag-msg__bubble {
    background: #fff; color: var(--ag-ink);
    border: 1px solid #E6ECE8;
    border-bottom-left-radius: 6px;
    box-shadow: 0 6px 16px -14px rgba(15, 35, 22, .35);
}
.ag-msg__bubble p { margin: 0 0 .6em; color: inherit; }
.ag-msg__bubble > :last-child { margin-bottom: 0; }
.ag-msg__bubble ul, .ag-msg__bubble ol { margin: 0 0 .6em; padding-left: 1.3em; }
.ag-msg__bubble li { margin-bottom: .2em; }
.ag-msg__bubble .ag-md-h { font-weight: 700; }
.ag-msg__bubble a { color: var(--ag-green-dark); text-decoration: underline; text-underline-offset: 2px; }
.ag-msg--user .ag-msg__bubble a { color: #fff; }
.ag-msg__bubble code { padding: 1px 5px; border-radius: 5px; background: rgba(0, 0, 0, .06); font-size: .9em; }
.ag-md-table { overflow-x: auto; margin: 0 0 .6em; }
.ag-md-table table { border-collapse: collapse; font-size: 13px; }
.ag-md-table th, .ag-md-table td { padding: 6px 10px; border: 1px solid #DDE3DF; text-align: left; white-space: nowrap; }
.ag-md-table th { background: #EEF4F0; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ag-msg.is-error .ag-msg__bubble { background: #FEF3F2; border-color: #FBD5D2; color: #B42318; }
.ag-msg__retry {
    margin-top: 8px; padding: 6px 12px;
    border: 1px solid #F5C2C0; border-radius: 999px;
    background: #fff;
    font-size: 13px; font-weight: 600; color: #B42318;
    cursor: pointer;
}
.ag-msg__retry:hover { background: #FEE4E2; }

.ag-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ag-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ag-green); animation: ag-typing 1.2s infinite ease-in-out; }
.ag-typing i:nth-child(2) { animation-delay: .15s; }
.ag-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ag-typing { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes ag-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Yozish maydoni — suzuvchi "pill" */
.ag-chat__composer { padding: 14px 20px 12px; background: #fff; border-top: 1px solid var(--ag-line); }
.ag-chat__field {
    display: flex; align-items: flex-end; gap: 10px;
    padding: 6px 6px 6px 20px;
    border: 1px solid var(--ag-line); border-radius: 28px;
    background: #fff;
    box-shadow: 0 8px 24px -18px rgba(15, 35, 22, .5);
    transition: border-color .2s, box-shadow .2s;
}
.ag-chat__field:focus-within { border-color: var(--ag-green); box-shadow: 0 0 0 4px rgba(51, 159, 74, .12); }
.ag-chat__field textarea {
    flex: 1; min-width: 0;
    max-height: 160px; padding: 11px 0;
    border: 0; outline: 0; resize: none;
    background: transparent;
    font: inherit; font-size: 15px; line-height: 1.5; color: var(--ag-ink);
}
.ag-chat__field textarea::placeholder { color: #9AA6AF; }
.ag-chat__send {
    flex: 0 0 44px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: linear-gradient(135deg, #2E9A4B, #4DB664); color: #fff;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
}
.ag-chat__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-chat__send:hover:not(:disabled) { box-shadow: 0 8px 18px -8px rgba(46, 154, 75, .9); transform: translateX(1px); }
.ag-chat__send:active:not(:disabled) { transform: scale(.94); }
.ag-chat__send:disabled { opacity: .35; cursor: default; }
.ag-chat__hint { margin: 8px 0 0; text-align: center; font-size: 12px; color: #9AA6AF; }

/* Yon panel */
.ag-chat-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 110px; }
.ag-chat-side__card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: 20px;
}
.ag-chat-side__card--accent {
    background: linear-gradient(150deg, #1E7A3A, #2E9A4B);
    border: 0; color: #fff;
}
.ag-chat-side__label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ag-muted); }
.ag-chat-side__card--accent .ag-chat-side__label { color: rgba(255, 255, 255, .75); }
.site-main .ag-chat-side__phone { font-size: 34px; font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: .02em; }
.site-main .ag-chat-side__phone:hover { color: #E6F7EA; }
.ag-chat-side__card--accent p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.site-main .ag-chat-side__link {
    display: flex; align-items: center; gap: 12px;
    margin: 0 -10px; padding: 10px;
    border-radius: 12px;
    font-size: 14px; font-weight: 600; color: var(--ag-ink);
    transition: background-color .2s, color .2s;
}
.ag-chat-side__link > i:first-child {
    flex: 0 0 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: var(--ag-tint); color: var(--ag-green);
    font-size: 14px;
}
.ag-chat-side__link span { flex: 1; }
.ag-chat-side__link > i:last-child { font-size: 11px; color: #B4BEC6; transition: transform .2s, color .2s; }
.site-main .ag-chat-side__link:hover { background: var(--ag-tint); color: var(--ag-green-dark); }
.ag-chat-side__link:hover > i:last-child { color: var(--ag-green); transform: translateX(3px); }
.ag-chat-side__note { display: flex; gap: 8px; margin: 0; padding: 0 4px; font-size: 12px; line-height: 1.5; color: var(--ag-muted); }
.ag-chat-side__note i { margin-top: 2px; color: var(--ag-green); }

@media (max-width: 991.98px) {
    .ag-chat-layout { grid-template-columns: 1fr; }
    .ag-chat-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .ag-chat-side__note { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .ag-chat { height: calc(100vh - 130px); min-height: 500px; border-radius: 18px; }
    .ag-chat__head { padding: 14px 16px; }
    .ag-chat__avatar { flex-basis: 44px; width: 44px; height: 44px; }
    .ag-chat__avatar img { width: 26px; height: 26px; }
    .ag-chat__clear span { display: none; }
    .ag-chat__clear { width: 38px; padding: 0; justify-content: center; }
    .ag-chat__body { padding: 16px; }
    .ag-chat__chips { grid-template-columns: 1fr; padding-left: 0; }
    .ag-chat__composer { padding: 10px 12px; }
    .ag-msg__bubble { max-width: 86%; }
    .ag-chat__hint { display: none; }
    .ag-chat-side { grid-template-columns: 1fr; }
}

/* =====================================================================
   YANGILIK SAHIFASI (templates/news/post_detail.html)
   ===================================================================== */
.ag-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }

.ag-article {
    padding: 36px 40px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: 24px;
    box-shadow: 0 24px 50px -36px rgba(15, 50, 28, .35);
}
.ag-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 14px; font-size: 13px; color: var(--ag-muted); }
.ag-article__meta i { margin-right: 4px; color: var(--ag-green); }
.site-main .ag-article__cat {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--ag-tint);
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: var(--ag-green-dark);
}
.site-main .ag-article__cat:hover { background: var(--ag-green); color: #fff; }
.site-main .ag-article__title {
    margin: 0 0 24px;
    font-size: 32px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em;
    color: var(--ag-ink);
}
.ag-article__image { margin: 0 0 28px; overflow: hidden; border-radius: 18px; background: var(--ag-tint); }
.ag-article__image img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.ag-article__body { font-size: 17px; line-height: 1.8; }
.ag-article__body p { margin-bottom: 1.1em; }
.ag-article__body > p:first-child { font-size: 18px; color: var(--ag-ink); }

.ag-article__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--ag-line);
}
.ag-article__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.site-main .ag-article__tags a {
    padding: 6px 12px;
    border: 1px solid var(--ag-line); border-radius: 999px;
    font-size: 13px; font-weight: 500; color: var(--ag-muted);
    transition: border-color .2s, color .2s;
}
.site-main .ag-article__tags a:hover { border-color: var(--ag-green); color: var(--ag-green); }
.ag-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ag-share__label { font-size: 13px; font-weight: 600; color: var(--ag-muted); }
.site-main .ag-share__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 0; border-radius: 50%;
    background: var(--sm-soft, var(--ag-tint));
    color: var(--sm, var(--ag-green));
    font-size: 15px;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s;
}
.site-main .ag-share__btn:hover { background: var(--sm, var(--ag-green)); color: #fff; transform: translateY(-2px); }
.site-main .ag-share__copy.is-done { background: var(--ag-green); color: #fff; }

/* Boshqa yangiliklar */
.ag-related { margin-top: 36px; }
.ag-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.site-main .ag-related__head h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--ag-ink); }
.site-main .ag-related__head a { font-size: 14px; font-weight: 600; color: var(--ag-green); white-space: nowrap; }
.ag-related__head a i { margin-left: 4px; font-size: 12px; transition: transform .2s; }
.ag-related__head a:hover i { transform: translateX(3px); }
.ag-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site-main .ag-related__card {
    display: flex; flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: 18px;
    color: var(--ag-ink);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.site-main .ag-related__card:hover { transform: translateY(-4px); border-color: #CFE3D4; box-shadow: var(--ag-shadow); }
.ag-related__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ag-tint); }
.ag-related__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ag-related__card:hover .ag-related__img img { transform: scale(1.05); }
.ag-related__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.ag-related__body small { font-size: 12px; color: var(--ag-muted); }
.ag-related__body small i { margin-right: 4px; color: var(--ag-green); }
.ag-related__body strong { font-size: 15px; font-weight: 600; line-height: 1.4; }
.site-main .ag-related__card:hover strong { color: var(--ag-green-dark); }

/* Yon panel */
.ag-article-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.ag-side-search { position: relative; }
.ag-side-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ag-muted); font-size: 14px; pointer-events: none; }
.ag-side-search input {
    width: 100%; height: 52px;
    padding: 0 18px 0 46px;
    border: 1px solid var(--ag-line); border-radius: 16px;
    background: #fff;
    font-size: 15px; color: var(--ag-ink);
    outline: 0;
    transition: border-color .2s, box-shadow .2s;
}
.ag-side-search input:focus { border-color: var(--ag-green); box-shadow: 0 0 0 3px rgba(51, 159, 74, .14); }
.ag-side-card { padding: 22px; background: #fff; border: 1px solid var(--ag-line); border-radius: 20px; }
.site-main .ag-side-card__title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--ag-ink); text-transform: none; }
.ag-side-posts { display: flex; flex-direction: column; gap: 4px; }
.site-main .ag-side-post {
    display: flex; align-items: center; gap: 12px;
    margin: 0 -8px; padding: 8px;
    border-radius: 12px;
    color: var(--ag-ink);
    transition: background-color .2s;
}
.site-main .ag-side-post:hover { background: var(--ag-tint); }
.ag-side-post__img { flex: 0 0 72px; width: 72px; height: 56px; overflow: hidden; border-radius: 10px; background: var(--ag-tint); }
.ag-side-post__img img { width: 100%; height: 100%; object-fit: cover; }
.ag-side-post__body { min-width: 0; }
.ag-side-post__body strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; }
.site-main .ag-side-post:hover strong { color: var(--ag-green-dark); }
.ag-side-post__body small { display: block; margin-top: 3px; font-size: 12px; color: var(--ag-muted); }
.ag-side-cats { display: flex; flex-direction: column; gap: 4px; }
.site-main .ag-side-cats a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px; font-weight: 600; color: var(--ag-ink);
    transition: background-color .2s, color .2s;
}
.ag-side-cats em {
    min-width: 30px; padding: 2px 8px;
    border-radius: 999px;
    background: var(--ag-tint);
    font-style: normal; font-size: 12px; font-weight: 600; text-align: center;
    color: var(--ag-muted);
}
.site-main .ag-side-cats a:hover, .site-main .ag-side-cats a.is-active { background: var(--ag-tint); color: var(--ag-green-dark); }
.site-main .ag-side-cats a.is-active em { background: var(--ag-green); color: #fff; }

@media (max-width: 1199.98px) {
    .ag-article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 991.98px) {
    .ag-article-layout { grid-template-columns: 1fr; }
    .ag-article-side { position: static; }
}
@media (max-width: 767.98px) {
    .ag-article { padding: 22px 18px; border-radius: 18px; }
    .site-main .ag-article__title { font-size: 24px; }
    .ag-article__image { margin-left: -18px; margin-right: -18px; border-radius: 0; }
    .ag-article__body { font-size: 16px; }
    .ag-related__grid { grid-template-columns: 1fr; }
    .ag-share { margin-left: 0; }
}

/* =====================================================================
   OCHIQ MA'LUMOTLAR (templates/pages/interaktive_service.html)
   ===================================================================== */
.ag-open-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.site-main .ag-open-head h3 { margin: 0 0 4px; font-size: 26px; font-weight: 700; color: var(--ag-ink); }
.ag-open-head p { margin: 0; color: var(--ag-muted); }
.ag-open-search { position: relative; width: 100%; max-width: 340px; margin: 0; }
.ag-open-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ag-muted); font-size: 14px; pointer-events: none; }
.ag-open-search input {
    width: 100%; height: 48px; padding: 0 16px 0 42px;
    border: 1px solid var(--ag-line); border-radius: 14px;
    background: #fff; font-size: 15px; color: var(--ag-ink); outline: 0;
    transition: border-color .2s, box-shadow .2s;
}
.ag-open-search input:focus { border-color: var(--ag-green); box-shadow: 0 0 0 3px rgba(51, 159, 74, .14); }

.ag-open-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.site-main .ag-open-card {
    display: flex; align-items: center; gap: 14px;
    min-height: 76px; padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--ag-line);
    border-radius: 16px;
    color: var(--ag-ink);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.site-main .ag-open-card[hidden] { display: none; }
.site-main .ag-open-card:hover { border-color: #CFE3D4; box-shadow: var(--ag-shadow); transform: translateY(-2px); color: var(--ag-ink); }
.ag-open-card__icon {
    flex: 0 0 44px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--ag-tint); color: var(--ag-green);
    font-size: 17px;
    transition: background-color .2s, color .2s;
}
.ag-open-card:hover .ag-open-card__icon { background: var(--ag-green); color: #fff; }
.ag-open-card__title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ag-open-card__arrow { flex: 0 0 auto; font-size: 12px; color: #B4BEC6; transition: transform .2s, color .2s; }
.ag-open-card:hover .ag-open-card__arrow { color: var(--ag-green); transform: translateX(3px); }
.ag-open-empty { margin: 24px 0 0; text-align: center; color: var(--ag-muted); }

@media (max-width: 991.98px) { .ag-open-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
    .ag-open-grid { grid-template-columns: 1fr; }
    .ag-open-search { max-width: none; }
}
