/* Mobile Stylesheet for lionit.sk */
@media (max-width: 768px) {
  :root {
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text-main: #0f172a;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  }

  html {
    font-size: 15px;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-main);
    background-color: var(--surface);
    background-attachment: scroll;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

/* Header & top action icons */
  #main_div1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }
  
 #logo_bar {
    width: 160px;
    height: 60px;
    min-height: 60px;
    padding: 6px 12px;
    background-position: left center;
    background-size: contain;
  }

  #shopping_cart {
    right: 12px !important;
    top: 10px !important;
  }

  #login_bar {
    right: 56px !important;
    top: 10px !important;
  }

  #shopping_cart img,
  #login_bar img {
    width: 28px !important;
    height: 28px;
    object-fit: contain;
  }

  /* Headings & text */
  h1,
  .atitle,
  #kontakt_f h1,
  #kontakt_top #kontakt h1,
  #kontakt h1 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.4rem !important;
    line-height: 1.25;
    letter-spacing: normal;
    margin: 12px 0;
  }

  h2,
  #sluzby {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: normal;
    margin: 16px 0 10px;
  }

  p,
  strong,
  li,
  #kontakt_f p,
  #kontakt_f a,
  #page_bottom p,
  #page_bottom span,
  #page_bottom a,
  #page_bottom li,
  #page_bottom ul,
  #response_inner_div p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #box_intro span {
    display: block;
    font-size: 1rem;
    padding: 0 8px 12px;
  }

  #promo_text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  #promo_text span {
    font-size: 0.95rem;
    line-height: 1.5;
    color: inherit;
  }

  /* Lists */
  ul {
    display: block;
    list-style: disc;
    list-style-position: outside;
    padding-left: 20px;
    margin: 8px 0;
  }

  li {
    margin-bottom: 6px;
  }

  /* Main layout containers */
  #main_content {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 100%;
    transform: none !important;
    background-attachment: scroll;
  }

  #main_content #load_content,
  #load_content {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    margin-top: 8px !important;
    padding: 12px;
    border: 0;
    text-align: left;
    transform: none !important;
    transition: opacity 0.25s ease;
  }

  #kontakt_top {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0 !important;
    margin-bottom: 24px;
    transform: none !important;
  }

  /* Contact form */
  #kontakt_top #kontakt,
  #kontakt {
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 480px;
    margin: 12px auto;
    padding: 16px;
    text-align: left;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 1;
  }

  #kontakt_top #kontakt h1,
  #kontakt h1 {
    background: var(--text-main);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
  }

  #kontakt_top #kontakt span,
  #kontakt span {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    font-size: 0.92rem !important;
    color: var(--text-main);
    margin: 4px 0 0;
  }

  #kontakt_top #kontakt input[type="text"],
  #kontakt_top #kontakt input[type="tel"],
  #kontakt_top #kontakt input[type="email"],
  #kontakt_top #kontakt input[type="number"],
  #kontakt_top #kontakt textarea,
  #kontakt input[type="text"],
  #kontakt input[type="tel"],
  #kontakt input[type="email"],
  #kontakt input[type="number"],
  #kontakt textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    padding: 10px 12px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px !important;
    color: var(--text-main);
    -webkit-text-fill-color: var(--text-main);
    background-color: var(--surface);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
  }

  #kontakt input:focus,
  #kontakt textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  }

  #kontakt_top #kontakt textarea,
  #kontakt textarea {
    min-height: 110px;
    height: auto;
    resize: vertical;
  }

  #kontakt_top #kontakt input[type="button"],
  #kontakt_top #kontakt input[type="submit"],
  #kontakt_top #kontakt input[type="reset"],
  #kontakt input[type="button"],
  #kontakt input[type="submit"],
  #kontakt input[type="reset"] {
    box-sizing: border-box;
    width: 100% !important;
    padding: 11px 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem !important;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--accent);
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
  }

  #kontakt input[type="button"]:hover,
  #kontakt input[type="submit"]:hover,
  #kontakt input[type="reset"]:hover {
    background-color: var(--accent-hover);
    opacity: 0.96;
  }

  .kontakt_item {
    width: auto;
    max-width: calc(100vw - 24px);
    text-wrap: normal !important;
    border-radius: var(--radius);
  }

  /* Gallery, slideshow & status */
  #slideshow {
    float: none;
    width: 100%;
    max-width: 100%;
    height: 220px;
    margin-bottom: 12px;
  }

  .gallery_item {
    box-sizing: border-box;
    width: calc(50% - 8px) !important;
    max-width: none !important;
    height: auto !important;
    display: inline-block;
    vertical-align: top;
    margin: 4px !important;
    padding: 4px;
    text-align: center;
    background-color: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
  }

  .gallery_item:hover {
    transform: translateY(-2px);
  }

  #response_inner_div img {
    width: 24px;
    height: auto;
    vertical-align: middle;
  }

  /* Footer on mobile */
  #page_bottom {
    flex-direction: column;
    padding: 16px 12px;
  }

  #bottom_services {
    display: none !important;
  }

  #page_bottom_middle {
    padding: 12px 16px;
  }
}