/* ===================================================
   SMARTBET sp. z o.o. - Strona internetowa
   Kolorystyka: czerń + niebieski akcent
   =================================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-dark: #0a0a0a;
    --color-bg-darker: #050505;
    --color-bg-section: #f5f5f7;
    --color-text: #0a0a0a;
    --color-text-light: #6c6c70;
    --color-text-on-dark: #ffffff;
    --color-text-on-dark-muted: #a8a8b0;
    --color-accent: #1e88e5;
    --color-accent-dark: #1565c0;
    --color-accent-light: #42a5f5;
    --color-border: #e5e5ea;
    --color-border-dark: #1f1f23;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 4px;
    --radius-lg: 8px;
    --container: 1200px;
}

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

/* ===================== HEADER ===================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    isolation: isolate;
    padding: 16px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background var(--transition), padding var(--transition);
}
.header.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; align-items: center; color: white; }
.header__logo-full {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(220px, 58vw);
    object-fit: contain;
    flex-shrink: 0;
}
.header__logo-mark {
    display: block;
    height: 44px;
    width: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav__list { display: flex; gap: 8px; align-items: center; }
.nav__link {
    display: inline-block;
    padding: 8px 16px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav__link:hover { color: var(--color-accent-light); background: rgba(255, 255, 255, 0.05); }
.nav__link.active { color: var(--color-accent-light); }
.nav__link--cta {
    background: var(--color-accent);
    color: white;
    margin-left: 12px;
}
.nav__link--cta:hover { background: var(--color-accent-light); color: white; }
.nav__link--cta.active { background: var(--color-accent-dark); color: white; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; transition: all var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO (homepage) ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: var(--color-bg-darker);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    opacity: 0.55;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.5) 40%, rgba(5,5,5,0.85) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 140px 24px 80px; width: 100%; }
.hero__logo {
    height: clamp(52px, 11vw, 88px);
    width: auto;
    max-width: min(320px, 88vw);
    margin-bottom: 24px;
    object-fit: contain;
}
.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(30, 136, 229, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--color-accent-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 28px;
    border-radius: 2px;
}
.hero__title {
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero__title-accent {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 640px;
    color: var(--color-text-on-dark-muted);
    margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 80px; }
.hero__stats { display: flex; gap: 64px; flex-wrap: wrap; }
.hero__stat-num {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    color: var(--color-accent-light);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.hero__stat-label {
    font-size: 13px;
    color: var(--color-text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===================== PAGE HERO (sub pages) ===================== */
.page-hero {
    position: relative;
    padding: 180px 0 100px;
    color: white;
    overflow: hidden;
    background: var(--color-bg-darker);
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.7) 100%);
}
.page-hero__inner { position: relative; z-index: 2; }
.breadcrumbs {
    font-size: 13px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-on-dark-muted);
}
.breadcrumbs a { color: var(--color-accent-light); }
.breadcrumbs a:hover { color: white; }
.page-hero__title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.page-hero__subtitle {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--color-text-on-dark-muted);
    max-width: 720px;
    line-height: 1.6;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn--primary { background: var(--color-accent); color: white; }
.btn--primary:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30, 136, 229, 0.3); }
.btn--ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ===================== SECTIONS ===================== */
.section { padding: 100px 0; position: relative; }
.section--dark { background: var(--color-bg-dark); color: white; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}
.section__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.section__lead { font-size: 18px; color: var(--color-text-light); line-height: 1.6; }
.section--dark .section__lead { color: var(--color-text-on-dark-muted); }

/* ===================== FIRMA ===================== */
.firma__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.firma__text h3 { font-size: 28px; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.firma__text p { font-size: 16px; color: var(--color-text-light); margin-bottom: 16px; line-height: 1.7; }
.firma__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}
.firma__feature { display: flex; gap: 16px; }
.firma__feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 136, 229, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius);
}
.firma__feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.firma__feature p { font-size: 14px; color: var(--color-text-light); margin: 0; }
.firma__image {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.firma__image-wrap {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
}
.firma__image-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--color-accent);
    color: white;
    padding: 20px 28px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.firma__image-badge-num { font-size: 36px; font-weight: 800; line-height: 1; }
.firma__image-badge-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; }

/* ===================== COMPANY DATA ===================== */
.company-data { max-width: 1000px; margin: 0 auto; }
.company-data__intro { text-align: center; margin-bottom: 48px; }
.company-data__intro p { color: var(--color-text-on-dark-muted); margin-top: 16px; }
.company-data__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.company-data__item {
    background: var(--color-bg-dark);
    padding: 32px 24px;
    transition: all var(--transition);
}
.company-data__item:hover { background: rgba(30, 136, 229, 0.05); }
.company-data__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 12px;
}
.company-data__value { font-size: 18px; font-weight: 600; line-height: 1.4; }

/* ===================== SERVICES ===================== */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service {
    position: relative;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    overflow: hidden;
}
.service::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service:hover {
    transform: translateY(-6px);
    background: rgba(30, 136, 229, 0.06);
    border-color: rgba(30, 136, 229, 0.3);
}
.service:hover::before { transform: scaleX(1); }
.service__num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 60px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
}
.service__icon { color: var(--color-accent); margin-bottom: 24px; }
.service__title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.service__desc { color: var(--color-text-on-dark-muted); line-height: 1.6; font-size: 15px; }

.service.service--light {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}
.service.service--light .service__num { color: rgba(30, 136, 229, 0.08); }
.service.service--light:hover {
    background: white;
    border-color: var(--color-accent);
    box-shadow: 0 16px 32px rgba(30, 136, 229, 0.12);
}
.service.service--light .service__desc { color: var(--color-text-light); }

/* ===================== WHY US ===================== */
.why-us { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-us__item {
    padding: 32px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.why-us__item:hover {
    background: rgba(30, 136, 229, 0.05);
    border-color: rgba(30, 136, 229, 0.3);
    transform: translateY(-4px);
}
.why-us__num { font-size: 36px; font-weight: 800; color: var(--color-accent); margin-bottom: 12px; }
.why-us__item h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-us__item p { color: var(--color-text-on-dark-muted); font-size: 14px; line-height: 1.6; }

/* ===================== OFERTA CTA ===================== */
.oferta__cta {
    margin-top: 0;
    padding: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
}
.oferta__cta h3 { font-size: 28px; font-weight: 700; color: white; margin-bottom: 12px; }
.oferta__cta p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 17px; }
.oferta__cta .btn--primary { background: white; color: var(--color-accent); }
.oferta__cta .btn--primary:hover { background: var(--color-bg-dark); color: white; }

/* ===================== PROJECT DETAIL (realizacje) ===================== */
.projects-detail { display: flex; flex-direction: column; gap: 80px; }
.project-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.project-detail--reverse .project-detail__image { order: 2; }
.project-detail__image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition);
}
.project-detail__image:hover { transform: scale(1.02); }
.project__tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(30, 136, 229, 0.1);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 16px;
}
.project-detail__title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.project-detail__location {
    color: var(--color-text-light);
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: 500;
}
.project-detail__desc {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 28px;
    font-size: 16px;
}
.project-detail__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.project-detail__meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 6px;
}
.project-detail__meta-value { font-size: 15px; font-weight: 600; line-height: 1.4; }

/* ===================== GALERIA ===================== */
.gallery__grid--6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
    gap: 16px;
    margin-bottom: 32px;
}
.gallery__item {
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    border-radius: var(--radius);
    transition: transform var(--transition);
    cursor: pointer;
}
.gallery__item:hover { transform: scale(1.02); }
.gallery__cta { text-align: center; color: var(--color-text-on-dark-muted); font-size: 16px; }
.gallery__cta a { color: var(--color-accent-light); font-weight: 600; text-decoration: underline; }
.gallery__cta a:hover { color: white; }

/* ===================== PRACA ===================== */
.praca__positions--light {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.position.position--light {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.position.position--light:hover {
    border-color: var(--color-accent);
    box-shadow: 0 16px 32px rgba(30, 136, 229, 0.12);
    transform: translateY(-6px);
}
.position.position--light .position__icon {
    color: var(--color-accent);
    margin: 0 auto 16px;
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    background: rgba(30, 136, 229, 0.1);
    border-radius: 50%;
}
.position.position--light h3 { font-size: 20px; margin-bottom: 8px; }
.position.position--light p { color: var(--color-text-light); font-size: 14px; }

/* ===================== BENEFITS ===================== */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit {
    padding: 32px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.benefit:hover {
    background: rgba(30, 136, 229, 0.06);
    border-color: rgba(30, 136, 229, 0.3);
}
.benefit__icon { color: var(--color-accent); margin-bottom: 16px; }
.benefit h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.benefit p { color: var(--color-text-on-dark-muted); font-size: 14px; line-height: 1.6; }

/* ===================== APPLY CTA ===================== */
.apply-cta {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    padding: 64px;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0d1f2d 100%);
    border-radius: var(--radius-lg);
    color: white;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}
.apply-cta__content h2 { font-size: clamp(28px, 3vw, 40px); color: white; margin-bottom: 16px; }
.apply-cta__content { min-width: 0; max-width: 100%; }
.apply-cta__content p { color: var(--color-text-on-dark-muted); font-size: 17px; line-height: 1.6; max-width: 100%; }
.apply-cta__channels { display: grid; gap: 20px; min-width: 0; max-width: 100%; }
.apply-channel {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    transition: all var(--transition);
    color: white;
    box-sizing: border-box;
    max-width: 100%;
}
.apply-channel > div:last-child {
    min-width: 0;
    flex: 1;
}
.apply-channel:hover {
    background: rgba(30, 136, 229, 0.15);
    border-color: var(--color-accent);
    transform: translateX(4px);
}
.apply-channel__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    border-radius: var(--radius);
    color: white;
}
.apply-channel__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-on-dark-muted);
    margin-bottom: 4px;
}
.apply-channel__value {
    font-size: 17px;
    font-weight: 700;
    color: white;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

/* ===================== KONTAKT ===================== */
.kontakt__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 64px;
}
.kontakt__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 64px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.kontakt__card {
    padding: 28px;
    background: var(--color-bg-section);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    border: 1px solid var(--color-border);
    min-width: 0;
    overflow: visible;
}
.kontakt__card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.kontakt__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.kontakt__card h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.kontakt__card p { color: var(--color-text-light); line-height: 1.6; font-size: 15px; overflow-wrap: anywhere; word-break: break-word; }
.kontakt__card a { color: var(--color-text); font-weight: 500; overflow-wrap: anywhere; word-break: break-word; }
.kontakt__card a:hover { color: var(--color-accent); }
.kontakt__hours { margin-top: 8px; font-size: 13px; color: var(--color-accent); font-weight: 600; }

.kontakt__form-wrap {
    background: var(--color-bg-dark);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
}
.kontakt__form h3 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.form__group { margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-on-dark-muted);
    margin-bottom: 8px;
    font-weight: 600;
}
.form__group input, .form__group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: white;
    font-size: 15px;
    transition: all var(--transition);
}
.form__group input:focus, .form__group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group--checkbox { display: flex; gap: 12px; align-items: flex-start; }
.form__group--checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-accent); flex-shrink: 0; }
.form__group--checkbox label {
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
    margin: 0;
    color: var(--color-text-on-dark-muted);
    font-weight: 400;
}
.form__note { margin-top: 16px; font-size: 14px; text-align: center; }
.form__note.success { color: #4caf50; }

.kontakt__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #f0f0f0;
}
.kontakt__map iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    height: 50vh;
    max-height: 480px;
    border: 0;
}

/* Tylko desktop (2 kolumny): iframe wypełnia całą wysokość kolumny obok formularza */
@media (min-width: 1025px) {
    .kontakt__map {
        position: relative;
        height: 100%;
        min-height: 480px;
        align-self: stretch;
    }
    .kontakt__map iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
    }
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--color-bg-darker);
    color: white;
    padding: 80px 0 24px;
}
.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border-dark);
    margin-bottom: 24px;
}
.footer__col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 700;
}
.footer__logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer__logo-full {
    display: block;
    height: 44px;
    width: auto;
    max-width: min(240px, 85%);
    object-fit: contain;
}
.footer__col--brand p { color: var(--color-text-on-dark-muted); margin-bottom: 20px; line-height: 1.6; max-width: 320px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    color: white;
    transition: all var(--transition);
}
.footer__social a:hover { background: var(--color-accent); border-color: var(--color-accent); transform: translateY(-2px); }
.footer__col ul li { margin-bottom: 8px; color: var(--color-text-on-dark-muted); font-size: 15px; }
.footer__col ul a:hover { color: var(--color-accent-light); }
.footer__contact a { color: var(--color-text-on-dark-muted); }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    padding-top: 24px;
    color: var(--color-text-on-dark-muted);
    font-size: 13px;
}

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: 0 8px 16px rgba(30, 136, 229, 0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent-light); transform: translateY(-4px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .firma__grid { grid-template-columns: 1fr; gap: 48px; }
    .firma__image { aspect-ratio: 16 / 10; max-height: 500px; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .kontakt__grid { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .company-data__grid { grid-template-columns: repeat(2, 1fr); }
    .project-detail { grid-template-columns: 1fr; gap: 32px; }
    .project-detail--reverse .project-detail__image { order: 0; }
    .why-us { grid-template-columns: repeat(2, 1fr); }
    .praca__positions--light { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .apply-cta { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
    .gallery__grid--6 { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px 200px 200px; }
}

/* ===================== MOBILE: hamburger + overflow + footer ===================== */

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    /* Musi być niżej niż .header (100), inaczej zasłania drawer i hamburger */
    z-index: 80;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
}
.nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 900px) {
    html {
        overflow-x: hidden;
    }

    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .header__inner {
        gap: 12px;
        min-width: 0;
    }

    .header__logo {
        min-width: 0;
        flex-shrink: 1;
    }

    .header__logo-full {
        height: 34px;
        max-width: min(200px, 52vw);
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        margin-left: auto;
        -webkit-tap-highlight-color: transparent;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(18rem, 90vw);
        height: 100dvh;
        margin: 0;
        padding: calc(72px + env(safe-area-inset-top, 0px)) 20px 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
        background: rgba(8, 8, 10, 0.98);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
        border-left: 1px solid var(--color-border-dark);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--transition), visibility var(--transition);
        z-index: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }

    .nav.open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }

    .nav__link {
        display: block;
        width: 100%;
        padding: 14px 16px;
        border-radius: var(--radius);
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
    }

    .nav-backdrop {
        display: block;
    }

    body.nav-open {
        overflow: hidden;
    }

    .hero__inner {
        padding-top: 120px;
        padding-bottom: 64px;
    }

    .hero__stats {
        gap: 28px 40px;
    }

    .back-to-top {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .kontakt__info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer__col--sitemap,
    .footer__col--services {
        display: none !important;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section {
        padding: 64px 0;
    }

    body {
        overflow-wrap: break-word;
    }

    /* Jedna kolumna – treść nie wychodzi poza ekran */
    .firma__features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 28px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .why-us {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-us__item {
        padding: 24px 18px;
    }

    .company-data__grid {
        grid-template-columns: 1fr;
    }

    .company-data__item {
        padding: 24px 18px;
    }

    .praca__positions--light {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .project-detail__meta {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .oferta__cta {
        padding: 32px 20px;
    }

    .firma__image-badge {
        right: 12px;
        bottom: 12px;
        padding: 14px 20px;
        max-width: calc(100% - 24px);
        box-sizing: border-box;
    }

    .gallery__grid--6 {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: minmax(180px, 220px);
    }

    .kontakt__info {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }

    .kontakt__card {
        padding: 22px 18px;
    }

    .kontakt__form-wrap {
        padding: 24px 18px;
    }

    .kontakt__map iframe {
        min-height: 260px;
        height: 45vh;
        max-height: 360px;
    }

    .apply-cta {
        padding: 24px 18px;
        gap: 24px;
    }

    .apply-channel {
        align-items: flex-start;
        padding: 18px 16px;
    }

    .apply-channel:hover {
        transform: none;
    }

    .page-hero {
        padding: 128px 0 64px;
    }
}

@media (max-width: 600px) {
    .btn {
        white-space: normal;
        text-align: center;
    }

    .hero__cta .btn {
        flex: 1 1 100%;
    }
}
