/***************************
*    MOBILE VERSION
****************************/
@media (max-width: 1100px) {
  [data-aos] {
    transform: none !important;
    opacity: 1 !important;
  }

  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
  }

  html {
    scroll-padding-top: 0;
  }

  .main-background {
    background-image: none;
    min-height: 100vh;
  }

  .title-section {
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .title-text {
    position: relative;
    z-index: 2;
    top: auto;
    right: auto;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    align-items: center;
    gap: 0.45rem;
  }

  .title-text h1,
  .title-text h2 {
    width: 100%;
    text-align: center;
  }

  .title-text h1 {
    font-size: clamp(2.2rem, 8.8vw, 11rem);
    max-width: 100%;
    line-height: 0.95;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .title-text h2 {
    font-size: clamp(1.3rem, 5.4vw, 5.8rem);
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .title-text,
  .title-text h1,
  .title-text h2,
  .title-text a.btn {
    margin: 0;
    padding: 0;
  }

  .title-text a.btn {
    position: relative;
    margin: 0.25rem auto 0 auto;
    align-self: center;
    display: inline-block;
    touch-action: manipulation;
    cursor: pointer;
    top: auto;
    right: auto;
    left: auto;
  }

  .title-text a#about-us-btn {
    pointer-events: auto !important;
    z-index: 1000;
    width: clamp(260px, 72vw, 420px);
    min-height: clamp(56px, 8.5vw, 76px);
    padding: 0.35em 1.35em 0.2em;
    font-size: clamp(1.4rem, 5.4vw, 2.15rem);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .about-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
  }

  .about-text {
    max-width: 800px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about-text h1,
  .about-text p {
    width: 100%;
    text-align: center;
  }

  .about-text h1 {
    font-size: clamp(2.2rem, 8.8vw, 11rem);
    line-height: 0.95;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .about-text p {
    font-size: clamp(1.22rem, 4.6vw, 2rem);
    line-height: 1.35;
  }

  .services-sign {
    display: none;
  }

  .contact-person-img,
  .contact-cloud-img {
    display: none;
  }

  .services-title {
    padding-right: 0;
    width: 100%;
    max-width: min(100%, 920px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: clamp(2.2rem, 8.8vw, 11rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #services .services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  #services .services-section > [data-aos] {
    width: 100%;
    max-width: 100%;
  }

  #services .services-section > [data-aos] > .row {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  #services .services-section > [data-aos] > .row > .col-md-4,
  #services .services-section > [data-aos] > .row > .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  #services .services-section > [data-aos] > .row > .col-md-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0 !important;
    padding-bottom: 0.75rem;
  }

  #services .services-section .row.row-cols-1.row-cols-md-3 {
    --bs-gutter-x: 1rem;
    row-gap: 0.75rem;
  }

  #services .services-section .row.row-cols-1.row-cols-md-3 > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .services-section .services-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .services-section .services-card .card-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .services-section .card-img-overlay .card-title {
    margin-top: 0.35rem;
  }

  .services-section .stroke-wrap {
    max-width: 75%;
    line-height: 1.05;
    font-size: clamp(1.85rem, 7.5vw, 3.2rem);
  }

  .services-section .stroke {
    -webkit-text-stroke: clamp(7px, 2.8vw, 16px) rgb(255, 255, 255);
  }

  .services-section .fill {
    font-size: inherit;
  }

  @supports (container-type: inline-size) {
    .services-section .card {
      container-type: inline-size;
    }

    .services-section .stroke-wrap {
      font-size: clamp(1.3rem, 13cqw, 3.2rem);
    }

    .services-section .stroke {
      -webkit-text-stroke: clamp(6px, 2.3cqw, 16px) rgb(255, 255, 255);
    }

    .services-section .card-caption {
      font-size: clamp(1rem, 6.2cqw, 1.5rem);
    }

    .services-section .card-caption-business {
      font-size: clamp(1.1rem, 6.8cqw, 1.7rem);
    }
  }

  .services-section .card-img-overlay .card-caption,
  .services-section .card-img-overlay .card-caption-business {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: 90%;
    margin: 0;
    padding-top: 0;
    text-align: center;
  }

  .carousel-slide {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }

  .carousel-img {
    width: 90%;
    max-width: none;
  }

  .slide-text {
    width: 100%;
  }

  .navbar .pill-btn {
    font-size: 16px;
    padding: 0.2em 14px 0 14px;
    margin-right: 0.5rem;
  }

  .yellow-pill,
  .white-pill {
    width: auto;
  }

  .price-title {
    font-size: clamp(2.2rem, 8.8vw, 11rem);
    line-height: 0.95;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-bottom: 1.8rem;
  }

  .price-caption {
    font-size: clamp(1.35rem, 5vw, 6.5rem);
  }

  .prices-desc-text h2 {
    font-size: clamp(1.35rem, 5vw, 6.5rem);
  }

  .prices-desc-text p {
    font-size: clamp(1.02rem, 3.8vw, 1.6rem);
    line-height: 1.35;
  }

  .title-section,
  .about-section,
  .services-section,
  .prices-section,
  .contacts-section {
    background: none;
    background-color: #ffffff;
  }

  .title-section {
    height: auto;
    min-height: 100vh;
  }

  .title-text {
    right: auto;
    width: 85%;
    margin: 0 auto;
    align-items: center;
  }

  .about-section {
    height: auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    background-color: white;
  }

  .about-text {
    margin: 0 auto;
    width: 92%;
    align-self: center;
    justify-content: center;
  }

  .prices-section,
  .contacts-section {
    height: auto;
    min-height: 100vh;
    padding: 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .prices-section .row {
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    row-gap: 1.25rem;
  }

  .contacts-section .row {
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    row-gap: 1rem;
  }

  .prices-section .col-md-5 {
    display: flex;
    justify-content: center;
  }

  .contacts-section .col-md-4 {
    display: none;
  }

  .contacts-section .col-md-6 {
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contacts-section .col-md-6 > a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .contacts-section .image-grid {
    justify-items: center;
  }

  .contacts-section .image-text {
    margin-bottom: 0;
    text-align: center;
  }

  .contacts-section .contacts-cloud-title {
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    font-size: clamp(2.2rem, 8.8vw, 11rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contacts-section .contacts-cloud-text {
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    font-size: clamp(1.25rem, 5.2vw, 2rem);
    line-height: 1.25;
  }

  .contacts-section .contacts-description {
    text-align: center;
    margin: 0 auto 1rem;
    font-size: clamp(1.15rem, 4.6vw, 1.5rem);
    line-height: 1;
  }

  .contacts-section .contacts-btn {
    max-width: 70%;
  }

  .prices-text,
  .prices-desc-text {
    position: static;
    left: auto;
    top: auto;
    text-align: center;
  }

  .prices-pill {
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 0.2em 1rem 0;
    font-size: clamp(1.8rem, 6.5vw, 3rem);
    line-height: 1.1;
    text-align: center;
  }
}

@media (min-width: 992px) and (max-width: 1100px) {
  .navbar-expand-lg {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-toggler {
    display: block;
  }

  .navbar-expand-lg .navbar-collapse {
    display: none !important;
    flex-basis: 100%;
    width: 100%;
  }

  .navbar-expand-lg .navbar-collapse.show {
    display: block !important;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .navbar .pill-btn {
    font-size: 14px;
    margin-top: 0.5rem;
  }

  .carousel-slide {
    padding: 0.75rem 0.75rem 4rem;
  }

  .oc-stroke {
    -webkit-text-stroke: 6px rgb(255, 255, 255);
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev {
    left: calc(50% - 52px);
  }

  .carousel-control-next {
    right: calc(50% - 52px);
  }
}

@media (max-width: 1199px) {
  #carouselModal .carousel-flip-root,
  #carouselModal .carousel-flip-front,
  #carouselModal .carousel-flip-back {
    display: block;
  }

  #carouselModal .modal-dialog {
    margin: 0.75rem;
    max-width: none;
  }

  #carouselModal .modal-body {
    padding: 0 !important;
  }

  #carouselModal .modal-content {
    position: relative;
  }

  #carouselModal .carousel-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 30;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #b82323;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }

  #carouselModal .carousel-close-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
  }

  .carousel,
  .carousel-inner,
  .carousel-item,
  .carousel-slide {
    height: auto;
    min-height: 0;
  }

  .carousel-slide {
    padding: 1rem 1rem 4.5rem;
    gap: 1rem;
    align-items: center;
  }

  .oc-overlay {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  #carouselModal .carousel-slide .oc-overlay::after {
    content: "\f2f1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    line-height: 1;
    color: #000000;
    background: #efd594;
    border: 1px solid rgba(0, 0, 0, 0.12);
    pointer-events: none;
    z-index: 3;
  }

  .oc-overlay .oc-overlay-text.oc-stroke-wrap {
    position: absolute;
    top: 10px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 2;
  }

  .carousel-img,
  .oc-overlay img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .slide-text,
  .slide-text-business {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  #carouselModal .carousel-flip-root {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    -webkit-perspective: 1100px;
    perspective: 1100px;
    -webkit-perspective-origin: 50% 50%;
    perspective-origin: 50% 50%;
  }

  #carouselModal .carousel-flip-inner {
    position: relative;
    display: block;
    width: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #carouselModal .carousel-flip-face {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  #carouselModal .carousel-flip-front {
    position: relative;
    z-index: 2;
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }

  #carouselModal .carousel-flip-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
  }

  #carouselModal .carousel-slide.mobile-text-visible .carousel-flip-inner {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
  }

  #carouselModal .carousel-slide.mobile-text-visible .carousel-flip-back {
    pointer-events: auto;
  }

  #carouselModal .carousel-slide .slide-text,
  #carouselModal .carousel-slide .slide-text-business {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 3rem 0.9rem 5rem;
  }

  #carouselModal .carousel-slide .slide-text.text-overflowing,
  #carouselModal .carousel-slide .slide-text-business.text-overflowing {
    justify-content: flex-start;
    overflow-y: auto;
  }

  #carouselModal .carousel-slide .oc-overlay {
    cursor: pointer;
  }

  @media (prefers-reduced-motion: reduce) {
    #carouselModal .carousel-flip-inner {
      -webkit-transition-duration: 0.01ms;
      transition-duration: 0.01ms;
    }
  }

  .services-carousel h3 {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    margin-bottom: 0.6rem;
  }

  .services-carousel p {
    font-size: clamp(1rem, 3.8vw, 1.3rem);
    line-height: 1.45;
  }

  .oc-stroke,
  .oc-fill {
    font-size: clamp(2rem, 7.6vw, 3rem);
  }

  .oc-stroke {
    -webkit-text-stroke: 8px rgb(255, 255, 255);
  }

  .oc-carousel-card-caption,
  .oc-business-carousel-caption {
    font-size: clamp(1rem, 4vw, 1.35rem);
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 44px;
    height: 44px;
    bottom: 10px;
    border-radius: 999px;
  }

  .carousel-control-prev {
    left: calc(50% - 58px);
  }

  .carousel-control-next {
    right: calc(50% - 58px);
  }
}

@media (max-width: 1200px) {
  .fleet-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    max-width: 620px;
    margin: 0 auto;
  }

  .vehicle-fleet-title {
    writing-mode: horizontal-tb;
    transform: none;
    grid-column: 1 / -1;
    grid-row: auto;
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 7.5vw, 11rem);
  }

  .fleet-item {
    width: 100%;
  }

  .fleet-grid .card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .fleet-grid .card-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0 auto;
  }

  .fleet-grid .card-img-overlay {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    left: 10px;
    right: 10px;
    padding-left: calc(var(--fleet-text-left, 0px) + 0.5rem);
    padding-right: var(--fleet-text-right, 0px);
    padding-top: 1.5rem;
  }

  .vehicle-card {
    margin: 0;
    margin-top: 0.35rem;
    text-align: left;
    font-size: clamp(2.2rem, 2.6vw, 4rem);
  }

  .vehicle-text {
    margin: 0;
    text-align: left;
    line-height: 1.4;
    font-size: clamp(1rem, 2vw, 2rem);
  }

  @supports (container-type: inline-size) {
    .fleet-grid .card {
      container-type: inline-size;
    }

    .fleet-grid .vehicle-card {
      font-size: clamp(2.2rem, 10.5cqw, 4rem);
    }

    .fleet-grid .vehicle-text {
      font-size: clamp(1rem, 6cqw, 2rem);
    }
  }
}

