/* =============================================================================
   ASY PITAGORASY – warstwa premium (ładowana tylko dla tego lokatora)
   Nadpisuje szkielet ze style.css. Kolory pochodzą ze zmiennych motywu Asów,
   więc identyfikacja (fiolet + róż) zostaje bez zmian.
   ============================================================================= */

.t-asy {
  --asy-ink: #211136;
  --asy-line: rgba(124, 58, 237, 0.14);
  --asy-card: 0 24px 60px -32px rgba(42, 17, 82, 0.45);
  --asy-card-hover: 0 36px 80px -30px rgba(124, 58, 237, 0.5);
  --asy-glow: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
  background: #FBF7FF;
}

/* ---------- Pasek postępu czytania ---------- */
.t-asy .scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-cta);
  z-index: 300;
  pointer-events: none;
}

/* ---------- Dekoracje matematyczne ---------- */
.mdecor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--violet-500);
  z-index: 0;
}
.mdecor-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.10;
}
.mdecor-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}
.mdecor-glow-1 {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -160px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.20), transparent 65%);
}
.mdecor-glow-2 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: -140px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.20), transparent 65%);
}
.mdecor-sym {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  color: var(--violet-500);
  opacity: 0.09;
  user-select: none;
}
.mdecor-shape,
.mdecor-chart {
  position: absolute;
  opacity: 0.10;
  color: var(--pink-500);
}
.mdecor-chart { color: var(--violet-500); }
.section-dark .mdecor { color: #fff; }
.section-dark .mdecor-sym,
.section-dark .mdecor-shape,
.section-dark .mdecor-chart { color: #fff; opacity: 0.07; }
.section-dark .mdecor-grid { opacity: 0.07; }

/* ---------- Nagłówek ---------- */
.t-asy .site-header {
  background: rgba(251, 247, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--asy-line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.t-asy .site-header.scrolled {
  background: rgba(251, 247, 255, 0.92);
  box-shadow: 0 10px 40px -24px rgba(42, 17, 82, 0.45);
}
.t-asy .main-nav a:not(.btn) {
  position: relative;
  border-bottom: 0;
}
.t-asy .main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cta);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-asy .main-nav a:not(.btn):hover::after { width: 100%; }

/* ---------- Przyciski ---------- */
.t-asy .btn-pink {
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(124, 58, 237, 0.7);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.t-asy .btn-pink::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-asy .btn-pink:hover::after { left: 130%; }
.t-asy .btn-pink:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 46px -16px rgba(236, 72, 153, 0.65);
}
.t-asy .btn-ghost {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--violet-600);
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--violet-100);
  backdrop-filter: blur(8px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.t-asy .btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--violet-500);
  box-shadow: 0 18px 40px -22px rgba(124, 58, 237, 0.8);
}

/* ---------- HERO ---------- */
.t-asy .hero {
  position: relative;
  background:
    radial-gradient(1000px 520px at 78% 12%, rgba(236, 72, 153, 0.13), transparent 60%),
    radial-gradient(900px 500px at 10% 82%, rgba(124, 58, 237, 0.14), transparent 60%),
    linear-gradient(180deg, #FBF7FF 0%, #F6EEFF 100%);
  color: var(--asy-ink);
  overflow: hidden;
}
.t-asy .hero-inner {
  padding-top: 86px;
  padding-bottom: 96px;
  position: relative;
  z-index: 1;
  gap: 56px;
}
.t-asy .hero-eyebrow {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--asy-line);
  color: var(--violet-600);
  box-shadow: 0 10px 30px -20px rgba(124, 58, 237, 0.9);
  backdrop-filter: blur(6px);
}
.t-asy .hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-500);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.18);
}
.t-asy .hero h1 {
  font-size: clamp(2.2rem, 3.9vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
/* Akcent: tekst w gradiencie marki + delikatna poświata pod spodem.
   Uwaga: bazowy .hero-accent używa background-clip: text, więc tło musi
   pozostać gradientem tekstu — podkreślenie robimy pseudoelementem. */
.t-asy .hero-accent {
  display: inline-block;
  width: fit-content;
  font-size: clamp(2.2rem, 3.9vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 4px 0 24px;
  position: relative;
}
.t-asy .hero-lead {
  font-size: 1.14rem;
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 30px;
}

/* CTA + odznaki zaufania */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px dashed var(--asy-line);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--asy-line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--asy-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -22px rgba(124, 58, 237, 0.9);
}
.hero-badge span:first-child { font-size: 1.05rem; }

/* zdjęcie + „unoszące się” kafelki ze wzorami */
.t-asy .hero-visual { position: relative; z-index: 1; }
.t-asy .hero-visual::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  background: var(--asy-glow);
  filter: blur(20px);
  z-index: -1;
}
.t-asy .hero-img-framed {
  border-radius: 36px;
  box-shadow: none;
  border: 0;
}
.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--asy-line);
  box-shadow: 0 20px 44px -24px rgba(42, 17, 82, 0.55);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--asy-ink);
  animation: chip-float 5.5s ease-in-out infinite;
}
.hero-chip .chip-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}
.hero-chip small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.hero-chip-1 { top: 12%; left: -6%; animation-delay: -1s; }
.hero-chip-2 { bottom: 16%; right: -4%; animation-delay: -3s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sekcje ---------- */
.t-asy .section { position: relative; overflow: hidden; background: transparent; }
.t-asy .section-tint {
  background: linear-gradient(180deg, #F8F2FF 0%, #FDF4FA 100%);
}
.t-asy .section-dark {
  background:
    radial-gradient(700px 380px at 80% 10%, rgba(236, 72, 153, 0.28), transparent 60%),
    linear-gradient(140deg, #2A1152 0%, #4C1D95 55%, #7C3AED 120%);
}
.t-asy .section > .container { position: relative; z-index: 1; }
.t-asy .section-title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.t-asy .section-title::after {
  width: 74px;
  height: 5px;
  border-radius: 999px;
  margin-top: 18px;
  background: var(--grad-cta);
}
.t-asy .section-lead { margin: 0 auto 52px; font-size: 1.06rem; }

/* ---------- Karty kursów ---------- */
.t-asy .course-grid { gap: 30px; max-width: 1100px; }
.t-asy .course-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--asy-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--asy-card);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.t-asy .course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: var(--grad-cta);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.t-asy .course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--asy-card-hover);
}
.t-asy .course-card:hover::before { opacity: 1; }
.t-asy .course-image { aspect-ratio: 16 / 11; }
.t-asy .course-image::after {
  background: linear-gradient(180deg, transparent 45%, rgba(42, 17, 82, 0.55));
}
.t-asy .course-card:hover .course-image img { transform: scale(1.08) rotate(0.6deg); }
.t-asy .course-badge {
  left: auto;
  right: 14px;
  box-shadow: 0 10px 26px -10px rgba(236, 72, 153, 0.9);
}
/* cena jako „pigułka” na zdjęciu */
.t-asy .course-image .course-price-pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px -14px rgba(42, 17, 82, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.t-asy .course-image .course-price-pill strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--violet-600);
}
.t-asy .course-body { padding: 26px 26px 26px; }
.t-asy .course-body h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
.t-asy .course-desc { color: var(--muted); line-height: 1.62; }
.t-asy .course-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.t-asy .course-meta li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--violet-50);
  border: 1px solid var(--asy-line);
  font-size: 0.8rem;
  color: var(--violet-600);
}
.t-asy .course-footer { padding-top: 18px; border-top: 1px dashed var(--asy-line); }
.t-asy .course-price strong { color: var(--violet-600); }
.t-asy .course-footer .btn { transition: transform 0.25s ease, gap 0.25s ease; }
.t-asy .course-card:hover .course-footer .btn { transform: translateX(3px); }

/* karty na ciemnym tle (kursy grupowe) – szkło */
.t-asy .section-dark .course-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
}
.t-asy .section-dark .course-body h3 { color: #fff; }
.t-asy .section-dark .course-desc { color: rgba(255, 255, 255, 0.78); }
.t-asy .section-dark .course-meta li {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.t-asy .section-dark .course-footer { border-top-color: rgba(255, 255, 255, 0.18); }
.t-asy .section-dark .course-price { color: rgba(255, 255, 255, 0.7); }
.t-asy .section-dark .course-price strong { color: #fff; }
.t-asy .section-dark .course-image .course-price-pill { background: rgba(255, 255, 255, 0.94); }

/* ---------- Dlaczego my / opinie ---------- */
.t-asy .why-item,
.t-asy .op-card {
  border-radius: 26px;
  border: 1px solid var(--asy-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--asy-card);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.t-asy .why-item:hover,
.t-asy .op-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--asy-card-hover);
}
.t-asy .why-icon { border-radius: 20px; }
.t-asy .op-quote { color: var(--asy-ink); }

/* ---------- Kontakt ---------- */
.t-asy .contact-card {
  border-radius: 28px;
  border: 1px solid var(--asy-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--asy-card);
  padding: 34px 30px;
}
.t-asy .contact-item {
  padding: 10px;
  border-radius: 18px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.t-asy .contact-item:hover { background: var(--violet-50); transform: translateX(4px); }
.t-asy .contact-ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 14px 30px -16px rgba(124, 58, 237, 0.9);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-asy .contact-item:hover .contact-ic { transform: rotate(-8deg) scale(1.06); }
.t-asy .map-frame {
  border-radius: 28px;
  border: 1px solid var(--asy-line);
  box-shadow: var(--asy-card);
  overflow: hidden;
}
.t-asy .contact-cta {
  margin-top: 64px;
  padding: 44px 32px;
  border-radius: 32px;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(236, 72, 153, 0.25), transparent 60%),
    linear-gradient(135deg, #2A1152, #5B21B6 60%, #7C3AED);
  box-shadow: 0 40px 90px -50px rgba(42, 17, 82, 0.9);
  position: relative;
  overflow: hidden;
}
.t-asy .contact-cta .handwritten,
.t-asy .contact-cta p { color: #fff; position: relative; z-index: 1; }
.t-asy .contact-cta > p:last-child { color: rgba(255, 255, 255, 0.78); }

/* ---------- Animacje wejścia (kaskada) ---------- */
.t-asy .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.t-asy .reveal.in { opacity: 1; transform: none; }
.t-asy .course-grid .course-card:nth-child(2),
.t-asy .why-grid .why-item:nth-child(2),
.t-asy .op-grid .op-card:nth-child(2) { transition-delay: 0.1s; }
.t-asy .course-grid .course-card:nth-child(3),
.t-asy .why-grid .why-item:nth-child(3),
.t-asy .op-grid .op-card:nth-child(3) { transition-delay: 0.2s; }
.t-asy .why-grid .why-item:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
  .t-asy .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .hero-chip { display: none; }
}
@media (max-width: 560px) {
  .hero-badges { gap: 8px; }
  .hero-badge { font-size: 0.8rem; padding: 8px 13px; }
  .t-asy .contact-cta { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .t-asy .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chip { animation: none; }
  .t-asy .btn-pink::after { display: none; }
  .t-asy .scroll-progress { display: none; }
}

/* Stopka karty: przy pigułce z ceną CTA zajmuje całą szerokość */
.t-asy .course-footer .btn-sm { flex: 1; justify-content: center; padding: 12px 18px; }

/* Przyciski akcji w banerze kontaktowym */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
  position: relative;
  z-index: 1;
}
.t-asy .btn-ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}
.t-asy .btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* ---------- Menu mobilne ----------
   Szkielet Lordy rozwija menu na ciemnym tle (--navy-950), ale Asy mają jasny
   nagłówek i ciemny tekst linków — na ciemnym tle był nieczytelny. */
@media (max-width: 900px) {
  .t-asy .main-nav {
    background: rgba(251, 247, 255, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--asy-line);
    box-shadow: 0 18px 40px -22px rgba(42, 17, 82, 0.55);
    padding: 20px 24px 24px;
  }
  .t-asy .main-nav a:not(.btn) {
    color: var(--asy-ink);
    font-size: 1.02rem;
    padding: 8px 0;
  }
  .t-asy .main-nav a:not(.btn):hover { color: var(--violet-600); }
  .t-asy .main-nav .btn-nav { align-self: stretch; text-align: center; }
  .t-asy .nav-socials {
    border-top-color: var(--asy-line);
    justify-content: center;
  }
}

/* Sekcja kontaktu kończy się mapą (Asy nie mają dolnego banera CTA),
   więc nie zostawiamy pod nią pełnych 84 px pustego tła. */
.t-asy #kontakt { padding-bottom: 34px; }
