:root {
    font-size: 10px;
    --black: #0a0a0a;
    --shadow: #9e9e9e;
    --white: #ffffff;
    --blue: #a47ee4;
    --blue-transparent: rgb(25 16 41 / 15%);
    --light-blue: #bae2ff;
    --gradient-start: #3f285f;
    --gradient-end: #000000;
    --scrollbar-thumb: #98bded;
    --contact-bg: #161616;
    --footer-bg: #0a0a0a;
}
.material-icons {
    font-size: 1em!important;
    margin-right: 0.3em;
    color: #7962dd;
    text-shadow: 0 0 4px #5100ff;
}
body {
    font-family: 'Montserrat', Arial;
    background-color: var(--black);
    color: var(--white);
    margin: 0;
    overflow-x: hidden;
}
.fade-in {
    opacity: 0;
    transform: translateY(4%);
    transition: opacity 600ms, transform 1s;
}
section {
    padding: 0 10rem;
}
header {
    display: flex;
    align-items: center;
    padding: 1.5rem 10rem;
}
header img {
    height: 6.5rem;
    filter: invert(1);
}
header nav {
    margin-left: auto;
}
header nav ul {
    list-style: none;
    display: flex;
}
header nav ul li {
    font-size: 2.8rem;
    margin-left: 4rem;
}
header nav ul li a {
    text-decoration: none;
    color: var(--white);
    transition: color 200ms;
}
header nav ul li a:hover {
    color: var(--blue);
}

#welcome {
    display: flex;
    align-items: top;
    padding-top: 11rem;
    min-height: calc(80vmin - 6.5rem);
    background: linear-gradient(-45deg, var(--gradient-start), var(--gradient-end));
    background-size: cover;
    background-position: bottom;
    position: relative;
}
#welcome svg {
    position: absolute;
    bottom: 0;
    left: -20%;
    fill: var(--black);
    z-index: 1;
    transform: scaleY(0.75) translateY(39.75%);
}
#welcome h1 {
    font-size: 8rem;
    margin: 0;
}
#welcome h2 {
    font-size: 3.5rem;
    font-weight: normal;
    margin: 0;
    color: var(--blue);
}
#welcome img {
    height: 30vw;
    margin-left: auto;
}
#uslugi {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-around;
    margin-top: 9rem;

}
#uslugi article {
    width: 22%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    background-color: var(--contact-bg);
    padding: 5rem 2.5rem;
    border-radius: 3rem;
}
#uslugi article img {
    height: 20rem;
    padding-bottom: 4rem;
    margin: 0 auto;
}
#uslugi article h3 {
    font-size: 3rem;
    font-weight: 600;
    margin: 0;
    position: relative;
}
#uslugi article h3:before {
    content: "";
    height: 4px;
    position: absolute;
    width: 25%;
    background-color: #7962dd;
    top: 125%;
    box-shadow: 0 0 3px #7c00ff;
    border-radius: 10px;
}
#uslugi article p {
    font-size: 1.7rem;
    margin: 0;
    line-height: 160%;
    margin-top: 2.2rem;
    color: var(--shadow);
}
#portfolio {
    background-color: var(--light-blue);
    padding: 10rem;
    padding-bottom: 25rem;
    margin-top: 30rem;
    position: relative;
    display:none;
}
#portfolio svg, #opinie svg, #kontakt svg {
    position: absolute;
    bottom: 100%;
    left: -20%;
    fill: var(--black);
    z-index: 1;
    transform: scaleY(0.75) translateY(39.75%);
}
#portfolio h2 {
    font-size: 6rem;
    font-weight: 600;
    text-align: left;
    margin: 0;
    transform: translateY(-110%);
    z-index: 2;
    position: relative;
}
#portfolio div {
    display: flex;
    overflow-x: scroll;
    padding: 3rem;
    border-radius: 2rem;
    background-color: var(--white);
}
#portfolio div::-webkit-scrollbar {
    height: 22px;
}
#portfolio div::-webkit-scrollbar-track {
    border-radius: 15px;
    background: rgba(255, 255, 255,0.9);
}

#portfolio div::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 15px;
    border: 5px solid rgba(255, 255, 255,0.9);
    width: 1px;
}
#portfolio div::-webkit-scrollbar-thumb:hover {
    cursor: grab;
}
#portfolio article {
    margin-right:  3rem;
    position: relative;
    border-radius: 1rem;
}
#portfolio img{
    width: 20vw;
    position: relative;
}
#portfolio h3 {
    position: absolute;
    left: 4%;
    bottom: 2%;
    font-size: 1.6vw;
    margin: 0;
    font-weight: normal;
    z-index: 2;
}
#portfolio article::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(190deg,transparent 65%, var(--black) 100%);
}
#portfolio h3 a {
    text-decoration: none;
    color: var(--white);
}
#opinie {
    opacity: 0;
    max-height: 0vmax;
    
    position: relative;
    padding: 15rem 10rem;
}
#opinie svg {
    fill: var(--black);
}
#opinie div {
    position: relative;
    z-index: 2;
    background-color: transparent !important;
    filter: brightness(1.1);
}
#opinie .sk-reviewer-pic {
    filter: none;
}
#opinie .sk_reviews_grid-item.sk_reviews_badge_container {
    height: 100% !important;
    display: grid;
    place-items: center;
    max-height: 300px;
}
#opinie .sk_reviews_grid-item.sk_reviews_badge_container * {
    font-size: 2.5rem !important;
}
#opinie .sk_fb_date, #opinie .sk-google-review-button-more {
    font-size: 1.3rem !important;
}
#opinie .sk-reviewer-name-action, #opinie .sk-google-reviews-text-content {
    font-size: 2rem !important;
}
#opinie .sk-reviewer-name-action {
    padding-left: 5.5rem !important;
}
#opinie .sk-ww-google-reviews .sk-reviewer-pic img {
    height: 5rem !important;
    width: 5rem !important;
}
#opinie .sk-google-reviews-icon {
    height: 3.5rem !important;
    width: 3.5rem !important;
}
#opinie .sk_reviews_grid-content {
    border-radius: 3rem !important;
}
.sk-ww-google-reviews-review-text-popup span {
    font-size: 1.6rem !important;
}
.sk-ww-google-reviews-content.review-list {
    padding: 3rem !important;
}

#opinie .sk_reviews_grid-content.badge-content {
    box-shadow: none !important;
}
#opinie .sk-reviews-not-found {
    padding-top: 1rem;
}
#kontakt, #kontakt div, #kontakt img {
    position: relative;
    z-index: 2;
}
#kontakt svg {
    fill: var(--contact-bg);
}
#kontakt {
    margin-top: 10rem;
    background-color: var(--contact-bg);
    display: flex;
    padding-top: 5rem;
    padding-bottom: 20rem;
    align-items: center;
}
#kontakt div {
    width: 50%
}
#kontakt h2 {
    font-size: 6rem;
    margin: 0;
}
#kontakt a {
    color: inherit;
    text-decoration: none;
    display: block;
    margin-top: 7rem;
    width: max-content;
    transition: color 200ms;
    font-size: 4rem;
    position: relative;
    padding-left: 1rem;
    margin-left: 5rem
}
#kontakt a span {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
}
#kontakt a:hover {
    color: #ffffff;
}
#kontakt img {
    height: 25vw;
    margin: 0 auto;
}
footer {
    background-color: var(--footer-bg);
}
footer p {
    margin: 0;
    color: var(--white);
    text-align: center;
    font-size: 1.5rem;
    padding: 3rem 0;
}
.sk-reviews-not-found {
    padding-bottom: 2rem;
}
@media screen and (max-width:1600px) {
    #welcome h1 {
        font-size: 7rem;
    }
    #welcome h2 {
        font-size: 3rem;
    }
}
@media screen and (max-width:1400px) {
    :root {
        font-size: 8px;
    }
    #welcome {
        min-height: calc(60vmin - 6.5rem);
    }
    #portfolio div::-webkit-scrollbar {
        height: 15px;
    }
    #portfolio div::-webkit-scrollbar-thumb {
        border-radius: 10px;
        border: 4px solid rgba(255, 255, 255,0.9);
        width: 1px;
    }
    #welcome h1 {
        font-size: 7.5rem;
    }
}
@media screen and (max-width:1255px) {
    :root {
        font-size: 6px;
    }
    #welcome {
        min-height: calc(55vmin - 6.5rem);
    }
    #opinie .sk-google-reviews-icon {
        transform: scale(0.5);
    }
}
@media screen and (max-width:950px) {
    :root {
        font-size: 5px;
    }
    #welcome {
        min-height: calc(42vmin - 6.5rem);
    }
}

@media screen and (max-width:800px) {
    :root {
        font-size: 4px;
    }
    #welcome {
        min-height: calc(42vmin - 6.5rem);
    }
    #portfolio div::-webkit-scrollbar {
        height: 10px;
    }
    #portfolio div::-webkit-scrollbar-thumb {
        border: 2px solid rgba(255, 255, 255,0.9);
    }
}

@media screen and (max-width:640px) {
    :root {
        font-size: 3px;
    }
    #welcome {
        min-height: calc(30svh - 6.5rem);
    }
    #opinie .sk_reviews_grid-item.sk_reviews_badge_container {
        height: auto!important;
        display: block;
    }
    #opinie .sk-ww-google-reviews-review-text-container .sk_fb_stars {
        transform: scale(0.7) translate(-21%);
    }
}

@media screen and (max-width:500px) {
    :root {
        font-size: 4px;
    }
    header nav ul li {
        font-size: 3rem
    }
    #welcome, #uslugi {
        flex-flow: column;
    }
    #welcome {
        padding-bottom: 18rem;
        text-align: center;
    }
    #welcome h1 br {
        display: none;
    }
    #welcome h1 {
        font-size: 8rem;
    }
    #welcome h2 {
        font-size: 3.3rem;
    }
    #welcome img {
        margin-left: auto;
        margin-right: auto;
        margin-top: 10rem;
        height: 45vw;
    }
    #uslugi article {
        min-width: 230px;
        width: calc(100% - 20rem);
        margin: 5rem auto;
        padding: 7rem 5rem;
    }
    #uslugi article img {
        height: 40rem;
    }
    #uslugi article h3 {
        font-size: 5rem;
    }
    #uslugi article p {
        font-size: 3rem;
        margin-top: 3.8rem;
    }
    #portfolio img{
        width: 45vw;
    }
    #portfolio a {
        font-size: 3rem;
    }
    #kontakt {
        padding-top: 10rem;
    }
    #kontakt div {
        width: max-content;
        max-width: 80%;
    }
    #kontakt img {
        display: none;
    }
    #kontakt a {
        font-size: 4.15rem;
        margin-top: 10rem;
    }
    #opinie .sk_reviews_grid-item.sk_reviews_badge_container * {
        font-size: 5rem !important;
    }
    #opinie .sk_reviews_grid-item.sk_reviews_badge_container {
        top: 0 !important;
    }
    #opinie .sk-reviews-not-found {
        font-size: 3rem !important;
    }
    #opinie .sk-reviewer-name-action, #opinie .sk-google-reviews-text-content {
        font-size: 4rem !important;
    }
    #opinie .sk_fb_date, #opinie .sk-google-review-button-more {
        font-size: 2.5rem !important;
    }
    #opinie .sk-ww-google-reviews .sk-reviewer-pic img {
    height: 8rem !important;
    width: 8rem !important;
    }
    #opinie .sk-google-reviews-icon {
        transform: scale(0.7);
    }
    .sk-ww-google-reviews-review-text-popup span {
        font-size: 3rem !important;
    }
    footer p {
        font-size: 2rem;
    }
}
@media screen and (max-width:400px) {
    #welcome h1 {
        font-size: 7rem;
    }
}
@media screen and (max-width:365px) {
    #welcome h1 {
        font-size: 6.5rem;
    }
}
@media screen and (max-width:340px) {
    :root {
        font-size: 3.5px;
    }
    #uslugi article h3 {
        font-size: 5rem;
    }
    #uslugi article p {
        font-size: 3rem;
    }
}