/* ==========================================================================
   chatmc.cz - responzivni upravy
   Body: 1280 / 1100 / 900 (tablet) / 700 / 480 (mobil)
   ========================================================================== */

@media (max-width: 1280px) {
  .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .site-foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (max-width: 1100px) {
  .site-nav ul { gap: 0; }
  .site-nav li a { padding: 8px 9px; font-size: 0.92rem; }
  .site-nav__cta .btn--ghost { display: none; }
  .two, .two--rev { grid-template-columns: 1fr; }
  .two--rev > :first-child { order: 1; } .two--rev > :last-child { order: 2; }
  .story__top { grid-template-columns: 1fr; }
  .story__stage { grid-template-columns: 1fr; }
  .story__text { min-height: 0; }
  .config { grid-template-columns: 1fr; }
  .config__panel { position: static; }
  .seq { grid-template-columns: 1fr; }
  .os { grid-template-columns: 1fr; }
  .queue-band { grid-template-columns: 1fr; }
  .fblock, .fblock:nth-child(even) { grid-template-columns: 1fr; }
  .fblock:nth-child(even) > :first-child { order: 0; }
  .fblock__text { position: static; }
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__grid .shot { margin-bottom: 0; }
  .page-hero--overlap + .sec { padding-top: var(--sec-pad); }
  .c-5, .c-6, .c-7, .c-4, .c-8 { grid-column: span 12; }
  .c-start-2, .c-start-7, .c-start-8 { grid-column-start: auto; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* hlavicka - mobilni menu */
  .site-head__toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 76px 0 0; background: var(--paper); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 24px var(--gutter); gap: 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s; overflow: auto; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav li a { font-size: 1.35rem; font-family: var(--font-display); font-weight: 700; padding: 14px 8px; }
  .site-nav__cta { flex-direction: column; }
  .site-nav__cta .btn--ghost { display: inline-flex; }
  .site-nav__cta .btn { justify-content: center; }
  body.nav-open { overflow: hidden; }

  /* hero - vrstvy zjednodusit, zadny overflow */
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { aspect-ratio: 16 / 12; min-height: 0; }
  .hero__layer--widget { display: none; }
  .hero__layer--conv { left: 0; width: 60%; top: 40%; }
  .hero__layer--map { right: 0; width: 46%; top: 28%; }
  .hero__layer--visitor { right: 4%; width: 28%; }

  /* FeatureScroller -> swipe carousel */
  .scroller { display: block; }
  .scroller__sticky { position: static; }
  .scroller__shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: auto; padding-bottom: 12px; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .scroller__shots::-webkit-scrollbar { display: none; }
  .scroller__shot { position: static; flex: 0 0 86%; opacity: 1; transform: none; pointer-events: auto; scroll-snap-align: center; }
  .scroller__shot .shot { height: auto; }
  .scroller__steps { padding-top: 24px; display: grid; gap: 8px; }
  .scroller__step { min-height: 0; opacity: 1; padding: 14px 0 14px 18px; }
  .scroller__step:last-child { min-height: 0; }
  .scroller__step h3 { font-size: 1.3rem; }
  .scroller__step p { margin: 0; }

  .mock { grid-template-columns: 150px 1fr; aspect-ratio: 16 / 12; }
  .mock__side { padding: 12px 10px; }
  .mock__nav { padding: 6px 8px; font-size: 11px; }
  .mock__grid { grid-template-columns: repeat(6, 1fr); }
  .mock[data-layout] .mock__block { grid-column: span 3; grid-row: span 1; }
  .mock[data-layout] .b3, .mock[data-layout] .b4 { grid-column: span 6; grid-row: span 2; }

  .seq__stage { grid-template-columns: 1fr; aspect-ratio: auto; }
  .seq__aside { border-left: 0; border-top: 1px solid var(--ink-line); }
  .facts, .facts--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .stk { font-size: 0.72rem; padding: 6px 9px; }
  .stk-arrow { width: 54px !important; }
  .panel__num { position: static; margin-bottom: 8px; }
  .hero__stage .stk { font-size: 0.68rem; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .site-foot__brand { grid-column: span 2; }
  .form__row { grid-template-columns: 1fr; }
  .map-band__text { position: static; margin-top: 16px; max-width: none; }
  .gallery__item { flex-basis: 84vw; }
  .story__stops button { font-size: 0.72rem; padding: 6px 0; }
}

@media (max-width: 700px) {
  :root { --sec-pad: 64px; }
  h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  h2 { font-size: clamp(1.9rem, 8.5vw, 3rem); }
  .h-giant { font-size: clamp(2.7rem, 13vw, 5rem); }
  .hero { padding-top: 40px; }
  .hero__lead { font-size: 1.1rem; }
  .hero__stage { aspect-ratio: 4 / 5; }
  .hero__layer--dash { width: 100%; inset: 0 0 auto 0; }
  .hero__layer--conv { width: 68%; top: 30%; left: -3%; }
  .hero__layer--map { width: 50%; top: 20%; right: -3%; }
  .hero__layer--visitor { width: 34%; right: 2%; bottom: 0; }
  .areas { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .story__stops { grid-template-columns: repeat(3, 1fr); row-gap: 4px; }
  .story__stops li:first-child button, .story__stops li:last-child button { text-align: center; }
  .story__stops button { text-align: center; }
  .story__text h3 { font-size: 1.7rem; }
  .ba__knob { width: 44px; height: 44px; }
  .ba__label { font-size: 0.75rem; }
  .btn { padding: 13px 18px; }
  .btn--lg { padding: 15px 20px; font-size: 1rem; }
  .btn-row .btn, .hero__actions .btn, .cta-final__actions .btn { width: 100%; justify-content: center; }
  .queue-band { padding: 24px; }
  .site-foot__grid { grid-template-columns: 1fr; }
  .site-foot__brand { grid-column: auto; }
  .faq summary { font-size: 1.05rem; padding-right: 36px; }
  .layouts { grid-template-columns: repeat(3, 1fr); }
  .swatches { grid-template-columns: repeat(5, 36px); }
  .mock { font-size: 11px; grid-template-columns: 1fr; aspect-ratio: auto; }
  .mock__side { display: none; }
  .mock__grid { min-height: 300px; grid-auto-rows: minmax(70px, auto); }
  .mock[data-layout] .mock__block { grid-column: span 6; }
  .mock[data-layout] .b1, .mock[data-layout] .b2 { grid-column: span 3; }
  .kb { font-size: 0.85rem; padding: 16px; }
  .seq__steps button { padding: 12px 12px 12px 50px; }
  .seq__steps button::before { left: 12px; }
  .shot--phone { border-width: 4px; border-radius: 28px; }
  .who > div { padding: 24px 20px; }
  .stk-arrow { display: none; }
  .steps li { padding: 22px; }
  .page-hero h1 { max-width: none; }
  .domains li { font-size: 0.78rem; padding: 6px 9px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .brand__name { font-size: 1.15rem; }
  .site-head__in { height: 66px; }
  .site-nav { inset: 66px 0 0; }
  .story__stops { font-size: 0.7rem; }
  .gallery__item { flex-basis: 88vw; }
  .gallery__btn { width: 42px; height: 42px; }
  .hero__note { font-size: 0.85rem; }
  .facts strong { font-size: 1.05rem; }
}

/* pohyb - respektovat systemove nastaveni */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .hero--load .hero__layer { opacity: 1; transform: none; }
  .reveal > * { clip-path: none; }
  .story__shot, .scroller__shot { transform: none; }
}

/* tisk - jen obsah */
@media print {
  .site-head, .site-foot, .cta-final, .gallery__nav, .story__control { display: none; }
  .sec { padding: 24px 0; }
  .shot { box-shadow: none; }
}

/* doplnky file-CMS verze */
@media (max-width: 1100px) { .products { grid-template-columns: 1fr; } .site-foot__cols { grid-template-columns: repeat(3, 1fr); } .band { grid-template-columns: 1fr; } .story__stage { grid-template-columns: 1fr; } .fblock { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .hero__frame { padding-bottom: 16%; } .hero__layer--a { width: 60%; } .hero__layer--b { width: 30%; } .split { grid-template-columns: 1fr; } .split__yellow .shot { transform: none; max-width: none; } }
@media (max-width: 700px) { .site-foot__cols { grid-template-columns: repeat(2, 1fr); } .sticker { font-size: 0.7rem; padding: 6px 9px; } .story__num { font-size: 2rem; } .story__panel { padding: 20px; border-radius: 18px; } .fblock { padding: 20px; border-radius: 18px; } }
@media (max-width: 700px) { .hero__layer--b, .sticker--br { display: none; } .hero__layer--a { width: 58%; bottom: -5%; left: -3%; } .hero__frame { padding-bottom: 16%; } .sticker--bl { bottom: 18%; } }
@media (max-width: 1100px) { .post-grid, .post-grid--4 { grid-template-columns: repeat(2, 1fr); } .article__grid { grid-template-columns: minmax(0, 1fr); padding-top: calc(clamp(60px, 8vw, 140px) + 24px); } .article__side { position: static; } .share { grid-auto-flow: column; justify-content: start; } .share strong { display: none; } }
@media (max-width: 700px) { .post-grid, .post-grid--2, .post-grid--3, .post-grid--4 { grid-template-columns: 1fr; } .post-card--big { grid-template-columns: 1fr; } .post-card--big .post-card__img { min-height: 220px; aspect-ratio: 16 / 9; } .art-cols { grid-template-columns: 1fr; } .art-gallery { grid-template-columns: 1fr 1fr !important; } .article__hero img { aspect-ratio: 16 / 10; border-radius: 14px; } .lightbox { padding: 16px; } .lightbox__prev, .lightbox__next { display: none; } }
