/* ==========================================================================
   More Matcha — Kontakt page (https://www.morematcha.cz/kontakty/)
   Upload to: /user/documents/more-matcha/kontakt/kontakt.css
   Loaded site-wide from the Shoptet HEAD field, so EVERY rule is scoped to
   #more-matcha-contact (or :has(#more-matcha-contact) for the few Shoptet
   page helpers at the bottom). Nothing here affects the homepage.
   Fonts (Archivo, Lexend) are already loaded site-wide from Google Fonts.
   ========================================================================== */

#more-matcha-contact {
  /* Design tokens — same values as the homepage (more-matcha.css) */
  --mm-ink: #1C1C1E;
  --mm-ink-2: #3A3A3C;
  --mm-sage: #718A6E;
  --mm-sage-mid: #8EA48A;
  --mm-sage-light: #BED0BB;
  --mm-sage-deep: #3E4C3C;
  --mm-paper: #F4F6F4;
  --mm-white: #FFFFFF;
  --mm-cream: #F3ECE0;
  --mm-matcha: #557F27;
  --mm-deep: #1F2B12;
  --mm-line: rgba(28, 28, 30, 0.16);
  --mm-fs-h2: clamp(30px, 16px + 2.4vw, 56px);
  --mm-fs-lead: clamp(17px, 16px + 0.3vw, 20px);
  --mm-font-display: "Ayr Modern", "Archivo", "Arial Narrow", system-ui, sans-serif;
  --mm-font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mm-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  color: var(--mm-ink);
  font-family: var(--mm-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  overflow-wrap: break-word;
}

#more-matcha-contact,
#more-matcha-contact *,
#more-matcha-contact *::before,
#more-matcha-contact *::after {
  box-sizing: border-box;
}

#more-matcha-contact :where(h1, h2, h3, p, ul, dl, dd, figure) {
  margin: 0;
}

/* Shoptet styles h1–h3 globally (colour, font); set them explicitly inside our block */
#more-matcha-contact :where(h1, h2, h3) {
  color: inherit;
  text-transform: none;
}

#more-matcha-contact :where(ul) {
  padding: 0;
  list-style: none;
}

#more-matcha-contact :focus-visible {
  outline: 2px solid var(--mm-ink);
  outline-offset: 4px;
}

#more-matcha-contact img {
  display: block;
  max-width: 100%;
  height: auto;
}

#more-matcha-contact .mm-contact-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#more-matcha-contact .mm-contact-nowrap {
  white-space: nowrap;
  hyphens: none;
}

#more-matcha-contact .mm-contact-eyebrow {
  font: 500 13px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-sage-deep);
}

/* Coloured bands run edge to edge without touching Shoptet's layout:
   box-shadow paints the colour sideways, clip-path keeps it inside the band.
   (box-shadow never creates horizontal scrolling.) */
#more-matcha-contact .mm-contact-hero,
#more-matcha-contact .mm-contact-insta,
#more-matcha-contact .mm-contact-branches {
  position: relative;
  background: var(--mm-contact-bg);
  box-shadow: 0 0 0 100vmax var(--mm-contact-bg);
  clip-path: inset(0 -100vmax);
}

/* Arrow drawn in CSS (the Shoptet editor strips inline SVG icons). Points ↗ by default. */
#more-matcha-contact .mm-contact-arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  font-size: 0; /* hides the fallback arrow character, kept so the editor doesn't strip the span */
}

#more-matcha-contact .mm-contact-arrow::before,
#more-matcha-contact .mm-contact-arrow::after {
  content: "";
  position: absolute;
}

#more-matcha-contact .mm-contact-arrow::before {
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
}

#more-matcha-contact .mm-contact-arrow::after {
  top: 50%;
  left: -1px;
  width: 14px;
  border-top: 1.6px solid currentColor;
  transform: rotate(-45deg);
}

#more-matcha-contact .mm-contact-arrow--right {
  transform: rotate(45deg);
}

/* Pill button — same shape as the homepage .mm-button */
#more-matcha-contact .mm-contact-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px 0 26px;
  border-radius: 999px;
  background: var(--mm-ink);
  color: var(--mm-paper);
  font: 500 15px/1.2 var(--mm-font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
}

#more-matcha-contact .mm-contact-button--light {
  background: var(--mm-paper);
  color: var(--mm-ink);
}

/* ==========================================================================
   1. HERO — "Zastavte se. Nebo nám napište." (warm cream)
   ========================================================================== */
#more-matcha-contact .mm-contact-hero {
  --mm-contact-bg: var(--mm-cream);
}

#more-matcha-contact .mm-contact-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: clamp(40px, 6vw, 96px) 0 clamp(48px, 6vw, 96px);
}

#more-matcha-contact .mm-contact-hero__title {
  margin-top: 18px;
  font-family: var(--mm-font-display);
  font-size: clamp(46px, 14px + 5vw, 104px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  hyphens: none;
}

#more-matcha-contact .mm-contact-hero__title-alt {
  display: block;
  color: var(--mm-matcha);
}

#more-matcha-contact .mm-contact-hero__lead {
  max-width: 32em;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: var(--mm-fs-lead);
  line-height: 1.6;
  color: var(--mm-ink-2);
}

#more-matcha-contact .mm-contact-hero__mail-label {
  margin-top: clamp(28px, 4vw, 56px);
  font: 500 12px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-sage-deep);
}

#more-matcha-contact .mm-contact-hero__mail {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 6px;
  color: var(--mm-ink);
  font-family: var(--mm-font-display);
  font-size: clamp(28px, 14px + 3vw, 56px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-decoration: none;
  overflow-wrap: anywhere;
  hyphens: none;
  background: linear-gradient(var(--mm-matcha), var(--mm-matcha)) left 100% / 100% 3px no-repeat;
}

/* Contact box: Shoptet renders its real form here from the #FORM[code=contact]# tag */
#more-matcha-contact .mm-contact-hero__form {
  padding: clamp(24px, 3vw, 40px);
  background: var(--mm-white);
  border-top: 4px solid var(--mm-matcha);
}

#more-matcha-contact .mm-contact-hero__form-title {
  font-family: var(--mm-font-display);
  font-size: clamp(28px, 18px + 1.4vw, 40px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.015em;
}

#more-matcha-contact .mm-contact-hero__form-text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mm-ink-2);
}

#more-matcha-contact .mm-contact-hero__form-slot {
  margin-top: 24px;
}

/* If Shoptet ever doesn't render the form (tag missing), kontakt.js hides the empty box */
#more-matcha-contact.mm-contact-no-form .mm-contact-hero__form {
  display: none;
}

/* ==========================================================================
   2. DIRECT CONTACT — three editorial columns
   ========================================================================== */
#more-matcha-contact .mm-contact-direct {
  padding: clamp(48px, 6vw, 96px) 0;
}

#more-matcha-contact .mm-contact-direct__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--mm-ink);
}

#more-matcha-contact .mm-contact-direct__item {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--mm-line);
}

#more-matcha-contact .mm-contact-direct__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 500 12px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-sage-deep);
}

#more-matcha-contact .mm-contact-direct__index {
  font-family: var(--mm-font-display);
  font-weight: 900;
  color: var(--mm-sage);
}

#more-matcha-contact .mm-contact-direct__value {
  justify-self: start;
  color: var(--mm-ink);
  font-family: var(--mm-font-display);
  font-size: clamp(22px, 16px + 1vw, 30px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  hyphens: none;
  background: linear-gradient(currentColor, currentColor) left 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
}

#more-matcha-contact .mm-contact-direct__note,
#more-matcha-contact .mm-contact-direct__text {
  max-width: 30em;
  font-size: 15px;
  line-height: 1.6;
  color: var(--mm-ink-2);
}

#more-matcha-contact .mm-contact-direct__text {
  font-size: 16px;
  color: var(--mm-ink);
}

/* ==========================================================================
   3. INSTAGRAM — editorial, staggered gallery (light sage)
   ========================================================================== */
#more-matcha-contact .mm-contact-insta {
  --mm-contact-bg: var(--mm-sage-light);
  overflow: hidden;
}

#more-matcha-contact .mm-contact-insta__inner {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vw, 128px) 0 clamp(48px, 7vw, 112px);
}

/* Big crossing "matcha" script behind the photos — the SVG is drawn by kontakt.js. */
#more-matcha-contact .mm-contact-insta__script {
  font-size: 0; /* fallback text "matcha" stays invisible; kontakt.js replaces it with the SVG */
  color: transparent;
  position: absolute;
  z-index: 0;
  top: 52%;
  left: 50%;
  width: min(130%, 1500px);
  transform: translate(-50%, -50%) rotate(-7deg);
  pointer-events: none;
}

#more-matcha-contact .mm-contact-insta__script svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--mm-white);
  opacity: 0.5;
}

#more-matcha-contact .mm-contact-insta__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: clamp(32px, 5vw, 72px);
}

#more-matcha-contact .mm-contact-insta__handle {
  font: 500 13px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-sage-deep);
}

#more-matcha-contact .mm-contact-insta__title {
  margin-top: 10px;
  font-family: var(--mm-font-display);
  font-size: clamp(44px, 18px + 5vw, 104px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 0.92;
  letter-spacing: -0.03em;
  hyphens: none;
}

#more-matcha-contact .mm-contact-insta__lead {
  max-width: 28em;
  align-self: end;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mm-ink-2);
}

/* Phones & tablets: native horizontal swipe with the next tile peeking in. */
#more-matcha-contact .mm-contact-insta__grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

#more-matcha-contact .mm-contact-insta__grid::-webkit-scrollbar {
  display: none;
}

/* Mouse users get a thin visible scrollbar so the swipe row is discoverable */
@media (hover: hover) and (pointer: fine) {
  #more-matcha-contact .mm-contact-insta__grid {
    scrollbar-width: thin;
    scrollbar-color: var(--mm-sage-deep) transparent;
    padding-bottom: 16px;
  }
  #more-matcha-contact .mm-contact-insta__grid::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  #more-matcha-contact .mm-contact-insta__grid::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: var(--mm-sage-deep);
  }
}

#more-matcha-contact .mm-contact-insta__item {
  flex: 0 0 min(68vw, 320px);
  scroll-snap-align: start;
}

#more-matcha-contact .mm-contact-insta__item--2,
#more-matcha-contact .mm-contact-insta__item--4 {
  flex-basis: min(58vw, 270px);
  margin-top: 36px;
}

#more-matcha-contact .mm-contact-insta__item--cta {
  flex-basis: min(60vw, 280px);
  margin-top: 18px;
}

@media (max-width: 767px) {
  /* Swipe row starts on the text edge and runs off the right edge of the screen,
     so the next tile peeks in (touch screens have no scrollbar width). */
  #more-matcha-contact .mm-contact-insta__grid {
    margin-right: calc(50% - 50vw);
    padding-right: 16px;
  }
}

#more-matcha-contact .mm-contact-insta__tile,
#more-matcha-contact .mm-contact-insta__follow {
  position: relative;
  display: block;
  color: var(--mm-ink);
  text-decoration: none;
}

#more-matcha-contact .mm-contact-insta__frame {
  display: block;
  overflow: hidden;
  background: var(--mm-cream);
}

#more-matcha-contact .mm-contact-insta__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform-origin: 50% 60%;
}

/* Alternating crops: tall / shorter */
#more-matcha-contact .mm-contact-insta__item--2 .mm-contact-insta__frame img {
  aspect-ratio: 1 / 1;
  object-position: 50% 35%;
}

#more-matcha-contact .mm-contact-insta__item--3 .mm-contact-insta__frame img {
  aspect-ratio: 3 / 4;
}

#more-matcha-contact .mm-contact-insta__item--4 .mm-contact-insta__frame img {
  aspect-ratio: 5 / 6;
  object-position: 50% 30%;
}

/* Small Instagram glyph (CSS-drawn): rounded square + lens + dot */
#more-matcha-contact .mm-contact-insta__icon,
#more-matcha-contact .mm-contact-insta__follow-icon {
  font-size: 0; /* hides the fallback "IG" text */
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mm-paper);
  color: var(--mm-ink);
}

#more-matcha-contact .mm-contact-insta__icon::before,
#more-matcha-contact .mm-contact-insta__follow-icon::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.6px solid currentColor;
  border-radius: 5px;
}

#more-matcha-contact .mm-contact-insta__icon::after,
#more-matcha-contact .mm-contact-insta__follow-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  box-shadow: 5px -5px 0 -2.5px currentColor;
}

#more-matcha-contact .mm-contact-insta__caption {
  display: inline-block;
  margin-top: 10px;
  font: 500 13px/1.3 var(--mm-font-body);
  letter-spacing: 0.02em;
}

/* Follow CTA tile (matcha green) */
#more-matcha-contact .mm-contact-insta__follow {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  aspect-ratio: 4 / 5;
  padding: 20px;
  background: var(--mm-matcha);
  color: var(--mm-white);
}

#more-matcha-contact .mm-contact-insta__follow-icon {
  top: 20px;
  right: auto;
  left: 20px;
  background: transparent;
  color: var(--mm-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

#more-matcha-contact .mm-contact-insta__follow-kicker {
  font: 500 12px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

#more-matcha-contact .mm-contact-insta__follow-handle {
  font-family: var(--mm-font-display);
  font-size: clamp(20px, 10px + 1vw, 26px);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1.05;
  hyphens: none;
}

/* Handle may only wrap before "_cz" (two inline-blocks), never mid-word */
#more-matcha-contact .mm-contact-insta__follow-handle > span {
  display: inline-block;
}

#more-matcha-contact .mm-contact-insta__follow-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font: 500 15px/1.2 var(--mm-font-body);
}

#more-matcha-contact .mm-contact-insta__follow:focus-visible,
#more-matcha-contact .mm-contact-insta__tile:focus-visible {
  outline-offset: 6px;
}

#more-matcha-contact .mm-contact-insta__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font: 500 13px/1.3 var(--mm-font-body);
  color: var(--mm-sage-deep);
}

/* ==========================================================================
   4. POBOČKY TEASER — compact, deep matcha green
   ========================================================================== */
#more-matcha-contact .mm-contact-branches {
  --mm-contact-bg: var(--mm-deep);
  color: var(--mm-paper);
}

#more-matcha-contact .mm-contact-branches__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: clamp(44px, 5vw, 72px) 0;
}

#more-matcha-contact .mm-contact-branches .mm-contact-eyebrow {
  color: var(--mm-sage-light);
}

#more-matcha-contact .mm-contact-branches__title {
  margin-top: 12px;
  font-family: var(--mm-font-display);
  font-size: var(--mm-fs-h2);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.015em;
}

#more-matcha-contact .mm-contact-branches__text {
  max-width: 26em;
  line-height: 1.6;
  color: var(--mm-sage-light);
}

#more-matcha-contact .mm-contact-branches .mm-contact-button {
  justify-self: start;
  margin-top: 6px;
}

#more-matcha-contact .mm-contact-branches :focus-visible {
  outline-color: var(--mm-paper);
}

/* ==========================================================================
   5. NAPIŠTE NÁM + company details (Shoptet's native form follows below)
   ========================================================================== */
#more-matcha-contact .mm-contact-write {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: clamp(56px, 7vw, 112px) 0 0;
}

#more-matcha-contact .mm-contact-write__title {
  margin-top: 14px;
  font-family: var(--mm-font-display);
  font-size: var(--mm-fs-h2);
  font-weight: 900;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.015em;
}

#more-matcha-contact .mm-contact-write__text {
  max-width: 30em;
  margin-top: 16px;
  line-height: 1.6;
  color: var(--mm-ink-2);
}

#more-matcha-contact .mm-contact-company {
  padding-top: 16px;
  border-top: 1px solid var(--mm-ink);
}

#more-matcha-contact .mm-contact-company__title {
  font: 500 12px/1.3 var(--mm-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-sage-deep);
}

#more-matcha-contact .mm-contact-company__list {
  margin-top: 8px;
}

/* dt/dd pairs laid out as a two-column table (no wrapper divs, editor-safe) */
#more-matcha-contact .mm-contact-company__list {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  font-size: 15px;
  line-height: 1.55;
}

#more-matcha-contact .mm-contact-company__list dt,
#more-matcha-contact .mm-contact-company__list dd {
  padding: 10px 0;
  border-bottom: 1px solid var(--mm-line);
}

#more-matcha-contact .mm-contact-company__list dt {
  padding-right: 16px;
  color: var(--mm-ink-2);
}

#more-matcha-contact .mm-contact-company__list a {
  color: var(--mm-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  hyphens: none;
}

/* ==========================================================================
   Motion & hover — pointer devices only; everything static for reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  #more-matcha-contact .mm-contact-button,
  #more-matcha-contact .mm-contact-hero__mail,
  #more-matcha-contact .mm-contact-direct__value {
    transition: background-size 0.45s var(--mm-ease-out), background-color 0.3s ease, transform 0.16s ease-out;
  }
  #more-matcha-contact .mm-contact-arrow {
    transition: translate 0.35s var(--mm-ease-out);
  }
  #more-matcha-contact .mm-contact-button:active {
    transform: scale(0.97);
  }
  #more-matcha-contact .mm-contact-insta__frame img {
    transition: transform 0.9s var(--mm-ease-out);
  }
  #more-matcha-contact .mm-contact-insta__icon,
  #more-matcha-contact .mm-contact-insta__caption {
    transition: opacity 0.35s ease, transform 0.5s var(--mm-ease-out);
  }
  #more-matcha-contact .mm-contact-insta__follow {
    transition: background-color 0.35s ease;
  }
}

@media (hover: hover) and (pointer: fine) {
  /* Captions + icon reveal on hover / keyboard focus */
  #more-matcha-contact .mm-contact-insta__icon {
    opacity: 0;
    transform: scale(0.8);
  }
  #more-matcha-contact .mm-contact-insta__caption {
    opacity: 0;
    transform: translateY(-6px);
  }
  #more-matcha-contact .mm-contact-insta__tile:hover .mm-contact-insta__icon,
  #more-matcha-contact .mm-contact-insta__tile:focus-visible .mm-contact-insta__icon,
  #more-matcha-contact .mm-contact-insta__tile:hover .mm-contact-insta__caption,
  #more-matcha-contact .mm-contact-insta__tile:focus-visible .mm-contact-insta__caption {
    opacity: 1;
    transform: none;
  }
  #more-matcha-contact .mm-contact-insta__tile:hover .mm-contact-insta__frame img,
  #more-matcha-contact .mm-contact-insta__tile:focus-visible .mm-contact-insta__frame img {
    transform: scale(1.04) translateY(-1.5%);
  }
  #more-matcha-contact .mm-contact-insta__follow:hover {
    background: var(--mm-sage-deep);
  }
  #more-matcha-contact .mm-contact-insta__follow:hover .mm-contact-arrow,
  #more-matcha-contact .mm-contact-button:hover .mm-contact-arrow {
    translate: 3px -3px;
  }
  #more-matcha-contact .mm-contact-button--light:hover {
    background: var(--mm-sage-light);
  }
  #more-matcha-contact .mm-contact-button:not(.mm-contact-button--light):hover {
    background: var(--mm-ink-2);
  }
  #more-matcha-contact .mm-contact-hero__mail:hover,
  #more-matcha-contact .mm-contact-direct__value:hover {
    background-size: 30% 3px;
  }
  #more-matcha-contact .mm-contact-direct__value:hover {
    background-size: 30% 1px;
  }
}

/* Touch screens: caption and icon stay visible (no hover), icon slightly smaller */
@media (hover: none) {
  #more-matcha-contact .mm-contact-insta__icon {
    width: 30px;
    height: 30px;
  }
  #more-matcha-contact .mm-contact-insta__icon::before {
    inset: 8px;
  }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 700px) {
  #more-matcha-contact .mm-contact-direct__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 64px);
  }
  #more-matcha-contact .mm-contact-insta__head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(32px, 6vw, 96px);
  }
  #more-matcha-contact .mm-contact-branches__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
    column-gap: clamp(24px, 4vw, 64px);
  }
  #more-matcha-contact .mm-contact-branches .mm-contact-button {
    margin-top: 0;
  }
  #more-matcha-contact .mm-contact-write {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(40px, 7vw, 128px);
    align-items: start;
  }
}

@media (min-width: 1000px) {
  #more-matcha-contact .mm-contact-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: clamp(48px, 6vw, 112px);
    align-items: center;
  }
  #more-matcha-contact .mm-contact-hero__form {
    max-width: 600px;
    justify-self: end;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  /* Desktop gallery: five editorial columns, staggered, no scrolling */
  #more-matcha-contact .mm-contact-insta__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 1.05fr 0.9fr 0.95fr;
    gap: clamp(14px, 1.6vw, 28px);
    align-items: start;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 24px;
  }
  #more-matcha-contact .mm-contact-insta__item,
  #more-matcha-contact .mm-contact-insta__item--2,
  #more-matcha-contact .mm-contact-insta__item--4,
  #more-matcha-contact .mm-contact-insta__item--cta {
    margin-top: 0;
    transform: translate3d(0, var(--mm-contact-shift, 0px), 0);
  }
  #more-matcha-contact .mm-contact-insta__item--2 { margin-top: clamp(64px, 7vw, 120px); }
  #more-matcha-contact .mm-contact-insta__item--3 { margin-top: clamp(20px, 2vw, 32px); }
  #more-matcha-contact .mm-contact-insta__item--4 { margin-top: clamp(96px, 10vw, 168px); }
  #more-matcha-contact .mm-contact-insta__item--cta { margin-top: clamp(40px, 4vw, 72px); }
  #more-matcha-contact .mm-contact-insta__hint {
    display: none;
  }
}

/* ==========================================================================
   Shoptet page helpers — Kontakt page only (each rule needs :has(#more-matcha-contact)).
   Verified on template-14, /kontakty/, 2026-09-27.
   ========================================================================== */

/* Hide Shoptet's own "Kontakty" page title — our block has its own <h1>. */
.pageArticleDetail:has(#more-matcha-contact) > header[itemprop="headline"] {
  display: none;
}

/* Same side gutter as the homepage for content + breadcrumbs, so our block,
   the breadcrumbs and Shoptet's native form all line up; space under the form. */
#content:has(#more-matcha-contact) {
  padding-left: clamp(16px, 4vw, 64px);
  padding-right: clamp(16px, 4vw, 64px);
  padding-bottom: clamp(72px, 9vw, 144px);
}

#content-wrapper:has(#more-matcha-contact) > .breadcrumbs {
  padding-left: clamp(16px, 4vw, 64px);
  padding-right: clamp(16px, 4vw, 64px);
}

/* Empty paragraphs the Shoptet editor leaves around pasted blocks */
.pageArticleDetail:has(#more-matcha-contact) [itemprop="about"] > p:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   SHOPTET INTEGRATION POINT: native contact form (#formContact), Kontakt page only.
   Owner-approved visual restyle. Markup, action (/action/MailForm/SendEmail/),
   required fields, validation and consent are untouched — only looks change.
   -------------------------------------------------------------------------- */
.pageArticleDetail:has(#more-matcha-contact) #formContact {
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: "Lexend", system-ui, sans-serif;
  color: #1C1C1E;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact fieldset {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact .form-group {
  margin: 0 0 22px;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact label {
  display: block;
  margin: 0 0 8px;
  font: 500 14px/1.4 "Lexend", system-ui, sans-serif;
  color: #1C1C1E;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact .form-control {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(28, 28, 30, 0.28);
  border-radius: 4px;
  background: #FFFFFF;
  box-shadow: none;
  font: 400 16px/1.5 "Lexend", system-ui, sans-serif;
  color: #1C1C1E;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact .form-control:hover {
  border-color: rgba(28, 28, 30, 0.5);
}

.pageArticleDetail:has(#more-matcha-contact) #formContact .form-control:focus {
  border-color: #1C1C1E;
  outline: none;
  box-shadow: 0 0 0 3px #BED0BB;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact .consents .label {
  margin: 0;
  font: 400 13px/1.6 "Lexend", system-ui, sans-serif;
  color: #3A3A3C;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact .consents a {
  color: #1C1C1E;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact .consents a:focus-visible {
  outline: 2px solid #1C1C1E;
  outline-offset: 3px;
}

/* Submit: matcha green pill, white text (contrast 4.8:1) */
.pageArticleDetail:has(#more-matcha-contact) #formContact button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 54px;
  margin-top: 6px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: #557F27;
  color: #FFFFFF;
  font: 500 15px/1.2 "Lexend", system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.16s ease-out;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact button[type="submit"]:hover {
  background: #3E4C3C;
  color: #FFFFFF;
}

.pageArticleDetail:has(#more-matcha-contact) #formContact button[type="submit"]:active {
  transform: scale(0.97);
}

.pageArticleDetail:has(#more-matcha-contact) #formContact button[type="submit"]:focus-visible {
  outline: 2px solid #1C1C1E;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .pageArticleDetail:has(#more-matcha-contact) #formContact .form-control,
  .pageArticleDetail:has(#more-matcha-contact) #formContact button[type="submit"] {
    transition: none;
  }
}
