/* Preserve the existing desktop theme, adapt the complete page to small screens. */
html { scroll-behavior: auto; }
section[id] { scroll-margin-top: 30px; }
.navbar .logo img { height: 80px; }
.accordion .faq .faq-header button {
    width: 100%;
    float: left;
    padding: 20px 25px;
    border: 1px solid #cbcbcb;
    background: none;
    color: #212832;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.accordion .faq .faq-header button:hover { color: #000; }
.accordion .faq .faq-header button[aria-expanded="true"] { background: #2c3947; color: #fff; }
.slider .tr-hero-title {
    width: 100%;
    display: block;
    font-size: 4vw;
    font-family: "Argesta Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 30px;
}
.flag-menu { flex-shrink: 0; }
.flag-menu ul { display: flex; align-items: center; gap: 12px; }
.flag-menu ul li { margin: 0; }
.flag-menu ul li a { display: inline-flex; align-items: center; gap: 6px; }
.flag-menu img { width: 24px; height: 16px; object-fit: cover; }
.doctors-card-specialty { min-height: 42px; line-height: 1.45; }
.treatment h5 { min-height: 62px; }
.treatment .price-line span { font-size: 13px; }
.callBar li a.telefon:before { content: "ARA"; }
.tr-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 40px;
    background: #208743;
    color: white;
    font: 500 14px/1.3 Arial, sans-serif;
    box-shadow: 0 3px 12px #0003;
}
.tr-whatsapp:hover { color: #fff; background: #166c32; text-decoration: none; }
.tr-whatsapp i { font-size: 28px; }
.tr-mobile-contact { display: none; }
#tr-desktop-form { width: 100%; min-width: 0; }
.footer .bottom-bar::before { width: 100%; left: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid #c6aa6b; outline-offset: 5px; }
@media (max-width: 991px) {
    .navbar { padding: 22px 0; }
    .navbar .container { flex-wrap: nowrap; gap: 14px; }
    .navbar .logo { margin: 0; flex: 0 1 auto; }
    .navbar .logo img { width: 145px; height: auto; max-width: none; }
    .navbar .health-logo { margin: 0 auto 0 0; }
    .navbar .health-logo img { width: 65px; height: auto; }
    .flag-menu { margin: 0 0 0 auto; }
    .flag-menu ul { gap: 0; flex-wrap: nowrap; }
    .flag-menu ul li a { width: 40px; height: 44px; justify-content: center; }

    .slider { height: min(760px, 90svh); min-height: 560px; }
    .slider .main-slider { height: 100%; }
    .slider .main-slider .swiper-slide .slide-inner {
        min-height: 0;
        padding: 120px 0 70px;
        align-items: flex-end;
        background-position: 58% center !important;
    }
    .slider .main-slider .swiper-slide .slide-inner::after {
        background: linear-gradient(180deg, #0009 0%, #0001 34%, #000b 100%);
        opacity: 1;
    }
    .slider .tr-hero-copy { display: block; padding: 0 24px; max-width: 680px; text-align: left; }
    .slider h6 { max-width: 360px; font-size: 14px; line-height: 1.65; letter-spacing: 1.3px; margin-bottom: 16px; }
    .slider .tr-hero-title { max-width: 600px; font-size: clamp(38px, 7vw, 56px); line-height: 1.13; margin-bottom: 24px; }
    .slider .tr-hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; height: auto; padding: 17px 26px; line-height: 1.3; }
    .scroll-down { display: none; }

    .content-section { padding: 56px 0 !important; }
    .content-section > .container { padding-left: 24px; padding-right: 24px; }
    .side-content.text-center.main1, .side-content.text-center, .side-content.text-left { padding: 0; }
    .side-content h2 { font-size: clamp(32px, 4.5vw, 40px); line-height: 1.2; }
    .side-content h6 { opacity: 1; color: #82704e; font-size: 12px; line-height: 1.6; letter-spacing: 1.3px; margin-bottom: 16px; }
    .side-content p { margin: 20px 0 24px; font-size: 16px; line-height: 1.75; opacity: 1; color: #62656a; }
    .side-content .custom-button { margin: 14px 0 0; width: 100%; min-height: 52px; height: auto; padding: 17px 16px; line-height: 1.4; font-size: 13px; }
    .main1 > .col-4 { padding: 8px; margin: 0 0 14px; }
    #hakkimizda .side-image { margin-top: 30px; border-radius: 8px; overflow: hidden; }
    #hakkimizda .side-image img { aspect-ratio: 4 / 3; object-fit: cover; }
    .section-title { margin-bottom: 28px; }
    .section-title h6 { font-size: 13px; line-height: 1.6; letter-spacing: 1.8px; color: #82704e; }
    .section-title h2 { font-size: clamp(30px, 4.5vw, 38px); line-height: 1.25; margin-top: 10px; }

    #iletisim .get-free-quote { display: block; margin: 0; min-width: 0; }
    #iletisim .get-free-quote h6 { font-size: 18px; line-height: 1.45; margin-bottom: 24px; }
    #iletisim .get-free-quote > div { max-width: 100%; }
    #iletisim iframe { display: block; width: 100% !important; max-width: 100% !important; border: 0; }

    .treatment .content { padding: 22px 18px; }
    .treatment h5 { min-height: 0; margin-bottom: 14px; font-size: 21px; line-height: 1.3; }
    .treatment h5 img { width: 34px; margin-right: 6px; }
    .treatment .price-line { margin: 14px 0 10px; line-height: 1.6; }
    .treatment .price-line span { font-size: 14px; }
    .treatment figure { margin: 0; }
    .treatment figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
    .carousel-treatments { padding-bottom: 62px; }
    .carousel-treatments .swiper-prev, .carousel-treatments .swiper-next { top: auto; bottom: 0; width: 44px; height: 44px; background: #8b734b; border-radius: 50%; }
    .carousel-treatments .swiper-prev { left: auto; right: 58px; }
    .carousel-treatments .swiper-next { right: 0; }
    .carousel-treatments .swiper-prev::before, .carousel-treatments .swiper-next::before { width: 10px; height: 10px; top: 17px; opacity: 1; }
    .carousel-treatments .swiper-prev::before { left: 19px; }
    .carousel-treatments .swiper-next::before { right: 19px; }
    #tedaviler .spacing-100 { height: 28px; }
    #tedaviler .custom-button { min-height: 52px; height: auto; padding: 16px 18px; line-height: 1.4; font-size: 13px; max-width: 100%; }

    .side-gallery { width: 100%; margin: 0 0 30px; float: none; transform: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .side-gallery div:first-child { grid-column: 1 / -1; }
    .side-gallery div, .side-gallery div:nth-child(1), .side-gallery div:nth-child(2), .side-gallery div:nth-child(3) { width: auto; margin: 0; float: none; }
    .side-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
    #klinik .side-content { text-align: left !important; }
    #klinik .side-content .custom-button { width: auto; }

    .doctors-treatments-container { padding: 0; }
    .doctors-treatments-row { gap: 18px; padding: 0; }
    .doctors-card-content { padding: 22px; }
    .doctors-card-name { font-size: 22px; }
    .doctors-card-degree, .doctors-card-specialty { font-size: 14px; }
    .doctors-card-specialty { min-height: 0; margin-bottom: 14px; }
    .doctors-card-button { font-size: 14px; min-height: 44px; }

    .how { margin: 0; height: 100%; }
    .how .count { position: static; font-size: 14px; line-height: 28px; width: 28px; height: 28px; border-radius: 50%; text-align: center; background: #f5f3ec; color: #8b734b; margin-bottom: 8px; }
    .how .content { padding: 12px 0 0; }
    .how .content h5 { font-size: 21px; line-height: 1.35; margin: 0 0 8px; }
    .how .content p { font-size: 16px; line-height: 1.65; color: #62656a; opacity: 1; }
    #surec .row > .col-lg-3 { margin-top: 24px; }

    .accordion .faq .faq-header { padding: 0; }
    .accordion .faq .faq-header button { padding: 20px 18px; font-size: 16px; line-height: 1.5; }
    .accordion .faq .faq-body { padding: 20px 16px; font-size: 16px; line-height: 1.75; }
    .footer .bottom-bar { gap: 20px; padding: 24px 0; margin-top: 10px; line-height: 1.7; }
    .footer .bottom-bar .footer-social { display: flex; gap: 24px; }
    .footer .bottom-bar .footer-social li { margin: 0; }
    .footer .footer-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 40px; }
    .footer p { font-size: 14px; line-height: 1.7; }
}
@media (max-width: 767px) {
    .navbar .container { gap: 8px; padding: 0 20px; }
    .navbar .logo img { width: 128px; }
    .navbar .health-logo { display: none; }
    .slider .tr-hero-copy { padding: 0 24px; }
    .slider .tr-hero-title { max-width: 380px; font-size: clamp(38px, 10.5vw, 50px); }
    .slider .main-slider .swiper-slide .slide-inner { padding-bottom: 62px; }
    #tr-desktop-form { display: none; }
    .tr-mobile-contact { display: grid; gap: 12px; width: 100%; max-width: 440px; margin: 0 auto; }
    .tr-mobile-contact p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; text-align: center; color: #62656a; }
    .tr-mobile-contact a { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 56px; padding: 16px; border-radius: 6px; font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: none; }
    .tr-mobile-contact i { font-size: 26px; }
    .tr-mobile-contact .tr-contact-whatsapp { background: #208743; color: #fff; }
    .tr-mobile-contact .tr-contact-phone { background: #fff; border: 1px solid #d5ccbc; color: #5e4d30; }
    .tr-mobile-contact small { display: block; font-size: 14px; font-weight: 400; }
    .side-content.text-center.main1 { text-align: left !important; }
    .content-section > .container { width: 100%; max-width: 600px; }
    .doctors-treatments-row { grid-template-columns: 1fr; }
    .doctors-treatment-card { display: grid; grid-template-columns: 34% minmax(0, 1fr); border-radius: 10px; }
    .doctors-image-wrapper { padding-top: 0; min-height: 205px; height: 100%; border-radius: 0; }
    .doctors-card-image { object-position: center top; }
    .doctors-card-content { padding: 18px 16px; align-items: flex-start; justify-content: center; }
    .doctors-card-name { font-size: 20px; text-align: left; }
    .doctors-card-specialty { font-size: 13px; text-align: left; letter-spacing: .4px; line-height: 1.5; margin-bottom: 8px; }
    .doctors-card-degree { font-size: 13px; }
    .doctors-card-button { margin-top: 0; font-size: 14px; padding: 8px 0; }
    .doctors-treatment-card:hover { transform: none; }
    .how { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; }
    .how figure { align-self: start; padding-top: 5px; }
    .how figure img { width: 52px; height: 52px; }
    .how .content { display: block; padding: 0; }
    .how .count { display: block; }
    #surec .row > .col-lg-3 + .col-lg-3 { padding-top: 24px; border-top: 1px solid #ebe7df; }

}
@media (max-width: 991px) {
    .tr-whatsapp { display: none; }
    .callBar { display: block; width: 100%; left: 0; right: 0; bottom: 0; z-index: 1000; background: white; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 16px #0001; }
    .callBar ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; }
    .callBar li { width: auto; float: none; margin: 0; min-width: 0; }
    .callBar li a.telefon.mobile, .callBar li a.whatsapp.mobile { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 8px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; }
    .callBar li a.telefon { background: #8b734b; }
    .callBar li a.whatsapp { background: #208743; }
    .callBar li a::before { content: none !important; }
    .callBar li a i { margin: 0; font-size: 20px; }
    .footer { padding: 32px 9px calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
    .navbar .container { padding: 0 16px; }
    .navbar .logo img { width: 116px; }
    .flag-menu ul li a { width: 38px; }
    .content-section > .container { padding-left: 20px; padding-right: 20px; }
    .slider .tr-hero-copy { padding: 0 20px; }
    .doctors-card-content { padding: 16px 12px; }
    .doctors-card-name { font-size: 18px; }
    .how { grid-template-columns: 42px minmax(0, 1fr); gap: 16px; }
    .how figure img { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
