:root {
    --ink: #111;
    --pink: #e6007e;
    --line: #ddd;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

/* HEADER */

.header {
    height: 84px;
    padding: 0 9vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: #fffffff5;
    backdrop-filter: blur(10px);
    z-index: 9;
    width: 100%;
}

/* Ukrycie pustego elementu brand generowanego przez nagłówek */
body.wp-custom-logo .header > .brand {
    display: none !important;
}

/* Właściwe logo WordPressa */
.header > .custom-logo-link {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: auto;
}

.header > .custom-logo-link img {
    display: block;
    max-height: 45px;
    width: auto;
}

/* Logo zastępcze, gdy nie ustawiono własnego */
.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-right: auto;
}

.brand>b,
.footer>b {
    font-size: 39px;
    letter-spacing: -.1em;
}

.brand span,
.footer span,
.pin span,
.founder strong span {
    color: var(--pink);
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-left: auto;
    font-size: 14px;
}

.nav a:hover {
    color: var(--pink);
}

.nav i,
.contact i {
    color: var(--pink);
    font-style: normal;
}

.toggle {
    display: none;
}

/* LAYOUT */

.wrap {
    padding-left: 8vw;
    padding-right: 8vw;
}

/* HERO */

.hero {
    min-height: calc(100vh - 84px);
    padding-top: 10vh;
    padding-bottom: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.eyebrow,
label {
    font-size: 14px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #666;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow i {
    width: 7px;
    height: 7px;
    background: var(--pink);
    border-radius: 50%;
}

.eyebrow span {
    margin-left: auto;
}

.hero h1 {
    font-size: clamp(65px, 10.7vw, 160px);
    line-height: .9;
    letter-spacing: -.085em;
    font-weight: 600;
    margin: 9vh 0 7vh;
    z-index: 1;
}

.hero em,
h2 em {
    font-style: normal;
    color: var(--pink);
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    max-width: 1100px;
    z-index: 1;
}

.hero-bottom p {
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.35;
    max-width: 630px;
    margin: 0;
    letter-spacing: -.03em;
}

.hero-bottom a {
    font-size: 14px;
    border-bottom: 1px solid;
    padding-bottom: 8px;
    white-space: nowrap;
}

.pin {
    position: absolute;
    right: 7vw;
    top: 28%;
    font-size: clamp(100px, 17vw, 245px);
    font-weight: 900;
    letter-spacing: -.13em;
    color: #f4f4f4;
}

/* SECTIONS */

.section {
    display: grid;
    grid-template-columns: .7fr 2.3fr;
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 35px;
    padding-bottom: clamp(90px, 13vw, 180px);
}

label {
    padding-top: 8px;
}

h2 {
    font-size: clamp(43px, 6.2vw, 86px);
    line-height: .98;
    letter-spacing: -.075em;
    font-weight: 500;
    margin: 0 0 60px;
}

.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    max-width: 950px;
}

.cols p,
.bodycopy {
    font-size: 20px;
    line-height: 1.65;
    color: #444;
    margin: 0 0 18px;
}

/* SERVICES */

.service {
    display: grid;
    grid-template-columns: 42px minmax(170px, 1fr) minmax(240px, 1.25fr) 20px;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding: 25px 0 30px;
    align-items: start;
}

.service>span {
    font-size: 14px;
    color: var(--pink);
    padding-top: 6px;
}

.service h3 {
    font-size: clamp(20px, 2.3vw, 30px);
    font-weight: 500;
    letter-spacing: -.04em;
    margin: 0;
}

.service p {
    font-size: 16px;
    margin: 0 0 12px;
    line-height: 1.5;
}

.service small {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
}

.service>b {
    color: var(--pink);
}

/* COOPERATION */

.lead {
    font-size: 19px;
    line-height: 1.5;
    color: #444;
    max-width: 650px;
    margin: 0 0 70px;
}

.three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.three article {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.three article>span {
    color: var(--pink);
    font-size: 11px;
}

.three h3 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.04em;
    margin: 30px 0 12px;
}

.three p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* FOUNDER */

.founder {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8%;
    max-width: 900px;
}

.founder strong {
    font-size: clamp(100px, 14vw, 180px);
    line-height: .8;
    letter-spacing: -.1em;
    color: #eee;
}

.founder h2 {
    font-size: 36px;
    margin: 0 0 8px;
}

.pink {
    font-size: 14px;
    color: var(--pink);
    margin: 0 0 28px;
}

/* CONTACT */

.contact {
    background: #111;
    color: white;
    border: 0;
    padding-top: 40px;
    padding-bottom: 100px;
}

.contact label {
    color: #aaa;
}

.contact h2 {
    font-size: clamp(55px, 8vw, 110px);
    margin-bottom: 35px;
}

.contact p {
    max-width: 520px;
    color: #bbb;
    margin: 0 0 55px;
    line-height: 1.6;
}

.email {
    display: block;
    font-size: clamp(20px, 3vw, 40px);
    letter-spacing: -.05em;
    border-bottom: 1px solid #555;
    padding-bottom: 18px;
    width: max-content;
    max-width: 100%;
    margin-bottom: 18px;
}

.phone {
    margin-right: 30px;
}

.city {
    font-size: 14px;
    color: #aaa;
}

/* FOOTER */

.footer {
    background: #111;
    color: #fff;
    border-top: 1px solid #444;
    padding: 35px 8vw;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.footer small,
.footer a {
    font-size: 13px;
    color: #aaa;
}

.footer small:nth-of-type(2) {
    justify-self: end;
}

.archive {
    padding-top: 80px;
    padding-bottom: 100px;
}

/* MOBILE */

@media (max-width: 800px) {
    .header {
        height: 70px;
    }

    .toggle {
        display: block;
        border: 0;
        background: none;
        font-size: 12px;
    }

    .toggle i {
        color: var(--pink);
        font-style: normal;
    }

    .nav {
        display: none;
        position: absolute;
        top: 69px;
        left: 0;
        right: 0;
        background: white;
        padding: 25px 8vw 30px;
        flex-direction: column;
        gap: 20px;
        border-bottom: 1px solid var(--line);
    }

    .nav.open {
        display: flex;
    }

    .hero {
        min-height: 700px;
        padding-top: 65px;
    }

    .hero h1 {
        font-size: clamp(58px, 13vw, 98px);
        margin: 100px 0 65px;
    }

    .pin {
        top: 35%;
        font-size: 145px;
    }

    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .section {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 25px;
        padding-bottom: 80px;
    }

    h2 {
        margin-bottom: 38px;
    }

    .cols,
    .three,
    .founder {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service {
        grid-template-columns: 28px 1fr 20px;
        gap: 12px;
    }

    .service>div {
        grid-column: 2;
    }

    .service>b {
        grid-column: 3;
        grid-row: 1;
    }

    .three h3 {
        margin: 18px 0 10px;
    }

    .lead {
        margin-bottom: 45px;
    }

    .founder strong {
        font-size: 110px;
    }

    .footer {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .footer small:nth-of-type(2) {
        justify-self: start;
    }

    .footer>a {
        justify-self: end;
    }
}
/* Usunięcie pustego elementu przesuwającego logo */
body.wp-custom-logo .header > .brand {
    display: none !important;
}
@media (max-width: 800px) {
    .header {
        padding-left: 8vw !important;
        padding-right: 8vw !important;
    }
}

/* POPRAWKI UKŁADU MOBILNEGO */
@media (max-width: 800px) {

    /* Pierwsza sekcja – mniej pustej przestrzeni */
    .hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 55px;
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: clamp(52px, 12vw, 78px);
        margin: 55px 0 45px;
    }

    .pin {
        top: 32%;
        right: 5vw;
        font-size: 120px;
    }

    /* Kontakt – nagłówek dopasowany do ekranu */
    .contact h2 {
        font-size: clamp(40px, 10vw, 60px);
        line-height: 1;
        overflow-wrap: break-word;
    }

    .contact {
        min-width: 0;
    }

    .contact > * {
        min-width: 0;
    }

    .email {
        width: 100%;
        font-size: clamp(23px, 6vw, 32px);
        overflow-wrap: anywhere;
    }

    /* Stopka – zabezpieczenie przed wychodzeniem poza ekran */
    .footer {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: 35px 8vw;
        gap: 22px 16px;
        min-width: 0;
    }

    .footer > * {
        min-width: 0;
        max-width: 100%;
    }

    .footer small,
    .footer a {
        overflow-wrap: anywhere;
    }

    .footer > a {
        justify-self: end;
        text-align: right;
    }
}
