/* ==========================================================================
   learngerman.pl — design system
   Paleta: głęboki granat (zaufanie) + żywy koralowy akcent (energia, CTA)
   ========================================================================== */

:root {
  --navy: #16324a;
  --navy-light: #204765;
  --ink: #1b2735;
  --muted: #5b6b7c;
  --coral: #ff5a45;
  --coral-dark: #e04430;
  --coral-light: #ff8b73;
  --coral-tint: #fff0ec;
  --cream: #faf7f2;
  --cream-dark: #f0e9dd;
  --border: #e4ddd0;
  --white: #ffffff;
  --success: #1e7a4c;
  --shadow: 0 4px 24px rgba(22, 50, 74, 0.08);
  --shadow-lg: 0 20px 60px rgba(22, 50, 74, 0.16);
  --shadow-coral: 0 10px 30px -6px rgba(255, 90, 69, 0.45);
  --radius: 16px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 14px 34px -6px rgba(255, 90, 69, 0.55); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ── Header / nav ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250, 247, 242, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.01em; }
.brand span { color: var(--coral); }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a { font-size: .92rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.btn-nav-cta {
  background: var(--coral); color: var(--white) !important; padding: .65rem 1.35rem;
  border-radius: 999px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-coral);
  transition: all .2s ease;
}
.btn-nav-cta:hover { background: var(--coral-dark); transform: translateY(-1px); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .2s; }
.mobile-nav { display: none; flex-direction: column; padding: 1rem 24px 1.5rem; border-top: 1px solid var(--border); background: var(--cream); }
.mobile-nav a { padding: .7rem 0; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); }
.mobile-nav .btn-nav-cta { text-align: center; margin-top: 1rem; border-bottom: none; }
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-burger { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 20% 0%, var(--navy-light) 0%, var(--navy) 55%, #0f2233 100%);
  color: var(--white);
  padding: 5.5rem 0 5rem;
}
.hero-blobs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-blobs .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 14s ease-in-out infinite; }
.hero-blobs .b1 { width: 420px; height: 420px; background: var(--coral); top: -140px; right: -80px; }
.hero-blobs .b2 { width: 360px; height: 360px; background: #3a6f9c; bottom: -160px; left: -60px; animation-duration: 18s; animation-direction: reverse; }
.hero-blobs .b3 { width: 220px; height: 220px; background: var(--coral-light); top: 40%; left: 55%; opacity: .3; animation-duration: 11s; animation-delay: 2s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-18px, 22px) scale(0.97); }
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,.82); }
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-trust { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero-trust-item { display: flex; align-items: baseline; gap: .5rem; }
.hero-trust-item strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--coral-light); }
.hero-trust-item span { font-size: .82rem; color: rgba(255,255,255,.7); }

.hero-photo-wrap { position: relative; }
.hero-photo {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--navy-light) 0%, var(--coral-dark) 130%);
  border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; color: rgba(255,255,255,.85); text-align: center; padding: 2rem;
}
.hero-photo-placeholder .icon { font-size: 2.6rem; }
.hero-photo-placeholder span { font-size: .82rem; color: rgba(255,255,255,.6); max-width: 22ch; }
.hero-photo-badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--white); color: var(--navy);
  border-radius: 16px; padding: .85rem 1.15rem; box-shadow: var(--shadow-lg);
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: .5rem;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { max-width: 320px; margin: 0 auto; }
}

/* ── Sections ── */
section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy .eyebrow { color: var(--white); }
.section-navy .eyebrow { color: var(--coral-light); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Paths (3 goal cards) ── */
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.path-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.path-card .path-icon {
  font-size: 1.5rem; margin-bottom: 1rem; width: 3rem; height: 3rem; display: flex; align-items: center;
  justify-content: center; background: var(--coral-tint); border-radius: 12px;
}
.path-card h3 { margin-bottom: .6rem; }
.path-card p { color: var(--muted); font-size: .93rem; }
.path-card a.path-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; color: var(--coral); font-weight: 700; font-size: .88rem; }

@media (max-width: 860px) {
  .paths-grid { grid-template-columns: 1fr; }
}

/* ── Feature grid (jak wygladaja zajecia) ── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.feature-item { padding: 1.75rem; background: var(--cream-dark); border-radius: var(--radius); }
.feature-item h3 { margin-bottom: .5rem; }
.feature-item p { color: var(--muted); margin: 0; font-size: .93rem; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1rem; }
.price-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; position: relative; text-align: center; transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card-featured { border-color: var(--coral); box-shadow: var(--shadow-lg); transform: scale(1.04); }
.price-card-featured:hover { transform: scale(1.04) translateY(-4px); }
.price-card-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: var(--white); font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap;
}
.price-card-name { font-weight: 700; color: var(--navy); margin-bottom: .5rem; font-size: .95rem; }
.price-card-amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--navy); }
.price-card-amount span { font-size: 1rem; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.price-card-desc { font-size: .84rem; color: var(--muted); margin-top: .6rem; margin-bottom: 0; }
.pricing-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 2rem; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr 1fr; } .price-card-featured { transform: none; } .price-card-featured:hover { transform: translateY(-4px); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ── Testimonials ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.testimonial-quote { font-style: italic; color: var(--ink); margin-bottom: 1.1rem; }
.testimonial-quote::before { content: '“'; color: var(--coral); font-size: 1.4em; font-style: normal; }
.testimonial-footer { display: flex; align-items: center; gap: .6rem; }
.testimonial-badge {
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--coral-tint);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.testimonial-author { font-size: .82rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.faq-item p { color: var(--muted); margin: 0; font-size: .93rem; }

/* ── Final CTA band ── */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #0f2233 100%); color: var(--white); text-align: center; padding: 4.5rem 0; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,.78); margin-left: auto; margin-right: auto; }

/* ── Booking widget ── */
.booking-widget {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 640px; margin: 0 auto; position: relative; z-index: 1;
}
.booking-steps { display: flex; }
.booking-step-label {
  flex: 1; text-align: center; padding: .85rem .5rem; font-size: .78rem; font-weight: 700;
  color: var(--muted); background: var(--cream-dark); border-bottom: 3px solid transparent;
}
.booking-step-label.active { color: var(--navy); border-color: var(--coral); background: var(--white); }
.booking-body { padding: 1.75rem; }
.booking-day-picker { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.25rem; }
.booking-day-btn {
  flex: 0 0 auto; width: 64px; padding: .6rem .3rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; text-align: center; font-family: var(--font-body); transition: all .15s;
}
.booking-day-btn .dow { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; }
.booking-day-btn .dom { display: block; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.booking-day-btn.active { border-color: var(--coral); background: var(--coral-tint); }
.booking-day-btn:disabled { opacity: .35; cursor: not-allowed; }
.booking-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.booking-slot-btn {
  padding: .7rem; border-radius: 10px; border: 1px solid var(--border); background: var(--white);
  cursor: pointer; font-weight: 700; color: var(--navy); font-size: .88rem; font-family: var(--font-body); transition: all .15s;
}
.booking-slot-btn:hover { border-color: var(--coral); }
.booking-slot-btn.selected { background: var(--coral); border-color: var(--coral); color: var(--white); }
.booking-empty { text-align: center; color: var(--muted); font-size: .9rem; padding: 1.5rem 0; }
.booking-form .form-row { margin-bottom: 1rem; }
.booking-form label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: .92rem; background: var(--cream);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: none; border-color: var(--coral); }
.booking-selected-summary { background: var(--coral-tint); border-radius: 10px; padding: .8rem 1rem; font-size: .88rem; margin-bottom: 1.25rem; font-weight: 600; color: var(--navy); }
.booking-nav-row { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; }
.booking-success { text-align: center; padding: 1rem 0; }
.booking-success .check { font-size: 2.5rem; color: var(--success); margin-bottom: 1rem; }
.booking-error { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: .75rem 1rem; font-size: .85rem; margin-bottom: 1rem; }
.booking-loading { text-align: center; color: var(--muted); font-size: .88rem; padding: 1rem 0; }

/* ── Contact form ── */
.contact-form { max-width: 520px; }
.contact-form .form-row { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px; font-family: var(--font-body); font-size: .92rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--coral); }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card img { height: 170px; width: 100%; object-fit: cover; background: var(--cream-dark); }
.blog-card-body { padding: 1.3rem; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.blog-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.blog-card .blog-date { font-size: .74rem; color: var(--coral); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: .5rem; display: block; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.post-content { max-width: 720px; margin: 0 auto; }
.post-content h2 { margin-top: 2rem; }
.post-content ul, .post-content ol { padding-left: 1.4rem; color: var(--ink); }
.post-cover { border-radius: var(--radius); margin-bottom: 2rem; max-height: 420px; object-fit: cover; width: 100%; }

/* ── About page photo ── */
.about-photo-wrap { max-width: 280px; margin-bottom: 2.5rem; }
.about-photo {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, var(--navy) 0%, var(--coral-dark) 130%);
  box-shadow: var(--shadow-lg);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; color: rgba(255,255,255,.85); text-align: center; padding: 1.5rem;
}
.about-photo-placeholder .icon { font-size: 2.2rem; }
.about-photo-placeholder span { font-size: .76rem; color: rgba(255,255,255,.55); }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding-top: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: .88rem; max-width: 30ch; }
.footer-col h4 { color: var(--white); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: .88rem; margin-bottom: .6rem; }
.footer-col a:hover { color: var(--coral-light); }
.footer-bottom { display: flex; justify-content: space-between; padding: 1.5rem 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.footer-bottom a { color: rgba(255,255,255,.6); }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; } }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: var(--navy); color: rgba(255,255,255,.9);
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.cookie-banner p { margin: 0; font-size: .82rem; max-width: 60ch; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; flex-shrink: 0; }
.btn-cookie-decline, .btn-cookie-accept { padding: .55rem 1.2rem; border-radius: 999px; font-size: .82rem; font-weight: 700; border: none; cursor: pointer; }
.btn-cookie-decline { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3); }
.btn-cookie-accept { background: var(--coral); color: var(--white); }

/* ── Misc ── */
.mono { font-family: 'DM Mono', ui-monospace, monospace; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
