/* Melibel.cz — website styles. Colours, fonts and sizes come from theme.css (Administrace › Vzhled) as custom properties.
   Layout follows the former Divi site: sections with 54 px padding, rows 80 % wide up to the content width, columns that
   stack below 981 px and phone rules below 768 px. No inline styles anywhere (strict CSP). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 var(--size-body)/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-underline-offset: .15em; }
a:hover { opacity: .8; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-heading); font-weight: 400; line-height: 1.25; color: var(--color-heading); letter-spacing: .01em; overflow-wrap: break-word; }
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3, .h3 { font-size: var(--size-h3); }
ul { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--color-heading); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: .6rem 1rem; background: var(--color-accent); color: var(--color-accent-text); }
.skip:focus { left: 1rem; top: 1rem; }
.icon { flex: none; }

/* layout */
.container { width: 80%; max-width: var(--content-width); margin: 0 auto; }
.section { padding: 54px 0; position: relative; }
.section--soft { background: var(--color-bg-soft); }
.grid { display: grid; gap: 30px 5.5%; align-items: start; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--2-3 { grid-template-columns: 2fr 3fr; }
.grid--3-2 { grid-template-columns: 3fr 2fr; }
.section-title { font-size: var(--size-h2); }
.section-title--center { text-align: center; }
.h-sub { font-size: calc(var(--size-h2) * .9); margin-top: 1.2em; }
.lead { font-size: 1.1em; }
.rounded { border-radius: calc(var(--radius-image) + 2px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .35em 1.2em; border: 0; border-radius: var(--radius-button);
  background: var(--color-accent); color: var(--color-accent-text); font: 400 var(--size-button)/1.7 var(--font-button); text-decoration: none; cursor: pointer;
  transition: filter .2s, transform .2s; }
.btn:hover { opacity: 1; filter: brightness(1.05) saturate(1.1); transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-header-bg); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.site-header__in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-height); transition: min-height .25s; }
.site-header.is-scrolled .site-header__in { min-height: calc(var(--header-height) * .7); }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand__logo { height: var(--logo-height); width: auto; transition: height .25s; }
.site-header.is-scrolled .brand__logo { height: calc(var(--logo-height) * .75); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.6rem; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: .4rem 0; color: var(--color-menu); font: 600 var(--size-menu)/1.4 var(--font-menu); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--color-menu-active); }
.nav a.nav__pill { padding: 10px 16px; border-radius: 25px; background: var(--color-accent); color: var(--color-accent-text); }
.nav-toggle { display: none; align-items: center; gap: .4rem; padding: .4rem; border: 0; background: none; color: var(--color-menu); font: 600 var(--size-menu) var(--font-menu); cursor: pointer; }
.nav-toggle__close { display: none; }

/* hero */
.hero { position: relative; background: var(--color-bg-soft); }
.hero__img { width: 100%; height: clamp(240px, 52vw, 663px); object-fit: cover; object-position: center; }
.hero__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(1.5rem, 5vw, 4rem); background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .35)); }
.hero__title { margin: 0 0 .8rem; font-family: var(--font-heading); font-size: calc(var(--size-h1) * 1.2); line-height: 1.2; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }

/* home: intro */
.intro__logo { display: flex; justify-content: center; }
.intro__logo-img { width: 69%; margin: 96px auto 59px; }

/* home: philosophy */
.philo-list { display: grid; gap: 18px; padding-left: 1.2em; }
.philo-list li::marker { color: var(--color-icon); }
.philosophy__media { align-self: center; display: flex; justify-content: center; }   /* centred beside the text */
.blob { width: 100%; max-width: 480px; aspect-ratio: 1; overflow: hidden; border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; animation: blob 16s ease-in-out infinite alternate; }
.blob__img { width: 100%; height: 100%; object-fit: cover; }
@keyframes blob { 50% { border-radius: 42% 58% 38% 62% / 50% 40% 60% 50%; } }

/* home: references */
.refs { background: var(--color-ref-bg); padding: 47px 0 101px; overflow: hidden; isolation: isolate; }
.refs__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.refs__head { display: grid; justify-items: center; }
.refs__star { width: 85px; height: 85px; color: var(--color-star); fill: var(--color-star); }
.refs__title { font-size: calc(var(--size-h2) * 1.25); color: #000; line-height: 1.4; padding-bottom: 17px; }
.refs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 53px 5.5%; max-width: 990px; margin: 0 auto; }
.ref-card { display: flex; gap: 25px; align-items: flex-start; margin: 0; padding: 30px; background: #fff; box-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.ref-card__img { width: 122px; height: 122px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.ref-card__name { margin-bottom: .4em; font-weight: 600; font-size: 1.15em; color: var(--color-heading); }
.ref-card__text { margin: 0; }
.ref-card--hidden { opacity: .45; }
.ref-card__text.is-clamped { position: relative; overflow: hidden; }
.ref-card__text.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.4em; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.ref-card__more { margin-top: .5rem; padding: 0; border: 0; background: none; color: var(--color-link); font: 600 .95em/1.4 var(--font-body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.ref-card__more[hidden] { display: none; }

/* home: gallery */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 5.5%; padding: 0; list-style: none; }
.gallery__item { display: block; border-radius: var(--radius-image); overflow: hidden; }
.gallery__img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.gallery__item:hover { opacity: 1; }
.gallery__item:hover .gallery__img { transform: scale(1.04); }
.gallery__social { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 2rem 1rem; min-height: 220px; border-radius: 7px; background: var(--color-social); }

/* lightbox (site.js) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(15, 10, 8, .92); }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: .9rem; }

/* price list */
.cenik { padding-bottom: 147px; }
.cenik__grid { margin-top: 12px; }
.pricelist { display: grid; gap: 23px; padding: 0; list-style: none; }
.price__row { display: flex; align-items: baseline; gap: .6rem; }
.price__name { margin: 0; font: 400 17px/1.3 var(--font-body); color: var(--color-price); letter-spacing: 0; }
.price__dots { flex: 1; border-bottom: 2px dotted var(--color-line); transform: translateY(-.25em); min-width: 1rem; }
.price__value { font-weight: 700; font-size: 17px; line-height: 1.2; white-space: nowrap; }
.price__note { margin: .3em 0 0; font-size: 13px; line-height: 1.4; font-style: italic; }
.pay-note { display: flex; gap: .8rem; align-items: center; margin-top: 2.2rem; font-weight: 600; font-size: 16px; }
.pay-note .icon { color: var(--color-icon); }

/* contact */
.kontakt { padding-top: 97px; }
.kontakt__head { max-width: 1200px; margin: 0 auto 41px; padding: 1.4rem 1.5rem; text-align: center; background: var(--color-card); }
.kontakt__h1 { margin: 0 0 .2em; font-size: calc(var(--size-h1) * .75); color: var(--color-menu-active); }
.kontakt__lead { margin: 0; font-family: var(--font-heading); font-size: calc(var(--size-h2) * .95); line-height: 1.3; color: var(--color-heading); }
.kontakt__notice { margin: .6em 0 0; font-weight: 600; }
.kontakt__grid { padding: 20px 20px 0; }
.kontakt__form .h3, .kontakt__info .h3 { font-size: 23px; margin: 0 0 1rem; }
.kontakt__info .h3 { margin-top: 1.8rem; }
.kontakt__info .h3:first-child { margin-top: 0; }
.icon-list { display: grid; gap: 13px; padding: 0; list-style: none; }
.icon-list li { display: flex; align-items: center; gap: .9rem; }
.icon-list .icon { color: var(--color-icon); }
.icon-list--big { gap: 30px; font-size: 18px; }
.icon-list--big a { color: #000; text-decoration: none; }
.icon-list--soft .icon { opacity: .85; }
.kontakt__logo { width: 150px; margin-bottom: 1.4rem; }
.kontakt__address { font-size: 18px; line-height: 1.5; margin-bottom: .6rem; }
.kontakt__district { margin: 0; font-weight: 600; }
.kontakt__info p { margin-bottom: .4rem; }
.kontakt__info .icon-list--soft { margin-top: 1.4rem; }

/* reservation form */
.cform { max-width: 460px; }
.cform .input { width: 100%; margin: 0; padding: 14px; border: 1px solid #dac3ae; border-radius: 10px; background: #fff; color: #282828; font: 600 16px/1.4 var(--font-body); }
.cform .input::placeholder { color: #8a7d72; font-weight: 500; }
.cform .input:focus { outline: 2px solid var(--color-icon); outline-offset: 0; border-color: transparent; }
.cform .input[aria-invalid="true"] { border-color: #b3261e; }
.cform textarea.input { min-height: 220px; resize: vertical; }
.cform__field { margin-bottom: 15px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4%; }
.cform__label { margin: 10px 0 8px; font-weight: 600; }
.cform__err { margin: .3rem 0 0; color: #b3261e; font-size: 14px; font-weight: 600; }
.cform__err:empty { display: none; }
.cform__check { display: flex; gap: .6rem; align-items: flex-start; font-size: 15px; cursor: pointer; }
.cform__check input { width: 20px; height: 20px; margin-top: .2em; flex: none; accent-color: var(--color-icon); }
.cform__submit { text-align: center; margin-top: 30px; }
.cform__status { margin: 1rem 0 0; text-align: center; font-weight: 600; }
.cform__status:empty { display: none; }
.cform__status.is-error { color: #b3261e; }
.cform__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cform__noscript, .cform__off { padding: 1rem; border-radius: 10px; background: var(--color-card); font-weight: 600; }
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -.15em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* map */
.map-section { padding: 30px 0 0; }
.map { position: relative; height: 532px; background: #eadfd4; overflow: hidden; }
.map__canvas { position: absolute; inset: 0; z-index: 0; background: var(--color-bg-soft); font: inherit; }
/* Tiles toned to the sand and bronze of the site; the pin and the bubble use the theme colours. */
.map__canvas .leaflet-tile-pane { filter: grayscale(1) contrast(1.08) brightness(1.04); }
.map__canvas .leaflet-tint-pane { mix-blend-mode: multiply; }
.map__tint { fill: var(--color-map); }
.map__pin svg { overflow: visible; filter: drop-shadow(0 4px 6px rgba(60, 35, 10, .35)); }
.map__pin path { fill: var(--color-price); stroke: #fff; stroke-width: 2.5; }
.map__pin circle { fill: var(--color-accent); }
.map__canvas .leaflet-popup-content-wrapper { border-radius: 12px; background: #fff; color: var(--color-text); box-shadow: 0 8px 24px rgba(60, 35, 10, .25); }
.map__canvas .leaflet-popup-content { margin: .8rem 1rem; font: 400 15px/1.5 var(--font-body); }
.map__canvas .leaflet-popup-content strong { font-family: var(--font-heading); font-weight: 400; font-size: 1.1em; color: var(--color-heading); }
.map__canvas .leaflet-popup-content a { color: var(--color-link); font-weight: 600; }
.map__canvas .leaflet-bar a { color: var(--color-price); }
.map__canvas .leaflet-control-attribution { background: rgba(255, 255, 255, .8); font-size: 11px; }
.map__canvas .leaflet-control-attribution a { color: var(--color-link); }
.map__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; padding: 1.5rem; text-align: center;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .25) 0 12px, transparent 12px 24px), #eadfd4; }
.map__placeholder .icon { color: var(--color-icon); }
.map__addr { margin: 0; font-size: 18px; font-weight: 600; }
.map__note { margin: 0; font-size: 13px; opacity: .8; }
.map__link { display: inline-flex; gap: .4rem; align-items: center; color: inherit; font-weight: 600; }

/* thank you, 404, legal */
.thanks, .notfound { padding: 87px 0 160px; min-height: 60vh; }
.thanks__box { max-width: 760px; margin: 0 auto; text-align: center; }
.thanks__icon { width: 72px; height: 72px; margin: 0 auto 1rem; color: var(--color-accent); }
.thanks__h2 { font-family: var(--font-heading); font-size: var(--size-h3); color: var(--color-heading); margin: 0 0 1.6rem; }
.notfound__code { margin: 0; font-family: var(--font-heading); font-size: 96px; line-height: 1; color: var(--color-accent); }
.legal__doc { max-width: 820px; margin: 0 auto; }
.legal__doc h1 { text-align: center; }
.legal__updated { text-align: center; opacity: .75; margin-bottom: 2.5rem; }
.prose { font-size: 16px; }
.prose h2 { font-size: calc(var(--size-h3) * .95); margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }

/* footer */
.site-footer { background: var(--color-footer); color: #000; padding: 23px 0 0; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 5.5%; padding: 27px 0; }
.footer__logo-img { width: 100px; height: auto; margin-bottom: 1rem; }
.footer__col a { color: #000; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.site-footer .footer__logo:hover, .site-footer .footer__social a:hover { text-decoration: none; }
.footer__title { margin: 37px 0 .8rem; font: 700 var(--size-body)/1.4 var(--font-body); color: #000; letter-spacing: 0; }
.footer__links { padding-left: 1.2em; }
.footer__social { display: grid; gap: 5px; padding: 0; list-style: none; }
.footer__social a { display: inline-flex; gap: .8rem; align-items: center; padding: 2px 0; font-weight: 600; text-decoration: none; }
.footer__bottom { padding: 18px 0 12px; text-align: center; font-weight: 300; }

/* mobile quick-contact bar */
.mobile-bar { display: none; }

/* pop-up windows (site.js) */
.popup-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(20, 14, 10, .62); animation: fade .25s ease-out; }
.popup { position: relative; width: 100%; max-height: calc(100vh - 2rem); overflow: auto; border-radius: 14px; background: #fff; color: var(--color-text); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.popup--modal { animation: pop .3s ease-out; }
.popup--sm { max-width: 380px; } .popup--md { max-width: 540px; } .popup--lg { max-width: 780px; }
.popup--corner { position: fixed; z-index: 300; width: min(370px, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); animation: slide-up .45s cubic-bezier(.2, .8, .2, 1); }
.popup--br { right: 1rem; bottom: 1rem; } .popup--bl { left: 1rem; bottom: 1rem; }
.popup--tr { right: 1rem; top: 1rem; animation-name: slide-down; } .popup--tl { left: 1rem; top: 1rem; animation-name: slide-down; }
.popup--bar { position: fixed; z-index: 300; left: 0; right: 0; max-width: none; border-radius: 0; animation: slide-up .4s ease-out; }
.popup--top { top: 0; animation-name: slide-down; } .popup--bottom { bottom: 0; }
.popup--soft { background: var(--color-bg-soft); } .popup--accent { background: var(--color-accent); color: var(--color-accent-text); }
.popup--dark { background: #2b2522; color: #f6efe9; } .popup--dark h2 { color: #fff; } .popup--dark a:not(.btn) { color: #f0d2b4; }
.popup__body { padding: 1.6rem 1.6rem 1.4rem; }
.popup--bar .popup__body { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; max-width: var(--content-width); margin: 0 auto; padding: .9rem 3.5rem .9rem 1.2rem; }
.popup__title { margin: 0 0 .5em; font-size: calc(var(--size-h3) * 1.05); padding-right: 1.5rem; }
.popup--bar .popup__title { margin: 0; font-size: var(--size-body); font-family: var(--font-body); font-weight: 700; padding: 0; }
.popup__text p { margin: 0 0 .7em; }
.popup--bar .popup__text p { margin: 0; }
.popup__img { width: 100%; height: auto; }
.popup--img-top .popup__img { max-height: 320px; object-fit: cover; }
.popup--img-left .popup__wrap { display: grid; grid-template-columns: 40% 1fr; }
.popup--img-left .popup__img { height: 100%; object-fit: cover; }
.popup--img-only .popup__img { max-height: calc(100vh - 4rem); object-fit: contain; }
.popup__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; }
.popup--bar .popup__actions { margin: 0; }
.popup__close { position: absolute; top: .6rem; right: .6rem; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.popup__close:hover { background: rgba(0, 0, 0, .75); }
.popup__countdown { display: inline-flex; gap: .4rem; align-items: baseline; margin-top: .6rem; padding: .3rem .7rem; border-radius: 8px; background: rgba(0, 0, 0, .07); font-weight: 600; font-variant-numeric: tabular-nums; }
.popup__timer { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--color-icon); transform-origin: left; }
.popup__timer-text { display: block; margin-top: .6rem; font-size: .8rem; opacity: .7; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(110%); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-110%); } }

/* administrator notice in Coming soon mode, Coming soon page */
.preview-pill { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 400; display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; padding: .55rem 1rem; border-radius: 999px;
  background: #2b2522; color: #fff; font: 600 13px/1.3 system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.preview-pill a { color: #f0d2b4; }
.preview-pill__dot { width: .55rem; height: .55rem; border-radius: 50%; background: #f0a93b; }
.soon { min-height: 100vh; display: grid; place-items: center; background: var(--color-bg-soft); }
.soon__box { padding: 3rem 0; text-align: center; }
.soon__logo { width: 220px; margin: 0 auto 2rem; }
.soon__contact { margin-top: 2rem; }

/* e-mail link before the script has assembled it */
.js-mail__at { white-space: nowrap; }
.img-missing { display: grid; place-items: center; min-height: 120px; border: 2px dashed #c99b70; color: #8e5500; font-weight: 600; }

/* ───────── tablet ───────── */
@media (max-width: 980px) {
  .grid--2, .grid--2-3, .grid--3-2 { grid-template-columns: 1fr; }
  .intro__logo-img { width: 36%; margin: 0 auto 40px; }
  .philosophy__media { padding-top: 38px; }
  .blob { max-width: 66%; }
  .refs__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .site-header__in { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-basis: 100%; padding-bottom: 1rem; }
  .site-header.is-open .site-nav { display: block; }
  .site-header.is-open .nav-toggle__open { display: none; }
  .site-header.is-open .nav-toggle__close { display: inline; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; border-top: 3px solid var(--color-accent); }
  .nav a { display: block; padding: 20px 5%; }
  .nav a.nav__pill { margin: .6rem 5% 0; text-align: center; }
  .cenik__media { max-width: 54%; margin: 0 auto; }
  .kontakt__info { text-align: center; }
  .kontakt__info .icon-list li { justify-content: center; }
  .kontakt__logo { margin-left: auto; margin-right: auto; }
  .kontakt__form .h3 { text-align: center; }
  .cform { margin: 0 auto; }
}

/* ───────── phone ───────── */
@media (max-width: 767px) {
  .container { width: 90%; }
  .section { padding: 40px 0; }
  .ref-card { flex-direction: column; align-items: center; text-align: center; padding: 24px; }
  .ref-card__img { width: 90px; height: 90px; }
  .gallery__grid { grid-template-columns: 1fr; width: 82%; margin: 0 auto; gap: 24px; }
  .cenik__media { max-width: 81%; }
  .cform__row { grid-template-columns: 1fr; }
  .kontakt { padding-top: 40px; }
  .kontakt__grid { padding: 10px 0 0; }
  .map { height: 380px; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__title { margin-top: .5rem; }
  .footer__links { list-style: none; padding: 0; }
  .footer__logo-img { margin: 0 auto 1rem; }
  .footer__social { justify-items: center; }
  body:has(.mobile-bar) { padding-bottom: 76px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 10px; z-index: 90; display: flex; justify-content: space-between; padding: 0 15%; pointer-events: none; }
  .mobile-bar--1 { justify-content: center; } .mobile-bar--2 { justify-content: space-evenly; }
  .mobile-bar__btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 7px; background: var(--color-mobile-bar); color: #fff; pointer-events: auto; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
  .popup--img-left .popup__wrap { grid-template-columns: 1fr; }
  .popup--corner { left: .75rem; right: .75rem; width: auto; }
  .popup--br, .popup--bl { bottom: 76px; }
  .popup__body { padding: 1.3rem 1.2rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .mobile-bar, .site-footer, .map, .popup, .popup-overlay { display: none !important; }
}
