* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins';
    font-size: 16px;
    background-color: #fff;
    font-weight: 400;
}

:root {
    --primary: #3063E7;
    --primary-light: #c3d4ff;
    --text: #282828;
    --white: #ffffff
}

html {
    scroll-behavior: smooth;
}

main {
    max-width: 100%;
    overflow-x: hidden;
}

p,
h1,
h2,
h3 {
    font-weight: 400;
    margin: 0;
    padding: 0;
}

p {
    line-height: 1.5;
}
.title-offer {
    color: var(--primary);
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.4rem;
}

ul {
    list-style-type: none
}

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

main {
    background-color: #fcf9f4;
}


header {
    background-color: #fff;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    overflow-x: hidden;
    top: 0;
    z-index: 1111;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
}

.nav-logo {
    height: 24px;
    width: auto;
}

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

.menu li {
    margin: 0 1rem;
}

.menu li:hover,
.menu li:active {
    color: var(--primary);
}

.menu-icon {
    display: none;
    font-size: 24px;
}
.menu-mobile {
    display: none;
}

/* Re-usable classes */

.button-primary {
    border: none;
    background-color: var(--primary);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    height: 40px;
    width: fit-content;
    padding: 6px 32px;
    cursor: pointer;
    transition: background-color .5s;
    border-radius: 20px;
}

.button-primary:hover,
.button-primary:active {
    background-color: #11348d;
}

.button-primary:focus,
.button-secondary:focus {
    outline: none;
}

.button-secondary {
    border: var(--text) 2px solid;
    border-radius: 24px;
    background-color: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    height: 40px;
    width: fit-content;
    padding: 6px 32px;
    cursor: pointer;
    transition: background-color .5s;
}

.button-secondary:hover,
.button-secondary:active {
    background-color: #d0d7fa;
}

.spacing_x-small {
    padding: 4px 0;
}

.spacing_small {
    padding: 8px 0;
}

.spacing_medium {
    padding: 16px 0;
}

.spacing_large {
    padding: 32px 0;
}

.section-background-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.section-content-container {
    width: 1040px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin: 2rem
}

.icon-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding-top: 2px;
}

.icon-container-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px
}

.card {
    padding: 2rem;
    border-radius: 20px;
    width: 480px;
}

.icon-small {
    height: 16px;
    width: 16px;
    margin-top: 4px;
}

.bg-white {
    background-color: #fff;
}

/* Sections
Hero Section */

.hero-img {
    background-image: url("assets/main_tlo.png");
    width: 100%;
    display: block;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    padding-top: 160px;
}

.blob-img {
    background-image: url("assets/blobldpi.svg");
    background-color: transparent;
    height: 28rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: center;
}

.hero-content-layout {
    display: flex;
    flex-direction: column;
    align-items: start;
    max-width: 376px;
    width: 100%;
    padding-top: 2rem;
}

.hero-logo {
    width: 100%;
}

.hero-pracownia {
    display: inline;
    text-align: left;
}

/* O pracowni */
.o-pracowni-gromiec {
    font-size: 18px;
}

.p-small {
    font-size: 14px;
    color: #4d4d4d;
}

.section-mallort-container {
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    padding-bottom: 3rem;
}

.card-offer {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    width: 100%;
}

.section-jak-dojechac-pin {
    padding: 8px 0;
    margin-right: 16px;
}

.section-kontakt-container {
    width: 1040px;
    padding: 0;
    margin: 3rem 0;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fcf9f4;
}

.footer-content {
    width: 1040px;
    margin: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem
}

.footer-icon {
    gap: 2rem
}

.icon-link {
    height: 48px;
    width: 48px;
    border-radius: 24px;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all ease-in-out .3s;
}

.icon-link:hover,
.icon-link:active {
    background-color: var(--primary-light);
}


/* Responsive styling */
@media (max-width: 1068px) {
    .menu {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
  
    }
    .menu-mobile {
        display: block;
    }

    /* Backdrop styling */
    .backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 999;
    }

    /* Side-drawer styling */
    .side-drawer {
        position: fixed;
        top: 0;
        left: -16rem;
        width: 16rem;
        height: 100%;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        transition: transform 0.3s;
        z-index: 1000;
    }

    .side-drawer li {
        margin: 1rem 0
    }

    /* Active state for side-drawer and backdrop */
    .side-drawer.open {
        transform: translateX(100%);
    }

    .backdrop.visible {
        opacity: 1;
        visibility: visible;
    }

    .card {
        padding: 1rem;
        border-radius: 20px;
        width: 100%;
        margin: 1rem;
    }

    .section-content-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 1rem
    }

    .section-mallort-container {
        padding: 2rem;
    }
    .section-kontakt-container {
        margin: 3rem 0;
    }

}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 28px
    }

    h2 {
        font-size: 24px
    }

    h3 {
        font-size: 20
    }

    .spacing_medium {
        padding: 6px 0;
    }

    .spacing_large {
        padding: 8px 0;
    }

    .nav-logo {
        height: 24px;
    }

    .card {
        padding: 1rem;
        border-radius: 20px;
    }
    .side-drawer {
        left: -240px;
        width: 240px;
    }

    .section-content-container {
    
        margin: 16px
    }

    .button-primary,
    .button-secondary {
        width: 100%;
        font-size: 13px;
        padding: 0 16px;
    }

    .hero-img {
        background-image: url("assets/main_tlo_mobile.png");
        position: relative;
        width: 100%;
        height: auto;
        background-position: top center;   
    }

    .blob-img {
        background-image: none;
        background-color: transparent;
        height: auto;
        background-position: center left ;
    }

    .hero-content-layout {
        height: auto;
        padding: 10rem 1rem .5rem;
    }

    .hero-logo {
        height: 48px;
        width: auto;
        margin-bottom: 12px;
    }

    .card-offer {
        padding: 1rem;

    }

    .section-mallort-container {
        padding: 1rem;
    }

    .section-kontakt-container {
        padding: 2rem 1rem;
        margin:  0  0;
    }

    .p-small {
        font-size: 12px;
    }
}
@media (max-width: 480px) {
    .hero-content-layout {
        height: auto;
        padding: 4% 1rem .5rem;
    }
}

@media (max-width: 380px) {
    .hero-content-layout {
        height: auto;
        padding: .6rem 1rem .5rem;
    }
    .side-drawer {
        left: -200px;
        width: 200px;
    }
    .img-smaller-screens {
        width: 240px;
        height: auto;
    }

}
@media (max-width: 320px) {
    .hero-content-layout {
        height: auto;
        padding: .4rem 1rem 0rem;
    }

    .side-drawer {
        left: -200px;
        width: 200px;
    }
    .section-content-container {
        padding: 0;
        margin:  0;
    }
    .card {
        padding: 1rem;
        width: 100%;
        margin: 1rem;
    }
    .footer-content {
       margin: 2rem 0;
   
    }
}