/* Theme Name: Oxavia - Responsive One Page HTML5 Template
   Author: MyraStudio
   Version: 1.0.0
   File Description: Main CSS file of the template
*/

/****************************
*   1  :  Helper            *
*   2  :  Navbar-custom     *
*   3  :  Title             *
*   4  :  Home              *
*   5  :  Features          *
*   6  :  SERVICES          *
*   7  :  Clients           *
*   8  :  Portfolio         *
*   9  :  Blog              *
*   10 :  Team              *
*   11 :  Pricing           *
*   12 :  Contact           *
*   13 :  Footer            *
*   14 :  Responsive        *
*****************************/

@font-face {
    font-family: 'Gordita';
    font-style: normal;
    font-weight: normal;
    src: local('Gordita Regular'), url('../fonts/Gordita-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Gordita';
    font-style: normal;
    font-weight: 500;
    src: local('Gordita Medium'), url('../fonts/Gordita-Medium.woff') format('woff');
}

@font-face {
    font-family: 'Gordita';
    font-style: normal;
    font-weight: 700;
    src: local('Gordita Bold'), url('../fonts/Gordita-Bold.woff') format('woff');
}

body {
    font-family: 'Gordita';
    font-size: 14px;
    color: #525456;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Gordita';
    font-weight: 500;
}

h6 {
    font-size: 14px;
}

a {
    text-decoration: none !important;
    outline: none !important;
}

p{
    line-height: 1.8;
}


/*===============================
         1. Helper
================================*/

.bg-overlay {
    background-color: rgba(29, 29, 30, 0.8);
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.section {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
}

.vertical-content {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: row;
    -webkit-flex-direction: row;
}

.btn-rounded {
    border-radius: 5px;
}

.btn-custom-white {
    font-size: 15px;
    transition: all 0.4s;
    background: #fff;
    color: #FF6348 !important;
}

.btn-custom-white:hover,
.btn-custom-white:focus,
.btn-custom-white:active,
.btn-custom-white.active,
.btn-custom-white.focus,
.btn-custom-white:active,
.btn-custom-white:focus,
.btn-custom-white:hover,
.open > .dropdown-toggle.btn-custom-white {
    background: #f1f0f0;
    box-shadow: none !important;
}

.btn-custom {
    font-size: 15px;
    transition: all 0.4s;
    color: #fff !important;
    background: linear-gradient(#FF805A, #FF6348);
}

.btn {
    padding: 14px 28px;
    font-size: 12px;
    letter-spacing: 0.9px;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-sm {
    padding: 10px 22px;
}

.text-custom{
    color: #FF6348;
}

.bg-custom{
    background-color: #FF6348;
}

/*===============================
       2. Navbar Custom
=================================*/

.navbar-custom {
    padding: 15px 0px;
    border-radius: 0px;
    z-index: 999;
    margin-bottom: 0px;
    transition: all 0.5s ease-in-out;
}

.navbar-custom .navbar-nav li a {
    color: #fff;
    font-size: 11px;
    transition: all 0.5s;
    letter-spacing: 0.03rem;
    background-color: transparent !important;
    padding: 6px 0;
    margin: 0 13px;
    font-weight: 500;
    text-transform: uppercase;
}

.navbar-custom .navbar-nav .nav-link {
    padding-right: 0px;
    padding-left: 0px;
}

.logo {
    color: #fff !important;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-custom .navbar-nav li.active a,
.navbar-custom .navbar-nav li a:hover,
.navbar-custom .navbar-nav li a:active {
    color: #FF6348 !important;
}

.navbar-toggle {
    font-size: 24px;
    margin-top: 5px;
    margin-bottom: 0px;
    color: #ffffff;
}

.nav .open>a,
.nav .open>a:focus,
.nav .open>a:hover {
    background-color: transparent;
    border-color: #337ab7;
}

.navbar-custom .navbar-toggles {
    padding: .25rem .75rem;
    font-size: 18px;
    background: 0 0;
    border: 1px solid transparent;
    color: #fff;
    outline: 0;
}

.navbar-custom .navbar-toggles-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
}

.menu-toggle {
    padding: 4.5px 10px !important;
}

.menu-toggle span {
    line-height: 27px;
}


/*---NAVBAR STICKY---*/

.nav-sticky.navbar-custom {
    margin-top: 0px;
    padding: 15px 0px;
    background-color: #FFF;
    box-shadow: 0 10px 33px rgba(0, 0, 0, .1);
    color: #000 !important;
}

.nav-sticky.navbar-custom.sticky-light {
    background-color: #fff;
}

.nav-sticky.navbar-custom .navbar-nav li a {
    color: #2f3545;
}

.nav-sticky.navbar-custom .navbar-nav li.active a,
.nav-sticky.navbar-custom .navbar-nav li a:hover,
.nav-sticky.navbar-custom .navbar-nav li a:active {
    color: #FF6348 !important;
}

.nav-sticky.navbar-custom .navbar-toggles {
    padding: .25rem .75rem;
    border: 1px solid transparent;
    outline: 0;
}

.nav-sticky .navbar-nav {
    margin-top: 0px;
}

.nav-sticky .logo {
    color: #000 !important;
}

.nav-sticky .logo img {
    filter: brightness(0) invert(0);
}

/* Кнопки контактов — всегда контрастные к фону хедера */
.navbar-custom .btn-header-contact {
  color: #fff !important;
  border: 1.5px solid #fff !important;
  background: transparent !important;
}
.navbar-custom .btn-header-contact:hover {
  background: #FF6348 !important;
  color: #fff !important;
  border-color: #FF6348 !important;
}

/* Когда хедер белый (sticky) — кнопки тёмные */
.nav-sticky.navbar-custom .btn-header-contact {
  color: #22364d !important;
  border: 1.5px solid #22364d !important;
  background: transparent !important;
}
.nav-sticky.navbar-custom .btn-header-contact:hover {
  background: #FF6348 !important;
  color: #fff !important;
  border-color: #FF6348 !important;
}

/*==============================
       3. Title
================================*/

.title-heading {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.title h1{
    position: absolute;
    color: rgba(0, 0, 0, 0.1);
    left: 0px;
    right: 0px;
    top: -45px;
}

/*==============================
        4. Home
================================*/

.bg-home {
    background-image: url('../images/home/home-bg.jpg');
    background-size: cover;
    background-position: center center;
    height: 100vh;
    position: relative;
}

.home-center {
    display: table;
    width: 100%;
    height: 100%;
}

.home-desc-center {
    display: table-cell;
    vertical-align: middle;
}

.home-small-title {
    font-size: 15px;
    letter-spacing: 8px;
}

.home-slider {
    position: relative;
}

.home-slider .carousel-control-next,
.carousel-control-prev {
    width: 6%;
}

.home-slider .carousel-item,
.home-slider .carousel {
    height: 100vh;
    width: 100%;
}

.home-slider .carousel-item {
    background-position: center center;
    background-size: cover;
}

.clients-img{
    position: absolute;
    top: 108px;
}

.clients-img img {
    max-height: 100px;
    width: auto !important;
    transition: all 0.5s;
}

.clients-img img:hover {
    opacity: 0.6;
}

/********* DEMO 2 ********/

.home-registration-form {
    border-radius: 3px;
}

.home-registration-form .registration-form label {
    font-size: 13px;
}

.registration-input-box {
    border-bottom: 1px solid #c5c5c5;
    box-shadow: none !important;
}

.registration-input-box:focus {
    border-color: #FF6348;
}

/*******DEMO 3*******/

.subcribe-form input {
    padding: 14px 20px;
    width: 100%;
    font-size: 17px;
    color: #4c5667 !important;
    border: none;
    outline: none !important;
    padding-right: 160px;
    padding-left: 30px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 5px;
}

.subcribe-form button {
    position: absolute;
    top: 3px;
    right: 3px;
    outline: none !important;
    border-radius: 5px;
    font-size: 14px;
    padding: 12px 30px;
}

.subcribe-form form {
    position: relative;
    max-width: 600px;
    margin: 0px auto;
}

/********DEMO 4**********/

.home-dashboard {
    position: relative;
    top: 80px;
    z-index: 1;
}

.home-prestion {
    padding-top: 75px;
    background-image: linear-gradient(-47deg, #8731E8 0%, #4528DC 100%);
    position: relative;
}

/********DEMO 5**********/

.home-slider {
    position: relative;
}

.home-slider .carousel-control-next,
.carousel-control-prev {
    width: 6%;
}

.home-slider .carousel-item,
.home-slider .carousel {
    height: 100vh;
    width: 100%;
}

.home-slider .carousel-item {
    background-position: center center;
    background-size: cover;
}

.home-title {
    font-size: 42px;
    line-height: 60px;
}

.home-desc {
    max-width: 700px;
}

/********DEMO 6**********/

.bg-home-half {
    background-image: url('../images/home/home-bg-2.jpg');
    background-size: cover;
    background-position: center center;
    padding: 250px 0px 200px;
    position: relative;
}

/************************
    5. Welcome box
*************************/

.features h5 svg{
    height: 48px;
    width: 48px;
    fill: rgba(255, 99, 72, 0.2);
}

.features h4 {
    font-size: 18px;
}

/************************
   6. SERVICES
*************************/

.service h3 {
    font-size: 14px;
    letter-spacing: 3px;
}

.service p {
    font-size: 30px;
}

.services-blog svg {
    max-width: 45px;
    float: left;
    margin-right: 20px;
    height: 48px;
    width: 48px;
    fill: rgba(255, 99, 72, 0.2);
    color: #FF6348;
}

.service-head {
    overflow: hidden;
}

.services-blog {
    padding: 40px;
    background-color: #ffffff;
}

.services-blog h4 {
    font-size: 16px;
}

.ser-bg1 {
    background-image: url('../images/home/bg1.jpg');
}


/************************
        7. CLIENTS
**************************/

.testi-user {
    max-width: 60px;
}

.user-review {
    color: #667482;
    font-style: italic;
    font-size: 16px;
}

.testi-client-name {
    font-size: 15px;
    color: #000;
}

.testi-patients {
    font-size: 14px;
    color: #000;
}

.owl-theme .owl-controls .owl-page span {
    display: block;
    width: 10px;
    height: 5px;
    margin: 5px 7px;
    border: 1px solid #FF6348;
    background-color: #FF6348;
    opacity: 0.2;
}


/*************************
        8. PORTFOLIO
***************************/

.img-max-width {
    width: 25%;
}

.portfolio-title {
    font-size: 21px;
    word-spacing: 2px;
    font-weight: 700;
    letter-spacing: 1px;
}

.port-folio-sub-title {
    color: #585858;
    font-size: 17px;
    word-spacing: 1px;
    padding-top: 10px;
}

.container-filter {
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 30px;
    padding: 0;
    text-align: center;
}

.container-filter li {
    list-style: none;
    display: inline-block;
}

.container-filter li a {
    display: block;
    font-size: 10px;
    border: 1px solid #e0e0e0;
    padding: 0px 15px;
    margin: 5px 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    line-height: 35px;
    border-radius: 3px;
    color: #75757d;
}

.container-filter li a.active {
    color: #fff;
    background-color: #FF6348;
    border: 1px solid #FF6348;
}

.container-filter li a:hover {
    color: #fff !important;
    background-color: #FF6348;
    border: 1px solid #FF6348;
}

.item-box {
    position: relative;
    overflow: hidden;
    display: block;
}

.item-box a {
    display: inline-block;
}

.item-box:hover .item-mask {
    opacity: 1;
    visibility: visible;
}

.item-box:hover .item-mask .item-caption {
    bottom: 30px;
    opacity: 1;
}

.item-box:hover .item-container {
    transform: scale(1.1);
    transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
    width: 100%;
}

.item-container {
    transform: scale(1);
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    width: 100%;
    transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
    -moz-transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
    -webkit-transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
    -o-transition: all 2s cubic-bezier(0.23, 1, 0.32, 1) 0s;
}

.item-mask {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.7);
    position: absolute;
    transition: all 0.5s ease-in-out 0s;
    -moz-transition: all 0.5s ease-in-out 0s;
    -webkit-transition: all 0.5s ease-in-out 0s;
    -o-transition: all 0.5s ease-in-out 0s;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.item-mask h5{
    font-size: 16px;
}

.item-mask p {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin: 0;
    text-align: left;
}

.item-mask .item-caption {
    position: absolute;
    bottom: -60px;
    left: 0px;
    padding-left: 30px;
    padding-right: 30px;
    text-align: left;
    transition: all 0.5s ease-in-out 0s;
    -moz-transition: all 0.5s ease-in-out 0s;
    -webkit-transition: all 0.5s ease-in-out 0s;
    -o-transition: all 0.5s ease-in-out 0s;
    opacity: 0;
}

.portfolio-head h3 {
    font-size: 14px;
    letter-spacing: 3px;
}

.portfolio-head p {
    font-size: 30px;
}

.bg-cta {
    background-image: url('../images/home/home-bg.jpg');
    background-size: cover;
    background-position: center center;
    position: relative;
}

/*************************
      9.  BLOG
***************************/

.blog-menu img {
    border-radius: 5px;
}

.blog-menu h5 {
    font-size: 15px;
}

.blog-title {
    font-size: 16px;
    color: #44464f;
    margin-top: 20px;
    display: block;

}

.blog-title:hover {
    color: #FF6348;
    transition: all 0.5s
}

.blog-menu p {
    font-size: 14px;
    line-height: 1.8;
}

.read-btn {
    font-size: 15px;
    color: #FF6348;
    text-decoration: underline !important;
}

.read-btn:hover {
    color: #f70033;
}


/***********************
       10. TEAM
*************************/

.team-member img {
    border-radius: 5px;
}

.team-member h4 {
    font-size: 15px;
    margin-bottom: 0;
}

.team-member p {
    font-size: 13px;
}

/************************
       11. PRICE
**************************/

.price{
    box-shadow: 0px 40px 40px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.price .type h4 {
    font-size: 18px;
    text-transform: uppercase;
}

.price .value {
    position: relative;
}

.price .value h3 {
    display: inline-block;
    padding-right: 10px;
    font-size: 46px;
    position: relative;
}

.price .value h3 span {
    font-size: 14px;
    position: absolute;
    top: 5px;
}

.price .value .per {
    font-size: 13px;
}

.price .feature {
    padding: 15px 0;
}

.price .feature li {
    margin: 15px;
}

.price.active {
    background-color: rgba(255, 99, 72, 0.2);
}

/************************
       12. CONTACT
**************************/

.form-control {
    height: 46px;
    border: 1px solid #e9e6e6;
    font-size: 14px;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: #FF6348;
    outline: 0;
    box-shadow: none;
}

.address-info {
    overflow: hidden;
}

.contact-info {
    font-size: 14px;
}

.error {
    margin: 8px 0px;
    display: none;
    color: red;
}

#ajaxsuccess {
    font-size: 16px;
    width: 100%;
    display: none;
    clear: both;
    margin: 8px 0px;
}

.error_message {
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #ff4774;
    color: #ff4774;
    border-radius: 5px;
    font-size: 14px;
}

.contact-loader {
    display: none;
}

#success_page {
    text-align: center;
    margin-bottom: 50px;
}

#success_page h3 {
    color: #10b81a;
    font-size: 22px;
}

/************************
       13. FOOTER
*************************/

.footer{
    padding-top: 80px;
    padding-bottom: 40px;
    color: #818d9c;
}

.footer-menu h5 {
    font-size: 14px;
    color: #ffffff;
}

.footer-menu p,
.footer span {
    font-size: 13px;
}

.footer_mdi {
    font-size: 16px;
    height: 36px;
    width: 36px;
    line-height: 36px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    margin: 20px 2px;
}

.facebook {
    background-color: #4e71a8;
    color: #ffffff;
}

.twitter {
    background-color: #55acee;
    color: #ffffff;
}

.google {
    background-color: #d6492f;
    color: #ffffff;
}

.apple {
    background-color: #231f20;
    color: #ffffff;
}

.dribbble {
    background-color: #fff;
    color: #000;
}

.footer-menu li a {
    font-size: 14px;
    display: inline-block;
    transition: all 0.5s;
    line-height: 32px;
    color: #818d9c!important;
}


/************************
    14. RESPONSIVE
**************************/

@media (max-width: 768px) {
    .vertical-content {
        display: inherit;
    }
    .navbar-custom {
        margin-top: 0px;
        padding: 10px 0px !important;
        background-color: #000 !important;
        box-shadow: 0 10px 33px rgba(0, 0, 0, .1);
        color: #fff !important;
    }
    .navbar-toggler i {
        font-size: 24px;
        margin-top: 0px;
        margin-bottom: 0px;
        color: #ffffff;
    }
    .bg-home {
        height: auto;
    }
    .nav-sticky.navbar-custom .navbar-nav li a {
        color: #fff !important;
    }
    .nav-sticky .logo {
        color: #fff !important;
    }
    .navbar-custom>.container {
        width: 90%;
    }
    .clients-img {
        display: none;
    }
    #clients-carousel .item {
        position: relative !important;
        width: 100vw !important;
        overflow: hidden !important;
        margin: 0 auto !important;
    }
    #clients-carousel .client-caption {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 8px !important;
        max-width: 92vw !important;
        margin: 0 auto !important;
        padding: 7px 6px !important;
        font-size: 0.93rem !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,0.82) !important;
        color: #22364d !important;
        box-shadow: 0 2px 12px rgba(34,54,77,0.08) !important;
        z-index: 2;
    }
    #clients-carousel .item img {
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        display: block;
        margin: 0 auto;
    }
    #clients-carousel .client-caption {
      display: none !important;
    }
    .client-caption-mobile {
      display: block !important;
      background: rgba(255,255,255,0.92);
      color: #22364d;
      border-radius: 10px;
      box-shadow: 0 2px 12px rgba(34,54,77,0.08);
      margin: 14px auto 0 auto;
      padding: 12px 10px;
      max-width: 96vw;
      font-size: 1.02rem;
      font-weight: 400;
      letter-spacing: 0.01em;
    }
}

@media (min-width:768px) and (max-width: 1024px) {
    .clients-img {
        top: 76px;
    }
}

@media (max-height: 767px) {
    .clients-img {
        top: 7px;
    }
}

/* === УСЛУГИ (services) custom === */
#services {
  background: #f8f9fa;
}
#services .service-col {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34,54,77,0.08);
  padding: 32px 24px;
}
#services .service-step {
  background: #f4f6fa;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(34,54,77,0.04);
  margin-bottom: 18px;
  padding: 18px 18px 18px 0;
  display: flex;
  align-items: center;
  min-height: 80px;
}
#services .service-step:last-child { margin-bottom: 0; }
#services .service-step .mdi {
  font-size: 2rem;
  color: #22364d;
  margin-right: 16px;
}
#services .service-step-title {
  font-weight: 600;
  color: #22364d;
  margin-bottom: 2px;
}
#services .service-step-desc {
  color: #7a869a;
  font-size: 1rem;
}
#services .service-title {
  font-weight: 700;
  letter-spacing: 1px;
  color: #22364d;
  margin-bottom: 8px;
}
#services .service-subtitle {
  color: #7a869a;
  font-size: 1.1rem;
  margin-bottom: 24px;
}
#services .row > .col-md-6 {
  padding-right: 10px;
  padding-left: 10px;
}
@media (max-width: 991px) {
  #services .row > .col-md-6 {
    padding-right: 0;
    padding-left: 0;
  }
}
@media (max-width: 991px) {
  #services .service-col { margin-bottom: 32px; }
}

/* === Анимация для блока услуг === */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll { opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.animate-on-scroll.visible { opacity: 1; animation: fadeInUp 0.8s cubic-bezier(.23,1.02,.32,1) both; }
#services .service-col { transition: box-shadow 0.3s, transform 0.3s; }
#services .service-col.visible { box-shadow: 0 8px 32px rgba(34,54,77,0.16); transform: translateY(-8px) scale(1.02); }
#services .service-step { transition: box-shadow 0.3s, transform 0.3s; }
#services .service-step.visible { box-shadow: 0 4px 16px rgba(34,54,77,0.10); transform: translateY(-4px) scale(1.01); }

/* === Анимация для блока тары === */
#tara .animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.5s, transform 0.5s; }
#tara .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
#tara .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
#tara .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
#tara .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
#tara .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* --- CUSTOM CLIENTS SLIDER (BLOCK SIZE ADJUSTED) --- */
.clients-slider-wrapper {
  max-width: 900px; /* было 700px, теперь больше на десктопе */
  margin: 0 auto;
}
.clients-carousel .client-slide {
  position: relative;
  overflow: hidden;
  border-radius: 20px; /* больше на десктопе */
}
.clients-carousel img {
  width: 100%;
  display: block;
  border-radius: 20px; /* больше на десктопе */
  height: 420px; /* выше на десктопе */
  object-fit: cover;
}
.client-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.88);
  padding: 36px 36px 28px 36px;
  border-radius: 0 0 20px 20px;
  color: #22304A;
  box-shadow: 0 8px 32px rgba(34,54,77,0.10);
}
.client-caption-title {
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.client-caption-text {
  font-size: 1.13rem;
  font-weight: 400;
}
@media (max-width: 767.98px) {
  .clients-slider-wrapper {
    max-width: 98vw; /* меньше на мобиле */
  }
  .clients-carousel .client-slide {
    border-radius: 10px;
  }
  .clients-carousel img {
    border-radius: 10px;
    height: 180px; /* ниже на мобиле */
  }
  .client-caption {
    padding: 10px 6px 8px 6px;
    font-size: 0.93em;
    border-radius: 0 0 10px 10px;
  }
  .client-caption-title {
    font-size: 0.98rem;
    margin-bottom: 6px;
  }
  .client-caption-text {
    font-size: 0.90rem;
  }
}

/* === ГЛОБАЛЬНО: убираем горизонтальный скролл === */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* === NAVBAR: адаптив и sticky === */
@media (max-width: 768px) {
  .navbar-custom {
    background-color: #000 !important;
    color: #fff !important;
    box-shadow: 0 10px 33px rgba(0,0,0,0.1);
  }
  .navbar-custom .logo img {
    filter: none !important;
  }
  .nav-sticky.navbar-custom {
    background-color: #fff !important;
    color: #000 !important;
    box-shadow: 0 10px 33px rgba(0,0,0,0.1);
  }
  .nav-sticky .logo img {
    filter: brightness(0) invert(0.9) !important;
  }
}

/* === Блок УСЛУГИ: вертикально на мобилках === */
@media (max-width: 767.98px) {
  #services .row > .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .bg-home-half {
    padding: 100px 0 80px 0 !important;
  }
  .home-title {
    font-size: 2rem !important;
  }
  .home-desc {
    font-size: 1rem !important;
  }
  .btn.btn-custom,
  .btn.btn-light {
    font-size: 1rem !important;
    padding: 0.7rem 1.5rem !important;
  }
}

@media (min-width: 769px) {
  #clients-carousel .item {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  #clients-carousel .item img {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    display: block;
    margin: 0 auto;
  }
  .client-caption-mobile {
    display: none !important;
  }
  #clients-carousel .client-caption {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 32px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 24px 32px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,0.92) !important;
    color: #22364d !important;
    box-shadow: 0 2px 12px rgba(34,54,77,0.08) !important;
  }
}
@media (max-width: 768px) {
  #clients-carousel .item {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }
  #clients-carousel .item img {
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block;
    margin: 0 auto;
  }
  #clients-carousel .client-caption {
    display: none !important;
  }
  .client-caption-mobile {
    display: block !important;
    background: rgba(255,255,255,0.92);
    color: #22364d;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(34,54,77,0.08);
    margin: 14px auto 0 auto;
    padding: 12px 10px;
    max-width: 96vw;
    font-size: 1.02rem;
    font-weight: 400;
    letter-spacing: 0.01em;
  }
}