:root {
  --lang-en: #2f6edb;      /* niebieski */
  --lang-de: #f28c28;      /* pomarańczowy */
  --lang-en-soft: #eaf1ff;
  --lang-de-soft: #fff1e6;
  --bg: #f8f6f2;
  --bg-soft: #fcfbf8;
  --text: #1f1f1f;
  --muted: #6e6a63;
  --line: #ddd7cf;
  --line-soft: #eee8df;
  --card: #ffffff;
  --accent: #111111;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.03);
  --radius: 18px;
  --radius-lg: 28px;
  --success: #6f8f63;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(to bottom, #fbfaf7 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== HEADER ===== */

.topbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand img {
  width: 84px;
  height: auto;
  object-fit: contain;
}

.top-links {
  color: var(--muted);
  font-size: 0.92rem;
}

.top-links span,
.top-links a {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.top-links span:hover,
.top-links a:hover {
  opacity: 0.65;
}

.main-nav {
  padding-top: 0.5rem;
  padding-bottom: 0.9rem;
}

.nav-item-custom {
  position: relative;
  font-size: 1.04rem;
  color: #37332d;
  cursor: pointer;
  padding-bottom: 6px;
  transition: opacity 0.2s ease;
  display: inline-block;
  margin-right: 2rem;
}

.nav-item-custom:hover {
  opacity: 0.65;
}

.nav-item-custom.active {
  color: var(--accent);
  font-weight: 700;
}

.nav-item-custom.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== HERO ===== */

.hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 28px 22px;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--bg-soft);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead-custom {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #4d4943;
  max-width: 680px;
}

.hero-side {
  background: rgba(248, 246, 242, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.hero-side-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.hero-side p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* ===== PANELS / CARDS ===== */

.content-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.content-panel.active {
  display: block;
}

.card-custom {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  height: 100%;
}

.card-custom h2 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.card-custom p {
  margin: 0;
  color: #4d4943;
  line-height: 1.7;
}

.status-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}

.notes {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.no-border {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ===== FLAGS ===== */

.flags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.flag-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: 0.2s ease;
  min-width: 170px;
}

.flag-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.flag-card img {
  width: 38px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e9e4db;
}

.flag-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.flag-label strong {
  font-size: 0.96rem;
}

.flag-label span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

/* ===== BOOKING SIDEBAR ===== */

.booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.booking-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.booking-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 16px;

  border-radius: 999px;            /* ← zaokrąglenie */
  border: 1px solid var(--line);   /* ← cienka ramka */

  background: #fff;
  color: #37332d;

  font-size: 0.95rem;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-chip img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.12);
  opacity: 0.9;
}

.booking-chip.en.active {
  background: var(--lang-en);
  border-color: var(--lang-en);
  color: #fff;
}

.booking-chip.de.active {
  background: var(--lang-de);
  border-color: var(--lang-de);
  color: #fff;
}


.booking-chip:hover {
  background: #f7f3ed;
  border-color: #d7cfc2;
}

.booking-chip:hover img {
  transform: scale(1.05);
}

.booking-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.booking-input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #222;
  font-size: 0.95rem;
  width: 100%;
}

.booking-summary {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  color: #4d4943;
  line-height: 1.6;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.booking-subtitle {
  color: var(--muted);
  line-height: 1.6;
}

/* ===== WEEK NAV ===== */

.week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.week-nav-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.week-nav-btn:hover {
  background: #f7f3ed;
}

.calendar-badge {
  font-size: 0.86rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  white-space: nowrap;
}

/* ===== WEEK BOARD ===== */

.week-calendar-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.week-column {
  min-width: 180px;
  background: linear-gradient(180deg, #fff, #fcfaf7);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.week-column-header {
  padding: 16px 14px;
  background: #fbf8f3;
  border-bottom: 1px solid var(--line-soft);
}

.week-column-day {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.week-column-date {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.week-column-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}

.week-column-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fcfaf7;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 18px 10px;
}

/* ===== WEEK SLOT CARD ===== */

.week-card {
  border: 1px solid #ebe4d9;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.week-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.week-card-time {
  font-weight: 700;
  font-size: 0.98rem;
  color: #1f1f1f;
}

.week-card-price {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.week-card-teacher {
  font-weight: 700;
  line-height: 1.3;
}

.week-card-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.week-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.week-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.week-card-tag img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.1);
}


.week-card-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s ease;
  width: 100%;
}

.week-card-btn:hover {
  opacity: 0.88;
}

.week-card.en {
  border-left: 4px solid var(--lang-en);
  background: var(--lang-en-soft);
}

.week-card.de {
  border-left: 4px solid var(--lang-de);
  background: var(--lang-de-soft);
}

.week-card-tag.en {
  background: var(--lang-en-soft);
  color: var(--lang-en);
  border-color: var(--lang-en);
}

.week-card-tag.de {
  background: var(--lang-de-soft);
  color: var(--lang-de);
  border-color: var(--lang-de);
}

/* ===== NOTICE ===== */

.booking-notice {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #d7cfc2;
  border-radius: 16px;
  background: #f8f4ee;
  color: #3d3934;
  line-height: 1.7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

/* ===== FOOTER ===== */

footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  margin-top: 3rem;
}

.footer-brand {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-contact {
  font-size: 0.98rem;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .week-calendar-board {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .week-calendar-board {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .booking-header {
    align-items: flex-start;
  }

  .brand img {
    width: 72px;
  }
}

@media (max-width: 576px) {
  .brand img {
    width: 68px;
  }

  .nav-item-custom {
    display: block;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .week-calendar-board {
    grid-template-columns: 1fr;
  }

  .top-links {
    font-size: 0.88rem;
  }

  .hero-card {
    padding: 24px 18px 18px;
  }

  .card-custom {
    padding: 18px;
  }

  .booking-chip.en.active {
    background: var(--lang-en);
    border-color: var(--lang-en);
    color: #fff;
  }
  
  .booking-chip.de.active {
    background: var(--lang-de);
    border-color: var(--lang-de);
    color: #fff;
  }
}