@media (max-width: 1280px) {
    
    .split {
        width: calc(100% - 72px);
    }

    .container {
        width: calc(100% - 72px);
    }

    h1 {
        font-size: 4.5rem;
        margin-bottom: 136px;
    }

    .offer-product-title h1 {
        font-size: 4.5rem;
    }

    /* STARE  */

    .why_us{
        width: calc(100% - 64px);
        padding: 80px 0px;
    }

    .contact_content .content {
        padding: 64px 0 64px 64px;
    }

    .reasons {
        gap: 40px;
    }

    /* WHY US */

    .full_bg {
        width: 100%;

        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* OFFER */

    .offer-new {
        padding-top: 96px;
    }

    .board-product-video {
        left: -36px;
    }
}

@media (max-width: 1080px) {
    h1 {
        font-size: 4rem;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .offer-product-title h1 {
        font-size: 4rem;
        margin-top: 0;
    }

    h1 span {
        position: static;
    }

    h2 {
        font-size: 2.75rem;
    }

    .caption {
        margin-bottom: 16px;
    }

    header .split {
        min-height: auto;
        gap: 80px;
    }

    header .split-text {
        margin: 0 auto;
        width: calc(100% - 64px); 
    }

    .split-text, .split-img {
        margin: 0 auto;
        width: calc(100% - 64px); 
    }

    .split {
        grid-template-columns: 1fr;
        row-gap: 40px;
        width: 100%;
    }

    .split-img {
        height: auto;
        aspect-ratio: 2.2 / 1;
    }

    .o_firmie .split{
        max-height: none;
    }

    .co_robimy .split-text {
        order: 1;
    }

    .co_robimy .split-img {
        order: 2;
    }

    .co_robimy .split-text {
        margin-left: auto;
    }

    .kim_jestesmy .split-text {
        margin-right: auto;
    }

    header .split-video {
        position: relative;
        display: flex;
        left: 0;
        width: 100%;
        height: auto;

        aspect-ratio: 2 / 1;
    }

    .formica-desc {
        padding: 200px 0 120px 0;
    }

    .square {
        height: 32px;
        width: 32px;
    }

    .split-video .board1 {
        bottom: -32px;
        left: 0px;
    }

    .split-video .board2 {
        bottom: -64px;
        right: 0px;
    }

    .board1 .square2,
    .board1 .square3, 
    .board1 .square8, 
    .board1 .square7{
        opacity: 0%;
    }

    .square16 {
        background-color: var(--itamaweb-color);
    }

    .full_bg {
        margin-top: -64px;
    }

    .full_bg .board3 {
        z-index: 2;
        top: -64px;
    }

    .board3 .square5,
    .board3 .square7,
    .board3 .square8,
    .board3 .square10 {
        opacity: 0%;;
    }


    .full_bg .board4 {
        z-index: 2;
        bottom: -64px;
    }

    .board4 .square12 {
        background-color: var(--itamaweb-color);
    }


    /* WHY US */

    .why_us .head_text h2 {
        font-size: 4.5rem;
    }

    /* OFERTA */

    .products .head_text .subhead {
        font-size: 1.5rem;
    }

    .offer-new .video {
        margin-top: 80px;
    }

    .offer-new .head_text {
        align-items: center;
    }

    .offer-new .head_text h2,
    .offer-new .head_text p {
        text-align: center;
    }

    .p_link {
        flex-direction: column;
        align-items: center;
        gap: 24px
    }

    /* PRODUCTS */

    .container {
        width: calc(100% - 64px);
    }

    .board-product-video {
        left: -32px;
    }

    .board-product-desc {
        bottom: -64px;
    }

     /* ABOUT */

     .heading-about {
        padding-bottom: 0;
    }

    /* STARE */


    .reasons {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-new .reasons {
        grid-template-columns: 1fr;
    }

    section.products .split {
        gap: 40px;
    }
}

@media (max-width: 992px) {

    .formica-desc {
        padding: 200px 0 120px 0;
    }

    .container-description {
        flex-direction: column;
        gap: 16px;
    }

    /* STARE */

    .kim_jestesmy .head_text_h3{
        order: -1;
    }

    .co_robimy {
        grid-template-columns: 1fr;
    }

    .img {
        aspect-ratio: 2.2 / 1;
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    .reason_content {
        flex-direction: column;
        gap: 24px;
    }

    .offer .head_text .description {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .button {
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .grid {
        margin-bottom: 80px;
    }

    .product {
        grid-template-columns: 1fr 1fr;
    }

    section.products .split {
        gap: 40px;
    }

}

@media (max-width: 768px) {

    h1 {
        font-size: 3.5rem;
    }

    .offer-product-title h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2,5rem;
        margin-bottom: 40px;
    }

    p,
    .link-chevron,
    .link-squared {
        font-size: 1rem;
    }

    header .split-text, .container {
       width: calc(100% - 48px); 
    }

    .split-text, .split-img {
        width: calc(100% - 48px); 
    }

    .o_firmie {
        padding-top: 24px;
        margin-top: 0;
    }

    .split-img {
        aspect-ratio: 2 / 1;
    }

    /* WHY US */

     .full_bg {
        margin-top: -48px;
        padding-top: 48px;
        padding-bottom: 32px;
    }

    /* OFFER */

    .offer-new {
        padding-top: 64px;
    }

    .video-full {
        aspect-ratio: 2 / 1;
    }

    .product_description {
        padding: 0px 16px 80px 16px;
    }

    .number {
        font-size: 2.5rem;
    }

    .link-squared {
        width: 100%;
        text-align: center;
        padding: 8px 16px;
    }

    .formica-desc {
        padding: 160px 0 96px 0;
    }

    /* PRODUCTS */

    .board-product-video {
        left: -24px;
    }

    .board-product-desc {
        bottom: -48px;
    }

    /* PUZLE */

    .full_bg .board3 {
        left: 0;
        top: -48px;
    }

    .full_bg .board4 {
        bottom: -48px;
    }

    /* NAWIGACJA */

    .navigation {
        display: none;
    }

    .nav-bar {
        position: relative;
        z-index: 100; /* upewnia się, że logo i toggle są nad menu */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-bar a img {
        height: 28px;
        width: auto;
        z-index: 110;
        position: relative;
    }
    .puzzels {
        scale: 50%;
    }

    .toggle {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        width: 48px;
        height: 48px;
        gap: 6px;
        align-items: center;
        justify-content: center;
        padding: 8px;
        z-index: 110;
    }

    .toggle span {
        display: block;
        width: 32px;
        height: 3px;
        border-radius: 2px;
        background: var(--font-color);
        transition: all 0.35s ease;
    }

    .toggle span:first-child {
        width: 16px;
        margin-left: auto;
    }

    .toggle span:last-child {
        width: 16px;
        margin-right: auto;
    }

    .toggle.active span:nth-child(1) {
        transform: translateX(150%);
        opacity: 0;
    }

    .toggle.active span:nth-child(2) {
        transform: rotate(45deg);
        width: 32px;
    }

    .toggle.active span:nth-child(2)::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 32px;
        height: 3px;
        border-radius: 2px;
        background: var(--font-color);
        transform: rotate(-90deg);
        transition: transform 0.35s ease;
    }

    .toggle.active span:nth-child(3) {
        transform: translateX(-150%);
        opacity: 0;
    }

    /* MENU MOBILNE - PODSTAWY */

    .navigation_mobile {
        position: fixed;
        inset: 0;
        height: 100vh;
        width: 100%;
        background: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        /* transition: transform 0.4s ease-in-out; */ /* <- niedziała nie wiadomo dlaczego */
        z-index: 50;
    }

    .navigation_mobile.active {
        transform: translateX(0);
    }

    /* --- ANIMACJA POJAWIANIA LINKÓW --- */

    .navigation_mobile ul {
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    .navigation_mobile.active ul {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .navigation_mobile.active ul {
        opacity: 1;
        animation: fadeInMenu 0.6s ease forwards;
    }

    .navigation_mobile a {
        font-size: 2rem;
        font-weight: 600;
        color: var(--font-color);
        text-decoration: none;
    }

    @keyframes fadeInMenu {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navigation_mobile ul li {
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInItem 0.5s ease forwards;
    }

    /* pojawianie się po kolei */
    .navigation_mobile.active ul li:nth-child(1) { animation-delay: 0.2s; }
    .navigation_mobile.active ul li:nth-child(2) { animation-delay: 0.4s; }
    .navigation_mobile.active ul li:nth-child(3) { animation-delay: 0.6s; }

    @keyframes fadeInItem {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .square {
        height: 24px;
        width: 24px;
    }

    .split-video .board1 {
        left: -24px;
        bottom: -24px;
    }

    .split-video .board2 {
        bottom: -48px;
    }
}

@media (max-width: 724px) {

    h1 span {
        white-space: wrap;
    }

    h4 {
        font-size: 1.5rem;
    }

    .large-p {
        font-size: 1.5rem;
    }

    .why_us .head_text h2 {
        font-size: 3rem;
    }

    .why_us {
        width: calc(100% - 48px);
    }

    .main-header {
        margin-top: 64px;
    }

    .full_bg {
        padding-bottom: 0;
    }

    .reasons {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .reason {
        gap: 8px;
    }

    .reason .video {
        aspect-ratio: 2 / 1;
    }

    .product {
        grid-template-columns: 1fr;
        gap: 16px;
        max-height: none;
        height: auto;
    }

    .product_img {
        aspect-ratio: 2 / 1;
    }

    /* Oferta */

    .offer_content {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact_content {
        grid-template-columns: 1fr;
    }

    .contact_content .content {
        padding: 40px;
        gap: 24px;
    }

    .contact_content .content h2 {
        font-size: 3rem;
    }

    .contact_content .content a {
        font-size: 2rem;
    }

    .contact_video video {
        display: none;
    }

}

@media (max-width: 528px) {
    .split-text h1 {
        font-size: 3rem;
        /* margin-bottom: 32px; */
    }

    .products .head_text .subhead,
    .offer-product-title .subhead {
        font-size: 1.25rem;
    }

    .products .split .head_text {
        margin-bottom: 0;
    }

    .offer-product-title h1 {
        font-size: 3rem;
    }

    header .split {
        gap: 64px
    }

    h2 {
        font-size: 2.25rem;
        margin-bottom: 32px;
    }

    .why_us .head_text h2 {
        font-size: 2.5rem;
    }

    .why_us {
        
    }

    .head_text{
        margin-bottom: 40px;
    }

    h3 {
        font-size: 1.5rem;
    }

    .paragraph {
        gap: 16px;
    }

    .grid {
        margin-bottom: 64px;
    }

    .head_text_h3 {
        gap: 16px;
    }

    .video {
        aspect-ratio: 1.75 / 1;
    }

    .puzzels {
        scale: 40%;
    }

    .nav-bar {
        margin: 16px auto;
    }

    .nav-bar a img {
        height: 24px;
        width: auto;
        z-index: 110;
        position: relative;
        align-self: center;
    }
    .puzzels {
        scale: 50%;
    }

    .toggle {
        width: 42px;
        height: 42px;
        padding: 7px;
        
    }

    .toggle span {
        width: 28px;
        height: 2;
    }

    .toggle span:first-child, .toggle span:last-child {
        width: 14px;
    }

    /* OFFER */

    /* .offer-new {
        padding-top: 40px;
    } */
}

@media (max-width: 430px) {
    
    h1,
    .offer-product-title h1 {
        font-size: 2.5rem;
    }

    header .split-video {
        aspect-ratio: 1.5 / 1;
    }

    .main-header {
        margin-top: 32px;
    }

    .puzzels {
        scale: 30%;
    }

    .contact_content .content {
        padding: 24px;
        padding-bottom: 40px;
        gap: 24px;
    }

    .contact_content .content a {
        font-size: 1.75rem;
    }



    .full_bg .board3 {
        left: -24px;
        top: -48px;
    }

    .full_bg .board3 .square10 {
        opacity: 100%;
        background-color: var(--background-secondary);
    }

    .full_bg .board3 .square15 {
        opacity: 100%;
        background-color: var(--white);
    }

    /* PRODUCTS */

    .board-product-video {
        left: -48px;
    }


}

@media (max-width: 1200px) {
  .contact_content {
    max-height: none; /* opcjonalnie, jeśli chcesz płynniejszą wysokość */
    height: auto;
  }

  .contact_video video {
    transform: translate(0, -50%);
    min-width: 100%;
    min-height: 100%;
    /* width: 100%; */
    height: 100%;
    object-fit: cover;
  }
}
/* MENU PRZYKLEJONE DO GÓRY EKRANU (wszystkie szerokości)
   Tło pełnej szerokości daje pseudo-element ::before (sam pasek ma szerokość .container).
   Bez transform/filter/clip-path na pasku – inaczej menu mobilne (position: fixed) nie zakryłoby ekranu. */
body > .nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 0;
    margin-bottom: 0;
    padding: 20px 0;
}
body > .nav-bar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--background);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
    z-index: -1;
}
/* clip (nie hidden) – nie psuje position: sticky, a ucina wystające w bok elementy */
body { overflow-x: clip; }
html { scroll-padding-top: 96px; }
@media (max-width: 528px) {
    body > .nav-bar { padding: 12px 0; }
    html { scroll-padding-top: 72px; }
}
