/* Podlahy Bohemia – mobilní a tabletové doladění, listopad 2026.
   Načítá se až po style.css a galerie.css a zachovává desktop. */

@media (max-width: 1180px) {
  .header { z-index: 50; }
  .menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 11px;
    margin-left: auto;
    border: 1px solid rgba(97, 63, 39, .22);
    border-radius: 9px;
    background: rgba(255, 252, 247, .64);
    transition: background .2s ease;
  }
  .menu-toggle span { width: 24px; flex: 0 0 2px; }
  .menu-toggle:hover { background: #fffaf3; }
  .header .nav {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px max(22px, 5vw) 24px;
    border-top: 1px solid #ddc9b4;
    box-shadow: 0 16px 32px rgba(55, 33, 20, .16);
  }
  .header .nav a { line-height: 1.45; }
  .header .nav .nav__mobile-cta {
    min-height: 49px;
    justify-content: space-between;
    background: #59341f;
    color: #fff;
  }
  body.mobile-menu-open { overflow: hidden; }
  body.mobile-menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(32, 22, 15, .26);
    z-index: 19;
    pointer-events: auto;
  }
}

@media (max-width: 1030px) {
  .brands__descriptor { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
  .brands__unit { min-width: 0; }
  .brands__button { max-width: 100%; }
  .contact__links a { overflow-wrap: anywhere; }
}

@media (max-width: 850px) {
  /* Na menších tabletech neschovávat zbytečně prostor za dvěma CTA.
     Poptávka je první výrazné tlačítko uvnitř mobilního menu. */
  .header__cta { display: none; }
  .wordmark--editorial { margin-right: auto; }
  .menu-toggle { margin-left: 0; }
  .header .nav { max-height: calc(100dvh - 82px); }
  .album-intro__side { display: none; }
}

@media (max-width: 690px) {
  .header__inner { width: calc(100% - 32px); min-height: 72px; gap: 10px; }
  .wordmark--editorial { gap: 9px; }
  .wordmark__seal { width: 58px; height: 58px; }
  .wordmark__divider { height: 38px; }
  .wordmark__lines { font-size: 18px; line-height: 1.03; }
  .wordmark__tagline { display: none; }
  .header .nav {
    padding: 12px 18px 22px;
    max-height: calc(100dvh - 72px);
  }
  .header .nav a { padding: 12px 8px; font-size: 16px; }
  .header .nav .nav__mobile-cta { margin-top: 16px; padding: 14px 17px; }

  .hero { min-height: auto; }
  .hero__inside { padding-top: 73px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(33px, 8.2vw, 46px); line-height: 1.19; }
  .hero__intro { max-width: 38ch; font-size: 14px; line-height: 1.7; }
  .hero__actions { max-width: 100%; }
  .hero__actions .button { min-height: 52px; padding: 14px 17px; font-size: 13px; }
  .hero__foot { padding: 15px 0; line-height: 1.4; }

  /* Reference jsou na telefonu větší a snadněji otevřitelné. */
  .projects__grid { grid-template-columns: 1fr; gap: 18px; }
  .project { display: block; }
  .project > img { height: clamp(210px, 59vw, 320px); }
  .project__body { min-height: 76px; padding: 16px 17px; gap: 10px; }
  .project__body strong { font-size: 15px; line-height: 1.4; }
  .project__body small { font-size: 12px; }
  .project__body > span:last-child { font-size: 22px; }
  .notable-card__image { height: clamp(210px, 58vw, 290px); }
  .notable-card__info { min-height: 92px; padding: 16px; }
  .notable-card__info > strong { max-width: 48%; }
  .notable-card__info > span { max-width: 51%; overflow-wrap: anywhere; }

  .footer__top { padding: 26px 0 20px; }
  .footer__top nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-top: 22px;
  }
  .footer__top nav a { font-size: 12px; line-height: 1.5; }
  .footer__contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    padding: 24px 0 28px;
  }
  .footer__contact-block--company,
  .footer__contact-block--registry { grid-column: auto; }
  .footer__contact-block { gap: 5px; }
  .footer__contact-label { margin-bottom: 2px; }
  .footer__contact-phone { font-size: 18px; white-space: normal; }
  .footer__contact-detail { font-size: 12px; }
  .footer__bottom { padding-bottom: 25px; }

  /* Mobilní formulář: pohodlný dotyk a bez automatického přiblížení na iPhonu. */
  .contact-form { padding: 25px 20px; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { min-height: 48px; font-size: 16px; max-width: 100%; }
  .contact-form textarea { min-height: 128px; }
  .contact-form .button--send { width: 100%; min-height: 52px; }

  /* Album ve větším náhledu na telefonu a dostatečně velká tlačítka. */
  .album-page { padding-bottom: 64px; }
  .album-intro { padding-bottom: 38px; }
  .album-breadcrumb { gap: 8px; margin-bottom: 25px; }
  .album-intro h1 { overflow-wrap: break-word; }
  .album-gallery { gap: 14px; }
  .album-gallery__item, .album-gallery__item--hero { aspect-ratio: 4 / 3; }
  .album-gallery__zoom { width: 42px; height: 42px; right: 12px; bottom: 12px; }
  .album-more { margin-top: 58px; }
  .album-more__grid a { padding: 21px 22px; }
  .album-dialog { width: 100vw; height: 100dvh; }
  .album-dialog__bar { min-height: 65px; gap: 8px; }
  .album-dialog__bar p { flex: 1; min-width: 0; max-height: 2.8em; overflow: hidden; line-height: 1.4; }
  .album-dialog__bar span { margin-left: 0; font-size: 11px; }
  .album-dialog__close { width: 44px; height: 44px; flex-basis: 44px; }
  .album-dialog__stage { height: calc(100% - 110px); padding: 12px 2px; }
  .album-dialog__stage img { max-width: 100%; max-height: 100%; }
  .album-dialog__arrow { width: 44px; height: 56px; font-size: 36px; background: rgba(24,17,14,.75); }
  .album-dialog__arrow--prev { left: 0; }
  .album-dialog__arrow--next { right: 0; }

  .reports-coming { padding: 42px 0 65px; }
  .reports-coming__feature { gap: 11px; }
  .reports-coming__mascot { width: min(230px, 60vw); }
  .reports-coming__copy h1 { font-size: clamp(31px, 8vw, 43px); }
  .reports-coming__description { line-height: 1.7; }
}

@media (max-width: 360px) {
  .header__inner { width: calc(100% - 24px); }
  .wordmark__seal { width: 52px; height: 52px; }
  .wordmark__lines { font-size: 16px; }
  .wordmark__divider { height: 34px; }
  .menu-toggle { width: 46px; min-width: 46px; height: 46px; }
  .hero h1 { font-size: 32px; }
  .hero__inside { padding-top: 58px; padding-bottom: 52px; }
  .hero__foot { font-size: 9px; }
  .brands__heading h2 { overflow-wrap: break-word; }
  .brand-identity__name--oil { font-size: 38px; }
  .brand-identity__name--floors { font-size: 35px; }
  .album-intro h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle { transition: none; }
}
