/* ==============================================
   E-POLIS OPTIMIZED CSS
   Combined and optimized styles
   ============================================== */

/* ============== FONT IMPORT ============== */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* ============== RESET & BASE ============== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-background);
    font-family: "Ubuntu", serif;
}

li {
    list-style: none;
}
ol > li[data-bs-default] {
    list-style:decimal;
    font-weight: bold;
}

.accordion-button span {
    transition: var(--transition-smooth);
}
span,
a {
    text-decoration: none;
    font-family: "Ubuntu", serif;
    color: var(--color-text);
}

input,
label {
    font-family: "Ubuntu", serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: "Ubuntu", serif;
}

p {
    color: var(--color-text);
    line-height: 20px;
}

/* ============== CSS VARIABLES ============== */
:root {
    /* Original colors preserved */
    --bg-color-wight: #FFFFFF;
    --color-primary: #32A852;
    --color-primary-dark: #27913C;
    --color-background: #F7F9FA;
    --color-language: #F1F4F5;
    --color-language-hover: #eff2f8;
    --color-surface: #FFFFFF;
    --color-border: #E5E7EB;
    --color-text: #2E332F;
    --color-muted-text: #6B7280;
    --color-accent: #FF4C4C;
    --input-text-color: #7A8081;
    --input-bg-color: #F1F4F5;

    /* Additional optimized variables */
    --border-radius-btn: 16px;
    --border-radius-card: 32px;
    --border-radius-section: 32px;
    --box-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --box-shadow-btn: 0 2px 2px rgba(154, 154, 154, 0.9);
    --box-shadow-menu: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    --transition-smooth: all 0.3s ease;
    --transition-menu: all 0.50s ease;
}

.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

.px-custom {
    padding-left: 40px;
    padding-right: 40px;
}
.py-custom {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ============== HEADER & NAVIGATION ============== */
.sticky{
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    box-shadow: var(--box-shadow-menu);
}

.menuBars li {
    line-height: 20px;
    white-space: nowrap;
    font-weight: 400;
}

.dropdown-toggle[data-language] {
    background: var(--color-language);
    white-space: nowrap;
}

#myHeader .dropdown .dropdown-toggle:after{
    display: none;
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
    border-color: transparent !important;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: initial;
}

.btn-close:focus {
    box-shadow: none !important;
}

.dropdown > a.show > i {
    transform: rotate(180deg);
    transition: all 300ms ease-in-out;
}

.dropdown > a > i {
    transition: all 300ms ease-in-out;
}

.drop-downs {
    background: var(--color-language);
    transition: var(--transition-smooth);
}

.drop-downs:hover {
    background: var(--color-language-hover);
}

/*.dropdown-menu {*/
/*    width: 80px;*/
/*    height: auto;*/
/*    background: var(--color-language);*/
/*}*/

.menuDropImg {
    transition: transform 0.3s ease;
    transform-origin: center;
}

.menuDropImg.dropImg {
    transform: rotate(180deg);
    transition: 0.5s;
}

/* ============== BUTTONS ============== */
.btn-s {
    background-color: var(--color-primary);
    color: white;
    white-space: nowrap;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    border-radius: var(--border-radius-btn);
    padding: 11px 40px;
    border: 0;
    font-family: "Ubuntu", serif;
    font-weight: 500;
    cursor: pointer;
}

.btn-s:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 168, 82, 0.4);
}

.btn-s:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-s:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-s:disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: var(--color-primary);
}

/* Header specific buttons */
.header-navbar-button {
    padding: 8px 16px;
    font-weight: 400;
}

/* ============== HEADER INTRO ============== */
.header-intro-swiper {
    background: var(--bg-color-wight);
    border-radius: 20px;
    overflow: hidden;
}

.header-intro-text {
    padding-left: 72px;
    white-space: nowrap;
}

.header-intro-text input {
    width: 255px;
}

.epolise-title h2,
.intro-text {
    font-size: 44px;
    color: var(--color-text);
    font-weight: bold;
}

.intro-description {
    color: var(--color-text);
    font-size: 1rem;
}

.intro-icon-group i,
.intro-icon-group .intro-icon-phone,
.intro-icon-case {
    background: var(--color-language);
    transition: var(--transition-smooth);
}

.intro-icon-items {
    color: var(--color-text);
    transition: var(--transition-smooth);
}

.intro-icon-items[data-bs-button]:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-btn);
}

.intro-icon-items[data-bs-icon]:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

.intro-icon-items[data-bs-icon]:hover i {
    box-shadow: var(--box-shadow-btn);
}

.intro-icon-items:hover span {
    color: var(--color-primary);

}

.intro-icon-case {
    height: 40px;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.intro-icon-case:hover {
    background: var(--color-language-hover);
    color: var(--color-text);
    transform: translateY(-2px);
}

.intro-logo-text h2,
.intro-logo-text h5 {
    color: var(--color-primary);
    white-space: nowrap;
}

.intro-logo-text p {
    color: var(--color-text);
}

.intro-icon-phone {
    background: var(--color-language);
    border-radius: 25px;
}

/* ============== FORMS ============== */
.header-intro input {
    background-color: var(--input-bg-color);
    color: var(--input-text-color);
    border-radius: var(--border-radius-btn);
    border: 0;
    transition: var(--transition-smooth);
}

.header-intro input:focus {
    box-shadow: 0 0 0 0.2rem rgba(50, 168, 82, 0.25);
    border-color: var(--color-primary);
    outline: none;
}

.header-intro form button {
    padding: 8px 24px;
    font-weight: 500;
}

/* Mobile form adjustments */
@media (max-width: 767.98px) {
    .header-intro form input {
        max-width: 163px;
    }

    .header-intro form button {
        padding: 8px 16px;
    }
}

/* ============== SWIPER ============== */
.swiper {
    width: 100%;
    padding: 25px 0;
}

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

.partner-swiper .swiper-slide {
    height: auto;
}

/* ============== SECTIONS SPACING ============== */
.e-polis-insurans,
.partners,
.about,
.telegrams,
.quesion-acardion {
    margin-top: 80px;
    padding: 0;
}

/* ============== INSURANCE CARDS ============== */
.e-polis-osago {
    padding: 32px;
    border-radius: var(--border-radius-card);
    background: var(--bg-color-wight);
    box-shadow: var(--box-shadow-light);
    transition: var(--transition-smooth);
    min-height: 200px;
}

.e-polis-osago:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.e-polis-osago h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: bold;
}

.e-polis-osago p {
    color: var(--color-text);
    margin-bottom: 48px;
}

.e-polis-osago button {
    padding: 12px 24px;
    font-weight: 500;
}

.e-polis-osago button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 168, 82, 0.4);
    color: white;
}

.e-polis-osago a {
    text-decoration: none;
}

.card-all-image {
    width: 162px;
}

/* ============== PARTNERS SECTION ============== */
.partners {
    padding: 4rem 0;
}

.partner-image {
    /*width: 300px;*/
    height: 160px;
    border-radius: var(--border-radius-card);
    background: var(--bg-color-wight);
    padding: 20px;
    box-shadow: var(--box-shadow-light);
    transition: var(--transition-smooth);
}

.partner-image:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}
.partner-image img {
    object-fit: contain;
    object-position: center;
}
/* ============== ABOUT SECTION ============== */
.about {
    padding: 4rem 0;
}

.about-we {
    padding: 48px;
    background: var(--bg-color-wight);
    border-radius: var(--border-radius-section);
    box-shadow: var(--box-shadow-light);
}

.about button,
.about-button {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius-btn);
    padding: 12px 24px;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 0;
}

.about button:hover,
.about-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 168, 82, 0.4);
    color: white;
}

/* ============== TELEGRAM SECTION ============== */
.telegrams {
    padding: 4rem 0;
}

.telegram-blog {
    margin-top: 95px;
    border-radius: var(--border-radius-card);
    background: var(--bg-color-wight);
}

.telegram-menu span {
    width: 24px;
    height: 24px;
    background: var(--color-primary);
}

.circle-number {
    padding: 8px;
    background-color: var(--color-primary);
    color: white;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
}

.telegrams .we-image img {
    /*display: flex;*/
    /*justify-content: center;*/
    bottom: -40px;
}

.we-image img {
    filter: drop-shadow(-4px 0px 12px rgba(17, 17, 26, 0.1)) drop-shadow(4px 0px 12px rgba(17, 17, 26, 0.05)) drop-shadow(0px -4px 12px rgba(17, 17, 26, 0.05));
    /*max-width: 100%;*/
    height: auto;
}

.telegram-menu button {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius-btn);
    transition: var(--transition-smooth);
    border: 0;
}

.telegram-menu button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 168, 82, 0.4);
    color: white;
}

/* ============== FAQ ACCORDION ============== */
.quesion-acardion {
    padding: 4rem 0;
}

.accordion {
    padding: 32px;
    border-radius: var(--border-radius-card);
    background: var(--bg-color-wight);
    box-shadow: var(--box-shadow-light);
}

.accordion-button,
.accordion-body {
    font-family: "Ubuntu", serif;
}

.accordion-button {
    padding: 28px 0;
    font-size: 20px;
    background: var(--bg-color-wight);
    color: var(--color-text);
    border: 0;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.accordion-button:hover {
    background-color: white;
    color: var(--color-primary);
}
.accordion-button i::before{
    color: var(--bg-color-wight);
}
.accordion-button:hover ::before{
    color: var(--bg-color-wight);
}

.accordion-button:hover span {
    color: var(--color-primary);
}

.accordion-button:not(.collapsed) {
    background: var(--bg-color-wight);
    color: var(--color-primary);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none !important;
}
/* Raqam uchun ham rangni alohida beramiz */
.accordion-button:not(.collapsed) > span {
    color: var(--color-primary);
}

.accordion-button::after {
    content: "";
    background-image: url("../image/outline.svg");
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease-in-out;
    width: 32px;
    height: 32px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-left: auto;
    transform: rotate(-180deg);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("../image/outline.svg");
    transform: rotate(0deg);
}

.accordion-body {
    color: var(--color-text);
}

/* ============== FOOTER ============== */
.footer {
    background: var(--bg-color-wight);
    padding: 40px 0 2rem 0;
    margin-top: 266px;
}

.footer-image img {
    width: 105px;
    height: 105px;
}

.footer-menu ul li {
    flex: 0 0 calc(33.333% - 0.5rem);
    margin-bottom: 0.5rem;
}

.footer-menu ul li a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-menu ul li a:hover {
    color: var(--color-primary);
}

.footer-icon .intro-icon-group a {
    background: var(--bg-color-wight);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-info a:hover {
    color: var(--color-primary);
}

/* ============== MODAL ============== */
.modal-content {
    border-radius: var(--border-radius-btn);
    border: 0;
    box-shadow: var(--box-shadow-hover);
}

.btn-success {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.btn-success:hover {
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ============== UTILITY CLASSES ============== */
.cursor-pointer {
    cursor: pointer;
}

.text-nowrap {
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============== ACCESSIBILITY ============== */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

/* ============== RESPONSIVE DESIGN ============== */

/* Extra Large screens (1320px and up) */
@media screen and (max-width: 1320px) {
    .menuBars .nav-item {
        font-size: 18px;
        font-weight: 700;
    }

    /*.menuBars {*/
    /*    position: absolute;*/
    /*    top: 100%;*/
    /*    left: -100%;*/
    /*    width: 300px;*/
    /*    height: auto;*/
    /*    background: white;*/
    /*    border-radius: 10px;*/
    /*    border-top-right-radius: 0;*/
    /*    padding: 24px;*/
    /*    padding-left: 70px;*/
    /*    transition: var(--transition-menu);*/
    /*    z-index: 9999;*/
    /*}*/
    .menuBars.open {
        left: 0;
    }

    #menu-icon img {
        cursor: pointer;
    }

    #menu-icon .close-menu,
    #menu-icon.bx .open-menu {
        display: none;
    }

    #menu-icon.bx .close-menu {
        display: block;
    }
}

.header-intro-form {
    padding-left: 72px;
    position: absolute;
    bottom: 55px;
}


/* Large screens (1200px and down) */
@media screen and (max-width: 1200px) {
    .menuBars {
        padding-left: calc(var(--bs-gutter-x) * 0.5);
    }

    .header-intro-text,
    .header-intro-form{
        padding-left: 40px;
    }
     .navbar-collapse{
         transition: 0.2s ease;
     }
     .navbar-collapse.collapsing{
         transition: none !important;
     }
     #navbarSupportedContent.collapse.show{
         background: #fff !important;
         height: 95vh;
     }
}

/* Medium screens (992px and down) */
@media screen and (max-width: 992px) {
    .header-intro-text {
        padding-left: 24px;
    }

    .header-intro-form  {
        padding-left: 24px;
        padding-right: 24px;
    }

    .intro-text {
        font-size: 32px;
    }

    .header-intro-text input {
        width: 163px;
    }

    .intro-image img {
        width: 350px;
        height: auto;
    }

    .intro-icon-case {
        width: 195px;
    }

    .e-polis-insurans,
    .partners,
    .about,
    .telegrams,
    .quesion-acardion {
        margin-top: 48px;
        padding: 3rem 0;
    }

    .e-polis-osago {
        position: relative;
        overflow: hidden;
        padding: 24px;
        min-height: 180px;
    }

    .e-polis-osago .card-all-image {
        position: absolute;
        bottom: 0px;
        right: -35px;
    }

    .e-polis-osago .card-all-image.ocgor,
    .e-polis-osago .card-all-image.turizm {
        bottom: -30px;
    }

    .e-polis-osago .card-all-image.sport {
        bottom: -25px;
    }

    .e-polis-osago .card-all-image.cluchay {
        bottom: -13px;
    }

    .footer {
        margin-top: 100px;
    }
}

/* Small screens (768px and down) */
@media screen and (max-width: 768px) {
    .position-md-initial {
        position: initial !important;
    }
    .header-intro-text {
        height: auto;
        white-space: wrap;
    }

    .intro-text {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .partners .swiper-slide {
        display: flex;
        justify-content: center;
    }

    .accordion,
    .about-we {
        padding: 24px;
    }

    .header-intro-form  {
        position: relative;
        bottom: 55px;
    }

    .telegrams .we-image {
        margin-top: 0;
    }

    .telegram-blog {
        padding: 24px;
        padding-top: 8px;
        margin-top: 30px;
    }

    .accordion-button {
        font-size: 18px;
    }

    .epolise-title h1 {
        font-size: 28px;
    }
    .telegrams .we-image img {
        bottom: -64px;
        width: 120%;
    }
    .footer {
        margin-top: 23px;
    }


}
@media screen and (max-width: 767px) {
    .py-custom {
        padding-top:12px;
        padding-bottom:12px;
    }
    .px-custom {
        padding-left:12px;
        padding-right: 12px;
    }
    .telegrams .we-image img {
        width: auto;
    }
    .we-image img {
        filter: drop-shadow(-12px 0px 12px rgba(17, 17, 26, 0.3)) drop-shadow(12px 0px 12px rgba(17, 17, 26, 0.3)) ;
    }
    .telegram-menu {
        padding-top:16px;
    }
    .telegram-content-start {
        background-color: var(--bs-white);
        z-index: 2;
    }
    .telegram-content-end {
        margin-bottom: -44px;
        z-index: 1;
    }
}
/* Extra Small screens (576px and down) */
@media screen and (max-width: 576px) {
    .menuBars {
        height: 746px;
        width: 100%;
    }

    .intro-text {
        font-size: 1.5rem;
    }

    .intro-image img {
        width: 227px;
    }

    .intro-icon-case,
    .about-we .about-button {
        width: 100%;
    }

    .telegrams .we-image img {
        max-width: 100%;
    }

    .telegram-menu button {
        width: 100%;
    }

    .accordion-button::after {
        margin-left: 10px;
    }

    .e-polis-osago {
        padding: 20px;
        min-height: 160px;
    }

    .about-we {
        padding: 30px 20px;
    }

    .btn-s {
        padding: 8px 8px;
        font-size: 14px;
    }
}

/* ============== PERFORMANCE OPTIMIZATIONS ============== */
img {
    /*max-width: 100%;*/
    height: auto;
    loading: lazy;
}

/* Preload critical images */
.intro-image img,
.header-intro-swiper img {
    loading: eager;
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}