:root {
    --brand: #f59e0b
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial
}

h1,
h2,
h3,
h4 {
    font-family: Montserrat, Inter, ui-sans-serif, system-ui
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .7s ease, transform .7s ease
}

.reveal.show {
    opacity: 1;
    transform: none
}

.prose p {
    margin: .5rem 0 1rem
}

.prose ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: .25rem 0 1rem
}

.chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .8rem;
    background: #fff
}

.logo-carousel {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
}

.logo-item {
    height: 40px;
    margin: 0 auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.8;
    transition: all .3s ease;
}

.logo-item:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

.top-gallery {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.top-gallery figure {
    margin: 0 10px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.top-gallery img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.img-card:hover img {
    transform: scale(1.04);
}

.hero {
    background: url('../img/head_bg.jpg') center top / cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: flex-end;
}

.hero-content {
    background: rgba(0, 0, 0, .6);
}

.oferta-bg {
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url('../img/main/m_16.jpg') center top / cover no-repeat;
}

.realizacje-bg {
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url('../img/gallery/g_2.jpg') center top / cover no-repeat;
}

.parallax-bg {
    background-attachment: scroll;
}

details summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}

details summary::after {
    content: "＋";
    /* znak plus */
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2rem;
    transition: transform 0.3s ease, content 0.3s ease;
}

details[open] summary::after {
    content: "－";
}

details summary::-webkit-details-marker {
    display: none;
}

details .accordion-content {
    overflow: hidden;
    transition: height 0.35s ease;
    height: 0;
}

#message {
    resize: none !important;
}

.personel-card {
    border-radius: 1rem;
    overflow: hidden;
}

.personel-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.shadow-box {
    -webkit-box-shadow: 0px 0px 24px -9px rgba(119, 119, 119, 1);
    -moz-box-shadow: 0px 0px 24px -9px rgba(119, 119, 119, 1);
    box-shadow: 0px 0px 24px -9px rgba(119, 119, 119, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

#formModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

#formModal.flex {
    display: flex;
}

@media (max-width: 768px) {
    .oferta-bg {
        background: none;
    }

    .realizacje-bg {
        background: none;
    }

    .hero {
        background: url('../img/head_bg.jpg') center bottom / cover no-repeat;
        min-height: 400px;
    }

    .parallax-bg {
        background-attachment: fixed;
    }

    .personel-card {
        margin: auto;
        width: 400px;
        height: auto;
    }

    .top-gallery {
        width: 80%;
        margin: auto;
    }

    .img-card img {
        height: 300px;
    }
}

@media (min-width: 1620px) {
    .hero-content {
        width: 80%;
    }
}