/* Máma mele kafe — hravý web */

:root {
  /* neutrální základ: téměř černý text, teplý krémový papír */
  --ink: #17131C;
  --cream: #FFF6EA;
  --paper: #FFFCF6;
  --text: #3A3440;
  --text-light: #5F5866;
  --text-dark: #26212B;

  /* paleta — výrazné barvy jen jako akcenty, pastelové na plochy */
  --blue: #0220FF;
  --periwinkle: #919EFF;
  --sky: #67B9F9;
  --pink: #F992B4;
  --coral: #FA7777;
  --magenta: #FF0072;
  --apricot: #FFA84B;
  --yellow: #FFC600;
  --lilac: #C39DFB;
  --butter: #FBE69D;
  --violet: #6814EF;
  --rust: #A8451F;

  --font-body: 'Outfit', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-hero: 'Archivo', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --container: 1180px;

  /* Nastavení pohybu: rychlost pásu s nápisy a vzdálenost, ze které vyjíždějí bloky */
  --marquee-speed: 28s;
  --float-speed: 4.2s;
  --reveal-dist: 22px;
}

html[data-motion="zive"] {
  --float-speed: 2.6s;
  --reveal-dist: 40px;
}

html {
  /* kotvy z menu nesmí zajet pod přilepenou hlavičku */
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  /* clip (na rozdíl od hidden) nevytváří scrollovací kontejner, takže sticky hlavička funguje */
  overflow-x: hidden;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

.container {
  max-width: var(--container);
  margin-inline: auto;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wave {
  line-height: 0;
  /* překryv o 1 px, ať mezi vlnou a sousední sekcí neprosvítá tenká linka */
  margin-block: -1px;
}

.wave svg {
  display: block;
  width: 100%;
  height: clamp(34px, 4vw, 58px);
}

@keyframes mmkMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mmkFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-7px) rotate(var(--r, 0deg)); } }

/* ---------- Samolepky (přepínač „Hravost“) ---------- */

html[data-stickers="off"] [data-sticker] {
  display: none;
}

[data-float] {
  animation: mmkFloat var(--float-speed) ease-in-out infinite;
}

html[data-motion="vypnuto"] [data-float] {
  animation: none;
}

/* ---------- Postupné objevování bloků při scrollu ---------- */

.js-reveal [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(var(--reveal-dist));
}

.js-reveal [data-reveal].is-revealing {
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
}

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 16px 0;
  transition: padding-top .25s var(--ease-out);
}

/* Po odscrollování se hlavička přitáhne k okraji, ať nad ní neprosvítá obsah. */
html.is-scrolled .site-header {
  padding-top: 6px;
}

/* Logo vlevo, odkazy přesně uprostřed (dokud nenarazí na logo), hamburger vpravo. */
.nav {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  /* souměrný padding, aby střed odkazů byl přesně ve středu pilulky */
  padding: 9px;
  box-shadow: 0 5px 0 var(--ink);
  /* nad ztmavením od otevřeného mobilního menu */
  position: relative;
  z-index: 1;
}

.nav__logo {
  grid-column: 1;
  justify-self: start;
  /* 9 px doplňuje levý okraj pilulky na původních 18 px, 12 px je nejmenší mezera k odkazům */
  margin: 0 12px 0 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo img {
  width: 58px;
  height: 58px;
  display: block;
}

.nav__links {
  grid-column: 2;
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/*
  Odkazy se při nedostatku místa k sobě přibližují: main.js zmenšuje --link-pad
  z 13 px až na 4 px. Když se nevejdou ani tak, přepne na hamburger (třída nav-compact).
*/
.nav__links a {
  display: block;
  padding: 8px var(--link-pad, 13px);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.nav__links a:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* Aktuální sekce (main.js) nebo pobočka, na jejíž stránce jsme. */
.nav__links a[aria-current],
.mobile-menu a[aria-current] {
  background: var(--butter);
  color: var(--ink);
}

.nav__toggle {
  grid-column: 3;
  justify-self: end;
  margin-left: 12px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 19px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Otevřené menu: z hamburgeru křížek */
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  max-width: var(--container);
  margin: 10px auto 0;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 28px;
  /* druhý stín ztmaví stránku pod menu */
  box-shadow: 0 5px 0 var(--ink), 0 0 0 100vmax rgb(23 19 28 / .35);
  padding: 10px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
}

.mobile-menu a:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* Na mobilu nižší hlavička, ať na malém displeji nezabírá tolik místa. */
@media (max-width: 599.98px) {
  .site-header { padding-top: 10px; }
  .nav { padding: 6px; }
  .nav__logo img { width: 48px; height: 48px; }
  .nav__toggle { width: 42px; height: 42px; }
}

/* Hamburger vs. odkazy: s JS rozhoduje main.js podle skutečné šířky (nav-fit / nav-compact),
   bez JS platí pevná hranice, od které se odkazy vejdou s plnými okraji 13 px. */
@media (max-width: 459.98px) {
  html:not(.nav-fit) .nav__links { display: none; }
}

@media (min-width: 460px) {
  html:not(.nav-fit) .nav__toggle,
  html:not(.nav-fit) .mobile-menu { display: none; }
}

html.nav-fit:not(.nav-compact) .nav__toggle,
html.nav-fit:not(.nav-compact) .mobile-menu,
html.nav-compact .nav__links {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(36px, 6vw, 80px) 16px clamp(40px, 6vw, 72px);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__blob--yellow {
  top: -90px;
  right: -70px;
  width: 360px;
  height: 360px;
  background: var(--lilac);
  opacity: .5;
}

.hero__blob--mint {
  top: 320px;
  left: -120px;
  width: 260px;
  height: 260px;
  background: var(--sky);
  opacity: .38;
}

.hero__grid {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__text {
  padding-bottom: 30px;
}

.hero__title {
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: clamp(46px, 8.4vw, 92px);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 18px 0 0;
}

.hero__title-accent {
  display: inline-block;
  position: relative;
}

.hero__title-accent svg {
  position: absolute;
  left: 0;
  bottom: -.1em;
  width: 100%;
  height: .18em;
  overflow: visible;
}

.hero__tagline {
  font-family: var(--font-hand);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
  color: var(--rust);
  margin: 14px 0 0;
  transform: rotate(-1.2deg);
  text-wrap: balance;
}

.hero__lead {
  max-width: 30em;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--text);
  margin: 18px 0 0;
  text-wrap: pretty;
}

.hero__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.carousel {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 300px 300px 36px 36px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--pink);
  transform: rotate(-1.5deg);
}

.carousel__track {
  display: flex;
  width: 100%;
  transition: transform .6s var(--ease-out);
}

.carousel__track img {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Na mobilu nižší fotka, ať se celý karusel vejde na displej. */
@media (max-width: 599.98px) {
  .carousel__track img { aspect-ratio: 1 / 1; }
}

.carousel__btn {
  position: absolute;
  bottom: 74px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 3px 0 var(--ink);
}

.carousel__btn:hover {
  background: var(--yellow);
}

.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }

.carousel__btn[hidden],
.carousel__dots[hidden] {
  display: none;
}

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
}

.carousel__dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  cursor: pointer;
  padding: 0;
  background: var(--butter);
  transition: width .25s var(--ease-out), background-color .25s ease;
}

/* Větší plocha pro prst, tečka sama zůstává malá. */
.carousel__dot::after {
  content: "";
  position: absolute;
  inset: -14px -4px;
}

/* Aktivní fotka: růžová jako stín karuselu, protažená do pilulky. */
.carousel__dot[aria-current="true"] {
  width: 26px;
  border-radius: 999px;
  background: var(--pink);
}

.sticker {
  position: absolute;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
}

.sticker--rating {
  --r: 9deg;
  top: 18px;
  left: -14px;
  background: var(--paper);
  padding: 10px 14px;
  transform: rotate(9deg);
}

.sticker--rating strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.sticker--rating span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
}

.sticker--years {
  --r: -7deg;
  bottom: -18px;
  right: -10px;
  background: var(--sky);
  padding: 12px 16px;
  transform: rotate(-7deg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
  text-align: center;
}

.sticker--years span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
}

/* ---------- Běžící pás ---------- */

.marquee {
  background: #241610;
  color: var(--cream);
  padding: 14px 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: mmkMarquee var(--marquee-speed) linear infinite;
}

html[data-motion="vypnuto"] .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .01em;
  white-space: nowrap;
}

.star--yellow { color: var(--yellow); }
.star--mint { color: var(--pink); }
.star--orange { color: var(--apricot); }

/* ---------- Společné nadpisy sekcí ---------- */

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(34px, 4vw, 52px);
}

.section-head p {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--text);
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
}

/* ---------- O Mámě ---------- */

.about {
  padding: clamp(30px, 5vw, 60px) 16px clamp(56px, 7vw, 100px);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.about__title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 18px 0 0;
  text-wrap: balance;
}

.about__body {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  font-size: 17px;
  color: var(--text);
  max-width: 34em;
  text-wrap: pretty;
}

.about__body p {
  margin: 0;
}

.about__media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

/* Na mobilu je ilustrace jen doprovodná, nemusí zabrat celý displej. */
@media (max-width: 599.98px) {
  .about__media { max-width: 300px; }
}

.about__photo {
  border: 3px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: -10px 10px 0 var(--periwinkle);
  transform: rotate(1.6deg);
}

.about__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about__note {
  position: absolute;
  top: -26px;
  left: -6px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  transform: rotate(-4deg);
}

.about__note span {
  font-family: var(--font-hand);
  font-size: 27px;
  color: var(--ink);
}

.about__note svg {
  width: 52px;
  height: 40px;
  flex-shrink: 0;
}

/* ---------- Lokace ---------- */

.locations {
  position: relative;
  background: var(--butter);
  border-block: 3px solid var(--ink);
  padding: clamp(56px, 7vw, 96px) 16px;
}

.locations__title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 16px 0 0;
  text-wrap: balance;
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 26px;
}

.place {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
}

.place__media {
  position: relative;
}

.place__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}

.place__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.place__badge--yellow {
  background: var(--yellow);
  transform: rotate(-3deg);
}

.place__badge--mint {
  background: var(--pink);
  transform: rotate(2.5deg);
}

.place__body {
  padding: clamp(20px, 6vw, 26px);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

/* Barva pobočky podle jejího tlačítka „Navigovat“, jen sytější, aby byl malý text čitelný. */
.place--bike,
.spot--bike,
.site-footer__place--bike { --place-accent: #4F5FE8; }

.place--espresso,
.spot--espresso,
.site-footer__place--espresso { --place-accent: #C23F74; }

.place__kicker {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--place-accent, var(--violet));
  text-wrap: balance;
}

.place__name {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 6px 0 0;
}

.place__desc {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.place__info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 15.5px;
  color: var(--text-dark);
}

.place__info li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.place__info .icon {
  color: var(--place-accent, var(--violet));
  margin-top: 2px;
}

.btn-pill {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-pill:hover {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
  color: var(--ink);
}

.place__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Na mobilu se tlačítka nevejdou vedle sebe, tak ať jsou pod sebou stejně široká. */
@media (max-width: 479.98px) {
  .place__actions .btn-pill {
    flex: 1 1 auto;
    text-align: center;
  }
}

.btn-pill--plain { background-color: var(--paper); }

.btn-pill--blue { background-color: var(--periwinkle); }
.btn-pill--pink { background-color: var(--pink); }

.map {
  margin-top: 26px;
  border: 3px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 8px 0 var(--ink);
  height: clamp(260px, 34vw, 400px);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(23 19 28 / .07) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgb(23 19 28 / .07) 39px 40px),
    var(--paper);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map__canvas {
  width: 100%;
  height: 100%;
  background: transparent;
  font-family: var(--font-body);
  /* vrstvy Leafletu (z-index 400–1000) zůstanou uvnitř mapy a nepřekreslí hlavičku */
  isolation: isolate;
}

/* Špendlík: štítek s názvem pobočky a špičkou dole, špička míří na souřadnici. */
.map-pin {
  background: none;
  border: 0;
}

.map-pin__label {
  position: absolute;
  left: 0;
  bottom: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink);
  font: 700 14px/1.1 var(--font-display);
  color: var(--ink);
}

.map-pin__label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  margin: -5px 0 0 -6px;
  background: inherit;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}

.map-pin--blue .map-pin__label { background: var(--periwinkle); }
.map-pin--pink .map-pin__label { background: var(--pink); }

.map .leaflet-popup-content-wrapper {
  border: 2px solid var(--ink);
  border-radius: 16px;
  font: 400 14px/1.4 var(--font-body);
  color: var(--text-dark);
}

.map .leaflet-popup-content a { font-weight: 600; }

/* Odsunout ovládání a autorství od zaoblených rohů rámečku. */
.map .leaflet-top.leaflet-left { margin: 8px 0 0 8px; }
.map .leaflet-control-attribution { margin-right: 18px; }

/* ---------- Nabídka ---------- */

.menu {
  padding: clamp(56px, 7vw, 100px) 16px clamp(56px, 7vw, 90px);
}

.menu__title {
  font-size: clamp(40px, 7vw, 82px);
  line-height: .95;
  letter-spacing: -.035em;
  margin: 16px 0 0;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 26px;
}

.menu-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 32px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 8px 0 var(--ink);
  /* fotky dole v obou kartách na stejné výšce */
  display: flex;
  flex-direction: column;
}

.menu-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.menu-card__head img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ink);
  flex-shrink: 0;
}

.menu-card__title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

.menu-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 2px dotted rgb(23 19 28 / .22);
}

.menu-list li:last-child {
  border-bottom: 0;
}

.menu-list__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.menu-list__desc {
  font-size: 15px;
  color: var(--text-light);
  text-align: right;
}

/* Na mobilu vždy název a pod ním popis, ať řádky nevypadají každý jinak. */
@media (max-width: 599.98px) {
  .menu-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-list__desc {
    text-align: left;
  }
}

.menu-card__photos {
  flex: 1 0 auto;
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-card__photos img {
  width: 100%;
  /* v kartě s kratším seznamem fotky vyplní zbylé místo, jinak čtverec */
  height: 100%;
  min-height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 22px;
}

.menu-card__photos img:first-child { transform: rotate(-1.5deg); }
.menu-card__photos img:last-child { transform: rotate(1.5deg); }

.drinks {
  margin-top: clamp(46px, 6vw, 76px);
}

.drinks__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin-bottom: 24px;
}

.drinks__title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
}

.drinks__note {
  font-family: var(--font-hand);
  font-size: 25px;
  color: var(--rust);
  margin: 0;
  transform: rotate(-1deg);
}

.drinks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}

.drink {
  border: 3px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 7px 0 var(--ink);
  transition: transform .2s ease;
}

.drink:hover {
  transform: translateY(-4px);
}

.drink--red { background-color: var(--coral); }
.drink--yellow { background-color: #FFC94AB7; }
.drink--orange { background-color: var(--apricot); }

.drink img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-bottom: 3px solid var(--ink);
}

.drink__body {
  padding: 20px;
}

.drink__name {
  font-size: 24px;
  margin: 0;
  line-height: 1.05;
}

.drink__desc {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: var(--ink);
}

/* ---------- Kontakt ---------- */

.contact {
  background: var(--lilac);
  color: var(--ink);
  padding: clamp(40px, 5vw, 60px) 16px clamp(56px, 7vw, 86px);
}

.contact__head {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.contact__title {
  font-size: clamp(36px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 16px 0 0;
  color: var(--ink);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 18px;
  max-width: 820px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.contact-card:hover {
  color: var(--ink);
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.contact-card--phone:hover { background: var(--apricot); }
.contact-card--mail:hover { background: var(--periwinkle); }

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  color: var(--ink);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card--phone .contact-card__icon { background: var(--yellow); }
.contact-card--mail .contact-card__icon { background: var(--sky); }

.contact-card small {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
}

.contact-card strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  word-break: break-word;
}

/* Na úzkých mobilech trochu zmenšit kartu i písmo, ať se e-mail vejde na jeden řádek. */
@media (max-width: 420px) {
  .contact-card {
    gap: 12px;
    padding: 18px 16px;
  }

  .contact-card__icon {
    width: 44px;
    height: 44px;
  }

  .contact-card strong {
    font-size: clamp(15px, 8vw - 11px, 20px);
  }
}

/* ---------- Patička ---------- */

.site-footer {
  background: var(--butter);
  color: var(--text-dark);
  border-top: 3px solid var(--ink);
  padding: 0 16px 34px;
}

.site-footer__grid {
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 30px;
}

/* Zdroj loga má 120 px, proto víc nezvětšujeme. */
.site-footer__logo {
  width: clamp(96px, 9vw, 120px);
  height: auto;
  display: block;
}

.site-footer__claim {
  margin: 16px 0 0;
  font-size: 15px;
  max-width: 24em;
  color: var(--text);
}

.site-footer__addresses {
  display: grid;
  gap: 14px;
  font-size: 14px;
  color: var(--text);
}

.site-footer__addresses address {
  font-style: normal;
  line-height: 1.9;
}

.site-footer__addresses strong {
  color: var(--place-accent, var(--violet));
  font-weight: 700;
  font-size: 15px;
}

.site-footer__addresses strong a:hover {
  color: var(--ink);
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 12px;
  color: var(--ink);
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.site-footer__links a {
  color: var(--text);
}

.site-footer__links a:hover {
  color: var(--blue);
}

.site-footer__social {
  display: grid;
  gap: 10px;
  justify-items: start;
  font-size: 15px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .18s ease, background-color .18s ease;
}

.social-pill svg {
  width: 20px;
  height: 20px;
}

.social-pill:hover {
  color: var(--ink);
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.social-pill--ig:hover { background: var(--pink); }
.social-pill--fb:hover { background: var(--periwinkle); }

.site-footer__bottom {
  max-width: var(--container);
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 2px dashed rgb(23 19 28 / .3);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- Podstránky provozoven ---------- */

.spot {
  position: relative;
  padding: clamp(30px, 5vw, 64px) 16px clamp(48px, 6vw, 80px);
}

.spot__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 8px;
}

.crumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spot__kicker {
  margin-top: 22px;
}

.spot__title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 18px 0 0;
  text-wrap: balance;
}

.spot__lead {
  max-width: 32em;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--text);
  margin: 18px 0 0;
  text-wrap: pretty;
}

.spot__rating {
  margin: 14px 0 0;
  font-weight: 600;
  font-size: 15px;
}

.spot .place__info {
  margin-top: 24px;
  font-size: 16.5px;
}

.spot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.spot__photo {
  justify-self: center;
  width: 100%;
  max-width: 580px;
  border: 3px solid var(--ink);
  border-radius: 32px;
  overflow: hidden;
  transform: rotate(1.6deg);
}

.spot__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.spot--espresso .spot__photo { box-shadow: -10px 10px 0 var(--pink); }
.spot--bike .spot__photo { box-shadow: -10px 10px 0 var(--sky); }

/* Na mobilu odsadit fotku, ať stín vlevo nekončí za okrajem displeje. */
@media (max-width: 599.98px) {
  .spot__photo { width: calc(100% - 10px); justify-self: end; }
}

.spot-menu {
  padding: clamp(48px, 6vw, 90px) 16px;
}

/* Hned pod úvodem stránky stačí mezera, kterou dává úvod sám. */
.spot + .spot-menu {
  padding-top: clamp(8px, 2vw, 24px);
}

.spot-find {
  background: var(--butter);
  border-block: 3px solid var(--ink);
  padding: clamp(48px, 6vw, 90px) 16px;
}

.spot-find__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.spot-find__title {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0;
}

.spot-find__text {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  font-size: 17px;
  color: var(--text);
  max-width: 32em;
}

.spot-find__text p {
  margin: 0;
}

.spot-find .map {
  margin-top: 0;
}

.spot-other {
  padding: clamp(48px, 6vw, 90px) 16px;
}

.spot-other .place {
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Omezený pohyb ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
