/* ==========================================================================
   Kancelaria Radcy Prawnego — arkusz stylów
   Kolory z oryginalnej strony: ciemne tło #333, akcent pomarańczowy #ff5400.
   ========================================================================== */

:root {
    --tlo:        #333333;
    --tlo-alt:    #2c2c2c;
    --tlo-ciemne: #262626;
    --tekst:      #ffffff;
    --tekst-mgl:  #c7c7c7;
    --akcent:     #ff5400;
    --linia:      rgba(255, 255, 255, .12);
    --szer:       1140px;
    --naglowek-h: 92px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--naglowek-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--tlo);
    color: var(--tekst);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.75;
}

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

a { color: var(--akcent); text-decoration: none; }
a:hover, a:focus { color: var(--tekst); text-decoration: underline; }

h1, h2, h3, h4 { font-family: inherit; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-weight: 800; }
h2 { font-weight: 600; }
h3 { font-weight: 600; font-size: 17px; color: var(--akcent); margin-top: 1.6em; }
h3:first-child { margin-top: 0; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--szer);
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--akcent); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--akcent); outline-offset: 3px; }

/* --- pasek górny --------------------------------------------------------- */

.topbar {
    background: var(--tlo-ciemne);
    font-size: 13px;
    border-bottom: 1px solid var(--linia);
}

.topbar-inner { display: flex; justify-content: flex-end; }

.topbar-contact {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 8px 0;
}

.topbar-contact a { color: var(--tekst-mgl); }
.topbar-contact a:hover { color: var(--akcent); text-decoration: none; }
.topbar-contact .ico { color: var(--akcent); margin-right: 6px; }

/* --- nagłówek / menu ----------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--tlo);
    border-bottom: 1px solid var(--linia);
    transition: background-color .25s ease, box-shadow .25s ease;
}

.site-header.is-sticky {
    background: rgba(38, 38, 38, .96);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--naglowek-h);
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo img { width: 260px; max-width: 55vw; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--akcent);
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.is-active {
    color: var(--tekst);
    border-bottom-color: var(--akcent);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    background: none;
    border: 1px solid var(--linia);
    border-radius: 3px;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px; height: 2px;
    margin: 0 auto;
    background: var(--akcent);
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- baner / slider ------------------------------------------------------ */

.hero {
    position: relative;
    background: var(--tlo-ciemne);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 220px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-pusty {
    background:
        radial-gradient(120% 120% at 20% 0%, #414141 0%, #262626 60%, #1d1d1d 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 70%, transparent 100%);
}

.hero-pusty .hero-overlay { position: static; background: none; width: 100%; }

.hero-nazwa {
    margin: 0;
    font-size: 15px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--akcent);
}

.hero-osoba {
    margin: .2em 0 .3em;
    font-size: clamp(26px, 5vw, 46px);
    font-weight: 800;
}

.hero-adres {
    margin: 0;
    font-size: clamp(14px, 2vw, 17px);
    color: var(--tekst-mgl);
}

/* --- sekcje treści ------------------------------------------------------- */

.sekcja { padding: 50px 0 60px; }
.sekcja-alt { background: var(--tlo-alt); }

.naglowek-graficzny {
    margin: 0 0 30px;
    text-align: center;
}

.naglowek-graficzny img {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

.kolumny {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.kolumna p { text-align: justify; }
.kolumna-foto img { border-radius: 3px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }

.lead {
    font-weight: 600;
    font-size: 16px;
}

.lista {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.lista li {
    position: relative;
    padding-left: 20px;
}

.lista li::before {
    content: "\2013";
    position: absolute;
    left: 0;
    color: var(--akcent);
}

.system { margin-bottom: 1.1em; }
.podpis { text-align: right !important; margin-top: 1.4em; }

/* --- kontakt ------------------------------------------------------------- */

.kolumna-mapa iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 3px;
}

.kolumna-adres { text-align: center; }
.kolumna-adres p { text-align: center; }

.kolumna-adres address {
    font-style: normal;
    line-height: 1.9;
    margin-bottom: 1.6em;
}

.kolumna-adres address p { margin: 0; }
.adres-nazwa { font-size: 17px; }
.adres-osoba { font-size: 17px; color: var(--akcent); }

.godziny-tytul { margin-bottom: .2em; }
.uwaga { color: var(--akcent); margin-top: 1.2em; }

/* --- stopka -------------------------------------------------------------- */

.site-footer {
    background: var(--tlo-ciemne);
    border-top: 1px solid var(--linia);
    font-size: 13px;
    color: var(--tekst-mgl);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.footer-inner p { margin: 0; }

/* --- pasek cookies ------------------------------------------------------- */

.cookie-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    padding: 14px 20px;
    background: rgba(20, 20, 20, .97);
    border-top: 1px solid var(--linia);
    font-size: 13px;
}

.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; max-width: 800px; }

.cookie-bar button {
    flex: none;
    padding: 8px 26px;
    background: var(--akcent);
    color: #fff;
    border: 0;
    border-radius: 3px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cookie-bar button:hover { background: #e04a00; }

/* --- telefony i tablety -------------------------------------------------- */

@media (max-width: 860px) {
    .kolumny { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .kolumna-foto { max-width: 520px; margin: 0 auto; }
    .hero-slider { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
    :root { --naglowek-h: 74px; }

    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: var(--tlo-ciemne);
        border-top: 1px solid var(--linia);
        border-bottom: 1px solid var(--linia);
    }

    .main-nav.is-open { display: block; }

    .main-nav ul { flex-direction: column; gap: 0; }

    .main-nav li + li { border-top: 1px solid var(--linia); }

    .main-nav a {
        padding: 14px 20px;
        border-bottom: 0;
        border-left: 3px solid transparent;
    }

    .main-nav a:hover,
    .main-nav a.is-active { border-bottom: 0; border-left-color: var(--akcent); }

    .site-header { position: sticky; }
    .header-inner { position: relative; }

    .topbar-inner { justify-content: center; }
    .topbar-contact { justify-content: center; }

    .sekcja { padding: 36px 0 42px; }
    .kolumna p { text-align: left; }
    .kolumna-mapa iframe { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-slide { transition: none; }
}

@media print {
    .topbar, .site-header, .cookie-bar, .hero, .kolumna-mapa { display: none; }
    body { background: #fff; color: #000; }
    .sekcja-alt { background: #fff; }
    a { color: #000; }
}
