/* ===== Lordy Oxfordy – redesign: granat • fiolet • róż ===== */
:root {
  --navy-950: #0F0A3A;
  --navy-900: #1E1B4B;
  --navy-800: #2A2468;
  --violet-600: #6B46C1;
  --violet-500: #8B5CF6;
  --violet-100: #EDE9FE;
  --violet-50: #F5F3FF;
  --pink-500: #FF4D94;
  --pink-400: #FF69B4;
  --pink-50: #FDF2F8;
  --ink: #1E1B4B;
  --muted: #6E67A6;
  --white: #ffffff;
  --grad-cta: linear-gradient(135deg, #FF4D94 0%, #8B5CF6 100%);
  --grad-dark: linear-gradient(160deg, #0F0A3A 0%, #1E1B4B 55%, #33206B 100%);
  --grad-tint: linear-gradient(180deg, #F5F3FF 0%, #FDF2F8 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 34px rgba(30, 27, 75, 0.12);
  --shadow-glow: 0 14px 38px rgba(139, 92, 246, 0.35);
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; }
a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== Animacje ===== */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}
.deco { position: absolute; pointer-events: none; user-select: none; }
.deco-float { animation: floaty 4s ease-in-out infinite; }
.deco-float-slow { animation: floaty 6.5s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(26px) scale(0.98); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .deco-float, .deco-float-slow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Przyciski ===== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-pink {
  background: var(--grad-cta);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 77, 148, 0.35);
}
.btn-pink:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 30px rgba(255, 77, 148, 0.5); filter: brightness(1.06); }
.btn-lg { padding: 17px 38px; font-size: 1.08rem; }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border: 2px solid var(--navy-900);
}
.btn-outline:hover { background: var(--violet-100); transform: translateY(-1px); }
.btn-danger { background: var(--pink-50); color: #d61d6f; border: 2px solid var(--pink-400); }
.btn-danger:hover { background: var(--pink-500); color: var(--white); border-color: var(--pink-500); }

/* ===== Nagłówek (sticky, granat) ===== */
.site-header {
  background: rgba(15, 10, 58, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(15, 10, 58, 0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo { transform: scale(1.04); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #E6E1FA;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:not(.btn):hover { color: var(--pink-400); border-bottom-color: var(--pink-400); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; }

/* ===== Hero (gradient granat–fiolet) ===== */
.hero {
  background: var(--grad-dark);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px;
  right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}
.hero::after {
  width: 480px; height: 480px;
  left: -160px; bottom: -220px;
  background: radial-gradient(circle, rgba(255, 77, 148, 0.22), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 72px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
}
.hero-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  margin: 14px 0 18px;
  background: linear-gradient(90deg, #FF4D94, #FF9BC8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 1.1rem; margin-bottom: 32px; max-width: 30rem; color: #CFC8F2; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-girl {
  width: min(430px, 92%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 14px rgba(139, 92, 246, 0.14), 0 24px 60px rgba(15, 10, 58, 0.6);
}
.hero-arrow { left: 45%; bottom: 14%; width: 110px; transform: rotate(-12deg); }

/* ===== Sekcje ===== */
.section { padding: 84px 0; background: var(--white); position: relative; }
.section-tint { background: var(--grad-tint); }
.section-dark {
  background: var(--grad-dark);
  color: #E6E1FA;
  overflow: hidden;
}
.section-title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 46px;
}
.section-title.light { color: var(--white); }
.section-title::after {
  content: '';
  display: block;
  width: 150px;
  height: 14px;
  margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 14'%3E%3Cpath d='M4 10 Q 75 1 146 6' stroke='%23FF4D94' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-lead {
  text-align: center;
  max-width: 42rem;
  margin: -30px auto 46px;
  font-size: 1.05rem;
  color: var(--muted);
}
.section-dark .section-lead { color: #BFB5E8; }

/* ===== Dlaczego my? ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.why-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 26px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.why-icon {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  margin: 0 auto 20px;
  transition: transform 0.25s ease;
}
.why-item:hover .why-icon { transform: scale(1.05); }
.why-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; }
.why-item p { font-size: 0.93rem; color: var(--muted); }

/* ===== Karty kursów ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}
.course-grid-2 { max-width: 760px; }
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-glow); }
.course-image { position: relative; aspect-ratio: 16 / 10; background: var(--violet-100); overflow: hidden; }
.course-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 10, 58, 0.35));
  pointer-events: none;
}
.course-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.course-card:hover .course-image img { transform: scale(1.06); }
.course-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--grad-cta);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 15px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 77, 148, 0.4);
}
.course-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--navy-900); margin-bottom: 10px; }
.course-desc { font-size: 0.93rem; color: #4B4680; margin-bottom: 16px; }
.course-meta { list-style: none; margin: 0 0 16px; font-size: 0.9rem; font-weight: 600; color: var(--violet-600); }
.course-meta li { padding: 3px 0; }
.course-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.course-price { font-size: 0.92rem; color: var(--muted); }
.course-price strong { font-size: 1.55rem; font-weight: 800; color: var(--pink-500); }

/* ===== Opinie ===== */
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.op-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.op-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.op-stars { color: var(--pink-500); letter-spacing: 4px; font-size: 1.05rem; margin-bottom: 14px; }
.op-quote { font-size: 0.97rem; font-style: italic; color: #4B4680; margin-bottom: 20px; flex: 1; }
.op-author { font-weight: 700; color: var(--navy-900); }
.op-role { font-size: 0.85rem; color: var(--muted); }

/* ===== Podstrony / 404 ===== */
.page-hero {
  background: var(--grad-dark);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: #CFC8F2; max-width: 42rem; margin: 0 auto; }
.link-light { color: var(--pink-400); }
.empty-note { text-align: center; font-size: 1.05rem; color: var(--muted); }

/* ===== Kontakt ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
.contact-item { display: flex; align-items: center; gap: 18px; }
.contact-ic {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
}
.contact-ic img { width: 100%; height: 100%; object-fit: contain; }
.contact-item strong { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy-900); }
.contact-item strong a { color: var(--pink-500); text-decoration: none; }
.contact-item strong a:hover { text-decoration: underline; }
.contact-item span { font-size: 0.88rem; color: var(--muted); }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.contact-cta { text-align: center; margin-top: 56px; }
.contact-cta > p:last-child { color: var(--muted); }
.handwritten {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--navy-900);
  transform: rotate(-2deg);
  display: inline-block;
  border-bottom: 4px solid var(--pink-500);
  padding-bottom: 4px;
}
.handwritten-dark { margin-bottom: 14px; }

/* ===== Stopka ===== */
.site-footer {
  background: var(--navy-950);
  color: #BFB5E8;
  padding: 10px 0 20px;
}
.site-footer::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #6B46C1, #FF4D94, #8B5CF6);
  margin-bottom: 18px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(191, 181, 232, 0.4);
  border-radius: 50%;
  color: #E6E1FA;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--grad-cta); border-color: transparent; transform: translateY(-3px) scale(1.06); }
.footer-social svg { width: 22px; height: 22px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #E6E1FA;
  text-decoration: none;
  font-weight: 600;
}
.footer-contact-item:hover { color: var(--pink-400); }
.fc-ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  font-size: 1rem;
}
.footer-info {
  text-align: center;
  font-size: 0.9rem;
  color: #8D82C7;
}
.footer-info p { margin-bottom: 8px; }
.footer-info a { color: #BFB5E8; text-decoration: none; }
.footer-info a:hover { color: var(--pink-400); text-decoration: underline; }
.footer-admin-link { opacity: 0.65; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--pink-400); }
.footer-bottom { padding-top: 8px; text-align: center; font-size: 0.88rem; color: #8D82C7; }

/* ===== Modal regulaminu ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 58, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 44px;
  position: relative;
}
.modal h2 { font-family: var(--font-display); color: var(--navy-900); font-weight: 800; margin-bottom: 18px; }
.modal h3 { color: var(--pink-500); font-weight: 700; margin: 22px 0 8px; font-size: 1.02rem; }
.modal p { font-size: 0.93rem; margin-bottom: 6px; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
}

/* ===== Panel administratora ===== */
.admin-section { background: var(--grad-tint); min-height: 60vh; }
.admin-narrow { max-width: 640px; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}
.admin-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--navy-900); margin-bottom: 22px; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-topbar .admin-title { margin-bottom: 0; }
.admin-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-user { font-size: 0.95rem; }
.inline-form { display: inline; }
.admin-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-block-head h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy-900); }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.admin-table th {
  text-align: left;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--violet-100);
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--violet-100); vertical-align: middle; }
.table-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; display: inline-block; vertical-align: middle; }
.table-actions { white-space: nowrap; }
.table-actions .btn { margin-right: 6px; }
.mini-badge {
  background: var(--grad-cta);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Formularze */
.form label { display: block; font-weight: 600; color: var(--navy-900); margin-bottom: 16px; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 2px solid var(--violet-100);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
}
.ga-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ga-form input { width: auto; max-width: 280px; margin-top: 0; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row:has(> label:nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.group-fields {
  border: 2px dashed var(--violet-100);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 16px;
}
.group-fields legend { font-weight: 700; color: var(--violet-600); padding: 0 8px; font-size: 0.9rem; }
.group-fields[hidden] { display: none; }
.form-buttons { display: flex; gap: 12px; margin-top: 8px; }
.current-image { display: flex; align-items: center; gap: 10px; font-weight: 400; margin-top: 6px; font-size: 0.9rem; }
.alert { padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 18px; }
.alert-error { background: var(--pink-50); color: #C4126A; border: 1px solid #F8B9D6; }
.alert-success { background: #ECFDF3; color: #0F7B43; border: 1px solid #B6ECD0; }

/* ===== Responsywność ===== */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .hero-girl { width: min(320px, 84%); }
  .hero-arrow { display: none; }
  .op-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row, .form-row:has(> label:nth-child(3)) { grid-template-columns: 1fr; gap: 0; }

  .burger { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-950);
    padding: 18px 24px 24px;
    box-shadow: 0 12px 24px rgba(15, 10, 58, 0.5);
    gap: 14px;
  }
  .main-nav.open { display: flex; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 38px; }
  .admin-card { padding: 28px 22px; }
  .modal { padding: 28px 22px; }
}

/* ===== Lord Owlfordy – smart sowa ===== */
.owl-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.owl-fab {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--pink-500);
  background: var(--white);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 10, 58, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: owl-bob 3.5s ease-in-out infinite;
}
.owl-fab img { width: 100%; height: 100%; object-fit: cover; }
.owl-fab:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(255, 77, 148, 0.45); }
@keyframes owl-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.owl-bubble {
  position: relative;
  max-width: 250px;
  background: var(--white);
  color: var(--navy-900);
  border-radius: 16px 16px 4px 16px;
  padding: 14px 34px 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 10, 58, 0.25);
  cursor: pointer;
  animation: owl-pop 0.3s ease;
}
.owl-bubble p { margin: 0; }
/* Dyskretny pasek informacji o cookies */
.cookie-note {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  padding: 12px 16px;
  background: var(--navy-900, #1A103F);
  color: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 10, 58, 0.35);
  font-size: 0.82rem;
  animation: owl-pop 0.3s ease;
}
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; line-height: 1.45; }
.cookie-note a { color: var(--pink-400, #FF69B4); text-decoration: underline; }
.cookie-note .btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .cookie-note {
    left: 10px;
    right: 88px;
    bottom: 10px;
    max-width: none;
  }
}

.owl-bubble-cta {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink-500, #ff4d94);
}
.owl-bubble-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}
@keyframes owl-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.owl-panel {
  width: min(370px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 10, 58, 0.35);
  animation: owl-pop 0.25s ease;
}
.owl-panel[hidden], .owl-bubble[hidden] { display: none; }
.owl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--grad-dark);
  color: var(--white);
}
.owl-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
  border: 2px solid var(--pink-400);
}
.owl-head strong { display: block; font-size: 1rem; }
.owl-head span { font-size: 0.76rem; color: #CFC6F2; }
.owl-close {
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.owl-close:hover { background: var(--pink-500); }
.owl-chips {
  display: flex;
  gap: 6px;
  padding: 12px 14px 4px;
  flex-wrap: wrap;
}
.owl-chip {
  border: 1.5px solid #E4DEF7;
  background: var(--white);
  color: var(--violet-600);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.owl-chip:hover { border-color: var(--pink-400); color: var(--pink-500); }
.owl-chip.active {
  background: var(--grad-cta);
  border-color: transparent;
  color: var(--white);
}
.owl-body { padding: 14px 18px 6px; overflow-y: auto; }
.owl-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pink-500);
  background: #FDF2F8;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.owl-body h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.owl-body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.owl-example {
  font-style: italic;
  color: var(--violet-600) !important;
  background: #F5F3FF;
  border-left: 3px solid var(--violet-500);
  border-radius: 0 10px 10px 0;
  padding: 8px 12px;
}
.owl-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.owl-option {
  text-align: left;
  border: 1.5px solid #E4DEF7;
  background: var(--white);
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.owl-option:hover:not(:disabled) { border-color: var(--pink-400); transform: translateX(3px); }
.owl-option.correct { background: #16a34a; border-color: #16a34a; color: var(--white); }
.owl-option.wrong { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }
.owl-feedback { font-size: 0.86rem; color: var(--navy-900) !important; }
.owl-foot { padding: 10px 18px 16px; }
.owl-foot .btn { width: 100%; text-align: center; font-size: 0.9rem; padding: 11px 18px; }
@media (max-width: 560px) {
  .owl-widget { right: 12px; bottom: 12px; }
  .owl-fab { width: 60px; height: 60px; }
  .owl-bubble { max-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .owl-fab, .owl-bubble, .owl-panel { animation: none; }
}

/* ===== Admin: sekcje strony i regulamin ===== */
.sections-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 6px 0 10px;
}
.section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
  cursor: pointer;
  padding: 9px 16px;
  border: 1.5px solid #E4DEF7;
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.section-toggle:hover { border-color: var(--pink-400); }
.section-toggle:has(input:checked) { background: var(--violet-50); border-color: var(--violet-500); }
.section-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--violet-600);
}
.regulamin-editor {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  min-height: 480px;
  resize: vertical;
}

/* ===================================================================
   MULTI-TENANT – skórki lokatorów
   Kolory i fonty przychodzą jako zmienne CSS wstrzykiwane w <head>
   (tenants.js → themeCss). Tutaj tylko różnice układu/kształtów.
   =================================================================== */

/* Emoji zamiast grafik w kontakcie (Asy Pitagorasy) */
.contact-ic { font-size: 1.6rem; }
.t-asy .contact-ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--violet-100);
}

/* Hero: „cutout” = grafika bez tła (Lordy), „framed” = zdjęcie w kadrze 4:5 (Asy) */
.hero-img-framed {
  width: min(430px, 92%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 32px;
  border: 0;
  box-shadow: 0 24px 60px rgba(15, 10, 58, 0.45);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.t-asy .brand-logo { height: 60px; }
@media (max-width: 720px) {
  .t-asy .brand-logo { height: 44px; }
}

/* ===================================================================
   PANEL: przełącznik szkół, wspólny harmonogram
   =================================================================== */

/* Zakładki wyboru szkoły w panelu (segmented control) */
.tenant-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px;
  background: linear-gradient(180deg, var(--violet-50), var(--white));
  border: 1px solid var(--violet-100);
  border-radius: 22px;
  box-shadow: inset 0 1px 3px rgba(30, 27, 75, 0.05);
  flex-wrap: wrap;
}
.tenant-tab {
  position: relative;
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  border-radius: 16px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
/* delikatna poświata w kolorze szkoły – widoczna dopiero na hover/aktywnej */
.tenant-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 60px at 12% 50%, color-mix(in srgb, var(--tab-accent) 18%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tenant-tab:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -18px rgba(30, 27, 75, 0.6);
}
.tenant-tab:hover::before { opacity: 0.7; }
.tenant-tab.active {
  background: var(--white);
  border-color: color-mix(in srgb, var(--tab-accent) 35%, var(--violet-100));
  box-shadow: 0 14px 34px -20px color-mix(in srgb, var(--tab-accent) 70%, transparent),
              0 2px 0 0 var(--white) inset;
}
.tenant-tab.active::before { opacity: 1; }

.tenant-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
  background: linear-gradient(135deg, var(--tab-accent), color-mix(in srgb, var(--tab-accent) 45%, #8B5CF6));
  box-shadow: 0 8px 18px -10px var(--tab-accent);
  filter: grayscale(0.55);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tenant-tab:hover .tenant-avatar { filter: none; opacity: 1; }
.tenant-tab.active .tenant-avatar { filter: none; opacity: 1; transform: scale(1.04); }

.tenant-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.tenant-meta strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.25s ease;
}
.tenant-meta small {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.7;
}
.tenant-tab:hover .tenant-meta strong,
.tenant-tab.active .tenant-meta strong { color: var(--navy-900); }

.tenant-check {
  position: relative;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--white);
  background: var(--tab-accent);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tenant-tab.active .tenant-check { opacity: 1; transform: none; }

@media (max-width: 620px) {
  .tenant-tabs { gap: 8px; padding: 6px; border-radius: 18px; }
  .tenant-tab { flex: 1 1 100%; padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tenant-tab, .tenant-avatar, .tenant-check { transition: none; }
  .tenant-tab:hover { transform: none; }
}

.tenant-group { margin-bottom: 48px; }
.tenant-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 14px;
  border-bottom: 2px solid var(--violet-100);
  margin-bottom: 22px;
}
.tenant-group-head h2 { font-size: 1.3rem; color: var(--navy-900); }
.tenant-domain { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.tenant-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend { display: flex; gap: 16px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }

.alert-warn { background: #FEF6E7; color: #92500A; border: 1px solid #F6D28B; }

/* Siatka tygodnia: kolumna godzin + 7 dni; zajęcia pozycjonowane absolutnie (1h = 60px) */
.week-grid {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(140px, 1fr));
  min-width: 900px;
  gap: 0 6px;
}
.week-corner { height: 34px; }
.week-day-head {
  height: 34px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-900);
  text-align: center;
}
.week-hours { position: relative; }
.week-hour {
  height: 60px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  padding-right: 8px;
  transform: translateY(-6px);
}
.week-col { position: relative; }
.week-slot {
  height: 60px;
  border-top: 1px solid var(--violet-100);
  background: var(--violet-50);
}
.week-col .week-slot:nth-child(even) { background: transparent; }
.week-lesson {
  position: absolute;
  left: 2px;
  right: 2px;
  padding: 6px 8px;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(30, 27, 75, 0.14);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.week-lesson strong { font-size: 0.78rem; color: var(--navy-900); }
.week-lesson span { color: var(--muted); }
.week-lesson.conflict {
  background: #FEF2F2;
  box-shadow: 0 0 0 2px #F87171 inset;
}
.conflict-flag { color: #B91C1C !important; font-weight: 700; }

.row-conflict { background: #FEF2F2; }
.conflict-tag {
  display: block;
  font-size: 0.74rem;
  color: #B91C1C;
  font-weight: 600;
}
.ok-tag { font-size: 0.78rem; color: #0F7B43; font-weight: 700; }

.lesson-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 18px;
}
.lesson-form .full { grid-column: 1 / -1; }
.regulamin-tabs { display: flex; gap: 8px; margin-bottom: 18px; }

/* -------------------------------------------------------------------
   Asy Pitagorasy: jasny nagłówek i hero (jak na starej stronie).
   Szkielet Lordy ma ciemny gradient — tu przywracamy oryginalny,
   minimalistyczny, lawendowy wygląd Asów.
   ------------------------------------------------------------------- */
.t-asy .site-header {
  background: rgba(251, 247, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: none;
}
.t-asy .main-nav a:not(.btn) {
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.96rem;
}
.t-asy .main-nav a:not(.btn):hover { color: var(--violet-500); border-bottom-color: var(--violet-500); }
.t-asy .burger span { background: var(--violet-600); }

.t-asy .hero {
  background: var(--violet-50);
  color: var(--ink);
}
.t-asy .hero::before,
.t-asy .hero::after { display: none; }
.t-asy .hero h1 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.t-asy .hero-accent {
  font-style: normal;
  font-weight: 700;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.t-asy .hero-lead { color: var(--muted); }
.t-asy .hero-eyebrow {
  background: var(--violet-100);
  color: var(--violet-600);
}

/* Przełącznik maskotki w panelu – wizualnie oddzielony od sekcji strony */
.section-toggle.mascot-toggle { border-style: dashed; }

/* Maskotka Asów jest SVG – nie kadrujemy jej jak zdjęcia */
/* Maskotka Asów: PNG z przezroczystym tłem – kadrujemy na pysk, tło bierze kolor kółka */
.t-asy .owl-fab img,
.t-asy .owl-head img {
  object-fit: cover;
  object-position: center 30%;
  background: transparent;
}
.t-asy .owl-fab { background: var(--violet-100); }
.t-asy .owl-head img { background: rgba(255, 255, 255, 0.14); }

/* Formularz linków do social mediów w panelu */
.social-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 18px;
}
.social-form .full { grid-column: 1 / -1; }

/* Panel: opinie */
.opinion-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 18px;
}
.opinion-form .full { grid-column: 1 / -1; }
.op-stars-cell { color: var(--pink-500); letter-spacing: 2px; white-space: nowrap; }
.op-stars-cell .stars-dim { color: var(--violet-100); }
.op-quote-cell { max-width: 460px; font-style: italic; color: #4B4680; }

/* Panel: dopisek „(opcjonalne)” przy polach formularza */
.form label .optional { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.shared-note { margin-bottom: 18px; text-align: left; }
.admin-block-head .head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Rozwijane menu panelu */
.admin-menu { position: relative; }
.admin-menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-menu[open] > summary { background: var(--violet-500); color: var(--white); border-color: var(--violet-500); }
.admin-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 220px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--violet-100);
  border-radius: 16px;
  box-shadow: 0 22px 50px -24px rgba(30, 27, 75, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
  transition: background 0.18s ease, transform 0.18s ease;
}
.admin-menu-list a:hover { background: var(--violet-50); transform: translateX(2px); }

/* Opinie w panelu: Google + wybór puli */
.google-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 18px; }
.google-form .full { grid-column: 1 / -1; }
.import-form { margin-top: 4px; }
.visible-toggle input { width: 20px; height: 20px; accent-color: var(--violet-500); cursor: pointer; }
.row-muted { opacity: 0.55; }
/* Opinie na stronie: autor */
.op-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.op-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.op-meta .op-author, .op-meta .op-role { margin: 0; }
.op-more { text-align: center; margin-top: 36px; }
.btn-ghost-op {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--violet-600);
  background: var(--white);
  border: 2px solid var(--violet-100);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-ghost-op:hover {
  transform: translateY(-2px);
  border-color: var(--violet-500);
  box-shadow: 0 16px 34px -20px rgba(139, 92, 246, 0.8);
}

/* Social media w menu (po prawej stronie nawigacji) */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #E6E1FA;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.nav-socials a:hover {
  transform: translateY(-2px) scale(1.06);
  background: var(--grad-cta);
  color: var(--white);
}
.nav-socials svg { width: 17px; height: 17px; }
@media (max-width: 900px) {
  .nav-socials {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 14px 0 0;
    margin: 6px 0 0;
    justify-content: center;
    width: 100%;
  }
}

/* Asy: jasny nagłówek – ikony muszą być ciemne */
.t-asy .nav-socials { border-left-color: var(--violet-100); }
.t-asy .nav-socials a { color: var(--violet-600); background: var(--violet-50); }
.t-asy .nav-socials a:hover { color: var(--white); background: var(--grad-cta); }
@media (max-width: 900px) {
  .t-asy .nav-socials { border-top-color: var(--violet-100); }
}

/* Na komórkach maskotka nie zaczepia dymkiem (zasłaniałby treść) */
@media (max-width: 768px) {
  .owl-bubble { display: none !important; }
}
