/* Mobile-only – loaded last. Breakpoint matches Bootstrap navbar collapse. */
@media (max-width: 991.98px) {

  /* ===== HEADER: menu vľavo | logo v strede | jazyk vpravo ===== */
  .mobile-nav-bar {
    display: grid !important;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    position: relative;
  }

  .mobile-nav-bar .navbar-toggler {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    margin: 0 !important;
    padding: 0.5rem 0 0.5rem 0;
    z-index: 3;
  }

  .mobile-nav-bar .navbar-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin: 0 auto !important;
    transform: none !important;
    width: 100px;
    z-index: 1;
    pointer-events: auto;
  }

  .mobile-nav-bar .lang-switch {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    z-index: 3;
  }

  /* ===== SEKCIE: vertikálne centrovanie, statické pozadie ===== */
  .single-items,
  .single-items.parallaxie,
  section#contact.contact-page-section {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  .single-items.full-screen {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .single-items.full-screen > .container {
    flex: 0 1 auto;
    width: 100%;
    max-width: 1140px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }

  .single-items.full-screen > .container > .row {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .single-items.full-screen > .container > .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Nadpisy sekcií (okrem úvodnej) – mierne odsadenie od vrchu bloku */
  #about .item-titles > h2,
  #services .item-titles > h2,
  #process .item-titles > h2,
  #advantages .item-titles > h2,
  #references .item-titles > h2,
  #suppliers .item-titles > h2 {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
  }

  /* Vypnúť hover animácie (scroll na mobile spúšťa :hover) */
  .service-card,
  .reference-card,
  .references-carousel__nav,
  .supplier-box,
  .button,
  .pickus,
  .contact-linkedin-link,
  .contact-doc-links a {
    transition: none !important;
  }

  .service-card:hover,
  .reference-card:hover,
  .supplier-box:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .references-carousel__nav:active {
    transform: none !important;
  }

  .pickus::after {
    display: none !important;
  }

  .pickus:hover,
  .pickus:focus {
    color: inherit !important;
  }

  /* ===== SLUŽBY: ikona vľavo | hrubý nadpis + tenký text vpravo ===== */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px;
    padding: 16px 14px;
    min-height: auto;
    text-align: left !important;
  }

  .service-card-icon {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .service-card-icon i {
    margin-bottom: 0 !important;
    font-size: 24px;
  }

  .service-card-text {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .service-card-text h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #fff;
  }

  .service-card-text p {
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
  }

  /* ===== PROCES: ikony vľavo + spojovací pásik | text vpravo ===== */
  .process-steps {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    position: relative;
    padding-left: 0;
  }

  .process-steps::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 25px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto !important;
    transform: none !important;
    right: auto !important;
    background: rgba(255, 255, 255, 0.45);
    z-index: 1;
  }

  .process-step {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px;
    text-align: left !important;
    position: relative;
    z-index: 2;
  }

  .process-step-aside {
    flex: 0 0 52px;
    display: flex;
    justify-content: center;
    padding-top: 2px;
  }

  .process-icon-wrap {
    height: auto !important;
    margin-bottom: 0 !important;
    width: 52px;
    justify-content: center;
  }

  .process-icon {
    width: 50px;
    height: 50px;
  }

  .process-icon i {
    font-size: 22px;
  }

  .process-badge {
    top: -2px;
    transform: translateX(10px);
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 12px;
  }

  .process-step-text {
    flex: 1;
    min-width: 0;
    min-height: calc(1rem * 1.35 * 2 + 4px + 0.88rem * 1.45 * 2);
    text-align: left;
    padding-top: 0;
  }

  .process-step-text h4 {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 0 !important;
    margin: 0 0 4px;
    text-align: left !important;
    color: #fff;
  }

  .process-step-text p {
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.45;
    min-height: 0;
    margin: 0;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.88);
  }

  /* ===== VÝHODY: rovnaké rozloženie, bez spojovacích čiar ===== */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
    position: relative;
  }

  .advantages-grid::before {
    display: none !important;
    content: none !important;
  }

  .advantage-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px;
    text-align: left !important;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  .advantage-item-aside {
    flex: 0 0 52px;
    display: flex;
    justify-content: center;
    padding-top: 2px;
  }

  .advantage-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0 !important;
  }

  .advantage-icon i {
    font-size: 22px;
  }

  .advantage-item-text {
    flex: 1;
    min-width: 0;
    min-height: calc(1rem * 1.35 * 2 + 4px + 0.88rem * 1.45 * 2);
    text-align: left;
    padding-top: 0;
  }

  .advantage-item-text h4 {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    min-height: 0 !important;
    margin: 0 0 4px;
    text-align: left !important;
    color: #fff;
  }

  .advantage-item-text p {
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.45;
    min-height: 0;
    margin: 0;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.88);
  }

  /* ===== PROJEKTY: karty na šírku, šípky pod textom ===== */
  #references .references-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  #references .references-carousel__viewport {
    order: 1;
    flex: 0 0 100%;
    width: 100%;
    min-height: 0;
  }

  #references .references-carousel__slide {
    padding: 0;
  }

  #references .reference-card {
    width: 100%;
    padding: 24px 18px 22px;
  }

  #references .references-carousel__nav {
    order: 2;
    flex: 0 0 auto;
  }

  #references .references-carousel__nav--prev {
    margin-right: 8px;
  }

  /* ===== KONTAKT ===== */
  section#contact > .container {
    padding-top: 6rem !important;
    padding-bottom: 0.625rem !important;
  }

  section#contact .heading-title.heading_space {
    margin-bottom: 1.75rem !important;
  }

  section#contact .contact-page-address .our-address.top40 {
    margin-top: 1.25rem;
  }

  section#contact .contact-page-address .our-address h5.bottom25 {
    margin-bottom: 0.75rem;
  }

  section#contact .contact-page-address .our-address p.bottom15 {
    margin-bottom: 0.75rem;
  }

  section#contact .contact-channel-block .contact-channel-label {
    display: none !important;
  }

  section#contact .contact-channel-block .contact-channel-icon {
    display: inline-block !important;
    color: #00bcd4;
    font-size: 16px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
  }

  section#contact .contact-channel-block .contact-channel-row {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
  }

  section#contact .contact-channel-block .contact-channel-value {
    display: inline !important;
    margin-bottom: 0 !important;
    font-size: 13px;
    font-weight: 800;
    color: #00bcd4 !important;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  section#contact .contact-channel-block .contact-channel-value:hover,
  section#contact .contact-channel-block .contact-channel-value:focus {
    color: #00bcd4 !important;
  }

  section#contact .contact-page-address.margin_bottom {
    margin-bottom: 3.75rem !important;
  }

  section#contact .contact-linkedin.top40 {
    margin-top: 1.25rem;
  }

  section#contact .contact-page-form .podmienky {
    margin-top: 1rem !important;
  }

  section#contact .contact-page-form .podmienky label {
    padding-left: 0;
  }

  section#contact .contact-page-form .podmienky + .col-md-12 {
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
  }

  section#contact .row > .col-md-6.margin_bottom:not(.contact-page-address) {
    margin-bottom: 0 !important;
  }

  section#contact > .contact-page-credits {
    padding: 9px 0 10px !important;
  }
}
