@font-face {
  font-family: "Swear Display Italic";
  src: url("/wp-content/uploads/polka-fonts/SwearDisplay-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Scandia;
  src: url("/wp-content/uploads/polka-fonts/Scandia-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Scandia;
  src: url("/wp-content/uploads/polka-fonts/Scandia-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Scandia;
  src: url("/wp-content/uploads/polka-fonts/Scandia-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff7e8;
  --paper-deep: #f4ead7;
  --paper-card: #faf0dd;
  --ink: #141617;
  --ink-soft: #3c342f;
  --line: rgba(20, 22, 23, 0.16);
  --header: 4.75rem;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--ink) var(--paper); scroll-behavior: smooth; }
body.polka-salon-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Scandia, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.52;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; word-spacing: 0.08em; }

.polka-top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-height: var(--header);
  padding: 0.75rem 2rem;
  background: rgba(255, 247, 232, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.polka-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.polka-logo img { height: 2.55rem; width: auto; }
.polka-city-tag {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.polka-nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.95rem Scandia, sans-serif;
  cursor: pointer;
}
.polka-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.95rem;
  margin-left: auto;
}
.polka-nav a {
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.25rem 0.1rem;
}
.polka-nav a:hover,
.polka-nav a.is-current {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.polka-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  font: 500 0.92rem Scandia, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.polka-btn:hover { background: #2c2724; }
.polka-btn-outline {
  background: transparent;
  color: var(--ink) !important;
}
.polka-btn-outline:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

/* Hero Home + Studio */
.polka-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  min-height: calc(86vh - var(--header));
  border-bottom: 1px solid var(--line);
}
.polka-hero-media {
  position: relative;
  margin: 0;
  min-height: 440px;
  background: #e6dac3;
}
.polka-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.polka-hero-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 500;
}
.polka-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3rem 3.25rem;
  max-width: 46rem;
}
.polka-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.polka-h1 {
  margin: 0;
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: clamp(2.9rem, 5vw, 4.7rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.polka-lead {
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 38rem;
}
.polka-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

/* Sections */
.polka-section {
  padding: 4rem 2.5rem;
  border-bottom: 1px solid var(--line);
}
.polka-section-dark {
  background: var(--ink);
  color: var(--paper);
}
.polka-container {
  max-width: 1320px;
  margin: 0 auto;
}
.polka-sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2rem;
  margin-bottom: 2.25rem;
}
.polka-h2 {
  margin: 0;
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 3.35rem);
  line-height: 0.96;
}
.polka-sec-sub {
  margin: 0.5rem 0 0;
  max-width: 44rem;
  color: var(--ink-soft);
}
.polka-section-dark .polka-sec-sub { color: rgba(255, 247, 232, 0.78); }

/* 3 lokalizacje Warszawy */
.polka-locs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.polka-loc-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.polka-loc-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.polka-loc-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.polka-loc-body h3 {
  margin: 0;
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: 1.75rem;
}
.polka-loc-meta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Właścicielka */
.polka-owner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.25rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.85rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
}
.polka-owner img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.polka-owner h3 {
  margin: 0.25rem 0 0.65rem;
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: 2.15rem;
}

/* Dynamiczna siatka instruktorek (Crocoblock CPT instruktorki) */
.polka-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.5rem;
}
.polka-teacher-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.polka-teacher-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e9dec8;
  overflow: hidden;
}
.polka-teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.polka-teacher-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.polka-teacher-body h3 {
  margin: 0;
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.05;
}
.polka-teacher-role {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.polka-teacher-bio {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.48;
}

/* Dynamiczne zajęcia i filtr salonu */
.polka-filter-bar {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
}
.polka-filter-bar-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}
.polka-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}
.polka-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.polka-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
  gap: 1.25rem;
}
.polka-class-card {
  padding: 1.4rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
}
.polka-class-card[hidden] { display: none !important; }
.polka-class-card h3 {
  margin: 0.35rem 0;
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: 1.75rem;
}
.polka-badge {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Grafik kafelkowy Fitssey */
.polka-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.polka-tab {
  padding: 0.45rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9rem Scandia, sans-serif;
  cursor: pointer;
}
.polka-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}
.polka-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1rem;
}
.polka-slot {
  padding: 1.2rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.polka-slot[hidden] { display: none !important; }
.polka-slot-time { font-weight: 700; font-size: 1rem; }
.polka-slot-title {
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: 1.55rem;
}
.polka-slot-meta { font-size: 0.88rem; color: var(--ink-soft); }

/* Karnety / Cennik */
.polka-pass-group { margin-top: 2rem; }
.polka-pass-group h3 {
  margin: 0 0 0.9rem;
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: 1.95rem;
}
.polka-passes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1rem;
}
.polka-pass-card {
  padding: 1.3rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}
.polka-pass-price {
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
}

/* Kontakt + Mapa Google */
.polka-contact-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(320px, 1.05fr);
  gap: 2rem;
}
.polka-map-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}
.polka-dir-card {
  padding: 1.1rem 1.25rem;
  background: var(--paper-card);
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
}
.polka-dir-card h3 {
  margin: 0 0 0.35rem;
  font-family: "Swear Display Italic", Georgia, serif;
  font-size: 1.45rem;
}

/* FAQ */
.polka-faq-list details {
  border-top: 1px solid var(--ink);
  padding: 0.2rem 0;
}
.polka-faq-list details:last-of-type {
  border-bottom: 1px solid var(--ink);
}
.polka-faq-list summary {
  padding: 0.85rem 0;
  font-weight: 500;
  font-size: 1.08rem;
  cursor: pointer;
}
.polka-faq-list details p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 52rem;
}

/* WooCommerce wrappers (/koszyk/, /zamowienie/, /moje-konto/) */
.polka-woo-wrap {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 2rem;
  margin-top: 1.5rem;
}
.polka-fitssey-reservations {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--ink);
}

/* Stopka */
.polka-foot {
  padding: 3.25rem 2.5rem 2.5rem;
  background: var(--ink);
  color: var(--paper);
}
.polka-foot-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}
.polka-foot h3 {
  margin: 0 0 0.75rem;
  font-family: Scandia, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.polka-foot ul { list-style: none; margin: 0; padding: 0; }
.polka-foot li { margin: 0.4rem 0; font-size: 0.94rem; }
.polka-foot a { color: var(--paper); text-decoration: none; }
.polka-foot a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .polka-nav-toggle { display: inline-flex; }
  .polka-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .polka-nav.is-open { display: flex; }
  .polka-hero,
  .polka-owner,
  .polka-contact-grid,
  .polka-foot-grid {
    grid-template-columns: 1fr;
  }
  .polka-section,
  .polka-top,
  .polka-hero-copy {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
