/* ──────────────────────────────────────────────────────
   BÜTÜN SƏHİFƏLƏR — Ümumi stillər
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 1199px) {
    /* front.css: .page-scaler { transform: scale(...) } — ləğv edilir */
    .page-scaler {
        transform: none !important;
        width: 100% !important;
        min-height: 100vh !important;
        position: relative; /* popup-lar buna görə yerləşir, body-ni uzatmır */
        overflow: hidden;   /* footer altındakı boşluğun qarşısını alır */
    }

    html, body {
        height: auto !important;
        overflow-x: hidden;
        overflow-anchor: none; /* Android scroll anchoring-i söndür — margin dəyişəndə scroll sürüşməsin */
    }
}


/* ──────────────────────────────────────────────────────
   BÜTÜN SƏHİFƏLƏR — .container
   front.css-də .container width: 1560px sabit idi.
   Mobilda tam genişlik olsun deyə override edilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {
    .container {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100vw !important;
        padding: 0 16px;
        box-sizing: border-box;
        flex-direction: column;
        overflow: hidden;
    }
}


/* ──────────────────────────────────────────────────────
   BÜTÜN SƏHİFƏLƏR — Header (partials/front/header.html.php)
   front.css-də header height: 160px sabit idi.
   Mobilda 70px-ə endirilir, desktop nav gizlədilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.header { height: 160px } */
    section.header {
        height: 70px;
        z-index: 110; /* mobile-menu z-index:100-dən yuxarı — hamburger görünsün */
    }

    /* Android banner açıq olduqda header və menü aşağı düşür */
    body.android-banner-open section.header {
        top: 70px !important;
    }

    body.android-banner-open .mobile-menu {
        top: 140px !important;
        height: calc(100vh - 140px) !important;
    }

    /* body.marginTop əvəzinə section.search aşağı düşür — scroll sürüşməsi olmur */
    body.android-banner-open section.search {
        margin-top: 140px !important;
    }

    section.header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        padding: 0 16px;
    }

    /* front.css: section.header img.logo { width: 224px } */
    section.header img.logo {
        width: 130px;
    }

    /* Desktop nav linkleri mobilda gizledilir,
       evezine hamburger menu acilir */
    section.header .right {
        display: none;
    }

    /* front.css: div.header_spacer { height: 160px } */
    div.header_spacer {
        height: 70px;
    }
}

/* Hamburger icon — desktop-da gizli, yalniz mobilda gorunur.
   HTML-i header.html.php-ye elave edilib. */
.header-hamburger {
    display: none;
}

@media screen and (max-width: 767px) {
    .header-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        z-index: 101;
        flex-shrink: 0;
    }

    .header-hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
}

/* Mobile menu overlay — hamburger-e basilanda acilir.
   Toggle mentiqi header.html.php-deki JS-de yazilir. */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px; /* header hündürlüyü ilə uyğun */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #4370d8;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Daxil ol / Qeydiyyat düymələri mobile menuda */
.mobile-menu a.button-link {
    margin-top: 10px;
    border: 2px solid white;
    border-radius: 10px;
    width: calc(100% - 40px);
}

/* Desktop-da mobile menu her zaman gizli qalir */
@media screen and (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}


/* ──────────────────────────────────────────────────────
   TermsOfUse, ReturnTerms, PaymentRules, AboutUs
   — show_content.html.php şablonu istifadə edilir
   front.css-də margin-top: 160px (header hündürlüyü) idi,
   mobilda header 70px-ə endiyinə görə bu da dəyişdirilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.show_content { margin-top: 160px } */
    section.show_content {
        margin-top: 70px !important;
        padding: 20px 0;
    }

    /* front.css: section.show_content .container { padding: 60px 80px } */
    section.show_content .container {
        padding: 24px 16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        gap: 16px;
    }
}


/* ──────────────────────────────────────────────────────
   BÜTÜN SƏHİFƏLƏR — Footer (footer_dark.html.php / footer_light.html.php)
   front.css-də footer height: 370px sabit idi,
   items yan-yana sıralanırdı. Mobilda şaquli olur.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.footer { height: 370px } */
    section.footer {
        height: auto !important;
        padding: 30px 0 20px;
    }

    section.footer .container {
        flex-direction: column;
        padding: 0 16px;
    }

    /* front.css: section.footer .items { flex-direction: row } */
    section.footer .items {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    /* front.css: section.footer .items .item { height: 200px } */
    section.footer .items .item {
        height: auto;
        max-width: 100%;
        font-size: 16px;
        gap: 12px;
    }

    /* front.css: section.footer .footer_logo { width: 316px } */
    section.footer .footer_logo {
        width: 160px;
        height: auto;
    }

    section.footer .items .item.apps {
        align-items: flex-start;
    }

    section.footer .items .item.apps .apps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    section.footer .items .item.apps a {
        width: auto;
        height: auto;
    }

    section.footer .items .item.apps a img {
        width: 140px;
        height: auto;
    }

    section.footer hr {
        margin-top: 20px;
    }

    /* front.css: section.footer .copyright { height: 60px } */
    section.footer .copyright {
        font-size: 13px;
        text-align: center;
        padding: 10px 0;
        height: auto;
    }
}


/* ──────────────────────────────────────────────────────
   TripsPlan — trips_plan.html.php şablonu
   front.css-də margin-top: 160px, search_box height: 150px,
   route padding: 0 80px kimi böyük dəyərlər var.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    section.trips_plan {
        margin-top: 70px !important;
        overflow-x: hidden;
    }

    /* front.css: .search_box { height: 150px, flex-direction: row, padding: 20px 50px } */
    section.trips_plan .search_box {
        height: auto !important;
        flex-direction: column;
        padding: 15px;
        gap: 12px;
        align-items: stretch;
    }

    /* front.css: #from_stop_search, #to_stop_search { width: 336px } */
    section.trips_plan #from_stop_search,
    section.trips_plan #to_stop_search {
        width: 100%;
    }

    section.trips_plan .reverse {
        align-self: center;
    }

    /* front.css: .btn_search { width: 200px, height: 70px } */
    section.trips_plan .btn_search {
        width: 100%;
        height: 50px;
        font-size: 18px;
    }

    /* front.css: .results { width: 1500px } — əsas overflow səbəbi */
    section.trips_plan .results {
        width: 100% !important;
        box-sizing: border-box;
        gap: 16px;
    }

    section.trips_plan .results .result {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* front.css: .result .header { height: 70px, padding: 0 80px, font-size: 22px } */
    section.trips_plan .result .header {
        height: auto;
        min-height: 56px;
        padding: 12px 52px 12px 15px;
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* front.css: .btToggle { width: 70px, height: 70px } */
    section.trips_plan .result .header .btToggle {
        width: 44px;
        height: 100%;
        top: 0;
        right: 0;
        border-radius: 0 10px 10px 0;
    }

    section.trips_plan .result .header .btToggle::before {
        top: 50%;
        left: 50%;
        margin-top: -8px;
        margin-left: -6px;
    }

    /* .routes overflow-u kəsir */
    section.trips_plan .result .routes {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* front.css: .routes .route { height: 90px, padding: 0 80px } */
    section.trips_plan .result .routes .route {
        height: auto;
        padding: 12px 12px;
        gap: 8px;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }

    /* "Start Time" / "Stop Time" labelları mobilə sığmır — gizlədilir */
    section.trips_plan .result .route .blue {
        display: none;
    }

    /* .time divləri bərabər yer bölür, mətn sətirdən keçsə wrap olur */
    section.trips_plan .result .route > .time {
        flex: 1 1 0;
        min-width: 0;
        align-items: center;
        text-align: center;
    }

    /* front.css: .route > .time > .time { font-size: 32px } */
    section.trips_plan .result .route > .time > .time {
        font-size: 20px;
        white-space: nowrap;
    }

    /* front.css: .route > .time > .stop { font-size: 18px } */
    section.trips_plan .result .route > .time > .stop {
        font-size: 11px;
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }

    /* .duration mərkəzdə sabit ölçüdə qalır */
    section.trips_plan .result .route .duration {
        flex: 0 0 auto;
    }

    /* front.css: .duration .line { width: 120px } */
    section.trips_plan .result .route .duration .line {
        width: 24px;
    }

    /* front.css: .duration .numbers { width: 250px } */
    section.trips_plan .result .route .duration .numbers {
        width: 72px;
        font-size: 10px;
        text-align: center;
    }
}


/* ──────────────────────────────────────────────────────
   FAQ — faq.html.php şablonu
   front.css-də margin-top: 160px, padding: 20px 110px,
   font-size: 22px kimi böyük dəyərlər var.
   Mobilda bunlar azaldılır.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.faq { margin-top: 160px } */
    section.faq {
        margin-top: 70px !important;
        margin-bottom: 30px;
    }

    /* front.css: section.faq .container { padding: 60px 0 } */
    section.faq .container {
        padding: 30px 16px;
        gap: 20px;
    }

    /* front.css: section.faq .caption { font-size: 40px } */
    section.faq .caption {
        font-size: 24px;
    }

    section.faq .questions {
        padding: 20px 12px;
        gap: 12px;
    }

    /* front.css: section.faq .question { padding: 20px 110px 20px 30px }
       Sağ padding çox böyük idi, toggle düyməsi üçün azaldılır */
    section.faq .question {
        padding: 16px 50px 16px 16px;
    }

    /* front.css: section.faq .question .title { font-size: 22px } */
    section.faq .question .title {
        font-size: 16px;
    }

    /* front.css: section.faq .question .answer { font-size: 22px } */
    section.faq .question .answer {
        font-size: 15px;
    }

    /* Toggle düyməsinin mövqeyi */
    section.faq .question .toggle {
        right: 12px;
        top: 16px;
        width: 30px;
        height: 20px;
    }
}


/* ──────────────────────────────────────────────────────
   PassengerLogin — login.html.php şablonu
   front.css-də form sağ tərəfdə idi (justify-content: flex-end),
   container width: 50% idi. Mobilda tam genişlik olur
   və mərkəzə alınır.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.login { justify-content: flex-end } */
    section.login {
        justify-content: center;
        align-items: flex-start;
        background-position: center;
        min-height: 100vh;
        height: auto;
    }

    /* front.css: section.login .container { width: 50%, min-width: 480px } */
    section.login .container {
        width: 100% !important;
        min-width: unset !important;
        margin-right: 0;
        background: #FFFFFFCC;
        min-height: 100vh;
    }

    /* front.css: section.login .login_form { width: 420px } */
    section.login .login_form {
        width: 100%;
        padding: 40px 24px;
    }

    /* front.css: section.login .login_form .title { font-size: 40px } */
    section.login .login_form .title {
        font-size: 28px;
    }
}


/* ──────────────────────────────────────────────────────
   Index — index.html.php
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* ── Hero / Search bölməsi ── */

    /* front.css: section.search { height: 882px, margin-top: 160px } */
    section.search {
        height: auto !important;
        min-height: 420px;
        margin-top: 70px !important;
        background-position: center;
    }

    /* front.css: section.search .caption { font-size: 64px } */
    section.search .caption {
        font-size: 24px;
        text-align: center;
        padding-top: 24px;
    }

    /* front.css: section.search .search_box { height: 110px, padding: 20px 50px, flex-direction: row }
       Mobilda elementler sutun seklinde yigilir */
    section.search .search_box {
        flex-direction: column;
        height: auto !important;
        padding: 16px;
        gap: 12px;
        align-items: stretch;
    }

    /* btn_reverse mərkəzə alınır */
    section.search .reverse {
        align-self: center;
    }

    /* front.css: section.search #from_stop_search, #to_stop_search { width: 336px } */
    section.search #from_stop_search,
    section.search #to_stop_search {
        width: 100%;
    }

    /* front.css: .filter_select .selected { width: 336px } — sabit en override edilir */
    .filter_select .selected {
        width: 100%;
        box-sizing: border-box;
    }

    /* Popup açıq olduqda (input fokuslanır) filter_select stacking context yaradır.
       Beləcə öz popup-u (z-index:12) + icon (z-index:14) birlikdə
       digər input-un icon-undan (z-index:14) üstdə qalır. */
    .filter_select:focus-within {
        position: relative;
        z-index: 15;
    }

    /* front.css: section.search .date { width: 450px } */
    section.search .date {
        width: 100%;
        font-size: 16px;
        gap: 8px;
        padding: 0 10px;
    }

    section.search .date input {
        font-size: 16px;
        flex: 1 1 auto;
        min-width: 0;
    }

    /* front.css: section.search .date a { width: 110px } — mobilda daralır */
    section.search .date a {
        width: auto;
        flex-shrink: 0;
        font-size: 12px;
        padding: 0 8px;
        white-space: nowrap;
    }

    /* front.css: section.search .btn_search { width: 200px, height: 70px } */
    section.search .btn_search {
        width: 100%;
        height: 50px;
        font-size: 20px;
    }

    /* front.css: section.search .map { margin-top: 100px } */
    section.search .map {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    /* front.css: section.search .map_button { width: 300px } */
    section.search .map_button {
        width: auto;
        height: 44px;
        padding: 0 16px;
    }

    /* Mobilda "Xəritə" yazısı gizlədilir */
    section.search .map_button span {
        display: none;
    }

    /* front.css: section.search .map_button img { width: 70px } */
    section.search .map_button img {
        width: 37px;
    }


    /* ── Why Us bölməsi ── */

    /* front.css: section.why_us { height: 876px } */
    section.why_us {
        height: auto !important;
        padding: 40px 0;
    }

    /* front.css: section.why_us div.caption { font-size: 64px } */
    section.why_us div.caption {
        font-size: 28px;
    }

    /* front.css: section.why_us .items .item { width: 375px }
       Mobilda 2 sutunlu grid — 2x2 */
    section.why_us .items .item {
        width: calc(50% - 10px);
    }

    /* front.css: section.why_us .items .item a { width: 375px } */
    section.why_us .items .item a {
        width: 100%;
    }

    /* front.css: section.why_us .items .item .text { width: 375px, height: 330px } */
    section.why_us .items .item .text {
        width: 100%;
        height: auto;
        padding: 16px;
    }

    /* front.css: section.why_us .items .item .item_caption { font-size: 32px, width: 330px } */
    section.why_us .items .item .item_caption {
        font-size: 16px;
        width: 100%;
        height: auto;
    }

    /* front.css: section.why_us .items .item .text span { font-size: 22px, width: 303px } */
    section.why_us .items .item .text span {
        font-size: 13px;
        width: 100%;
    }


    /* ── Stats bölməsi ── */

    /* front.css: section.stats { height: 824px } */
    section.stats {
        height: auto !important;
        padding: 40px 0;
        background-position: center;
    }

    /* front.css: section.stats .caption { font-size: 64px } */
    section.stats .caption {
        font-size: 22px;
        gap: 15px;
    }

    /* front.css: section.stats .items .item { width: 375px, height: 225px }
       Mobilda 2 sutunlu grid */
    section.stats .items .item {
        width: calc(50% - 10px);
        height: auto;
    }

    section.stats .items .item img {
        height: 60px;
    }

    /* front.css: section.stats .items .item .number { font-size: 42px } */
    section.stats .items .item .number {
        font-size: 22px;
        height: auto;
    }
}


/* ──────────────────────────────────────────────────────
   TicketSelect Search + Calendar — Tablet (768px – 1199px)
   front.css-də sabit en: from/to 336px, date 450px, btn 200px
   → cəmi ~1400px — tablet-ə sığmır.
   Tabletdə flex-wrap ilə 2 sıra görünür:
     Sıra 1: [Haradan] [⇄] [Haraya]
     Sıra 2: [Tarix inputu]  [Axtar]
   ────────────────────────────────────────────────────── */
@media screen and (min-width: 768px) and (max-width: 1199px) {

    /* ── MyTickets ── */

    /* front.css: section.tickets { padding: 60px 0, min-height: 600px }
       90px spacer + 60px padding = tablar çox aşağı düşür, boş halda böyük boşluq */
    section.tickets {
        padding: 20px 0 40px;
        min-height: unset;
    }

    /* front.css: .tab_head { width: 260px, height: 60px } — tabletdə uyğunlaşdırılır */
    section.tickets .tab_headers .tab_head {
        width: auto;
        flex: 1 1 0;
        height: 50px;
        font-size: 16px;
    }

    /* front.css: .container { width: 1560px } — tablet-ə sığmır */
    .container {
        width: 100% !important;
        min-width: unset !important;
        padding: 0 20px;
        box-sizing: border-box;
    }

    /* ── Header ── */

    /* front.css: section.header { height: 160px } — tabletdə kiçilir */
    section.header {
        height: 90px;
    }

    section.header .container {
        height: 90px;
        padding: 0 20px;
    }

    section.header img.logo {
        width: 160px;
    }

    section.header a.link {
        font-size: 16px;
        height: 46px;
    }

    section.header a.button {
        font-size: 16px;
        width: 120px;
        height: 46px;
    }

    section.header .dropdown {
        font-size: 16px;
    }

    div.header_spacer {
        height: 90px;
    }

    /* ── Index — Search bölməsi ── */

    /* front.css: section.search { height: 882px, margin-top: 160px } */
    section.search {
        height: auto !important;
        min-height: 360px;
        margin-top: 90px !important;
        padding: 40px 0;
    }

    section.search .caption {
        font-size: 36px;
        width: 100%;
    }

    /* front.css: .search_box { padding: 20px 50px, height: 110px } */
    section.search .search_box {
        height: auto !important;
        padding: 16px 20px;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
    }

    /* front.css: #from_stop_search, #to_stop_search { width: 336px } */
    section.search #from_stop_search,
    section.search #to_stop_search {
        flex: 1 1 200px;
        width: auto;
        height: 46px;
    }

    /* front.css: .filter_select .selected { width: 336px, height: 50px }
       Parent flex child-dır, selected onun içindədir — ölçülər uyğun gəlsin */
    .filter_select {
        display: flex;
        flex-direction: column;
        overflow: visible; /* overflow:hidden popup-u kəsirdi — absolute .popup görünmürdü */
    }

    .filter_select .selected {
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }

    /* front.css: .date { width: 450px, height: 50px } */
    section.search .date {
        flex: 1 1 200px;
        width: auto;
        height: 46px;
        font-size: 16px;
    }

    section.search .date input {
        font-size: 16px;
        height: 46px;
    }

    /* front.css: .btn_search { width: 200px, height: 70px } */
    section.search .btn_search {
        flex: 0 0 auto;
        width: 160px;
        height: 46px;
        font-size: 18px;
    }

    section.search .map {
        margin-top: 30px;
    }

    /* ── Index — Why Us bölməsi ── */

    /* front.css: section.why_us { height: 876px } */
    section.why_us {
        height: auto !important;
        padding: 40px 0;
    }

    section.why_us div.caption {
        font-size: 36px;
    }

    /* front.css: .item { width: 375px } — 2x2 grid */
    section.why_us .items .item {
        width: calc(50% - 10px);
    }

    section.why_us .items .item a {
        width: 100%;
    }

    section.why_us .items .item .text {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    section.why_us .items .item .item_caption {
        font-size: 20px;
        width: 100%;
        height: auto;
    }

    section.why_us .items .item .text span {
        font-size: 16px;
        width: 100%;
    }

    /* ── Index — Stats bölməsi ── */

    /* front.css: section.stats { height: 824px } */
    section.stats {
        height: auto !important;
        padding: 40px 0;
    }

    section.stats .caption {
        font-size: 28px;
    }

    /* front.css: .item { width: 375px, height: 225px } — 2x2 grid */
    section.stats .items .item {
        width: calc(50% - 10px);
        height: auto;
        padding: 20px;
    }

    section.stats .items .item img {
        height: 70px;
    }

    section.stats .items .item .number {
        font-size: 28px;
        height: auto;
    }

    /* front.css: section.search.ticket_select { height: 200px }
       section.search üçün min-height: 360px var — burada ləğv edilir,
       əks halda calendar-la arası çox böyüyür */
    section.search.ticket_select {
        height: auto;
        min-height: unset !important;
        padding: 10px 0;
        margin-top: 90px !important;
    }

    /* front.css: .search_box { padding: 20px 50px, height: 110px } */
    section.search.ticket_select .search_box {
        height: auto !important;
        padding: 16px 24px;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
    }

    /* front.css: #from_stop_search, #to_stop_search { width: 336px } */
    section.search.ticket_select #from_stop_search,
    section.search.ticket_select #to_stop_search {
        flex: 1 1 200px;
        width: auto;
        height: 46px;
    }

    /* front.css: .date { width: 450px, height: 50px, font-size: 22px } */
    section.search.ticket_select .date {
        flex: 1 1 200px;
        width: auto;
        height: 46px;
        font-size: 16px;
        padding: 6px 12px;
        box-sizing: border-box;
    }

    /* front.css: .date input { font-size: 22px, padding: 0 40px } */
    section.search.ticket_select .date input {
        font-size: 16px;
        height: 100%;
        padding: 0 28px;
    }

    /* front.css: .date a { width: 110px, font-size: 14px } */
    section.search.ticket_select .date a {
        font-size: 13px;
        width: auto;
        white-space: nowrap;
        padding: 0 8px;
        height: 100%;
    }

    /* front.css: .btn_search { width: 200px, height: 70px, font-size: 26px } */
    section.search.ticket_select .btn_search {
        flex: 0 0 auto;
        width: 160px;
        height: 46px;
        font-size: 18px;
    }


    section.calendar.ticket_select {
        height: 130px;
    }

    section.calendar.ticket_select .container {
        gap: 16px;
    }

    /* front.css: d-3 və d_3 7-ci tarixlər — tabletdə gizlədilir */
    section.calendar.ticket_select .date.d-3,
    section.calendar.ticket_select .date.d_3 {
        display: none;
    }

    /* front.css: .date { width: 130px, height: 35px, font-size: 18px } */
    section.calendar.ticket_select .date {
        width: 90px;
        height: 32px;
        font-size: 13px;
        border-radius: 8px;
    }

    /* front.css: .date.d_0 { width: 205px, height: 50px, font-size: 26px } */
    section.calendar.ticket_select .date.d_0 {
        width: 130px;
        height: 44px;
        font-size: 18px;
    }

    /* front.css: .left, .right { width: 50px, height: 50px } */
    section.calendar.ticket_select .left,
    section.calendar.ticket_select .right {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    section.calendar.ticket_select .left::before,
    section.calendar.ticket_select .right::before {
        width: 14px;
        height: 14px;
        top: 11px;
        left: 11px;
        border-width: 2px;
    }

    /* ── Result kartları ── */

    /* front.css: .results { min-height: 400px } */
    section.ticket_select .results {
        width: 100% !important;
        box-sizing: border-box;
        gap: 12px;
    }

    section.ticket_select .results .result {
        width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* front.css: .result .header { flex-direction: row, height: 210px }
       Tabletdə yan-yana qalır, amma ölçülər kiçilir */
    section.ticket_select .result .header {
        height: auto;
        min-height: 140px;
    }

    /* front.css: .trip_name { width: 1050px, padding: 40px 50px 10px 50px } */
    section.ticket_select .result .header .trip_name {
        width: auto !important;
        flex: 1 1 0;
        min-width: 0;
        height: auto;
        padding: 20px 24px 10px 24px;
        box-sizing: border-box;
        gap: 12px;
    }

    /* front.css: .price_button { width: 450px, height: 210px } */
    section.ticket_select .result .header .price_button {
        width: 200px !important;
        flex: 0 0 200px;
        height: auto;
        min-height: 140px;
        gap: 8px;
    }

    /* front.css: .price { font-size: 40px } */
    section.ticket_select .result .header .price_button .price {
        font-size: 28px;
    }

    /* front.css: .button { width: 215px, height: 99px } */
    section.ticket_select .result .header .price_button .button {
        width: 100%;
        height: auto;
        gap: 6px;
    }

    /* front.css: button.select_trip { width: 205px, height: 60px, font-size: 22px } */
    section.ticket_select .result .header .price_button .button button.select_trip {
        width: 160px;
        height: 46px;
        font-size: 16px;
    }

    /* front.css: .sub_place { width: 440px, height: 15px, font-size: 20px } */
    section.ticket_select .result .header .price_button .button .sub_place {
        width: 100%;
        height: auto;
        font-size: 13px;
        white-space: normal;
        text-align: center;
    }

    /* front.css: div.route { height: 150px, gap: 20px } */
    section.ticket_select .result .header .trip_name div.route {
        height: auto;
        gap: 8px;
    }

    /* front.css: .route > div > div:first-child { font-size: 32px } */
    section.ticket_select .result div.route > div > div:first-child {
        font-size: 22px;
        height: auto;
    }

    /* front.css: .route > div > div:last-child { font-size: 22px } */
    section.ticket_select .result div.route > div > div:last-child {
        font-size: 15px;
        height: auto;
    }

    /* front.css: .links a { font-size: 18px } */
    section.ticket_select .result .header .trip_name .links a {
        font-size: 14px;
    }

    /* front.css: .result .body { width: 1500px } */
    section.ticket_select .result .body {
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* front.css: .ticket_select (inner) { flex-direction: row } — tabletdə qalır amma ölçülər kiçilir */
    section.ticket_select .result .ticket_select {
        flex-direction: row;
        width: 100%;
    }

    /* front.css: .left { width: 1050px, height: 610px, padding: 30px 50px } */
    section.ticket_select .result .ticket_select .left {
        flex: 1 1 0;
        width: auto !important;
        height: auto;
        min-height: 400px;
        padding: 20px 24px;
        gap: 16px;
        box-sizing: border-box;
        min-width: 0;
    }

    /* front.css: .bus_structure { width: 950px, height: 315px } — avtobus diaqramı scroll olur */
    section.ticket_select .result .ticket_select .left .bus_structure {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
        min-height: 200px;
    }

    /* front.css: .right { width: 450px, height: 610px, padding: 20px 50px } */
    section.ticket_select .result .ticket_select .right {
        flex: 0 0 260px;
        width: 260px !important;
        height: auto;
        min-height: 400px;
        padding: 20px 16px;
        box-sizing: border-box;
    }

    /* front.css: .right .ticket_icons { width: 350px } */
    section.ticket_select .result .ticket_select .right .ticket_icons {
        width: 100%;
    }

    /* front.css: .right .foreign_check { width: 350px } */
    section.ticket_select .result .ticket_select .right .foreign_check {
        width: 100%;
    }

    /* front.css: .right .info { width: 350px, font-size: 18px } */
    section.ticket_select .result .ticket_select .right .info {
        width: 100%;
        font-size: 15px;
        height: auto;
    }

    /* front.css: .right .input { width: 350px, height: 50px } */
    section.ticket_select .result .ticket_select .right .input {
        width: 100%;
        box-sizing: border-box;
    }

    /* front.css: .right .row { width: 350px } */
    section.ticket_select .result .ticket_select .right .row {
        width: 100%;
    }

    section.ticket_select #loading_screen {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* ── Footer ── */

    /* front.css: section.footer { height: 370px } — tablet-ə sığmır */
    section.footer {
        height: auto !important;
        padding: 30px 0 16px;
    }

    /* front.css: .items { flex-direction: row, gap: 40px } — dar olduqda qısaldılır */
    section.footer .items {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }

    /* front.css: .item { max-width: 420px, font-size: 22px } */
    section.footer .items .item {
        font-size: 16px;
        flex: 1 1 180px;
        max-width: none;
        height: auto;
        gap: 10px;
    }

    /* front.css: .footer_logo { width: 316px } */
    section.footer .footer_logo {
        width: 180px;
        height: auto;
    }

    /* front.css: .item.apps a { width: 230px, height: 90px } */
    section.footer .items .item.apps a {
        width: auto;
        height: auto;
    }

    section.footer .items .item.apps a img {
        width: 120px;
        height: auto;
    }

    /* front.css: .item.links a — ox + mətn inline durur, flex ilə düzəldilir */
    section.footer .items .item.links {
        gap: 8px;
    }

    section.footer .items .item.links a {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    section.footer .items .item.links a img {
        width: 10px;
        height: auto;
        flex-shrink: 0;
    }

    /* front.css: .copyright { height: 60px } */
    section.footer .copyright {
        height: auto;
        font-size: 13px;
        text-align: center;
        padding: 10px 0;
    }

    /* ── TripsPlan — 768px–1199px ── */

    /* front.css: section.trips_plan { margin-top: 160px } — tabletdə header 90px-dir */
    section.trips_plan {
        margin-top: 90px !important;
    }

    /* front.css: .search_box { height: 150px, padding: 20px 50px }
       Sabit hündürlük btn_search-i results-a yapışdırırdı */
    section.trips_plan .search_box {
        height: auto !important;
        padding: 16px 20px;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
    }

    /* front.css: #from_stop_search, #to_stop_search { width: 336px } */
    section.trips_plan #from_stop_search,
    section.trips_plan #to_stop_search {
        flex: 1 1 200px;
        width: auto;
        height: 46px;
    }

    /* front.css: .btn_search { width: 200px, height: 70px } */
    section.trips_plan .btn_search {
        flex: 0 0 auto;
        width: 160px;
        height: 46px;
        font-size: 18px;
    }

    /* front.css: .results { width: 1500px } — əsas overflow səbəbi */
    section.trips_plan .results {
        width: 100% !important;
        box-sizing: border-box;
        gap: 20px;
    }

    section.trips_plan .results .result {
        width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* front.css: .result .header { height: 70px, padding: 0 80px, font-size: 22px } */
    section.trips_plan .result .header {
        height: auto;
        min-height: 56px;
        padding: 12px 60px 12px 20px;
        font-size: 16px;
        flex-wrap: wrap;
        gap: 4px;
    }

    /* front.css: .btToggle { width: 70px, height: 70px } */
    section.trips_plan .result .header .btToggle {
        width: 50px;
        height: 100%;
        top: 0;
        right: 0;
        border-radius: 0 10px 10px 0;
    }

    section.trips_plan .result .header .btToggle::before {
        top: 50%;
        left: 50%;
        margin-top: -6px;
        margin-left: -6px;
    }

    /* front.css: .result .routes .route { height: 90px, padding: 0 80px } */
    section.trips_plan .result .routes .route {
        height: auto;
        padding: 14px 20px;
        gap: 12px;
        box-sizing: border-box;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* front.css: .route > .time > .time { font-size: 32px } */
    section.trips_plan .result .route > .time > .time {
        font-size: 22px;
    }

    /* front.css: .route > .time > .stop { font-size: 18px } */
    section.trips_plan .result .route > .time > .stop {
        font-size: 14px;
    }

    /* front.css: .duration .line { width: 120px } */
    section.trips_plan .result .route .duration .line {
        width: 60px;
    }

    /* front.css: .duration .numbers { width: 250px } */
    section.trips_plan .result .route .duration .numbers {
        width: 140px;
    }

    /* ── TicketSelect — Sefer Melumat footer (768px–1199px) ── */

    /* front.css: .result .footer { padding: 30px 50px } — tabletdə çox böyük olur */
    section.ticket_select .result .footer {
        padding: 20px 24px;
        box-sizing: border-box;
        width: 100%;
    }

    /* trip_plan header sabit hündürlük — btn_toggle üçün lazımdır */
    section.ticket_select .result .footer .trip_plan > .header {
        height: 46px;
        min-height: 46px;
        position: relative;
    }

    /* front.css: .trip_plan .header .title { padding: 0 50px, font-size: 22px } */
    section.ticket_select .result .footer .trip_plan .header .title {
        font-size: 16px;
        padding: 0 56px 0 46px;
    }

    /* front.css: .btn_toggle { position: absolute, right:0, top:0, width:50px, height:50px } */
    section.ticket_select .result .footer .trip_plan .header .btn_toggle {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    section.ticket_select .result .footer .trip_plan.active .header .btn_toggle {
        border-bottom-right-radius: 0;
    }

    /* front.css: .trip_plan.active .body { padding: 40px 0 } — çox böyük boşluq yaradır */
    section.ticket_select .result .footer .trip_plan.active .body {
        padding: 8px 0;
        gap: 0;
    }

    /* front.css: .trip_plan .body .line { padding: 0 50px } */
    section.ticket_select .result .footer .trip_plan .body .line {
        padding: 6px 16px;
        gap: 6px;
    }

    /* front.css: .trip_plan .body .line > div { width: 33%, font-size: 18px } */
    section.ticket_select .result .footer .trip_plan .body .line > div {
        font-size: 14px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Vaxt sütunu */
    section.ticket_select .result .footer .trip_plan .body .line > div:first-child {
        width: 18%;
        flex-shrink: 0;
    }

    /* İstiqamət sütunu */
    section.ticket_select .result .footer .trip_plan .body .line > div:nth-child(2) {
        width: 48%;
    }

    /* Dayanacaq sütunu */
    section.ticket_select .result .footer .trip_plan .body .line > div:last-child {
        width: 34%;
    }

    /* Pin ikonu yeri */
    section.ticket_select .result .footer .trip_plan .body .line.main_route > div:last-child::before {
        left: -20px;
        width: 18px;
        height: 18px;
    }
}

/* ──────────────────────────────────────────────────────
   TicketSelect — ticket_select.html.php şablonu
   front.css-də sabit genişliklər var (1050px, 450px, 1500px).
   Mobilda bunlar override edilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* Bütün ticket_select sectionları overflow-dan qorunur */
    section.search.ticket_select,
    section.calendar.ticket_select,
    section.ticket_select {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* ── Search bölməsi ── */

    /* front.css: section.search.ticket_select { height: 200px } */
    section.search.ticket_select {
        height: auto;
        padding: 15px 0;
    }

    /* front.css: section.search.ticket_select .search_box — box-shadow var */
    section.search.ticket_select .search_box {
        flex-direction: column;
        height: auto !important;
        padding: 15px;
        gap: 12px;
        align-items: stretch;
        box-sizing: border-box;
    }

    /* ── Calendar bölməsi ── */

    /* front.css: section.calendar.ticket_select { height: 170px } */
    section.calendar.ticket_select {
        height: auto;
        padding: 10px 0;
    }

    /* front.css: section.calendar.ticket_select .container { gap: 40px } */
    section.calendar.ticket_select .container {
        gap: 5px;
        padding: 0 8px;
        box-sizing: border-box;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: hidden;
    }

    /* Mobilda yalnız d-1, d_0, d_1 görünsün */
    section.calendar.ticket_select .date.d-3,
    section.calendar.ticket_select .date.d-2,
    section.calendar.ticket_select .date.d_2,
    section.calendar.ticket_select .date.d_3 {
        display: none;
    }

    /* front.css: section.calendar.ticket_select .date { width: 130px } */
    section.calendar.ticket_select .date {
        width: 58px;
        height: 30px;
        font-size: 10px;
        flex-shrink: 0;
        border-radius: 6px;
    }

    /* front.css: section.calendar.ticket_select .date.d_0 { width: 205px } */
    section.calendar.ticket_select .date.d_0 {
        width: 100px;
        height: 40px;
        font-size: 13px;
    }

    /* front.css: section.calendar.ticket_select .left,.right { width: 50px } */
    section.calendar.ticket_select .left,
    section.calendar.ticket_select .right {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    section.calendar.ticket_select .left::before,
    section.calendar.ticket_select .right::before {
        width: 11px;
        height: 11px;
        top: 8px;
        left: 8px;
        border-width: 2px;
    }


    /* ── Result kartları — header ── */

    /* front.css: section.ticket_select .result .header { flex-direction: row, height: 210px } */
    section.ticket_select .result .header {
        flex-direction: column;
        height: auto;
        padding: 0;
        gap: 0;
    }

    /* front.css: section.ticket_select .result .header .trip_name { width: 1050px, padding: 40px 50px 10px 50px }
       width+padding = overflow-un əsas səbəbi. box-sizing: border-box ilə düzəldilir. */
    section.ticket_select .result .header .trip_name {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        padding: 15px;
        box-sizing: border-box;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    /* front.css: .price_button { flex-direction: column, width: 450px, height: 210px }
       Mobilda: qiymət yuxarıda, altında [Seç düyməsi] + [sub_place yan-yana] */
    section.ticket_select .result .header .price_button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        padding: 10px 15px 12px 15px;
        border-left: none;
        gap: 6px;
    }

    /* front.css: .price { font-size: 40px } */
    section.ticket_select .result .header .price_button .price {
        font-size: 24px;
        line-height: 1;
    }

    /* front.css: .button { flex-direction: column, width: 215px, height: 99px }
       Mobilda: Seç düyməsi + sub_place yan-yana bir sırada */
    section.ticket_select .result .header .price_button .button {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding-top: 0;
    }

    /* front.css: button.select_trip { width: 205px, height: 60px } */
    section.ticket_select .result .header .price_button .button button.select_trip {
        width: 110px;
        height: 40px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* sub_place: qiymətin altında, seç düyməsinin yanında görünür */
    section.ticket_select .result .header .price_button .button .sub_place {
        flex: 1;
        font-size: 11px;
        white-space: normal;
        text-align: center;
        overflow: visible;
        line-height: 1.3;
        width: auto;
        max-width: none;
    }

    /* front.css: section.ticket_select .result .header .trip_name .links { height: 60px } */
    section.ticket_select .result .header .trip_name .links {
        height: auto;
        flex-wrap: wrap;
        gap: 4px;
    }

    section.ticket_select .result .header .trip_name .links div {
        width: auto;
        border: none;
    }

    /* front.css: section.ticket_select .result .header .trip_name .links a { font-size: 18px } */
    section.ticket_select .result .header .trip_name .links a {
        font-size: 12px;
    }

    /* front.css: div.route { text-wrap: nowrap, height: 150px, gap: 20px } */
    section.ticket_select .result .header .trip_name div.route {
        height: auto;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
        justify-content: flex-start;
    }

    /* Şəhər adı divləri: natural ölçü (flex-grow yox), məzmun ortada */
    section.ticket_select .result div.route > div {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 40%;
        text-wrap: wrap;
        overflow-wrap: break-word;
        word-break: break-word;
        align-items: center;
    }

    /* Ox/müddət divy (2n): qalan boşluğu doldurur → bi-circle uzanır */
    section.ticket_select .result div.route > div:nth-child(2n) {
        flex: 1 1 0;
        min-width: 60px;
        max-width: none;
        align-items: center;
    }

    /* .half divy (alt dayanacaq oxu): qısa sabit en */
    section.ticket_select .result div.route > div.half {
        flex: 0 0 20px;
        min-width: 20px;
        max-width: 20px;
    }

    /* front.css: .route > div > div:first-child { font-size: 32px } */
    section.ticket_select .result div.route > div > div:first-child {
        font-size: 16px;
        height: auto;
        text-align: center;
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
        width: 100%;
    }

    /* front.css: .route > div > div:last-child { font-size: 22px } */
    section.ticket_select .result div.route > div > div:last-child {
        font-size: 12px;
        height: auto;
        text-align: center;
        white-space: normal;
        width: 100%;
    }

    /* Son stop: mətn sola — bi-circle sağ nöqtəsi ilə vizual bağlantı */
    section.ticket_select .result div.route > div:last-child > div:first-child {
        text-align: left;
    }
    /* Birinci stop: mətn sağa — bi-circle sol nöqtəsi ilə vizual bağlantı */
    section.ticket_select .result div.route > div:first-child > div:first-child {
        text-align: right;
    }

    /* front.css: section.ticket_select .results { width: 1500px } — əsas overflow səbəbi */
    section.ticket_select .results {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
        gap: 15px;
    }

    section.ticket_select .results .result {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* front.css: section.ticket_select #loading_screen { width: 1500px } */
    section.ticket_select #loading_screen {
        width: 100% !important;
        box-sizing: border-box;
    }


    /* ── Result body (avtobus + sərnişin formu) ── */

    /* front.css: section.ticket_select .result .body { width: 1500px } */
    section.ticket_select .result .body {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* front.css: section.ticket_select .result .ticket_select { flex-direction: row } */
    section.ticket_select .result .ticket_select {
        flex-direction: column;
    }

    /* front.css: section.ticket_select .result .ticket_select .left { width: 1050px, height: 610px } */
    section.ticket_select .result .ticket_select .left {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        height: auto;
        padding: 15px;
        gap: 12px;
    }

    /* front.css: section.ticket_select .result .ticket_select .left .bus_structure { width: 950px, height: 315px } */
    section.ticket_select .result .ticket_select .left .bus_structure {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
        min-height: 180px;
    }

    /* front.css: section.ticket_select .result .ticket_select .right { width: 450px, height: 610px } */
    section.ticket_select .result .ticket_select .right {
        width: 100%;
        height: auto;
        padding: 15px;
        border-top: 1px solid #e0e0e0;
        box-sizing: border-box;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .ticket_icons { width: 350px } */
    section.ticket_select .result .ticket_select .right .ticket_icons {
        width: 100%;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .foreign_check { width: 350px } */
    section.ticket_select .result .ticket_select .right .foreign_check {
        width: 100%;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .info { width: 350px } */
    section.ticket_select .result .ticket_select .right .info {
        width: 100%;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .input { width: 350px } */
    section.ticket_select .result .ticket_select .right .input {
        width: 100%;
        box-sizing: border-box;
    }

    /* front.css: section.ticket_select .result .ticket_select .right .row { width: 350px } */
    section.ticket_select .result .ticket_select .right .row {
        width: 100%;
        flex-wrap: wrap;
    }

    section.ticket_select .result .ticket_select .right button {
        width: 100%;
    }


    /* ── Trip Plan (marşrut planı) ── */

    /* front.css: .trip_plan .header .title { padding: 0 50px, font-size: 22px }
       ::before bus ikonu left:20px, width:21px → icon 41px-də bitir, padding-left ≥ 44px lazımdır */
    section.ticket_select .result .footer .trip_plan .header .title {
        font-size: 15px;
        padding: 0 40px 0 46px;
    }

    /* front.css: .trip_plan.active .body { padding: 40px 0 } */
    section.ticket_select .result .footer .trip_plan.active .body {
        padding: 15px 0;
        gap: 0;
    }

    /* front.css: .trip_plan .body .line { padding: 0 50px } — çox böyük padding */
    section.ticket_select .result .footer .trip_plan .body .line {
        padding: 6px 10px;
        gap: 4px;
    }

    /* front.css: .trip_plan .body .line > div { width: 33%, font-size: 18px } */
    section.ticket_select .result .footer .trip_plan .body .line > div {
        font-size: 12px;
        width: 33%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Vaxt sütunu daha dar ola bilər */
    section.ticket_select .result .footer .trip_plan .body .line > div:first-child {
        width: 22%;
        flex-shrink: 0;
    }

    /* İstiqamət sütunu daha geniş */
    section.ticket_select .result .footer .trip_plan .body .line > div:nth-child(2) {
        width: 44%;
    }

    /* Dayanacaq sütunu */
    section.ticket_select .result .footer .trip_plan .body .line > div:last-child {
        width: 34%;
    }

    /* Pin ikonu yerini dəyiş */
    section.ticket_select .result .footer .trip_plan .body .line.main_route > div:last-child::before {
        left: -18px;
        width: 16px;
        height: 16px;
    }


    /* ── Popuplar ── */

    /* front.css: .popup_alert { width: 300px, left: calc(50% - 200px), height: 400px } */
    /* .popup_alert outer container-a min-height vermek mobilede extra scroll yaradirdi.
       Sizing indi inner .popup-a kocuruldu. */
    /* .popup_alert {
        width: calc(100vw - 32px);
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        height: auto;
        min-height: 240px;
        padding: 20px;
        box-sizing: border-box;
    } */

    /* Inner .popup mobil ucun tam genislik */
    .popup_alert .popup {
        width: calc(100vw - 32px) !important;
        left: 16px !important;
        transform: translateY(-50%) !important;
        height: auto !important;
        min-height: 240px;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    /* front.css: #popup_qarabag, #popup_blacklist { width: 800px, height: 600px } */
    /* Outer container-a min-height vermek extra scroll yaradirdi, inner .popup-a kocuruldu */
    /* #popup_qarabag,
    #popup_blacklist,
    #popup_fin,
    #popup_fin4 {
        width: calc(100vw - 32px);
        height: auto;
        min-height: 240px;
    } */

    #popup_qarabag .popup,
    #popup_fin .popup,
    #popup_fin4 .popup {
        width: calc(100vw - 32px) !important;
        height: auto !important;
        min-height: 240px;
    }

    /* front.css: #popup_blacklist .popup { width: 600px, height: 400px } */
    #popup_blacklist .popup {
        width: 100%;
        height: auto;
        min-height: 0;
    }

    /* front.css: .popup_alert.doc .popup .text img { height: 300px } */
    .popup_alert.doc .popup .text img {
        height: 150px;
        width: auto;
    }

    .popup_alert.doc .row {
        flex-direction: column;
        align-items: center;
    }

    /* front.css: .popup_alert .ok_button, .confirm_button { width: 240px } */
    .popup_alert .ok_button,
    .popup_alert .confirm_button {
        width: 100%;
        box-sizing: border-box;
    }

}

/* ──────────────────────────────────────────────────────
   MyTickets — tickets.html.php şablonu
   front.css-də cədvəl sabit 7-8 sütunlu idi, mobilda sığmır.
   Hər sıra ayrıca karta çevrilir.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.tickets { padding: 60px 0 } — mobilda azaldılır */
    section.tickets {
        padding: 20px 0 40px;
    }

    /* front.css: .container { overflow: hidden } — table-ın scroll-unu bloklayırdı */
    section.tickets .container {
        overflow: visible;
    }

    /* front.css: .tab_headers .tab_head { width: 260px } — iki düymə yan-yana sığmır */
    section.tickets .tab_headers {
        gap: 8px;
        flex-wrap: nowrap;
        margin-bottom: 16px;
    }

    section.tickets .tab_headers .tab_head {
        flex: 1 1 0;
        width: auto;
        height: 44px;
        font-size: 13px;
        min-width: 0;
        padding: 0 8px;
        box-sizing: border-box;
        border-radius: 10px;
    }

    /* ── Cədvəl → Kart çevrilməsi ── */

    section.tickets .table table thead {
        display: none;
    }

    /* front.css: section.tickets .table table { border: 2px solid #4370D8 } — mobilda border silinir */
    section.tickets .table table {
        border: none;
    }

    section.tickets .table table,
    section.tickets .table table tbody {
        display: block;
        width: 100%;
    }

    /* Hər sıra: ayrıca kart */
    section.tickets .table table tbody tr.line {
        display: flex;
        flex-direction: column;
        height: auto;
        background: white;
        border: 1.5px solid #d0dcf5;
        border-radius: 14px;
        margin-bottom: 12px;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(67, 112, 216, 0.08);
    }

    /* Bütün xanalar sıfırlanır */
    section.tickets .table table tbody td {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        border-bottom: 1px solid #eef2fb;
        padding: 9px 14px;
        font-size: 14px;
        color: #222;
        min-height: unset;
        box-sizing: border-box;
        gap: 8px;
    }

    section.tickets .table table tbody tr.line td:last-child {
        border-bottom: none;
    }

    /* Xana etiketi */
    section.tickets .table table tbody td::before {
        font-weight: 600;
        color: #4370D8;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 70px;
    }

    /* ── Ad Soyad — hər iki cədvəl üçün ── */
    /* Kart başlığı kimi göstərilir — mavi fon, ağ mətn */
    section.tickets .table table tbody td:nth-child(1) {
        background: #4370D8;
        color: white;
        font-size: 14px;
        font-weight: 600;
        padding: 10px 14px;
        border-bottom: none;
        justify-content: flex-start;
    }
    section.tickets .table table tbody td:nth-child(1)::before {
        content: none;
    }

    /* ── Marşrut — hər iki cədvəl üçün ── */
    section.tickets .table table tbody td.route {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        background: #f7f9ff;
        border-bottom: 1px solid #eef2fb;
    }
    section.tickets .table table tbody td.route::before {
        content: none;
    }

    /* Marşrut daxili div */
    section.tickets .table table tbody td.route > div {
        text-wrap: wrap;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 2px;
        flex-wrap: nowrap;
    }

    /* Şəhər adı */
    section.tickets .table table tbody td.route > div > div > div:first-child {
        font-size: 14px;
        font-weight: 600;
        color: #222;
    }

    /* Saat */
    section.tickets .table table tbody td.route > div > div > div:last-child {
        font-size: 11px;
        color: #4370D8;
    }

    /* Ox şəkli */
    section.tickets .table table tbody td.route > div > div img {
        width: 28px;
        height: auto;
    }

    /* ── Cari biletlər: trip_date (3-cü td) ── */
    .table[data-id="current"] table tbody td:nth-child(3)::before {
        content: "Tarix";
    }
    .table[data-id="current"] table tbody td:nth-child(3) {
        color: #333;
        font-weight: 500;
    }

    /* ── Cari biletlər: Yer (4-cü td) ── */
    .table[data-id="current"] table tbody td:nth-child(4)::before {
        content: "Yer";
    }

    /* ── Cari biletlər: Qiymət (5-ci td) ── */
    .table[data-id="current"] table tbody td:nth-child(5)::before {
        content: "Qiymət";
    }
    .table[data-id="current"] table tbody td:nth-child(5) {
        font-weight: 600;
        color: #222;
    }

    /* ── Cari biletlər: E-bilet PDF (6-cı td) ── */
    .table[data-id="current"] table tbody td:nth-child(6)::before {
        content: "E-bilet";
    }
    .table[data-id="current"] table tbody td:nth-child(6) {
        justify-content: space-between;
    }

    /* ── Cari biletlər: Qaytarma düyməsi (7-ci td) ── */
    .table[data-id="current"] table tbody td:nth-child(7) {
        padding: 10px 14px;
        justify-content: center;
        border-bottom: none;
        background: #fafbff;
    }
    .table[data-id="current"] table tbody td:nth-child(7)::before {
        content: none;
    }

    /* ── Tarixçə: Tarix (3-cü td) ── */
    .table[data-id="history"] table tbody td:nth-child(3)::before {
        content: "Tarix";
    }
    .table[data-id="history"] table tbody td:nth-child(3) {
        font-weight: 500;
        color: #333;
    }

    /* ── Tarixçə: Qayıdış tarixi (4-cü td) ── */
    .table[data-id="history"] table tbody td:nth-child(4)::before {
        content: "Qayıdış";
    }

    /* ── Tarixçə: Yer (5-ci td) ── */
    .table[data-id="history"] table tbody td:nth-child(5)::before {
        content: "Yer";
    }

    /* ── Tarixçə: Qiymət (6-cı td) ── */
    .table[data-id="history"] table tbody td:nth-child(6)::before {
        content: "Qiymət";
    }
    .table[data-id="history"] table tbody td:nth-child(6) {
        font-weight: 600;
        color: #222;
    }

    /* ── Tarixçə: Qaytarılan məbləğ (7-ci td) ── */
    .table[data-id="history"] table tbody td:nth-child(7)::before {
        content: "Qaytarılan";
    }

    /* ── Tarixçə: Status (8-ci td) ── */
    .table[data-id="history"] table tbody td:nth-child(8) {
        justify-content: center;
        border-bottom: none;
        background: #fafbff;
    }
    .table[data-id="history"] table tbody td:nth-child(8)::before {
        content: none;
    }

    /* ── Qaytarma düyməsi ── */
    section.tickets .table table tbody td a.bt-return {
        width: 100%;
        text-align: center;
        font-size: 13px;
        box-sizing: border-box;
    }

    /* ── Qaytarıldı statusu ── */
    section.tickets .table table span.returned {
        font-size: 13px;
        padding: 4px 14px;
    }

    /* ── PDF linki ── */
    section.tickets .table table tbody td a.pdf {
        margin: 0;
        width: 44px;
        height: 44px;
    }

    section.tickets .table table tbody td a.pdf img {
        width: 32px;
        height: 32px;
    }

}

/* front.css: .bi-circle div { font-size: 12px; width: 120px; left: calc(50% - 60px); top: -15px } */
/*.bi-circle div {*/
/*    font-size: 10px;*/
/*    width: 80px;*/
/*    left: calc(50% - 40px);*/
/*    top: -12px;*/
/*}*/

.bi-circle div {
    position: absolute;
    /* Sabit width (80px/120px) silindi */
    width: max-content; /* İçindəki yazı qədər genişlənir */
    min-width: 30px;    /* Çox kiçik olmasın deyə minimum ölçü */
    padding: 2px 8px;   /* Kənarlardan boşluq (dairəvi formanı qorumaq üçün) */

    font-size: 10px;
    color: #757575;
    background: white;
    border: 1px solid #757575;
    border-radius: 12px;
    text-align: center;
    z-index: 10;

    /* Ortalanma üçün yeni qayda */
    left: 50%;
    transform: translateX(-50%); /* Tam mərkəzə gətirir */
    top: -12px; /* Oxun üstündə dayanması üçün */
}


/* Android WEB BANNER*/
.custom-app-banner {
    display: none; /* JS ilə yalnız Android-də açılacaq */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    z-index: 105; /* header z-index:110-dan aşağı — üst-üstə düşsə header qalib gəlir */
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.banner-close {
    font-size: 24px;
    color: #888;
    margin-right: 10px;
    cursor: pointer;
}

.app-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.app-author {
    font-size: 11px;
    color: #666;
}

.app-price {
    font-size: 10px;
    color: #999;
}

.app-get-btn {
    background: transparent;
    color: #4370d8;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ──────────────────────────────────────────────────────
   TicketSelect — Result Header (768px – 991px)
   992–1199px ilə eyni flex 7:3 nisbəti,
   sadəcə kiçik viewport-a uyğun font + padding.
   ────────────────────────────────────────────────────── */
@media screen and (min-width: 768px) and (max-width: 991px) {

    /* ── Header — dropdown + ikonlar ── */

    /* front.css: .right { gap: 20px } — 768px-də çox sıxışır */
    section.header .right {
        gap: 10px;
    }

    /* front.css: a.link img { width: 289px, height: 63px } — my_tickets.svg */
    section.header a.link img {
        width: 44px;
        height: 44px;
    }

    /* HTML-də inline style="width:53px;height:65px" var — !important lazımdır */
    section.header .dropdown .caption img {
        width: 40px !important;
        height: 40px !important;
    }

    /* Dropdown items — header 90px olduğuna görə top dəyəri düzəldilir */
    section.header .dropdown .items {
        top: 90px;
    }

    section.ticket_select .result .header {
        height: auto;
        min-height: 130px;
    }

    /* trip_name: ~70% */
    section.ticket_select .result .header .trip_name {
        flex: 7 1 0 !important;
        width: auto !important;
        min-width: 0;
        height: auto;
        padding: 16px 20px 10px 20px;
        box-sizing: border-box;
        gap: 10px;
    }

    /* price_button: ~30% */
    section.ticket_select .result .header .price_button {
        flex: 3 0 0 !important;
        width: auto !important;
        height: auto;
        min-height: 130px;
        gap: 8px;
        padding: 12px;
        box-sizing: border-box;
    }

    section.ticket_select .result .header .price_button .price {
        font-size: 26px;
    }

    section.ticket_select .result .header .price_button .button {
        width: 100%;
        height: auto;
        gap: 6px;
    }

    section.ticket_select .result .header .price_button .button button.select_trip {
        width: 150px;
        height: 44px;
        font-size: 15px;
    }

    section.ticket_select .result .header .price_button .button .sub_place {
        width: 100%;
        height: auto;
        font-size: 12px;
        white-space: normal;
        text-align: center;
    }

    section.ticket_select .result .header .trip_name div.route {
        height: auto;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    /* Şəhər adı divləri: natural en, sol tərəfə yapışıq */
    section.ticket_select .result div.route > div {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 35%;
        align-items: flex-start;
        text-wrap: wrap;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Orta div (müddət xətti): qalan boşluğu doldurur */
    section.ticket_select .result div.route > div:nth-child(2n) {
        flex: 1 1 0;
        width: auto;
        min-width: 60px;
        max-width: none;
        align-items: center;
    }

    /* .half div (alt dayanacaq oxu) */
    section.ticket_select .result div.route > div.half {
        flex: 0 0 24px;
        min-width: 24px;
        max-width: 24px;
    }

    section.ticket_select .result div.route > div > div:first-child {
        font-size: 20px;
        height: auto;
        width: 100%;
    }

    section.ticket_select .result div.route > div > div:last-child {
        font-size: 14px;
        height: auto;
        width: 100%;
    }

    section.ticket_select .result .header .trip_name .links a {
        font-size: 13px;
    }
}

/* ──────────────────────────────────────────────────────
   TicketSelect — Result Header (992px – 1199px)
   768–1199px bloku trip_name-i çox genişləndirir,
   price_button 200px-dir → nisbət pozulur.
   Bu blok daha böyük price_button + düzgün nisbət verir.
   ────────────────────────────────────────────────────── */
@media screen and (min-width: 992px) and (max-width: 1199px) {

    /* ── Header — dropdown + ikonlar ── */

    /* front.css: a.link img { width: 289px, height: 63px } — my_tickets.svg */
    section.header a.link img {
        width: 48px;
        height: 48px;
    }

    /* HTML-də inline style="width:53px;height:65px" var — !important lazımdır */
    section.header .dropdown .caption img {
        width: 46px !important;
        height: 46px !important;
    }

    /* Dropdown items — header 90px */
    section.header .dropdown .items {
        top: 90px;
    }

    /* front.css: .result .header { height: 210px } — burada auto edir, nisbət saxlanır */
    section.ticket_select .result .header {
        height: auto;
        min-height: 160px;
    }

    /* trip_name: ~70% yer tutur — desktop nisbəti saxlanır */
    section.ticket_select .result .header .trip_name {
        flex: 7 1 0 !important;
        width: auto !important;
        min-width: 0;
        height: auto;
        padding: 24px 32px 12px 32px;
        box-sizing: border-box;
        gap: 14px;
    }

    /* price_button: ~30% yer tutur — desktop nisbəti saxlanır */
    section.ticket_select .result .header .price_button {
        flex: 3 0 0 !important;
        width: auto !important;
        height: auto;
        min-height: 160px;
        gap: 10px;
        padding: 16px;
        box-sizing: border-box;
    }

    /* front.css: .price { font-size: 40px } */
    section.ticket_select .result .header .price_button .price {
        font-size: 32px;
    }

    /* front.css: .button { width: 215px } */
    section.ticket_select .result .header .price_button .button {
        width: 100%;
        height: auto;
        gap: 8px;
    }

    /* front.css: button.select_trip { width: 205px, height: 60px, font-size: 22px } */
    section.ticket_select .result .header .price_button .button button.select_trip {
        width: 180px;
        height: 52px;
        font-size: 18px;
    }

    /* front.css: .sub_place { height: 15px, font-size: 20px } */
    section.ticket_select .result .header .price_button .button .sub_place {
        width: 100%;
        height: auto;
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }

    /* front.css: div.route { height: 150px, gap: 20px } */
    section.ticket_select .result .header .trip_name div.route {
        height: auto;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    /* Şəhər adı divləri: natural en, sol tərəfə yapışıq */
    section.ticket_select .result div.route > div {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 35%;
        align-items: flex-start;
        text-wrap: wrap;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Orta div (müddət xətti): qalan boşluğu doldurur */
    section.ticket_select .result div.route > div:nth-child(2n) {
        flex: 1 1 0;
        width: auto;
        min-width: 80px;
        max-width: none;
        align-items: center;
    }

    /* .half div (alt dayanacaq oxu) */
    section.ticket_select .result div.route > div.half {
        flex: 0 0 28px;
        min-width: 28px;
        max-width: 28px;
    }

    /* front.css: .route > div > div:first-child { font-size: 32px } */
    section.ticket_select .result div.route > div > div:first-child {
        font-size: 26px;
        height: auto;
        width: 100%;
    }

    /* front.css: .route > div > div:last-child { font-size: 22px } */
    section.ticket_select .result div.route > div > div:last-child {
        font-size: 18px;
        height: auto;
        width: 100%;
    }

    /* front.css: .links a { font-size: 18px } */
    section.ticket_select .result .header .trip_name .links a {
        font-size: 15px;
    }
}


/* ──────────────────────────────────────────────────────
   Feedback / Contacts — feedback.html.php şablonu
   front.css-də margin-top: 160px, tab_head: 500px,
   body padding: 50px, row item: 690px kimi böyük dəyərlər var.
   ────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {

    /* front.css: section.contacts { margin-top: 160px } */
    section.contacts {
        margin-top: 70px !important;
        padding-bottom: 40px;
    }

    /* front.css: section.contacts .container { padding: 60px 0, align-items: flex-start }
       align-items: flex-start form-u shrink edirdi */
    section.contacts .container {
        padding: 20px 0;
        overflow: visible;
        align-items: stretch;
    }

    /* form elementi tam genişlik tutsun */
    section.contacts .container form {
        width: 100%;
    }

    /* ── Tab düymələri ── */

    /* front.css: .tab_head { width: 500px, height: 60px, font-size: 22px } */
    section.contacts .tab_headers {
        gap: 6px;
        height: auto;
        flex-wrap: nowrap;
        margin-bottom: 12px;
    }

    section.contacts .tab_headers .tab_head {
        flex: 1 1 0;
        width: auto;
        height: 44px;
        font-size: 12px;
        min-width: 0;
        padding: 0 6px;
        box-sizing: border-box;
        border-radius: 8px 8px 0 0;
    }

    /* ── Stansiyalar tab — axtarış ── */

    /* front.css: .searchbar { width: 1020px, padding: 0 50px }
       Button position:absolute idi — mobilda flex item-ə çevrilir */
    section.contacts .searchbar {
        width: 100%;
        box-sizing: border-box;
        /* icon üçün sol boşluq, sağda 0 — button flex ilə yapışır */
        padding: 0 0 0 40px;
        height: 44px;
        overflow: hidden;
    }

    /* front.css: ::before { top: 8px } — 44px searchbar-da mərkəzə hizalanır */
    section.contacts .searchbar::before {
        top: 50%;
        transform: translateY(-50%);
    }

    /* Input qalan bütün genişliyi tutur */
    section.contacts .searchbar input {
        flex: 1 1 0;
        min-width: 0;
        font-size: 14px;
        padding: 0 8px;
    }

    /* front.css: button { position: absolute, right: 0, width: 150px }
       Mobilda static flex item olur, inputa yapışır */
    section.contacts .searchbar button {
        position: static;
        height: 44px;
        width: 76px;
        font-size: 12px;
        border-radius: 0 10px 10px 0;
        flex-shrink: 0;
    }

    /* ── Stansiyalar cədvəli → kart görünüşü ── */

    section.contacts .table {
        border-radius: 8px;
        overflow: hidden;
    }

    section.contacts .table table thead {
        display: none;
    }

    section.contacts .table table,
    section.contacts .table table tbody {
        display: block;
        width: 100%;
    }

    /* Hər stansiya ayrıca kart */
    section.contacts .table table tbody tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #d0dcf5;
        padding: 12px 14px;
        gap: 4px;
    }

    section.contacts .table table tbody tr:last-child {
        border-bottom: none;
    }

    /* front.css: td { height: 80px, padding: 30px 50px, font-size: 18px } */
    section.contacts .table table td {
        height: auto;
        padding: 0;
        font-size: 13px;
        vertical-align: top;
    }

    /* Stansiya adı — bold, iri */
    section.contacts .table table td:first-child {
        font-size: 14px;
        font-weight: 700;
        color: #222;
        margin-bottom: 2px;
    }

    /* Telefon */
    section.contacts .table table td:nth-child(2) {
        color: #4370D8;
        font-size: 13px;
    }

    /* Ünvan */
    section.contacts .table table td:nth-child(3) {
        color: #555;
        font-size: 12px;
    }

    /* Xəritə düyməsi */
    section.contacts .table table td:nth-child(4) {
        padding-top: 4px;
    }

    section.contacts .table table div.map {
        width: 44px;
        height: 44px;
    }

    /* ── Rəy formu — başlıq ── */

    /* front.css: .tab_content .header { height: 80px, font-size: 22px } */
    section.contacts .tab_content .header {
        height: auto;
        padding: 12px 14px;
        font-size: 15px;
    }

    /* front.css: .tab_content .body { padding: 50px 50px }
       border: 2px solid #4370D8 saxlanır, padding azaldılır */
    section.contacts .tab_content .body {
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
        gap: 16px;
    }

    /* front.css: .body .row { flex-direction: row, justify-content: space-between }
       Mobilda sütun olur */
    section.contacts .tab_content .body .row {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    /* front.css: .body .row .item { width: 690px } */
    section.contacts .tab_content .body .row .item {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* front.css: .item .caption { height: 30px, font-size: 18px } */
    section.contacts .tab_content .body .row .item .caption {
        font-size: 14px;
        height: auto;
        margin-bottom: 4px;
    }

    /* front.css: .item .input { padding: 0 20px } — box-sizing yox idi, overflow verirdi */
    section.contacts .tab_content .body .row .item .input {
        width: 100% !important;
        box-sizing: border-box;
        padding: 0 12px;
    }

    section.contacts .tab_content .body .row .item .input input {
        font-size: 15px;
    }

    /* front.css: textarea { height: 230px } */
    section.contacts .tab_content .body .row .item .input textarea {
        height: 160px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* front.css: .input.file { height: 250px } */
    section.contacts .tab_content .body .row .input.file {
        height: 150px;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* front.css: .dropzone { flex-direction: row, padding: 30px } */
    section.contacts .tab_content .body .row .input.file .dropzone {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px;
        gap: 6px;
    }

    /* front.css: .dropzone > div { text-wrap: nowrap } */
    section.contacts .tab_content .body .row .input.file .dropzone > div {
        text-wrap: wrap;
        text-align: center;
        font-size: 12px;
    }

    /* front.css: .dropzone #filename { width: 450px } */
    section.contacts .tab_content .body .row .input.file .dropzone #filename {
        width: 100%;
        font-size: 11px;
        text-align: center;
    }

    /* front.css: .text_under { position: absolute, bottom: -20px } */
    section.contacts .tab_content .body .row .input.file .text_under {
        font-size: 10px;
        bottom: -16px;
    }

    /* front.css: .callcenter { font-size: 22px } */
    section.contacts .tab_content .body .row .item .callcenter {
        font-size: 15px;
    }

    /* front.css: .button { justify-content: flex-end }
       Mobilda tam genişlik düymə */
    section.contacts .tab_content .body .row .item .button {
        justify-content: stretch;
        width: 100%;
    }

    section.contacts .tab_content .body .row .item button[name="btSend"] {
        width: 100% !important;
        height: 46px;
        font-size: 15px;
        box-sizing: border-box;
    }

}


/* ──────────────────────────────────────────────────────
   Feedback / Contacts — 768px – 991px (kiçik tablet)
   front.css: margin-top: 160px, tab_head: 500px,
   row item: 690px — sığmır, sütuna keçilir.
   ────────────────────────────────────────────────────── */
@media screen and (min-width: 768px) and (max-width: 991px) {

    /* header bu ölçüdə 90px (768-1199 blokunda təyin edilib) */
    section.contacts {
        margin-top: 90px !important;
    }

    section.contacts .container {
        padding: 20px;
        box-sizing: border-box;
        align-items: stretch;
    }

    section.contacts .container form {
        width: 100%;
    }

    /* front.css: .tab_head { width: 500px } — iki tab 1000px + gap = sığmır */
    section.contacts .tab_headers {
        gap: 8px;
        height: auto;
    }

    section.contacts .tab_headers .tab_head {
        flex: 1 1 0;
        width: auto;
        height: 48px;
        font-size: 13px;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* Searchbar */
    section.contacts .searchbar {
        width: 100%;
        box-sizing: border-box;
        padding: 0 0 0 44px;
    }

    section.contacts .searchbar::before {
        top: 50%;
        transform: translateY(-50%);
    }

    section.contacts .searchbar button {
        position: static;
        width: 100px;
        border-radius: 0 10px 10px 0;
        flex-shrink: 0;
    }

    /* Stansiyalar cədvəli */
    section.contacts .table table thead {
        display: none;
    }

    section.contacts .table table,
    section.contacts .table table tbody {
        display: block;
        width: 100%;
    }

    section.contacts .table table tbody tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #d0dcf5;
        padding: 12px 16px;
        gap: 4px;
    }

    section.contacts .table table tbody tr:last-child {
        border-bottom: none;
    }

    section.contacts .table table td {
        height: auto;
        padding: 0;
        font-size: 14px;
    }

    section.contacts .table table td:first-child {
        font-size: 15px;
        font-weight: 700;
    }

    section.contacts .table table td:nth-child(2) {
        color: #4370D8;
    }

    section.contacts .table table td:nth-child(3) {
        color: #555;
        font-size: 13px;
    }

    /* Rəy formu */
    section.contacts .tab_content .header {
        height: auto;
        padding: 14px 16px;
        font-size: 16px;
    }

    section.contacts .tab_content .body {
        width: 100%;
        box-sizing: border-box;
        padding: 20px 16px;
        gap: 16px;
    }

    /* front.css: .row .item { width: 690px } × 2 = 1380px — sığmır */
    section.contacts .tab_content .body .row {
        flex-direction: column;
        gap: 14px;
    }

    section.contacts .tab_content .body .row .item {
        width: 100% !important;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .item .input {
        width: 100% !important;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .input.file {
        width: 100% !important;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .input.file .dropzone #filename {
        width: 100%;
    }

    section.contacts .tab_content .body .row .item button[name="btSend"] {
        width: 100% !important;
    }
}


/* ──────────────────────────────────────────────────────
   Feedback / Contacts — 992px – 1199px (böyük tablet)
   front.css: row item: 690px × 2 = 1380px — container
   100% olduqda sığmır, items flex ilə bölüşür.
   ────────────────────────────────────────────────────── */
@media screen and (min-width: 992px) and (max-width: 1199px) {

    section.contacts {
        margin-top: 90px !important;
    }

    section.contacts .container {
        padding: 24px 20px;
        box-sizing: border-box;
        align-items: stretch;
    }

    section.contacts .container form {
        width: 100%;
    }

    /* Tab düymələri — 500px × 2 = 1000px, container 992px — sıxışır */
    section.contacts .tab_headers .tab_head {
        width: auto;
        flex: 1 1 0;
        font-size: 16px;
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* Searchbar */
    section.contacts .searchbar {
        width: 100%;
        box-sizing: border-box;
        padding: 0 0 0 44px;
    }

    section.contacts .searchbar::before {
        top: 50%;
        transform: translateY(-50%);
    }

    section.contacts .searchbar button {
        position: static;
        width: 120px;
        border-radius: 0 10px 10px 0;
        flex-shrink: 0;
    }

    /* Rəy formu body */
    section.contacts .tab_content .body {
        width: 100%;
        box-sizing: border-box;
        padding: 30px 24px;
    }

    /* front.css: .row .item { width: 690px } — flex ilə bərabər bölünür */
    section.contacts .tab_content .body .row .item {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .item .input {
        width: 100% !important;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .input.file {
        width: 100% !important;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .input.file .dropzone #filename {
        width: 100%;
    }
}


/* ──────────────────────────────────────────────────────
   Feedback / Contacts — 1200px – 1399px
   ────────────────────────────────────────────────────── */
@media screen and (min-width: 1200px) and (max-width: 1399px) {

    section.contacts .container {
        width: 100% !important;
        min-width: unset !important;
        padding: 0 32px;
        box-sizing: border-box;
        align-items: stretch;
    }

    section.contacts .container form {
        width: 100%;
    }

    /* Tab düymələri */
    section.contacts .tab_headers .tab_head {
        width: auto;
        flex: 1 1 0;
        max-width: 420px;
        font-size: 18px;
        box-sizing: border-box;
    }

    /* Searchbar */
    section.contacts .searchbar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    section.contacts .searchbar button {
        position: static;
        border-radius: 0 10px 10px 0;
        flex-shrink: 0;
    }

    /* Rəy formu */
    section.contacts .tab_content .body {
        width: 100%;
        box-sizing: border-box;
    }

    /* front.css: .row .item { width: 690px } — flex ilə bərabər bölünür */
    section.contacts .tab_content .body .row .item {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .item .input {
        width: 100% !important;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .input.file {
        width: 100% !important;
        box-sizing: border-box;
    }

    section.contacts .tab_content .body .row .input.file .dropzone #filename {
        width: 100%;
    }
}