/*
 * Site-wide mobile-first polish — August 2026
 * Loaded after the existing page and campaign styles.
 * The rules are intentionally additive: they normalize touch ergonomics,
 * responsive rhythm and readable decision surfaces without changing content.
 */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  overflow-wrap: break-word;
}

html[lang] body.reservation-page:not(.home) .page-hero .reservation-launch-card p {
  color: #526177 !important;
}

main :where(h1, h2, h3),
.cta-section :where(h2, h3) {
  text-wrap: balance;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #0e7490 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(14, 116, 144, 0.16) !important;
}

:where(input, select, textarea):focus-visible {
  border-color: #0e7490 !important;
}

:where(section, h2, h3, [id]) {
  scroll-margin-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  :root {
    --mobile-gutter: max(16px, env(safe-area-inset-left));
    --mobile-gutter-right: max(16px, env(safe-area-inset-right));
    --mobile-section-space: clamp(40px, 11vw, 56px);
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    max-width: 100%;
    overflow-x: clip;
    font-size: 16px;
  }

  body.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }

  .container {
    padding-right: var(--mobile-gutter-right) !important;
    padding-left: var(--mobile-gutter) !important;
  }

  main :where(p, li) {
    line-height: 1.62;
  }

  main :where(h1, h2, h3) {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  main h2,
  .section-header h2,
  .cta-section h2 {
    font-size: clamp(1.75rem, 7.6vw, 2.15rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
  }

  main h3 {
    font-size: clamp(1.08rem, 4.9vw, 1.3rem);
    line-height: 1.28;
  }

  header {
    position: sticky !important;
    top: 0;
    z-index: 1100 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  header nav {
    min-height: 60px !important;
    gap: 8px;
    padding-block: 7px !important;
  }

  header .logo {
    min-width: 0;
    gap: 8px !important;
  }

  header .logo-img {
    width: 40px !important;
    min-width: 40px;
    height: 40px !important;
  }

  header .logo-text {
    min-width: 0;
  }

  header .logo-text strong,
  header .logo-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-header-actions,
  .mobile-call-btn,
  .hamburger {
    flex: 0 0 auto;
  }

  .mobile-call-btn,
  .hamburger,
  .mobile-language-button,
  .lang-dropdown-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px !important;
  }

  .nav-links.open,
  .nav-links.active {
    inset-inline: 0 !important;
    top: var(--mobile-nav-offset, 60px) !important;
    width: 100% !important;
    height: var(--mobile-nav-height, calc(100dvh - 60px)) !important;
    max-height: calc(100dvh - var(--mobile-nav-offset, 60px));
    padding: 14px 14px calc(24px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff !important;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14) !important;
  }

  .nav-links.open > li,
  .nav-links.active > li {
    width: 100%;
  }

  .nav-links.open > li > a,
  .nav-links.open > li > button,
  .nav-links.active > li > a,
  .nav-links.active > li > button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 14px !important;
    border-radius: 9px !important;
  }

  .nav-links.open .btn-nav-rezervace,
  .nav-links.active .btn-nav-rezervace {
    min-height: 52px;
    margin-top: 4px;
  }

  .page-hero {
    padding: 34px 0 36px !important;
    text-align: left !important;
  }

  .page-hero .container {
    overflow: visible !important;
  }

  .page-hero .breadcrumb {
    margin-bottom: 14px !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .page-hero h1 {
    max-width: 21ch !important;
    margin: 0 0 12px !important;
    font-size: clamp(2rem, 8.9vw, 2.45rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
  }

  .page-hero p {
    max-width: 38rem !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.52 !important;
  }

  .page-hero-actions,
  .hero-actions,
  .cta-buttons,
  .contact-actions,
  .faq-priority-actions,
  .mcb-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .page-hero-actions {
    margin-top: 18px !important;
  }

  .btn,
  .btn-nav-rezervace,
  .contact-action,
  .faq-question,
  .tab-btn,
  .pricing-expand-btn,
  .footer-accordion-trigger {
    min-height: 48px;
  }

  .btn,
  .contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px !important;
    font-size: 0.98rem !important;
    line-height: 1.25 !important;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    font-size: 16px !important;
  }

  textarea {
    min-height: 132px;
  }

  .content-wrapper,
  .article-content,
  .legal-content,
  .seo-content-wrapper {
    font-size: 1rem;
  }

  .content-wrapper > h2,
  .article-content > h2,
  .legal-content > h2 {
    margin-top: clamp(36px, 10vw, 52px) !important;
  }

  .content-wrapper > :where(p, ul, ol) + :where(p, ul, ol),
  .article-content > :where(p, ul, ol) + :where(p, ul, ol),
  .legal-content > :where(p, ul, ol) + :where(p, ul, ol) {
    margin-top: 1rem;
  }

  :where(.inline-cta, .faq-inline-cta, .reservation-info-box, .pricing-summary-note, .location-warning) {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  :where(.master-card, .info-card, .direction-card, .route-card, .location-card, .contact-card, .blog-card) {
    border-radius: 12px !important;
  }

  .faq-question {
    gap: 12px;
    padding: 15px 16px !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }

  .faq-answer {
    padding-inline: 16px !important;
  }

  .faq-jump-nav {
    scroll-padding-inline: var(--mobile-gutter);
  }

  .faq-jump-nav a {
    min-height: 44px !important;
    scroll-snap-align: start;
  }

  .faq-tools,
  .faq-search-wrap {
    border-radius: 12px !important;
  }

  .pricing-table-wrap,
  .table-responsive,
  .comparison-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-table th,
  .pricing-table td {
    min-width: 0;
    padding: 11px 9px !important;
    font-size: 0.86rem !important;
    line-height: 1.35 !important;
  }

  .cta-section {
    padding: var(--mobile-section-space) 0 !important;
  }

  .cta-section p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  footer {
    padding-top: 42px !important;
  }

  footer .footer-grid {
    gap: 20px !important;
  }

  footer .footer-accordion-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding-block: 12px !important;
  }

  footer a {
    text-underline-offset: 0.18em;
  }

  body:has(> .mobile-sticky-cta) {
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-sticky-cta {
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.09);
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.14) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-sticky-cta-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px !important;
    width: 100%;
    max-width: 560px !important;
    margin-inline: auto;
  }

  .mobile-sticky-cta-inner > a:first-child {
    min-width: 0;
    min-height: 52px !important;
    padding-inline: 14px !important;
    border-radius: 11px !important;
    font-size: 0.98rem !important;
  }

  .mobile-sticky-cta .msc-phone,
  .mobile-sticky-cta .reservation-assistant-launcher,
  .mobile-sticky-cta .reservation-assistant-button {
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 11px !important;
  }

  .whatsapp-float {
    right: 12px !important;
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
    width: 50px !important;
    height: 50px !important;
  }
}

@media (max-width: 640px) {
  body.faq-page .faq-priority-list {
    gap: 10px !important;
    margin-inline: calc(-1 * var(--mobile-gutter)) !important;
    padding-inline: var(--mobile-gutter) !important;
    scroll-padding-inline: var(--mobile-gutter);
    scroll-snap-type: x mandatory !important;
  }

  body.faq-page .faq-priority-list li,
  body.faq-page .faq-priority-list li:first-child {
    flex-basis: min(82vw, 300px) !important;
    min-height: 0 !important;
    padding: 15px 16px 15px 38px !important;
  }

  body.calm-design.pricing-page .price-quick-grid {
    display: grid !important;
    grid-auto-columns: min(74vw, 270px) !important;
    grid-auto-flow: column;
    grid-template-columns: none !important;
    gap: 10px !important;
    width: auto !important;
    margin: 18px 0 12px !important;
    padding: 0 var(--mobile-gutter) 6px !important;
    overflow-x: auto;
    scroll-padding-inline: var(--mobile-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.calm-design.pricing-page .price-quick-grid::-webkit-scrollbar,
  body.calm-design.pricing-page .seasonal-tabs::-webkit-scrollbar {
    display: none;
  }

  body.calm-design.pricing-page .price-quick-card {
    min-height: 116px !important;
    align-items: flex-start !important;
    justify-content: center;
    padding: 16px !important;
    text-align: left !important;
    scroll-snap-align: start;
  }

  body.calm-design.pricing-page .price-quick-card span,
  body.calm-design.pricing-page .price-quick-card small {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  body.calm-design.pricing-page .price-quick-card strong {
    font-size: 1.1rem !important;
    line-height: 1.2 !important;
  }

  body.calm-design.pricing-page .seasonal-tabs {
    display: grid !important;
    grid-auto-columns: minmax(190px, 72vw);
    grid-auto-flow: column;
    grid-template-columns: none !important;
    justify-content: start;
    width: auto !important;
    margin-inline: 0 !important;
    padding: 4px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.calm-design.pricing-page .seasonal-tabs .tab-btn {
    min-height: 48px;
    justify-content: flex-start;
    scroll-snap-align: start;
  }

  .mobile-sticky-cta .msc-price {
    display: none !important;
  }
}

@media (max-width: 380px) {
  :root {
    --mobile-gutter: max(14px, env(safe-area-inset-left));
    --mobile-gutter-right: max(14px, env(safe-area-inset-right));
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 9.2vw, 2.15rem) !important;
  }

  header .logo-text strong {
    max-width: 126px !important;
  }

  .mobile-sticky-cta-inner > a:first-child {
    font-size: 0.92rem !important;
  }
}
