@font-face {
    font-family: 'Lato';
    src: url('./assets/font/Lato-Regular.woff') format('woff'), url('../assets/font/Lato-Regular.ttf') format('truetype'), url('../assets/font/Lato-Regular.svg') format('svg');
}

@font-face {
    font-family: 'Lato-Light';
    src: url('../assets/font/Lato-Light.woff') format('woff'), url('../assets/font/Lato-Light.ttf') format('truetype'), url('../assets/font/Lato-Light.svg') format('svg');
}

@font-face {
    font-family: 'Lato-Heavy';
    src: url('../assets/font/Lato-Heavy.woff') format('woff'), url('../assets/font/Lato-Heavy.ttf') format('truetype'), url('../assets/font/Lato-Heavy.svg') format('svg');
}

@font-face {
    font-family: 'Lato-Regular';
    src: url('../assets/font/Lato-Regular.woff') format('woff'), url('../assets/font/Lato-Regular.ttf') format('truetype'), url('../assets/font/Lato-Regular.svg') format('svg');
}

body {
    font-family: 'Lato-Light';
    background: #cacbcd;
    transition: 2s;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- TŁO (slider) - przypięte do okna, wypełnia ekran ---------- */
#slider:before {
    content: '';
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 9;
}

#slider {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#slider img {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    transition: 2.5s ease-out 0s;
    opacity: 0;
    height: 100%;
    min-height: 500px;
}

/* Ekran wyższy niż szerszy: zdjęcie skalowane do 100% wysokości okna,
   środek obrazu na środku strony, lewy i prawy brzeg wychodzą poza ekran. */
@media (orientation: portrait) {
    #slider img {
        left: 50%;
        right: auto;
        margin: 0;
        transform: translateX(-50%);
    }
}

/* ---------- LOGO - pionowe, 50px od górnej i lewej krawędzi kolumny ---------- */
/* Kolumna wyśrodkowana jak zdjęcie, żeby logo nie uciekało poza kadr
   na szerokim ekranie. pointer-events:none - klik i tak otwiera menu. */
.hug {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    z-index: 3;
    pointer-events: none;
}

.logo2 {
    position: absolute;
    top: 50px;
    left: 50px;
    line-height: 0;
    background: rgb(205 21 21 / 85%);
    padding: 10px 50px;
    transform-origin: 0 0;
    transform: rotate(-90deg) translateX(-100%);
    pointer-events: none;
}

.logo2 img {
    display: block;
    width: 250px;
    height: auto;
}

/* ---------- MENU - czerwony panel z backdrop-filter ---------- */
.menu-panel {
    position: fixed;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgb(255 255 255 / 5%);
    min-width: 200px;
    width: max-content;
    padding: 10px;
    font-family: 'Lato-Light';
    user-select: none;
    -webkit-user-select: none;
}

.menu-panel--page {
    background: rgb(159 8 8 / 80%);
}

.menu-node {
    position: relative;
    line-height: 30px;
    padding: 5px 25px 5px 25px;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
}

.menu-node::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: 20px;
    width: 100%;
    z-index: 0;
    background-color: transparent;
    transition: background-color 0.2s;
}

.menu-node:hover::before {
    background-color: rgb(255 255 255 / 12%);
}

.menu-node > span {
    position: relative;
    z-index: 1;
}

.menu-sep {
    height: 18px;
}

/* ---------- POPUP (komunikat) ---------- */
#popup {
    position: fixed;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 100%;
    bottom: 0;
    z-index: 1;
    left: 0;
    color: #fff;
    display: none;
}

#popup.show {
    display: flex;
}

#popup #popuptxt {
    background: #000fff8f;
    padding: 20px;
    padding-top: 30px;
    backdrop-filter: blur(5px);
    max-width: calc(100% - 40px);
}

#popup #popuptxt:after {
    content: '';
    width: 25px;
    height: 25px;
    background: url('/public/icons/close.svg');
    background-size: cover;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
}

/* ---------- popup wyboru języka ---------- */
.popup {
    font-family: 'Lato-Regular';
    position: fixed;
    min-width: 100vw;
    min-height: 100vh;
    top: 0;
    left: 0;
    display: table-column;
    flex-flow: column;
    padding: 50px 0;
    background: #a6a6aad6;
    z-index: 20;
}

.popup div {
    margin: auto;
    color: #ffffff;
    height: 50px;
    text-align: center;
    font-size: 21px;
    cursor: pointer;
    transition: 0.4s;
    padding: 0;
    width: 130px;
}

/* ================= PODSTRONY (treść w nowym układzie) ================= */
/* Treść mieści się w kolumnie strony (max 900px, wyśrodkowana jak zdjęcie),
   a lewy padding zostawia miejsce na pionowe logo - treść na nie nie wchodzi. */
.page-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 45px 50px 50px 150px;
}

.panel {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
}

.panel a {
    color: #a41312;
}

/* --- treść typu kontakt / firma / współpraca --- */
.contact {
    margin: 0;
    color: #12113d;
    line-height: 25px;
    font-size: 20px;
    font-family: 'Lato-Regular';
}

.contact .small {
    line-height: 20px;
    font-size: 15px;
    padding-bottom: 20px;
    max-width: 350px;
}

/* --- treść "o nas" (duże liczby) --- */
.about {
    margin: 0;
    color: #12113d;
    line-height: 25px;
    font-size: 20px;
    max-width: 580px;
}

.about div {
    clear: both;
    font-size: 20px;
    line-height: 25px;
    display: block;
    margin-bottom: 30px;
    font-family: 'Lato-Regular';
}

/* liczby w treści na czerwono (bez dużych spanów-ikon) */
.about b {
    color: #cd3a3a;
    font-family: 'Lato-Heavy';
}

.about div:last-child {
    margin-bottom: 0;
}

.about span {
    line-height: 70px;
    font-size: 56px;
    min-width: 120px;
    margin-right: 40px;
    text-align: right;
    font-family: 'Lato-Heavy';
    display: none;
    position: relative;
    height: 70px;
}

.about span.red {
    color: #cd1515;
    font-size: 20px;
    line-height: 25px;
    height: auto;
    min-width: 0;
    margin-right: 8px;
    text-align: left;
    display: block;
}

.about span i {
    padding: 0;
    margin: 0 1px 0 0;
    float: left;
}

.about span.cal {
    width: 60px;
    background: url('../img/about/cal.png') no-repeat right -3px;
    padding: 5px;
    background-size: contain;
    padding-right: 16px;
    margin-right: 24px;
}

.about p {
    max-width: 360px;
}

.about span img {
    height: 70px;
    position: absolute;
    z-index: 1;
    right: 0;
}

@media screen and (max-width: 600px) {
    .page-content {
        padding: 45px 16px 40px 120px;
    }
    .contact .small {
        max-width: 100%;
    }
}
