/* ===== VARIABLES ===== */
:root {
    --yellow: #F5A623;
    --yellow-hover: #E09500;
    --dark: #1A1A1A;
    --dark2: #232323;
    --white: #FFFFFF;
    --offwhite: #F5F5F5;
    --gray: #666666;
    --border: #E5E5E5;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-h: 64px;
    --max-w: 1200px;
    --pad: 20px;
    --sec: 64px;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; }
input { font-family: inherit; font-size: inherit; border: none; outline: none; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ===== TYPOGRAPHY ===== */
.h2 {
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
    margin-bottom: 24px;
    color: var(--dark);
}
.h2--white { color: var(--white); }
.h2--yellow { color: var(--yellow); }
.h2--center { text-align: center; margin-bottom: 48px; }
.h3 {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.02em;
    margin-bottom: 18px;
    color: var(--dark);
}
.h3--white { color: var(--white); }
.p { font-size: .938rem; line-height: 1.8; color: var(--dark); margin-bottom: 14px; }
.p--light { color: rgba(255, 255, 255, .6); }
.p--muted { color: var(--gray); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .01em;
    transition: all .25s var(--ease);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn--sm { padding: 9px 22px; font-size: .813rem; }
.btn--lg { padding: 16px 42px; font-size: .938rem; }
.btn--primary { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn--yellow { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.btn--yellow:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn--dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn--dark:hover { background: var(--dark2); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .2); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.btn--outline-yellow { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }
.btn--outline-yellow:hover { background: var(--yellow); color: var(--dark); }

/* ===== PILL ===== */
.pill {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 22px;
}
.pill--yellow { background: var(--yellow); color: var(--dark); }
.pill--border { background: transparent; border: 1.5px solid var(--dark); color: var(--dark); }
.pill--white { background: var(--white); color: var(--dark); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.navbar--scrolled {
    background: rgba(26, 26, 26, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}
.navbar__inner {
    display: flex;
    align-items: center;
    height: 100%;
}
.navbar__logo { flex-shrink: 0; }
.navbar__logo-img { height: 28px; width: auto; }

/* Mobile: hide links and actions, show hamburger */
.navbar__links { display: none; }
.navbar__actions { display: none; }
.navbar__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
    margin-left: auto;
}
.navbar__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .25s var(--ease);
}
.navbar__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__hamburger.active span:nth-child(2) { opacity: 0; }
.navbar__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu open state */
.navbar__links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, .98);
    padding: 20px var(--pad);
    gap: 0;
    z-index: 999;
    overflow-y: auto;
}
.navbar__links.active li { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.navbar__links.active .navbar__link {
    display: block;
    padding: 18px 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .8);
}
.navbar__links.active .navbar__link::after { display: none; }
.navbar__actions.active {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 16px var(--pad);
    gap: 8px;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.navbar__actions.active .btn { flex: 1; justify-content: center; padding: 14px 12px; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 110px 0 64px;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/hero-bg.jpg') center/cover no-repeat;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, .72) 0%, rgba(20, 20, 20, .82) 100%);
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 660px;
}
.hero__h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -.03em;
}
.hero__p {
    font-size: .938rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
}

/* ===== INTRO ===== */
.intro { background: var(--yellow); padding: 80px 0; overflow: hidden; }
.intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.intro__h2 {
    font-size: clamp(1.625rem, 2.8vw, 2.25rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -.025em;
}
.intro__p { font-size: .938rem; line-height: 1.8; color: var(--dark); opacity: .78; margin-bottom: 14px; }
.intro__left { max-width: 520px; }
.intro__right { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.intro__tags-row { display: flex; gap: 8px; flex-wrap: wrap; }
.intro__tags-row:nth-child(even) { margin-left: 0; }
.tag {
    padding: 7px 16px;
    background: rgba(26, 26, 26, .06);
    border-radius: 3px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
}

/* ===== SECTIONS ===== */
.section { padding: var(--sec) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); }
.section--yellow { background: var(--yellow); }
.section--pb-lg { padding-bottom: 60px; }

/* ===== SECTION ROW (per-section 2-col layout) ===== */
.section__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}
.section__text { max-width: 520px; }
.section__text .btn { margin-top: 12px; }

/* ===== VISUAL BOX (placeholder) ===== */
.visual-box {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--offwhite);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.visual-box--dark { background: var(--dark2); }
.visual-box__icon { width: 80px; height: 80px; opacity: .22; }
.visual-box__icon--dim { opacity: .12; filter: invert(1); }

/* ===== FEATURE CARDS (biblioteka) ===== */
.section__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 22px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, .05);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, .1); }
.card__icon { width: 52px; height: 52px; margin: 0 auto 14px; }
.card__icon img { width: 100%; height: 100%; }
.card__title { font-size: .938rem; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.card__desc { font-size: .8rem; color: var(--gray); line-height: 1.6; }

/* ===== STEPS ===== */
.steps__heading { margin-bottom: 48px; }
.steps__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.steps__list { display: flex; flex-direction: column; }
.steps__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .3);
    text-align: left;
    transition: color .25s var(--ease);
    cursor: pointer;
}
.steps__item:hover { color: rgba(255, 255, 255, .65); }
.steps__item--active { color: var(--yellow); }
.steps__item--active .steps__num { color: var(--yellow); }
.steps__num { font-size: .938rem; font-weight: 700; min-width: 30px; }
.steps__label { font-size: .938rem; font-weight: 600; }
.steps__panel-box { animation: fadeUp .35s var(--ease); }
.steps__panel-box[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== TESTIMONIALS ===== */
.testimonials { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.testi {
    background: var(--offwhite);
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.testi__bold { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; line-height: 1.5; }
.testi__text { font-size: .875rem; color: var(--gray); line-height: 1.8; margin-bottom: 28px; flex: 1; }
.testi__author { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.testi__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--yellow);
    overflow: hidden;
    padding: 2px;
}
.testi__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.testi__name { font-weight: 700; font-size: .875rem; color: var(--dark); }
.testi__role { font-size: .75rem; color: var(--gray); }

/* ===== TEAM ===== */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.team__card { overflow: hidden; }
.team__photo {
    background: var(--yellow);
    border-radius: 12px 12px 0 0;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.team__info { padding: 16px 6px 8px; }
.team__name { font-size: .938rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.team__desc { font-size: .75rem; color: var(--gray); line-height: 1.55; margin-bottom: 8px; }
.team__link { font-size: .75rem; font-weight: 600; color: var(--dark); text-decoration: underline; text-underline-offset: 2px; }
.team__link:hover { color: var(--yellow-hover); }

/* ===== FAQ ===== */
.faq__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.faq__row .section__text { max-width: 520px; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.faq {
    background: var(--offwhite);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .25s var(--ease);
}
.faq:has(.faq__q[aria-expanded="true"]) { box-shadow: 0 4px 24px rgba(0, 0, 0, .06); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 22px;
    font-weight: 600;
    font-size: .875rem;
    color: var(--dark);
    text-align: left;
    gap: 16px;
    transition: color .2s;
}
.faq__q:hover { color: var(--gray); }
.faq__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform .25s var(--ease);
    opacity: .4;
}
.faq__q[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); opacity: 1; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 22px 20px; color: var(--gray); line-height: 1.8; font-size: .875rem; }

/* ===== FOOTER ===== */
.footer { position: relative; background: var(--dark); overflow: hidden; }
.footer__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/footer-bg.jpg') center top/cover no-repeat;
    opacity: .1;
}
.footer__wrap { position: relative; z-index: 1; padding: 80px 0 0; }
.footer__cta {
    text-align: center;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 48px;
}
.footer__h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -.02em;
}
.footer__sub { color: rgba(255, 255, 255, .45); margin-bottom: 28px; font-size: .875rem; }
.footer__form { display: flex; flex-direction: column; gap: 8px; max-width: 460px; margin: 0 auto; }
.footer__input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 4px;
    background: rgba(255, 255, 255, .04);
    color: var(--white);
    font-size: .875rem;
}
.footer__input::placeholder { color: rgba(255, 255, 255, .3); }
.footer__input:focus { border-color: var(--yellow); }
.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-bottom: 40px;
}
.footer__logo { height: 24px; width: auto; margin-bottom: 14px; }
.footer__desc {
    font-size: .75rem;
    color: rgba(255, 255, 255, .35);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 260px;
}
.footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 9px;
    line-height: 1.5;
}
.footer__contact svg { flex-shrink: 0; margin-top: 2px; stroke: rgba(255, 255, 255, .35); }
.footer__nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.footer__col-title { font-size: .8rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer__col ul li { margin-bottom: 9px; }
.footer__col ul li a { font-size: .8rem; color: rgba(255, 255, 255, .4); transition: color .2s; }
.footer__col ul li a:hover { color: var(--white); }
.footer__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: .75rem;
    color: rgba(255, 255, 255, .25);
}
.footer__copy a { color: var(--yellow); }
.footer__copy a:hover { text-decoration: underline; }

/* ===== ANIMATIONS ===== */
.anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.anim.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.section__cards .card:nth-child(2) { transition-delay: .08s; }
.section__cards .card:nth-child(3) { transition-delay: .16s; }
.section__cards .card:nth-child(4) { transition-delay: .24s; }
.team .team__card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.team.is-visible .team__card { opacity: 1; transform: translateY(0); }
.team.is-visible .team__card:nth-child(2) { transition-delay: .1s; }
.team.is-visible .team__card:nth-child(3) { transition-delay: .2s; }
.team.is-visible .team__card:nth-child(4) { transition-delay: .3s; }
.testimonials .testi {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.testimonials.is-visible .testi { opacity: 1; transform: translateY(0); }
.testimonials.is-visible .testi:nth-child(2) { transition-delay: .12s; }

/* ======================= */
/* === TABLET (768px+) === */
/* ======================= */
@media (min-width: 768px) {
    :root {
        --nav-h: 80px;
        --pad: 24px;
        --sec: 80px;
    }

    /* Hero */
    .hero { min-height: 560px; padding: 140px 0 100px; }

    /* Intro: 2-col */
    .intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; }
    .intro__tags-row:nth-child(even) { margin-left: -16px; }

    /* Section rows: 2-col equal */
    .section__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }

    /* Reverse order for media-left sections */
    .section__row--media-left .section__media { order: 0; }
    .section__row--media-left .section__text { order: 1; }

    /* Steps: 2-col */
    .steps__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }

    /* FAQ: text narrower, questions wider */
    .faq__row { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 64px; }

    /* Testimonials: 2-col */
    .testimonials { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .testi { padding: 44px 36px; }

    /* Team: 2-col */
    .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

    /* Footer form: row */
    .footer__form { flex-direction: row; }

    /* Footer grid: 2-col */
    .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

    /* Footer nav: 2-col */
    .footer__nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

    /* Footer copy: row */
    .footer__copy { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ======================== */
/* === DESKTOP (1024px+) === */
/* ======================== */
@media (min-width: 1024px) {
    :root {
        --sec: 110px;
    }

    /* Navbar: show links and actions, hide hamburger */
    .navbar__links {
        display: flex;
        gap: 36px;
        margin: 0 auto;
    }
    .navbar__link {
        color: rgba(255, 255, 255, .65);
        font-size: .875rem;
        font-weight: 500;
        transition: color .2s;
        position: relative;
    }
    .navbar__link:hover { color: var(--white); }
    .navbar__link::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 1.5px;
        background: var(--yellow);
        transition: width .25s var(--ease);
    }
    .navbar__link:hover::after { width: 100%; }
    .navbar__actions { display: flex; gap: 8px; }
    .navbar__hamburger { display: none; }

    /* Team: 4-col */
    .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    /* Footer nav: 3-col */
    .footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Cards: always 2x2 */
    .section__cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ======================== */
/* === SMALL MOBILE (420px-) */
/* ======================== */
@media (max-width: 420px) {
    .team { grid-template-columns: minmax(0, 1fr); max-width: 280px; margin: 0 auto; }
    .section__cards { grid-template-columns: minmax(0, 1fr); }
}
