/* ============================================================
   Akademia Dobrych Relacji – style publicznej części serwisu
   Paleta: pomarańcz #ff5e34, błękit #365aa1; fonty Cinzel + Quicksand
   ============================================================ */

:root {
    --orange: #ff5e34;
    --orange-dark: #e84f28;
    --blue: #365aa1;
    --blue-dark: #2a4880;
    --ink: #1f1b18;
    --muted: #6b6258;
    --bg: #ffffff;
    --bg-soft: #faf6f2;
    --line: #ece4dc;
    --radius: 14px;
    --shadow: 0 14px 40px rgba(40, 30, 20, .10);
    --container: 1140px;
    --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Quicksand', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: 'Cinzel', Georgia, serif; }

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Przyciski ---------- */
.btn {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 50px;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 20px rgba(255, 94, 52, .30);
    letter-spacing: .3px;
}
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn--big { padding: 16px 42px; font-size: 1.05rem; }

/* ============================ NAWIGACJA ============================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(40, 30, 20, .08); }
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
}
.brand__logo { height: 52px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu > a {
    color: var(--ink);
    font-weight: 600;
    font-size: .96rem;
    padding: 9px 12px;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.nav__menu > a:hover { color: var(--orange); }
.nav__menu > a.is-active { color: var(--orange); }
.nav__cta {
    background: var(--orange);
    color: #fff !important;
    padding: 9px 20px !important;
    border-radius: 50px;
    margin-left: 8px;
    box-shadow: 0 6px 16px rgba(255, 94, 52, .28);
}
.nav__cta:hover { background: var(--orange-dark); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav__toggle span {
    width: 26px; height: 3px;
    background: var(--ink);
    border-radius: 3px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}
.hero__inner { width: 100%; max-width: 900px; margin: 0 auto; padding: 80px 22px; }
.hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    margin: 0 0 18px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero__subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    font-weight: 500;
    margin: 0 0 34px;
    opacity: .95;
}
.hero__actions { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero__link {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, .6);
    padding-bottom: 2px;
}
.hero__link:hover { color: #fff; border-color: var(--orange); }
.hero__scroll {
    position: absolute;
    bottom: 26px; left: 50%;
    width: 26px; height: 26px;
    margin-left: -13px;
    border-right: 3px solid rgba(255,255,255,.8);
    border-bottom: 3px solid rgba(255,255,255,.8);
    transform: rotate(45deg);
    animation: bob 1.8s infinite;
}
@keyframes bob { 0%,100%{ transform: rotate(45deg) translate(0,0);} 50%{ transform: rotate(45deg) translate(6px,6px);} }

/* ============================ SEKCJE ============================ */
.section { padding: 78px 0; }
.section--intro { background: var(--bg); }
.section--offer { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title {
    text-align: center;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    margin: 0 0 14px;
    color: var(--ink);
}
.section__title::after {
    content: "";
    display: block;
    width: 64px; height: 4px;
    background: var(--orange);
    border-radius: 4px;
    margin: 18px auto 0;
}

/* ---------- Kafelki ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 46px; }
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(40,30,20,.14); }
.card h3 { color: var(--blue); font-size: 1.15rem; letter-spacing: .5px; margin: 0 0 14px; }
.card p { margin: 0; color: var(--muted); }
.card--accent { background: linear-gradient(160deg, #fff 0%, #fff6f2 100%); border-color: #ffd9cc; }
.card--accent h3 { color: var(--orange); }

/* ---------- Oferta ---------- */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 46px; }
.offer__col {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 34px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.offer__col h3 { color: var(--orange); font-size: 1.25rem; margin: 0 0 10px; text-align: center; }
.offer__icon {
    width: 70px; height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff2ec;
    display: grid; place-items: center;
    border: 2px solid #ffd9cc;
}
.offer__icon::before { font-size: 1.9rem; }
.offer__icon--lectures::before { content: "📖"; }
.offer__icon--events::before { content: "🎉"; }
.offer__more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--orange);
}

/* ---------- Treść formatowana (HTML z panelu) ---------- */
.rich { font-size: 1.05rem; color: var(--ink); }
.rich p { margin: 0 0 16px; }
.rich ul, .rich ol { margin: 0 0 16px; padding-left: 22px; }
.rich li { margin: 6px 0; }
.rich a { color: var(--blue); text-decoration: underline; }
.rich a:hover { color: var(--orange); }
.rich h3 { color: var(--blue); margin: 0 0 18px; font-size: 1.2rem; }
.rich--rules ol { padding-left: 26px; }
.rich--rules li { margin: 12px 0; }
.note {
    margin-top: 34px;
    padding: 24px 26px;
    background: var(--bg-soft);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--muted);
    font-size: .98rem;
}
.lead { font-size: 1.2rem; font-weight: 600; margin: 0 0 26px; }

/* ============================ TABELA WYKŁADÓW ============================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.lectures { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.lectures thead th {
    background: var(--blue);
    color: #fff;
    text-align: left;
    padding: 16px 18px;
    font-family: 'Cinzel', serif;
    font-size: .95rem;
    letter-spacing: .5px;
}
.lectures td { padding: 15px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.lectures tbody tr:nth-child(even) { background: var(--bg-soft); }
.lectures tbody tr:hover { background: #fff3ee; }
.lectures__speaker { font-weight: 700; color: var(--ink); white-space: nowrap; }
.lectures__term { color: var(--orange); font-weight: 600; white-space: nowrap; }

/* ============================ KONTAKT ============================ */
.contact {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
}
.contact__name { font-family: 'Cinzel', serif; font-size: 1.5rem; margin: 0 0 24px; color: var(--blue); }
.contact__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.contact__list li { display: flex; flex-direction: column; gap: 4px; }
.contact__label { text-transform: uppercase; font-size: .78rem; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.contact__social { display: flex; gap: 18px; justify-content: center; }

/* ============================ BANER PODSTRON ============================ */
.page-banner {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 76px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-banner--plain { background: var(--blue); }
.page-banner__title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    margin: 0;
    text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

/* ============================ GALERIA ============================ */
.gallery {
    columns: 4 240px;
    column-gap: 16px;
}
.gallery__item {
    margin: 0 0 16px;
    break-inside: avoid;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
    background: #eee;
}
.gallery__img { width: 100%; height: auto; transition: transform .35s ease, filter .25s ease; }
.gallery__item:hover .gallery__img { transform: scale(1.05); filter: brightness(.92); }
.gallery figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,.7));
    color: #fff;
    font-size: .9rem;
    opacity: 0;
    transition: opacity .2s ease;
}
.gallery__item:hover figcaption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(15, 12, 10, .94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox__img { max-width: 92vw; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__caption { color: #fff; margin-top: 14px; font-size: 1rem; }
.lightbox__close {
    position: absolute; top: 18px; right: 26px;
    background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12); border: 0; color: #fff;
    font-size: 2.6rem; width: 58px; height: 58px; border-radius: 50%;
    cursor: pointer; transition: background .2s ease;
}
.lightbox__nav:hover { background: var(--orange); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ============================ SEKCJA CTA (cena) ============================ */
.cta {
    background-size: cover;
    background-position: center;
    background-color: var(--blue);
    color: #fff;
    text-align: center;
    padding: 70px 22px;
    position: relative;
}
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(40,72,128,.78), rgba(255,94,52,.55)); }
.cta__inner { position: relative; }
.cta__title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 8px; }
.cta__price { font-size: 1.25rem; font-weight: 600; margin: 0 0 26px; }
.cta .btn { background: #fff; color: var(--orange); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.cta .btn:hover { background: #fff5f1; color: var(--orange-dark); }

/* ============================ STOPKA ============================ */
.site-footer { background: #211c19; color: #cabfb4; }
.footer__quote {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: #fff;
    margin: 0;
    padding: 40px 22px;
    background: #2a2421;
    border-bottom: 3px solid var(--orange);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 44px 22px;
}
.footer__logo { height: 86px; width: auto; opacity: .92; }
.footer__col--center { text-align: center; }
.footer__col--right { text-align: right; }
.footer__name { font-family: 'Cinzel', serif; color: #fff; margin: 0 0 12px; }
.footer__social { display: flex; gap: 18px; justify-content: center; }
.footer__social a, .footer__col--right a { color: #cabfb4; }
.footer__social a:hover, .footer__col--right a:hover { color: var(--orange); }
.footer__bottom {
    text-align: center;
    padding: 18px;
    border-top: 1px solid #3a322d;
    font-size: .85rem;
    color: #8c8077;
}

/* ============================ RWD ============================ */
@media (max-width: 920px) {
    .cards { grid-template-columns: 1fr; }
    .offer { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; text-align: center; }
    .footer__col--right { text-align: center; }
}

@media (max-width: 760px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 16px 22px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(40,30,20,.12);
        transform: translateY(-130%);
        transition: transform .28s ease;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav__menu.open { transform: translateY(0); }
    .nav__menu > a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
    .nav__cta { margin: 12px 0 0; text-align: center; }
    .gallery { columns: 2 150px; }
    .section { padding: 56px 0; }
}

@media (max-width: 420px) {
    .gallery { columns: 1; }
}
