/* --------------------- Page --------------------- */

.entry-content {
    padding: 30px;
}

@media (max-width: 768px) {
    .entry-content {
        padding: 10px;
    }
}

/* --------------------- Oferta --------------------- */

h1.oferta {
    font-weight: 800;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 50px;
}

.kosmonauta2 {
    margin-top: 70px;
    width: 235px;
    height: auto;
}

.mg-svg {
    max-width: 447px;
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
}

.gridboxof {
    margin-bottom: 50px;
}

.gridboxof img+p {
    display: none;
}

.gridboxof img.svg-element {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.gridboxof h2 {
    font-size: 27px;
    display: inline-block;
    vertical-align: middle;
    font-weight: 800;
    margin: 0;
    padding: 0;
}

.gridboxof p {
    margin-left: 64px;
    font-size: 16px;
    opacity: 0.5;
}

.gridboxof2 {
    text-align: center;
}

.gridboxof2 img+p {
    display: none;
}

.gridboxof2 img.svg-element {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.gridboxof2 h2 {
    font-size: 27px;
    display: inline-block;
    vertical-align: middle;
    font-weight: 800;
    margin: 0;
    padding: 0;
}

.gridboxof2 p {
    margin-left: 70px;
    font-size: 16px;
    opacity: 0.5;
}

.akordeon-wrapper {
    margin: 50px;
    border: 2px solid;
    padding: 10px 30px;
    border-radius: 10px;
}

.akordeon-item {
    margin-top: 20px;
}

h4.akordeon-title {
    margin: 0;
}

.akordeon-title {
    cursor: pointer;
    font-family: "Outfit", sans-serif;
    letter-spacing: 1px;
    position: relative;
    font-size: 20px;
    padding-bottom: 30px;
}

.akordeon-item .akordeon-title {
    border-bottom: 2px solid;
    transition: border 0.3s ease;
}


.akordeon-title.open {
    border-bottom: none;
}


.akordeon-content.show {
    border-bottom: 2px solid;
    padding-bottom: 20px;
}

.akordeon-item:last-child .akordeon-title {
    border-bottom: none;
    padding-bottom: 0;
}

.akordeon-title::before {
    content: '\002B';
    display: inline-block;
    font-size: 20px;
    margin-right: 10px;
    transition: transform 0.3s ease-in-out;
}

.akordeon-title.open::before {
    content: '\2212';
    transform: rotate(90deg);
}

.akordeon-content {
    max-height: 0;
    overflow: hidden;
    margin: 10px 125px 10px 25px;
    transition: max-height 0.3s ease-in-out;
}

.show {
    display: block;
    margin: 10px 0 30px 0;
    opacity: 0.5;
}

.oferta-karuzela {
    margin: 80px 0 0 0;
}

.partnerzy-slider {
    margin: 50px 0;
}

.partnerzy-column {
    display: block;
}

.partnerzy-item {
    margin: 20px 0;
}

.partnerzy-logo {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partnerzy-logo img {
    display: block;
    max-height: 60px;
    max-width: 130px;
    margin: auto;
}



@media (max-width: 1023px) {

    h1.oferta {
        width: 98%;
        font-size: 34px;
    }
}

@media (max-width: 768px) {

    .gridboxof p,
    .gridboxof2 p {
        margin-left: 0;
    }

    .gridboxof2 {
        text-align: left;
    }

    .accordion {
        margin: 0;
    }

    .show {
        margin: 5px;
    }

    .akordeon-wrapper {
        margin: 0;
        padding: 10px 10px;
    }    

    .pracowalemdla {
        margin: 5px;
    }

}


/* --------------------- Portfolio --------------------- */

.portfolio-section {
    padding: 20px;
    min-height: 600px;
}

.portfolio-logo {
    max-width: 150px;
    max-height: 150px;
    margin: 30px 0;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.portfolio-header h1 {
    margin: 0;
}

.portfolio-nav button {
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    margin: 0 8px;
}

.portfolio-slider .portfolio-slide {
    margin-bottom: 60px;
}

.portfolio-text {
    max-width: 600px;
    padding: 0 50px;
}

.portfolio-text li {
    line-height: 25px;
}

.portfolio-content {
    margin: 40px 0;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tech-item img {
    height: 20px;
    width: auto;
}

.portfolio-link {
    margin: 30px 0;
}

.portfolio-link .button {
    display: inline-block;
    padding: 10px 20px;
}

.portfolio-images {
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.device-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.device-desktop {
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
}

.device-mobile {
    position: absolute;
    bottom: -30px;
    left: -44px;
    width: 120px;
    z-index: 2;
    box-sizing: border-box;
}

.device-mockup {
    border-radius: 16px;
    padding: 5px;
    background: var(--text-color);
    box-sizing: border-box;
}

.device-mockup-d {
    border: 10px solid var(--text-color);
}

.device-mockup-m {
    border: 1px solid var(--text-color);
}

.device-mockup img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .portfolio-header {
        flex-direction: column;
        gap: 10px;
    }

    .portfolio-text,
    .portfolio-images {
        max-width: 100%;
        margin-left: 0;
    }

    .portfolio-images {
        order: -1;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .portfolio-text {
        padding: 0 20px;
    }

    .device-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }

    .device-desktop {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .device-mobile {
        position: absolute;
        bottom: -20px; 
        left: 60px;
        width: 25vw;
        max-width: 100px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .device-mockup-d {
        border: 5px solid var(--text-color);
    }

    .device-desktop {
        max-width: 350px;
    }

    .device-mobile {
        left: 7px;
        width: 18vw;
        max-width: 70px;
        min-width: 60px;
    }
}



/* --------------------- Wycena --------------------- */

.wycena {
    margin: 30px 0;
}

.tab-navigation {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding-bottom: 10px;
    margin-top: 25px;
}

.tab-button {
    padding: 20px 15px;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
}

@keyframes pulse-opacity {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.tab-button.active {
    color: var(--text-color);
    border: 2px solid var(--text-color);
    font-weight: 800;
    animation: pulse-opacity 1s infinite;
    transition: opacity 0.1s ease;
}

.tab-button:hover {
    background-color: var(--text-color);
    color: var(--body-color);
}

.tab-container {
    display: flex;
    flex-direction: column;
}

.tab {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab.active {
    display: block;
    opacity: 1;
}

.prev-tab {
    float: left;
}

.next-tab {
    float: right;
}

.krok {
    display: block;
    text-align: center;
    font-size: 20px;
}

.krok-opis {
    display: block;
    text-align: center;
    font-size: 14px;
}

.wycena h3 {
    margin-bottom: 35px;
    font-size: 35px;
}

.wycena p {
    margin-bottom: 20px;
}

.wpcf7-checkbox {
    margin-top: 30px;
}

.wpcf7-list-item {
    display: block;
    margin: 1em 0 0 1em;
}

[data-name="zgoda"] .wpcf7-list-item {
    display: inline;
}

.wycena input[type="submit"] {
    float: right;
}

.wyc-kont p {
    margin: 0;
    padding: 0;
}

.formlabel {
    padding: 15px 0;
    display: block;
}


@media (max-width: 799px) {
    .tab-navigation {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        margin-top: 10px;
        padding: 0 20px;
    }

    .tab-button {
        flex: 1 0 auto;
        width: auto !important;
        white-space: nowrap;
        padding: 10px;
        font-size: 16px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .krok {
        font-size: 18px;
    }

    .krok-opis {
        font-size: 12px;
    }

    h1.wycena {
        text-align: center;
    }

}

@media (min-width: 800px) {
    .tab-navigation {
        flex-direction: column;
        align-items: stretch;
        padding: 0 30px;
    }

    .tab-button {
        width: 100%;
    }
}


/* --------------------- Oferty dla klientów --------------------- */

.iko-oferty {
    width: 80px;
    height: auto;
}

.projekt-graf-img {
    border: 1px solid #cdcdcd;
}

form.post-password-form {
    text-align: center;
    border: 2px solid var(--text-color);
    padding: 20px;
    margin: 30px;
}

form.post-password-form label {
    line-height: 1;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 2px;
}

form.post-password-form input[type=password] {
    width: 240px;
    border: 2px solid var(--text-color);
    background-color: var(--body-color);
    color: var(--text-color);
    padding: 25px 35px;
}


form.post-password-form input[type=submit] {
    margin: 7px 0 0 7px;
    padding: 25px 45px;
    border: 2px solid var(--text-color);
    background-color: var(--body-color);
    color: var(--text-color);
    box-shadow: 10px 10px var(--text-color);
    transition: box-shadow 0.3s, margin 0.3s;
    cursor: pointer;
}


/* --------------------- Eko strona --------------------- */

.eko-img {
    margin: 40px 60px;
}

.eko-strona ul li {
    margin: 20px 0;
    line-height: 25px;
}


/* --------------------- Polityka prywatności --------------------- */

.pp_icon {
    font-size: 68px;
    float: left;
    margin-right: 30px;
    margin-top: 20px;
}

#page-3 h2 {
    margin-bottom: 50px;
    margin-top: 50px;
}

#page-3 p,
#page-3 li {
    line-height: 25px;
}

#page-3 .entry-content {
    padding: 20px 40px;
}


/* --------------------- 404 --------------------- */

.kask {
    width: 120px;
    height: auto;
    animation: floatAndSwayAnimation 12s infinite ease-in-out alternate, astroFloat 12s infinite ease-in-out;
}

.site404 {
    margin-top: 12%;
    margin-bottom: 5%;
}

.div404 {
    display: flex;
}

.div404text {
    text-align: center;
    margin-bottom: 70px;
}

.div404button {
    text-align: center;
}

.backbutton {
    padding: 18px 35px;
    border-radius: 10px;
    border: 2px solid var(--text-color);
    background-color: var(--body-color);
    color: var(--text-color);
    margin-top: 60px;
    box-shadow: 10px 10px var(--text-color);
    transition: box-shadow 0.3s, margin 0.3s;
}

.backbutton:hover {
    box-shadow: 3px 3px var(--text-color);
    margin: 7px 0 0 7px;
}

.h1404 {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 120px;
    font-weight: 800;
    animation: glitch 1s linear infinite;
}

@keyframes glitch {

    2%,
    64% {
        transform: translate(2px, 0) skew(0deg);
    }

    4%,
    60% {
        transform: translate(-2px, 0) skew(0deg);
    }

    62% {
        transform: translate(0, 0) skew(5deg);
    }
}

.h1404:before,
.h1404:after {
    content: attr(title);
    position: absolute;
    left: 0;
}

.h1404:before {
    animation: glitchTop 1s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

@keyframes glitchTop {

    2%,
    64% {
        transform: translate(2px, -2px);
    }

    4%,
    60% {
        transform: translate(-2px, 2px);
    }

    62% {
        transform: translate(13px, -1px) skew(-13deg);
    }
}

.h1404:after {
    animation: glitchBotom 1.5s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBotom {

    2%,
    64% {
        transform: translate(-2px, 0);
    }

    4%,
    60% {
        transform: translate(-2px, 0);
    }

    62% {
        transform: translate(-22px, 5px) skew(21deg);
    }
}


/* --------------------- Kontakt --------------------- */


h1.kontakt {
    text-align: left;
}

h2.kontakt {
    font-size: 27px;
    font-family: "Outfit", sans-serif;
    font-weight: 200;
}

.kontakt-pod-form {
    display: none;
}

.kontaktform p {
    margin: 0;
    padding: 2px;
}

.ikonta {
    width: 24px;
    height: auto;
}

.ifk p {
    margin: 5px 0;
    font-size: 1.1rem;
}


@media (max-width: 1023px) {
    .kontakt-pod-form {
        display: block;
        font-size: 17px;
        margin-left: 10px;
    }

}

@media (max-width: 799px) {

    h1.kontakt,
    h2.kontakt {
        text-align: center;
    }

}