/*
Theme Name: Merge Direct
Author: Merge Direct
Description: Merge Direct — nowoczesny salon optyczny. Single-page block theme.
Version: 1.0.2
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: mergedirect
*/

/* ================================================================
   TOKENS
   ================================================================ */

:root {
  --md-ink: #0f1210;
  --md-paper: #fffaf0;
  --md-cream: #fff0a6;
  --md-muted: rgba(15, 18, 16, 0.62);
  --md-line: rgba(15, 18, 16, 0.16);
  --md-panel: rgba(255, 250, 240, 0.92);
  --md-field: rgba(255, 250, 240, 0.72);
  --md-motion: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================================================================
   RESETS & GLOBAL
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.home {
  background: #161b23;
}

body:not(.home) {
  background: #15130f;
  position: relative;
}

body:not(.home)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--pages-image, #15130f) center / cover no-repeat;
  filter: blur(24px);
  transform: scale(1.08);
}

.wp-site-blocks > footer { margin-block-start: 0; }

/* ================================================================
   SWUP PAGE TRANSITIONS
   ================================================================ */

@keyframes mdSwupFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mdSwupFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

.wp-site-blocks {
  will-change: opacity, transform;
}

html.is-changing .wp-site-blocks {
  animation: mdSwupFadeOut 0.28s ease both;
}

html.is-rendering .wp-site-blocks {
  animation: mdSwupFadeIn 0.28s ease both;
}

/* ================================================================
   SITE HEADER
   ================================================================ */

.site-header {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2.4vw, 34px) clamp(18px, 3vw, 52px);
  gap: 18px;
}

.site-header--hero {
  position: relative;
  z-index: 10;
}

.site-header--page {
  background: transparent;
}

.site-wordmark {
  font-family: "Archivo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--md-paper);
  margin: 0;
}

.site-logo-mark {
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo-mark a {
  display: flex;
  align-items: center;
}

.site-logo-mark img {
  width: 40px !important;
  height: 40px !important;
  display: block;
  object-fit: contain;
}

.site-header .wp-block-site-logo img {
  max-width: 40px !important;
  height: auto;
  display: block;
}

.site-header .wp-block-navigation {
  gap: 10px !important;
}

.site-header .wp-block-navigation-item__content,
.site-header .wp-block-navigation__container .wp-block-navigation-item__content {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  padding: 0 17px !important;
  border: 1px solid rgba(255, 250, 240, 0.72) !important;
  border-radius: 999px !important;
  color: var(--md-paper) !important;
  background: rgba(15, 18, 16, 0.14) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-family: "Archivo", sans-serif !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  backdrop-filter: blur(12px);
  transition: background var(--md-motion);
}

.site-header .wp-block-navigation-item__content:hover {
  background: rgba(15, 18, 16, 0.24) !important;
}

.site-header .is-cta > .wp-block-navigation-item__content {
  color: var(--md-ink) !important;
  background: var(--md-cream) !important;
  border-color: var(--md-cream) !important;
}

.site-header .is-cta > .wp-block-navigation-item__content:hover {
  background: color-mix(in srgb, var(--md-cream) 92%, var(--md-ink)) !important;
}

.site-header .current-menu-item > .wp-block-navigation-item__content,
.site-header .current-menu-item > .wp-block-navigation-item__content:hover {
  background: var(--md-paper) !important;
  color: var(--md-ink) !important;
  border-color: var(--md-paper) !important;
}

.site-header .is-cta.current-menu-item > .wp-block-navigation-item__content,
.site-header .is-cta.current-menu-item > .wp-block-navigation-item__content:hover {
  background: var(--md-cream) !important;
  color: var(--md-ink) !important;
  border-color: var(--md-cream) !important;
}

/* ================================================================
   HERO COVER
   ================================================================ */

.hero-cover {
  position: relative !important;
  min-height: 100svh !important;
  background:
    linear-gradient(180deg, rgba(14, 16, 22, 0.05), rgba(14, 16, 22, 0.34)),
    var(--hero-image) center / cover no-repeat !important;
  isolation: isolate;
  overflow: hidden;
}

.hero-cover > .wp-block-cover__background {
  display: none;
}

.hero-cover::before {
  content: '';
  position: absolute;
  inset: -24px;
  background: var(--hero-image) center / cover no-repeat;
  filter: blur(13px) saturate(1.08) contrast(0.92);
  transform: scale(1.04);
  pointer-events: none;
  z-index: 1;
}

.hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 56% 44%, rgba(255, 240, 166, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(6, 8, 14, 0.18), rgba(6, 8, 14, 0.68));
  pointer-events: none;
  z-index: 2;
}

.hero-soft {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--hero-image) center / cover no-repeat;
  filter: blur(10px) saturate(0.96);
  transform: scale(1.045);
  opacity: 0.74;
  z-index: 3;
}

.sharp-strip {
  position: absolute;
  inset: 0;
  background: var(--hero-image) center / cover no-repeat;
  opacity: 0.44;
  clip-path: polygon(0 0, 47% 0, 59% 100%, 0 100%);
  animation: unblur-sweep 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, transparent 0 50%, rgba(255, 255, 255, 0.08) 50%),
    linear-gradient(0deg, transparent 0 50%, rgba(0, 0, 0, 0.08) 50%);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  z-index: 5;
}

@keyframes unblur-sweep {
  0%, 100% { clip-path: polygon(0 0, 42% 0, 55% 100%, 0 100%); opacity: 0.38; }
  50%       { clip-path: polygon(0 0, 69% 0, 81% 100%, 0 100%); opacity: 1; }
}


.hero-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

/* ---- headline ---- */

.hero-content {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 64px) clamp(20px, 4vw, 74px);
}

.hero-headline {
  font-family: "Bricolage Grotesque", sans-serif !important;
  font-size: clamp(48px, 8.6vw, 134px) !important;
  font-weight: 500 !important;
  line-height: 0.9 !important;
  letter-spacing: -0.065em !important;
  text-wrap: balance;
  text-align: center;
  text-shadow: 0 18px 64px rgba(0, 0, 0, 0.32);
  translate: 0 clamp(-58px, -3.4vw, -34px);
  color: var(--md-cream) !important;
}

.hero-headline .accent-word {
  font-family: "EB Garamond", serif;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.055em;
  color: var(--md-cream);
}

/* ---- booking bar ---- */

.booking-bar {
  display: grid !important;
  grid-template-columns: 1.05fr 1fr 1fr auto;
  align-items: stretch;
  margin: 0 auto clamp(18px, 3vw, 38px);
  width: min(1120px, calc(100% - clamp(28px, 8vw, 140px)));
  min-height: 86px;
  border: 1px solid rgba(255, 250, 240, 0.84);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  color: var(--md-ink) !important;
}

.bar-item {
  min-height: 86px;
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 16px clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--md-line);
  color: var(--md-ink) !important;
}

.bar-item:last-of-type { border-right: 0; }

.bar-item::before {
  content: '';
  display: block;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 18, 16, 0.16);
  border-radius: 50%;
  background-color: rgba(15, 18, 16, 0.04);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 19px 19px;
}

.bar-item--eye::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%230f1210' stroke-width='1.8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 12s3.5-6 9-6 9 6 9 6-3.5 6-9 6-9-6-9-6Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.bar-item--cal::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%230f1210' stroke-width='1.8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4M16 2v4M4 10h16M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

.bar-item--pin::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%230f1210' stroke-width='1.8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s7-4.4 7-11a7 7 0 1 0-14 0c0 6.6 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.bar-label {
  display: block !important;
  color: rgba(15, 18, 16, 0.58) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.bar-value {
  display: block !important;
  color: var(--md-ink) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 4px 0 0 !important;
}

.bar-cta-wrap {
  display: flex !important;
  align-items: center;
  padding: 0 16px;
}

.bar-cta-wrap .wp-block-button__link {
  min-height: 56px !important;
  display: inline-flex !important;
  align-items: center;
  padding: 0 28px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: var(--md-cream) !important;
  color: var(--md-ink) !important;
  font-family: "Archivo", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-decoration: none !important;
  white-space: nowrap;
  transform: translateY(0);
  transition: background var(--md-motion), transform var(--md-motion);
}

.bar-cta-wrap .wp-block-button__link:hover {
  background: color-mix(in srgb, var(--md-cream) 92%, var(--md-ink)) !important;
  transform: translateY(-0.5px);
}

/* ================================================================
   SUBPAGE LAYOUT
   ================================================================ */

.page-title-section {
  padding: clamp(48px, 6vw, 80px) clamp(18px, 3vw, 52px) clamp(34px, 5vw, 62px);
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
}

.page-title-text {
  font-family: "Bricolage Grotesque", sans-serif !important;
  font-size: clamp(42px, 7vw, 92px) !important;
  font-weight: 500 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.06em !important;
  text-wrap: balance;
  text-shadow: 0 18px 64px rgba(0, 0, 0, 0.28);
  color: var(--md-paper) !important;
  margin: 0 0 22px !important;
  max-width: 780px;
}

.page-lead-text {
  color: rgba(255, 250, 240, 0.88) !important;
  font-size: clamp(16px, 1.35vw, 20px) !important;
  font-weight: 600 !important;
  line-height: 1.52 !important;
  max-width: 620px;
  margin: 0 !important;
}

.content-area {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 clamp(18px, 3vw, 52px) clamp(48px, 6vw, 80px);
  width: 100%;
}

/* ---- panels ---- */

.panel {
  border: 1px solid rgba(255, 250, 240, 0.64) !important;
  border-radius: 28px !important;
  background: var(--md-panel) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden;
  color: var(--md-ink) !important;
}

.panel-pad {
  padding: clamp(22px, 3vw, 34px) !important;
}

/* ================================================================
   SALONY PAGE
   ================================================================ */

.salony-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}

.salon-list {
  display: grid;
  border: 1px solid rgba(255, 250, 240, 0.64);
  border-radius: 28px;
  background: var(--md-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.salon-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--md-line);
  cursor: pointer;
  transition: background var(--md-motion);
  color: var(--md-ink);
}

.salon-item:last-child { border-bottom: 0; }

.salon-item:hover { background: rgba(255, 250, 240, 0.18); }

.salon-pin {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 18, 16, 0.16);
  border-radius: 50%;
  background: rgba(15, 18, 16, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background var(--md-motion), border-color var(--md-motion);
}

.salon-pin svg {
  width: 19px;
  height: 19px;
  stroke: var(--md-ink);
  stroke-width: 1.8;
  fill: none;
  transition: fill var(--md-motion);
}

.salon-item.is-active .salon-pin {
  background: rgba(15, 18, 16, 0.08);
  border-color: rgba(15, 18, 16, 0.28);
}

.salon-item.is-active .salon-pin svg { fill: var(--md-ink); }
.salon-item.is-active .salon-pin svg circle { fill: var(--md-paper); }

.salon-name {
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--md-ink);
  margin: 0 0 4px;
}

.salon-addr {
  color: var(--md-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.48;
  margin: 0;
}

.salon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.text-link {
  color: var(--md-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 18, 16, 0.34);
  cursor: pointer;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding: 0;
  transition: border-color var(--md-motion);
  font-family: "IBM Plex Sans", sans-serif;
}

.text-link:hover { border-bottom-color: var(--md-ink); }

.map-panel {
  position: sticky;
  top: 24px;
  height: clamp(520px, 68vh, 720px);
  min-height: 560px;
  border: 1px solid rgba(255, 250, 240, 0.64);
  border-radius: 28px;
  background: var(--md-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

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

.map-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(14px);
  z-index: 2;
  color: var(--md-ink);
}

.section-title {
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--md-ink);
  margin: 0 0 4px;
}

.small-note {
  color: var(--md-muted);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* ================================================================
   FORMS & COMPANY DATA
   ================================================================ */

.company-data {
  display: grid;
  gap: 20px;
  color: var(--md-ink);
}

.company-block {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--md-line);
}

.company-block:last-child { padding-bottom: 0; border-bottom: 0; }

.company-block h2 {
  font-family: "Archivo", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--md-ink);
  margin: 0 0 8px;
}

.company-block p { color: var(--md-muted); font-size: 14px; font-weight: 600; line-height: 1.52; margin: 2px 0; }

.company-block a { color: var(--md-ink); text-decoration: none; }
.company-block a:hover { text-decoration: underline; }

.form-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.form-intro-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 18, 16, 0.16);
  border-radius: 50%;
  background: rgba(15, 18, 16, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-intro-icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--md-ink);
  stroke-width: 1.8;
  fill: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  color: var(--md-ink);
}

.form-row { display: grid; gap: 8px; }
.form-row.full { grid-column: 1 / -1; }

.form-row label {
  color: rgba(15, 18, 16, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Archivo", sans-serif;
  display: block;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--md-line);
  border-radius: 18px;
  color: var(--md-ink);
  background-color: var(--md-field);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  padding: 14px 16px;
  transition: background-color var(--md-motion), border-color var(--md-motion);
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%230f1210' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}
.form-row select::-ms-expand { display: none; }

.form-row textarea { min-height: 132px; resize: vertical; }

.form-row input:hover, .form-row select:hover, .form-row textarea:hover {
  background-color: color-mix(in srgb, var(--md-field) 92%, var(--md-ink));
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: rgba(15, 18, 16, 0.34);
  background-color: color-mix(in srgb, var(--md-field) 88%, var(--md-ink));
}

.submit-btn {
  min-height: 56px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  color: var(--md-ink);
  background: var(--md-cream);
  font-family: "Archivo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transform: translateY(0);
  transition: background var(--md-motion), transform var(--md-motion);
}

.submit-btn:hover {
  background: color-mix(in srgb, var(--md-cream) 92%, var(--md-ink));
  transform: translateY(-0.5px);
}

.submit-btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.form-row .req { color: #d04a4a; margin-left: 2px; }

.slot-row { gap: 10px; }
.slot-label {
  color: rgba(15, 18, 16, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: "Archivo", sans-serif;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.slot-grid[aria-busy="true"] { opacity: 0.55; }

.slot-pill {
  min-height: 48px;
  border: 1px solid var(--md-line);
  border-radius: 14px;
  background: var(--md-field);
  color: var(--md-ink);
  font-family: "Archivo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
  transition: background var(--md-motion), border-color var(--md-motion), color var(--md-motion);
}
.slot-pill:hover {
  background: color-mix(in srgb, var(--md-field) 88%, var(--md-ink));
}
.slot-pill.is-selected {
  background: var(--md-ink);
  border-color: var(--md-ink);
  color: var(--md-paper);
}

.slot-empty {
  color: rgba(15, 18, 16, 0.6);
  font-size: 14px;
  margin: 4px 0 0;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}
.form-status.is-success {
  background: color-mix(in srgb, var(--md-cream) 60%, var(--md-paper));
  color: var(--md-ink);
}
.form-status.is-error {
  background: rgba(208, 74, 74, 0.12);
  color: #8c2424;
}

@media (max-width: 640px) {
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  background: rgba(8, 10, 14, 0.88) !important;
  color: rgba(255, 250, 240, 0.72) !important;
  padding: 28px clamp(18px, 3vw, 52px) !important;
}

.site-footer a {
  color: rgba(255, 250, 240, 0.72);
  text-decoration: none;
  font-size: 13px;
}

.site-footer a:hover { color: var(--md-paper); }

.footer-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px !important;
  color: rgba(255, 250, 240, 0.5) !important;
  margin: 0 !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 940px) {
  .booking-bar {
    grid-template-columns: 1fr !important;
    border-radius: 28px !important;
    width: calc(100% - 28px) !important;
    margin-bottom: 14px !important;
  }

  .bar-item {
    border-right: 0 !important;
    border-bottom: 1px solid var(--md-line) !important;
    min-height: 70px !important;
  }

  .bar-item:last-of-type { border-bottom: 0 !important; }

  .bar-cta-wrap {
    padding: 14px !important;
  }

  .bar-cta-wrap .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }

  .salony-grid {
    grid-template-columns: 1fr !important;
  }

  .map-panel {
    position: relative !important;
    top: auto !important;
    height: 520px !important;
    min-height: 420px !important;
  }

  .map-canvas { min-height: 420px !important; }
}

@media (max-width: 620px) {
  .hero-headline {
    font-size: clamp(36px, 12.4vw, 52px) !important;
    letter-spacing: -0.055em !important;
  }

  .form-grid { grid-template-columns: 1fr !important; }

  .map-caption { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .site-wordmark { display: none; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.editor-styles-wrapper .animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll, .sharp-strip {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    clip-path: none !important;
  }
}

/* ─── Legal document (Warunki współpracy / OWW) ─── */
.legal-doc {
  color: var(--md-ink);
  font-size: 15px;
  line-height: 1.65;
}

.legal-doc .legal-intro {
  font-size: 15px;
  color: var(--md-ink);
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--md-line);
}

.legal-doc .legal-intro strong { font-weight: 700; }

.legal-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--md-line);
}

.legal-section:last-of-type { border-bottom: 0; }

.legal-section h2 {
  font-family: "Archivo", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--md-ink);
  margin: 0 0 14px;
}

.legal-section p {
  color: var(--md-ink);
  margin: 0 0 10px;
}

.legal-list,
.legal-sublist {
  margin: 0;
  padding-left: 24px;
  color: var(--md-ink);
}

.legal-list { list-style: lower-alpha; }
.legal-sublist { list-style: decimal; margin-top: 8px; padding-left: 22px; }

.legal-list > li,
.legal-sublist > li {
  margin-bottom: 12px;
  padding-left: 6px;
}

.legal-list > li::marker,
.legal-sublist > li::marker {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  color: var(--md-muted);
}

.legal-list a { color: var(--md-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-list a:hover { text-decoration: none; }

.legal-download {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--md-line);
  display: flex;
  justify-content: flex-start;
}

.legal-download .submit-btn {
  width: auto;
  min-width: 220px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 52px;
}

@media (max-width: 640px) {
  .legal-doc { font-size: 14px; }
  .legal-section h2 { font-size: 15px; }
  .legal-list, .legal-sublist { padding-left: 20px; }
  .legal-download { justify-content: stretch; }
  .legal-download .submit-btn { width: 100%; }
}
