/* =============================================
   SPRYTNY FACH – Styles
   ============================================= */

:root {
  --navy:      #1C3461;
  --navy-dark: #122244;
  --navy-mid:  #243d74;
  --red:       #D42929;
  --red-dark:  #b01f1f;
  --white:     #ffffff;
  --gray-50:   #f8f9fc;
  --gray-100:  #f0f2f8;
  --gray-200:  #e2e6f0;
  --gray-500:  #6b7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --radius:    12px;
  --radius-lg: 20px;
  --transition: .2s ease;
  --font: 'Poppins', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,41,41,.35); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn--full { width: 100%; justify-content: center; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  color: #ffffff;
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

.nav__logo { display: flex; align-items: center; }
.nav__logo-svg { height: 36px; width: auto; }

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.1); }

.nav__cta { margin-left: 8px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(212,41,41,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.04) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 680px;
}

.hero__tag {
  display: inline-block;
  background: rgba(212,41,41,.2);
  color: #ff9999;
  border: 1px solid rgba(212,41,41,.4);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .red { color: var(--red); }

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
}

.hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero__badges span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}
.hero__badges svg {
  width: 16px;
  height: 16px;
  color: #4ade80;
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 96px 0; }
.section:nth-child(even) { background: var(--gray-50); }

.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 56px;
}

/* =============================================
   SERVICES
   ============================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--gray-500);
  font-size: .9rem;
  line-height: 1.6;
}

/* =============================================
   PRICING
   ============================================= */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.pricing-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: var(--white);
  padding: 18px 24px;
}
.pricing-card__icon { font-size: 1.4rem; }
.pricing-card__head h3 { font-size: 1rem; font-weight: 700; }

.pricing-card__list {
  padding: 16px 24px;
}
.pricing-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .88rem;
}
.pricing-card__list li:last-child { border-bottom: none; }
.pricing-card__list li span { color: var(--gray-700); flex: 1; }
.pricing-card__list li strong { color: var(--navy); font-weight: 700; white-space: nowrap; }

.pricing-card__note {
  padding: 0 24px 16px;
  font-size: .78rem;
  color: var(--gray-500);
  font-style: italic;
}

.pricing__disclaimer {
  text-align: center;
  color: var(--gray-500);
  font-size: .85rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================================
   BOOKING
   ============================================= */
.booking__layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

.booking__calendar-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}

/* FullCalendar overrides */
.fc {
  font-family: var(--font) !important;
  --fc-border-color: var(--gray-200);
  --fc-neutral-bg-color: #f8fafc;
  --fc-page-bg-color: #ffffff;
  --fc-today-bg-color: #fff7db;
}
.fc-toolbar {
  gap: 12px;
  margin-bottom: 18px !important;
  align-items: center !important;
}
.fc-toolbar-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
  text-transform: capitalize;
}
.fc-button {
  font-family: var(--font) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-transform: lowercase;
  border-radius: 8px !important;
  padding: 8px 14px !important;
}
.fc-button-primary {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}
.fc-button-primary:hover { background-color: var(--navy-mid) !important; }
.fc-button-active, .fc-button-primary:not(:disabled).fc-button-active {
  background-color: var(--navy-dark) !important;
}
.fc .fc-day-today { background-color: rgba(28,52,97,.06) !important; }
.fc .fc-timegrid-slot { height: 2em !important; }
.fc .fc-timegrid-slot-label { font-size: .78rem !important; }
.slot-card { padding: 2px 4px; line-height: 1.3; }
.slot-card__time { font-size: .78rem; font-weight: 600; }
.fc-scrollgrid {
  border-radius: 14px !important;
  overflow: hidden;
}
.fc-col-header-cell {
  background: #f8fafc;
}
.fc-col-header-cell-cushion {
  padding: 12px 8px !important;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: lowercase;
  line-height: 1.2;
}
.fc-timegrid-axis {
  width: 64px !important;
  background: #fbfcff;
}
.fc-timegrid-axis-cushion,
.fc-timegrid-slot-label-cushion {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gray-700);
  padding: 0 12px !important;
}
.fc-timegrid-slot {
  height: 72px !important;
}
.fc-timegrid-slot-label {
  background: #fbfcff;
}
.fc-timegrid-slot-lane {
  background:
    linear-gradient(to bottom, rgba(28,52,97,.03), rgba(28,52,97,0));
}
.fc .fc-timegrid-slot-minor {
  border-top-style: solid;
}
.fc-timegrid-event-harness {
  margin: 0 4px;
}
.fc-event {
  cursor: pointer !important;
  border-width: 1px !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.fc-event-main {
  padding: 0 !important;
}
.slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 9px;
  min-height: 100%;
  text-align: center;
}
.slot-card__time {
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
  width: 100%;
}
.fc-event.slot-free {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}
.fc-event.slot-busy {
  background-color: #9ca3af !important;
  border-color: #9ca3af !important;
  color: #4b5563 !important;
  cursor: not-allowed !important;
}
.fc-timegrid-now-indicator-line {
  border-color: rgba(212,41,41,.55) !important;
}
.fc-timegrid-now-indicator-arrow {
  border-color: rgba(212,41,41,.55) !important;
}

/* Animacja slide przy nawigacji */
@keyframes fcSlideFwd {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fcSlideBwd {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
.fc-slide-fwd { animation: fcSlideFwd .28s cubic-bezier(.25,.46,.45,.94); }
.fc-slide-bwd { animation: fcSlideBwd .28s cubic-bezier(.25,.46,.45,.94); }
.fc-view-harness { overflow: hidden; }

/* Custom prev/next/today – wygląd jak oryginalne przyciski FC */
.fc .fc-customPrev-button,
.fc .fc-customNext-button {
  font-size: 1.1rem !important;
  padding: 4px 10px !important;
  line-height: 1 !important;
}
.fc .fc-customToday-button { font-size: .82rem !important; }

.booking__sidebar {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
}
.booking__sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hours-list { margin-bottom: 24px; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list strong { font-weight: 600; }

.booking__legend {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
  line-height: 2;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}
.legend-dot--free { background: #16a34a; }
.legend-dot--busy { background: var(--gray-500); }

.booking__tip {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--gray-700);
  margin: 4px 0 18px;
  line-height: 1.5;
}
.form-consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}
.form-consent a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =============================================
   LEGAL
   ============================================= */
.legal {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3fb 100%);
}

.legal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.legal-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(28,52,97,.1);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(18,34,68,.06);
}

.legal-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.legal-card p {
  color: var(--gray-700);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 24px;
  transition: var(--transition);
}
.contact__card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.contact__icon { font-size: 2.5rem; }
.contact__card strong { font-weight: 700; color: var(--navy); }
.contact__card a, .contact__card span { color: var(--gray-500); font-size: .95rem; }
.contact__card a:hover { color: var(--red); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.5);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}
.footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer__links a {
  color: rgba(255,255,255,.72);
  transition: var(--transition);
}
.footer__links a:hover {
  color: var(--white);
}
.red { color: var(--red); }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--gray-700);
}
.modal__close:hover { background: var(--gray-200); }

.modal h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal__slot-info {
  color: var(--red);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 24px;
}

/* =============================================
   FORM
   ============================================= */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 80px; }

.captcha-group label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: var(--gray-700); }

.form-error {
  color: var(--red);
  font-size: .85rem;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(212,41,41,.08);
  border-radius: 8px;
}

/* =============================================
   BOOKING SUCCESS
   ============================================= */
.booking-success {
  text-align: center;
  padding: 32px 16px;
}
.booking-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1.8rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}
.booking-success h3 { color: var(--navy); margin-bottom: 10px; }
.booking-success p { color: var(--gray-500); font-size: .95rem; }

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 3000;
  background: var(--navy-dark);
  color: rgba(255,255,255,.85);
  transform: translateY(100%);
  transition: transform .35s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}
.cookie-banner.show { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__inner p {
  flex: 1;
  font-size: .85rem;
  line-height: 1.6;
  min-width: 260px;
}
.cookie-banner__inner a { color: #93c5fd; }
.cookie-banner__btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.cookie-banner__more {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
}
.cookie-banner__more:hover { color: var(--white); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .services__grid,
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .booking__layout { grid-template-columns: 1fr; }
  .booking__sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .booking__sidebar h3 { grid-column: span 2; }
  .legal__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
  }

  .hero__content { padding-top: 90px; }
  .section { padding: 64px 0; }
  .section-sub { margin-bottom: 36px; }

  .services__grid,
  .pricing__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 28px 24px; }

  .booking__sidebar { grid-template-columns: 1fr; }
  .footer__links {
    justify-content: center;
  }
  .fc-toolbar {
    flex-direction: column;
    align-items: stretch !important;
  }
  .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .fc-timegrid-axis {
    width: 54px !important;
  }
  .fc-timegrid-slot {
    height: 64px !important;
  }
  .fc-col-header-cell-cushion {
    font-size: .82rem;
  }
  .slot-card {
    padding: 7px 8px;
  }
  .slot-card__time {
    font-size: .8rem;
  }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
