:root {
  --dark: #14161a;
  --dark-2: #1e2127;
  --coral: #FF5C5C;
  --cream: #f7f5f1;
  --text: #1b1b1f;
  --muted: #6b6f76;
  --white: #ffffff;
  --border: #e7e4de;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(20, 22, 26, 0.08);
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--coral);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

/* Standard przycisków (ustalony z klientem, sierpień 2026):
   - tło sekcji czarne -> przycisk domyślnie czarny, ramka i napis koralowe;
     po najechaniu tło koralowe, napis biały
   - tło sekcji białe -> przycisk domyślnie biały, ramka i napis koralowe;
     po najechaniu tło koralowe, napis biały
   Ramka zawsze koralowa, w obu stanach. Kolor koralowy: #FF5C5C (--coral). */
.btn-coral-dark { background: var(--dark); color: var(--coral); border-color: var(--coral); }
.btn-coral-dark:hover { background: var(--coral); color: var(--white); border-color: var(--coral); }

.btn-coral-light { background: var(--white); color: var(--coral); border-color: var(--coral); }
.btn-coral-light:hover { background: var(--coral); color: var(--white); border-color: var(--coral); }

/* Wyjątek od standardu: stały przycisk "Zapisy" w pasku nawigacji — na stałe
   wypełniony kolorem (nie tylko po najechaniu), żeby wyróżniał się jako
   główne wezwanie do działania na tle ciemnego paska. */
.btn-coral-fill { background: var(--coral); color: var(--white); border-color: var(--coral); }
.btn-coral-fill:hover { background: var(--dark); color: var(--coral); border-color: var(--coral); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--white);
}
.brand-logo { height: 60px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}
.nav-links > li > a:hover,
.nav-links > li > button.nav-toggle-btn:hover,
.nav-links > li.active > a {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.nav-cta { margin-left: 8px; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
}
.dropdown-menu a:hover { background: var(--cream); color: var(--coral); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 200;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--dark-2);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li > a, .nav-links > li > button.nav-toggle-btn { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,0.04);
    margin-top: 4px;
  }
  .dropdown-menu a { color: rgba(255,255,255,0.85); }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; margin-top: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 90px 0 100px;
}
.hero-photo {
  background-image:
    linear-gradient(180deg, rgba(20,22,26,0.86), rgba(20,22,26,0.93)),
    url('/img/hero-warsztaty.jpg');
  background-size: cover;
  background-position: center 35%;
}
.eyebrow {
  display: inline-block;
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 18ch;
  color: var(--white);
}
.hero h1 em { color: var(--coral); font-style: normal; }
.hero p {
  max-width: 52ch;
  color: rgba(255,255,255,0.75);
  font-size: 1.08rem;
  margin: 18px 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-hero h1 .text-white { color: var(--white); }
.page-hero h1 .text-coral { color: var(--coral); }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 60ch; margin-top: 10px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--coral); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 10px; }
.standards-title { font-size: 1.15rem; margin-bottom: 20px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon { font-size: 1.8rem; margin-bottom: 14px; color: var(--coral); }
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card-link:hover { border-color: var(--coral); transform: translateY(-2px); }
.card-link-hint { color: var(--coral) !important; font-weight: 600; font-size: 0.85rem; margin-top: 12px !important; }
.icon svg { width: 30px; height: 30px; display: block; }
.coral-titles h3 { color: var(--text); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 8px 0 0; }

.stat-card { text-align: center; padding: 26px 16px; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--coral); }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.quote-card { padding: 28px; }
.quote-card p { font-style: italic; font-weight: 700; color: var(--text); }
.quote-mark { color: var(--coral); font-style: normal; font-weight: 700; }
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.quote-name { font-weight: 600; font-size: 0.92rem; }
.quote-role { color: var(--muted); font-size: 0.82rem; margin-top: 18px; }

.cta-band {
  background: var(--dark);
  color: var(--white);
  border-radius: 20px;
  padding: 56px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.form-row .hint { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--coral);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; background: #e7f6ec; color: #1e7a3d; }
.form-status.error { display: block; background: #fdeaea; color: #b32222; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-contact-details { margin-top: 16px; }
.footer-contact-details li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-contact-details a:hover { color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; }
.footer-col li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.social-links a:hover { background: var(--coral); }
.footer-credit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.78rem;
}
.footer-credit a { color: rgba(255,255,255,0.45); }
.footer-credit a:hover { color: rgba(255,255,255,0.75); }

/* ---------- Utility placeholders ---------- */
.placeholder-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--cream);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--coral);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Karuzela logotypów partnerów ---------- */
.logo-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: logo-scroll 22s linear infinite;
}
.logo-carousel:hover .logo-track { animation-play-state: paused; }
.logo-track img {
  height: clamp(64px, 9vw, 110px);
  width: auto;
  object-fit: contain;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; overflow-x: auto; }
}

/* ---------- Zespół — pozioma przewijana lista ---------- */
.team-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.team-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  text-align: center;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--muted);
  margin-bottom: 12px;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo.has-photo { border: none; }

/* ---------- Kafelki "flip" (obrót po kliknięciu) ---------- */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .flip-grid { grid-template-columns: 1fr; } }

.flip-card { height: 250px; perspective: 1200px; }
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.flip-card-inner.is-flipped { transform: rotateY(180deg); }
.flip-card-inner:focus-visible { transform: rotateY(180deg); outline: none; }

/* Na urządzeniach z prawdziwą myszką (nie dotyk): obrót po najechaniu,
   automatyczny powrót po zjechaniu kursorem — dzięki :hover to naturalnie
   zawsze tylko jeden kafelek naraz, bez potrzeby JS. Na dotyku zostaje
   dotychczasowe kliknięcie/tap (obsługiwane w flip-cards.js). */
@media (hover: hover) and (pointer: fine) {
  /* Hover wyzwalany na statycznym .flip-card (kontener, który się NIE
     obraca), a nie na .flip-card-inner (element, który faktycznie się
     obraca) — inaczej podczas animacji zmienia się geometria elementu
     pod kursorem i przy najechaniu blisko krawędzi kursor "wypada" z
     obszaru hover w trakcie obrotu, powodując migotanie/"skakanie". */
  .flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
}
.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 26px;
  overflow-y: auto;
}
.flip-card-front {
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-card-front .icon { color: var(--coral); margin-bottom: 12px; }
.flip-card-front h3 { font-size: 1.15rem; margin: 4px 0 0; color: var(--text); }
.flip-sub { color: var(--muted); font-size: 0.92rem; margin: 8px 0 0; }
.flip-hint { color: var(--coral); font-size: 0.78rem; margin: 18px 0 0; }
.flip-hint::after { content: "Kliknij, aby zobaczyć więcej ↺"; }
@media (hover: hover) and (pointer: fine) {
  .flip-hint::after { content: "Najedź, aby zobaczyć więcej ↺"; }
}
.flip-card-back {
  background: var(--dark);
  color: var(--white);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}
.flip-card-back ul { margin: 0; padding: 0; list-style: none; }
.flip-card-back li { font-size: 0.88rem; line-height: 1.6; margin-bottom: 8px; color: var(--white); font-weight: 400; }
.flip-card-back li::before { content: "– "; color: var(--coral); }
.flip-card-back p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--white); font-weight: 400; }
.flip-card-back h5 {
  color: var(--coral);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 0 6px;
}
.flip-card-back h5:first-child { margin-top: 0; }

/* ---------- Przełącznik grup (Akademia Moodsy) ---------- */
.group-tile {
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.group-tile:hover { transform: translateY(-2px); }
.group-tile.active { border-color: var(--coral); background: var(--cream); }
.group-tile .icon { font-size: 2rem; color: var(--coral); }
.group-panel[hidden] { display: none; }
.team-card h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.team-card p { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- Galeria: prosta siatka zdjęć ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Zgody marketingowe i klauzule informacyjne (formularze) ---------- */
.consent-group {
  margin: 22px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--coral);
}
.consent-row span { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.consent-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 4px 0 0;
}
.consent-note a { color: var(--coral); text-decoration: underline; }

.form-legal-note {
  max-width: 640px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.5;
}
.form-legal-note a { color: var(--coral); text-decoration: underline; }

.field-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
