@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --c-yellow: #dcb040;
    --c-yellow-hover: #c89a28;
    --c-black: #0a0a0a;
    --c-charcoal: #1c1c1c;
    --c-white: #ffffff;
    --c-cream: #f8f5f0;
    --c-warm: #efebe5;
    --c-gray-dark: #444444;
    --c-gray-mid: #666666;
    --c-line: rgba(10, 10, 10, 0.1);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.12);
    --radius-md: 14px;
    --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
    --grid-pattern:
        linear-gradient(rgba(99, 155, 230, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 155, 230, 0.09) 1px, transparent 1px);
    --grid-size: 28px 28px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--c-charcoal);
    background-color: #fff;
}

.df-nav__link--current { color: var(--c-yellow); }
.df-nav__links { margin: 0; }
.df-nav__link,
.df-nav__link:hover,
.df-nav__link:focus,
.df-nav__link:active { text-decoration: none; }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #fff;
    background-image: var(--grid-pattern);
    background-size: var(--grid-size);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto -140px -180px auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 176, 64, 0.32) 0%, rgba(220, 176, 64, 0) 72%);
    z-index: 1;
    pointer-events: none;
}

/* Light hero — nav dark text only on desktop (mobile panel has dark bg, needs white text) */
@media (min-width: 1024px) {
  .df-nav:not(.scrolled) .df-nav__link { color: #1c1c1c; }
  .df-nav:not(.scrolled) .df-nav__link:hover,
  .df-nav:not(.scrolled) .df-nav__link:focus-visible { color: var(--c-yellow-hover); }
}
.df-nav:not(.scrolled) .df-nav__toggle span { background: #1c1c1c; }
.df-nav:not(.scrolled) .df-nav__toggle[aria-expanded="true"] span { background: var(--c-white); }

.hero-text {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px clamp(1.25rem, 4vw, 6rem);
    color: var(--c-charcoal);
}

.hero-main-copy {
    max-width: 540px;
    animation: cardIn 0.9s ease both;
}

.hero-pill {
    display: inline-block;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    margin-bottom: 18px;
}

.hero-h1 {
    font-family: 'Playfair Display', serif;
    color: #131313;
    font-size: clamp(2rem, 4.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 18px;
}

.hero-lead {
    color: var(--c-gray-dark);
    line-height: 1.7;
    font-size: clamp(0.98rem, 1.2vw, 1.05rem);
    max-width: 50ch;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-btn-primary {
    background: var(--c-yellow);
    color: #131313;
    box-shadow: 0 12px 24px rgba(220, 176, 64, 0.34);
}
.hero-btn-primary:hover { background: var(--c-yellow-hover); color: #131313; transform: translateY(-2px); }

.hero-btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    color: #131313;
    border: 1px solid rgba(0, 0, 0, 0.18);
}
.hero-btn-secondary:hover { color: #131313; transform: translateY(-2px); box-shadow: var(--shadow-sm); background: rgba(0, 0, 0, 0.08); }

.hero-image-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 85%;
    max-width: 60%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

.hero-side-image {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: right bottom;
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: floatIn 1s ease both;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.18));
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.15;
    margin: 0;
}

.df-eyebrow {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-yellow);
    margin-bottom: 10px;
}

/* ========== FILARY (sticky scrollytelling, 3 steps) ========== */
.krokpokroku {
    background: #fff;
    padding: 48px 0 0;
    position: relative;
}

.krok-intro {
    max-width: 720px;
    margin: 0 auto 8px;
    padding: 0 6%;
    text-align: center;
}

.steps-scroller {
    position: relative;
    height: 300vh;
}

.steps-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 96px clamp(1.25rem, 4vw, 6rem) 28px;
}

.steps-header {
    text-align: center;
    margin-bottom: 14px;
}

.steps-header .df-eyebrow { display: block; margin-bottom: 4px; }

.steps-stage {
    flex: 1;
    position: relative;
    min-height: 0;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.step-card {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.step-card.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.step-card__media { display: flex; align-items: center; justify-content: center; }

.step-card__media img {
    max-width: min(100%, 300px);
    max-height: 52vh;
    height: auto;
    width: auto;
    filter: drop-shadow(0 14px 28px rgba(220, 176, 64, 0.32));
}

.step-card__num {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-yellow);
    margin-bottom: 12px;
}

.step-card__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    margin: 0 0 14px;
    color: #131313;
    line-height: 1.15;
    font-weight: 700;
}

.step-card__desc {
    color: var(--c-gray-dark);
    line-height: 1.7;
    font-size: clamp(0.94rem, 1.1vw, 1rem);
    max-width: 60ch;
    margin: 0;
}

.steps-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.step-dot {
    width: 28px;
    height: 4px;
    padding: 0;
    background: rgba(10, 10, 10, 0.14);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.35s ease, width 0.35s ease, transform 0.2s ease;
}
.step-dot:hover { background: rgba(10, 10, 10, 0.32); transform: translateY(-1px); }
.step-dot:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 4px; }
.step-dot.is-active { background: var(--c-yellow); width: 52px; }
.step-dot.is-active:hover { background: var(--c-yellow); }

/* ========== KURSY DLA DZIECI ========== */
.kursy {
    background: linear-gradient(180deg, #f9f6f1 0%, #fff 100%);
    padding: 84px clamp(1.25rem, 4vw, 6rem);
}

.kursy-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.kursy-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.kursy-header .section-title { margin-bottom: 12px; }

.kursy-lead {
    color: var(--c-gray-dark);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

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

.kursy-card {
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: var(--radius-md);
    padding: 28px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kursy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.kursy-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #131313;
    margin: 0 0 10px;
}

.kursy-card p {
    color: var(--c-gray-dark);
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}

.kursy-cta {
    text-align: center;
}

/* ========== FAQ ========== */
.faqsec {
    background:
        linear-gradient(180deg, rgba(248, 245, 240, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%),
        url('/images/faqBG.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 84px clamp(1.25rem, 4vw, 6rem);
}

.faq-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.2;
    text-align: center;
    margin: 0 auto 36px;
    max-width: 28ch;
}

.faq-accordion { max-width: 1080px; margin: 0 auto; padding: 0; }

.faq-accordion .accordion-item {
    border: 1px solid var(--c-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.faq-accordion .accordion-button { font-weight: 700; color: #1c1c1c; background: #fff; }
.faq-accordion .accordion-button:not(.collapsed) { color: #1a1a1a; background: rgba(220, 176, 64, 0.14); box-shadow: none; }
.faq-accordion .accordion-body { color: var(--c-gray-dark); line-height: 1.7; background: #fff; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1200px) {
    .hero-text { padding-top: 70px; }
    .kursy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 992px) {
    .hero { min-height: 70vh; flex-direction: column; align-items: stretch; position: relative; }
    .hero-text { padding: 100px 6% 80px; position: relative; z-index: 3; }
    .hero-main-copy { max-width: none; }
    .hero-image-wrap { position: absolute; right: 0; bottom: 0; height: 95%; max-width: 80%; width: auto; z-index: 1; opacity: 0.45; margin: 0; padding: 0; }
    .hero-side-image { height: 100%; width: auto; max-width: 100%; max-height: none; object-fit: contain; object-position: right bottom; filter: none; }
    .hero-btn { width: 100%; }

    .krokpokroku { padding: 60px clamp(1.25rem, 4vw, 6rem); }
    .steps-scroller { height: auto; }
    .steps-sticky { position: static; height: auto; padding: 0; }
    .steps-stage { display: flex; flex-direction: column; gap: 64px; margin-top: 24px; }
    .step-card { position: static; opacity: 1; transform: none; pointer-events: auto; grid-template-columns: 1fr; gap: 18px; text-align: center; }
    .step-card__media img { max-width: 160px; max-height: none; }
    .step-card__desc { margin-inline: auto; }
    .steps-progress { display: none; }

    .kursy { padding: 60px clamp(1.25rem, 4vw, 6rem); }
    .faqsec { padding: 60px clamp(1.25rem, 4vw, 6rem); }
}

@media screen and (max-width: 600px) {
    .hero-h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .kursy-grid { grid-template-columns: 1fr; }
}
