/* =========================================================
   Serwis Komputerowy - style.css (CLEAN / FIXED MOBILE HEADER)
   Motyw: dark (jaśniejszy) + cyan + orange
   ========================================================= */

/* =========================
   Variables
   ========================= */
:root {
    --bg: #151b23;
    --bg-2: #111722;

    --panel: #1b2430;
    --panel-2: #16202c;

    --text: #eef4ff;
    --muted: #c1cde0;

    --cyan: #29b6d8;
    --cyan-2: #1b86a0;
    --orange: #ff8a1f;

    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);

    --radius: 16px;
    --radius-lg: 22px;

    --container: 1150px;

    --font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
        "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(1200px 650px at 18% -12%, rgba(41, 182, 216, 0.18), transparent 55%),
        radial-gradient(900px 550px at 92% 6%, rgba(255, 138, 31, 0.12), transparent 55%),
        linear-gradient(180deg, var(--bg-2), var(--bg) 45%, var(--bg));
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

::selection {
    background: rgba(41, 182, 216, 0.35);
}

section[id] {
    scroll-margin-top: 96px;
}

/* =========================
   Header
   ========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(21, 27, 35, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

/* Desktop nav */
.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    font-size: 14px;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.80);
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.nav a:hover {
    color: var(--text);
    background: rgba(41, 182, 216, 0.12);
    border-color: rgba(41, 182, 216, 0.28);
    transform: translateY(-1px);
}

.nav a:focus-visible {
    outline: 2px solid rgba(41, 182, 216, 0.7);
    outline-offset: 2px;
}

/* =========================
   Header – CTA kontaktowe
   ========================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 15px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;

    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);

    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.hbtn:hover {
    transform: translateY(-1px);
}

.hbtn--call {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border-color: rgba(41, 182, 216, 0.35);
}

.hbtn--call:hover {
    box-shadow: 0 10px 26px rgba(41, 182, 216, 0.20);
}

.hbtn--mail {
    border-color: rgba(255, 255, 255, 0.22);
}

.hbtn--mail:hover {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.14);
}

.hbtn--wa {
    border-color: rgba(41, 182, 216, 0.45);
    background: linear-gradient(135deg, rgba(41, 182, 216, 0.16), rgba(255, 138, 31, 0.10));
}

.hbtn--wa:hover {
    box-shadow: 0 12px 28px rgba(41, 182, 216, 0.26), inset 0 0 0 1px rgba(41, 182, 216, 0.22);
}

.hbtn--fb {
    border-color: rgba(255, 138, 31, 0.45);
    background: linear-gradient(135deg, rgba(255, 138, 31, 0.18), rgba(41, 182, 216, 0.08));
}

.hbtn--fb:hover {
    box-shadow: 0 12px 28px rgba(255, 138, 31, 0.22), inset 0 0 0 1px rgba(255, 138, 31, 0.22);
}

.hbtn:focus-visible {
    outline: 2px solid rgba(41, 182, 216, 0.75);
    outline-offset: 2px;
}

/* =========================
   Mobile menu (drawer)
   ========================= */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    transition: transform .18s ease, opacity .18s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(21, 27, 35, 0.72);
    backdrop-filter: blur(12px);
}

.nav-mobile .container {
    padding: 12px 0 14px;
}

.nav-mobile-links {
    display: grid;
    gap: 10px;
}

.nav-mobile-links a {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.90);
}

.nav-mobile-links a:hover {
    border-color: rgba(41, 182, 216, 0.28);
    background: rgba(41, 182, 216, 0.10);
}

/* =========================
   Hero / Parallax Banner
   ========================= */
.hero {
    position: relative;
    min-height: 62vh;
    display: grid;
    place-items: center;
    text-align: center;

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 30% 35%, rgba(41, 182, 216, 0.24), transparent 60%),
        radial-gradient(700px 360px at 70% 45%, rgba(255, 138, 31, 0.14), transparent 60%),
        linear-gradient(180deg, rgba(10, 14, 18, 0.28), rgba(10, 14, 18, 0.82));
}

.hero-overlay {
    position: relative;
    padding: 44px 20px;
    width: min(860px, 100%);
}

.hero-overlay h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.hero-overlay p {
    margin: 0;
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.78);
}

.hero-overlay h1::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--orange));
    opacity: 0.95;
}

/* =========================
   Sections
   ========================= */
.section {
    padding: 70px 0;
}

.section h2 {
    font-size: clamp(22px, 2.4vw, 32px);
    margin: 0 0 16px;
    letter-spacing: 0.2px;
}

.section p {
    color: var(--muted);
    margin: 10px 0 0;
}

.section-dark {
    background: linear-gradient(180deg, rgba(27, 36, 48, 0.55), rgba(22, 32, 44, 0.75));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 900px;
    margin-bottom: 22px;
}

.section-head p {
    margin-top: 10px;
}

/* =========================
   Video
   ========================= */
.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: rgba(0, 0, 0, 0.16);
}

.video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================
   Gallery
   ========================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(27, 36, 48, 0.92), rgba(22, 32, 44, 0.90));
    box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 138, 31, 0.35);
}

/* =========================
   Services
   ========================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.service-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: start;

    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(27, 36, 48, 0.92), rgba(22, 32, 44, 0.90));
    box-shadow: var(--shadow);

    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(41, 182, 216, 0.32);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.service-card> :not(.service-icon) {
    grid-column: 2;
}

.service-icon {
    grid-column: 1;
}

.service-card h3 {
    margin: 2px 0 6px;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    max-width: 72ch;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(41, 182, 216, 0.18), rgba(255, 138, 31, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.service-card--wide {
    grid-column: 1 / -1;
}

/* =========================
   Contact + Map
   ========================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    align-items: start;
}

.contact-card,
.map-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(27, 36, 48, 0.92), rgba(22, 32, 44, 0.90));
    box-shadow: var(--shadow);
}

.contact-card {
    padding: 18px;
}

.contact-card__top {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.contact-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(41, 182, 216, 0.18), rgba(255, 138, 31, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-badge svg {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.contact-kicker {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contact-title {
    margin: 2px 0 0;
    font-size: 18px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 10px;
}

.contact-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
}

.contact-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(41, 182, 216, 0.10);
    color: var(--cyan);
}

.contact-ico--wa {
    background: rgba(255, 138, 31, 0.12);
    color: var(--orange);
}

.contact-ico svg {
    width: 22px;
    height: 22px;
}

.contact-row {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.contact-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.2px;
}

.contact-link {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-link:hover {
    text-decoration: underline;
    text-decoration-color: rgba(41, 182, 216, 0.55);
    text-underline-offset: 4px;
}

.contact-text {
    color: var(--muted);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn--primary {
    background: linear-gradient(90deg, rgba(41, 182, 216, 0.95), rgba(27, 134, 160, 0.95));
    color: #061018;
    border-color: rgba(41, 182, 216, 0.35);
}

.btn--primary:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.btn--ghost:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 138, 31, 0.35);
}

.contact-note {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
}

.map-card {
    padding: 18px;
}

.map-title {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--text);
}

.map {
    width: 100%;
    min-height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    background:
        radial-gradient(600px 260px at 50% 50%, rgba(41, 182, 216, 0.14), transparent 60%),
        rgba(0, 0, 0, 0.12);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map--embed {
    min-height: 520px;
}

.map-address {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
}

.map-address__row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.map-address__ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(41, 182, 216, 0.10);
    color: var(--cyan);
}

.map-address__ico svg {
    width: 22px;
    height: 22px;
}

.map-address__label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.map-address__value {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.map-open {
    display: inline-flex;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 14px;
    transition: transform .15s ease, border-color .15s ease;
}

.map-open:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 138, 31, 0.35);
}

/* =========================
   Footer
   ========================= */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.footer p {
    margin: 0;
}

/* =========================
   Lightbox
   ========================= */
.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(6px);
}

.lb-overlay.is-open {
    display: grid;
}

.lb-figure {
    width: min(1050px, 100%);
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    background: rgba(22, 32, 44, 0.96);
}

.lb-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 78vh;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.18);
}

.lb-cap {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(27, 36, 48, 0.82);
    color: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.lb-btn:hover {
    transform: translateY(-1px);
    background: rgba(41, 182, 216, 0.16);
    border-color: rgba(41, 182, 216, 0.32);
}

.lb-btn:active {
    transform: translateY(0);
}

.lb-btn:focus-visible {
    outline: 2px solid rgba(41, 182, 216, 0.65);
    outline-offset: 2px;
}

.lb-close {
    top: 16px;
    right: 16px;
    font-size: 26px;
    line-height: 1;
}

.lb-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
}

.lb-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
}

.lb-overlay .lb-figure {
    position: relative;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 920px) {
    .hero {
        min-height: 56vh;
        background-attachment: scroll;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .service-card--wide {
        grid-column: auto;
    }

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

    .map--embed {
        min-height: 360px;
    }

    .logo {
        height: 96px;
    }

    .header-actions {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 560px) {

    /* 1 rząd: logo + hamburger */
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 10px 12px;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .nav-toggle {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    /* ukryj desktop menu, ale NIE chowaj całej .nav */
    .nav-desktop {
        display: none;
    }

    /* 2 rząd: ikonki kontaktu */
    .header-actions {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .hbtn {
        justify-content: center;
        padding: 12px 0;
        border-radius: 16px;
        font-size: 18px;
    }

    .hbtn span {
        display: none;
    }

    .logo {
        height: 64px;
    }

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

    .gallery-item img {
        height: 200px;
    }

    .section {
        padding: 56px 0;
    }
}

@media (max-width: 640px) {
    .lb-overlay {
        padding: 12px;
    }

    .lb-btn {
        width: 42px;
        height: 42px;
    }

    .lb-prev {
        left: 10px;
    }

    .lb-next {
        right: 10px;
    }

    .lb-close {
        top: 10px;
        right: 10px;
    }

    .lb-cap {
        font-size: 13px;
    }
}