@font-face {
    font-family: Inter;
    src: url(../font/Inter/Inter-VariableFont_opsz\,wght.ttf);
}
@font-face {
    font-family: Inter-italic;
    src: url(../font/Inter/Inter-Italic-VariableFont_opsz\,wght.ttf);
}
html{font-size: 17px;font-family: Inter , system-ui , sans-serif;}
header > svg {transform: scale(1.4);}
h1{line-height: 1;margin-left: 12px;margin-right:13px;margin-bottom: 0.8rem;margin-top: 1.2rem;}
h2,h3{line-height: 1.1;margin-left: 8px;margin-right: 8px;margin-bottom: 0.8rem;margin-top: 1.1rem;}
h4,h5,h6{line-height: 1.2;margin-left: 8px;margin-right: 8px;margin-bottom: 0.8rem;margin-top: 1rem;}
p,b,i{line-height: 1.2; margin-left: 8px; margin-right: 8px; margin-bottom: 0.4rem; margin-top: 0.85rem;}
a:focus,button:focus,input:focus,textarea:focus {outline:1px solid #444444;z-index:+1;}
input::-webkit-input-placeholder,input::-moz-placeholder,input:-moz-placeholder,input:-ms-input-placeholder,textarea::-webkit-input-placeholder,textarea::-moz-placeholder,textarea:-moz-placeholder,textarea:-ms-input-placeholder{color:#777777;}
::-webkit-scrollbar {width: 8px;height: 6px;}::-webkit-scrollbar-track {background: #444444;}::-webkit-scrollbar-thumb {background: #787878; border-radius: 2px;}::-webkit-scrollbar-thumb:hover{background: #000000;border: 2px solid #ffffff;}



h1 {
    font-size: 44px;
}
h1 > span.decor{
   font-size: 61px;
   font-family: Inter-italic , sans-serif;
   background: linear-gradient(to right, #01a, #707);
   background-clip: text;
   color: transparent;
}

b > span.decor{
    font-family: Inter-italic;
    font-size: 28px;
    background: linear-gradient(to right, #280, #02f);
    background-clip: text;
    color: transparent;
}

body .scroll {
    gap: 8px;
}
main .scroll>a, main .scroll>button{
    background: #000000;
    color: #ffffff;
}
header .scroll>a, header .scroll>button{
    color: #ffffff;
    background: #000000;
}

#popup-content{
    display: none;
}
#popup-content.active{
    display: flex;
    flex-direction: column;
    width: 650px;
    position: fixed;
    background: #f0f0f0;
    border-radius: 15px;
    padding-left: 12px;
    padding-bottom: 12px;
    padding-right: 8px;
}
#popup-content.active > form {
    width: 100%;
    max-width: 350px;
}
#popup-content.active > form > .group{position: relative;}
#popup-content.active > form > .group > input {
    min-height: 35px;
    padding-left: 12px;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 500;
}
#popup-content.active > form > .group > input + label{
    display: none;
    top: 0;
    left: 12px;
}
#popup-content.active > form > .group > input:focus + label{
    display: block;
    position: absolute;
    opacity: 1;
    font-size: 14px;
    transform: translateY(-60%);
    background: #FFFFFF;
    padding-left: 8px;
    padding-right: 7px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
#popup-content.active > form > input[type="submit"]{
    min-height: 35px;
    background: #000000;
    color: #FFFFFF;
    font-size: 17px;
    padding-left: 12px;
    padding-right: 11px;
    margin-top: 8px;
    border-radius: 15px;
}

nav.scroll > a,
body .action>a,body .action>button{
    min-height: 40px;padding-left: 12px;padding-right: 12px;
    border-radius: 16px;
}
nav.scroll > a:has(img,svg),
body .action>a:has(img,svg),body .action>button:has(img,svg){
    padding-right: 4px;
}

.block > h3 {
    display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;
}
.block > p{display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;}

#media-fullscreen{
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    transition: 1s;
    transform: translate(-100vw , 0);
    background: #ffffff;
    pointer-events: none;
}
#media-fullscreen.active{
    transform: translate(0 , 0);
    pointer-events: all;
}
#popup-content > button,
#media-fullscreen > button{
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
}
#media-fullscreen > button > img,
#media-fullscreen > button > svg{
    width: 100%;
}
#media-fullscreen > img{
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}

@media screen and (max-width:650px){
    h2{font-size:24px}h3{font-size:21px}
    h2,h3{display: -webkit-box;-webkit-line-clamp: 3;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;}



    .large-tile-postcard > .item > h3,
    .tile-postcard > .item > h3{
        display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;
    }
    .large-tile-postcard > .item > p,
    .tile-postcard > .item > p{
        display: -webkit-box;-webkit-line-clamp: 4;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;
    }
    


    .item > p{
        display: -webkit-box;-webkit-line-clamp: 9;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;
    }



    h1{
        font-size: 34px;
    }
    h1 > span.decor {
        font-size: 41px;
    }


    #popup-content.active{
        top: 50%;
        transform: translate(0,-50%);
        max-width: 100VW;
        border-radius: unset;
        border: 1px solid #fff;
    }

    footer{
        padding-bottom: 73px;
    }


    #service.net:has(h2){
        padding-top: 44px;
        position: relative;
    }
    #service.net > h2 {
        position: absolute;
        display: -webkit-box;-webkit-line-clamp: 1;-webkit-box-orient: vertical;overflow: hidden;text-overflow: ellipsis;
        top: -1rem;
        left: 0;
    }
    #service.net > span{display: none;}

    #service.net ,
    #service > .net ,
    #about > .net {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 8px;
    }
    #service.net > .block,
    #service > .net > .block,
    #about > .net > .block{
        min-width: 90vw;
        scroll-snap-align: start;
    }



    .net>.block>.gallery-card{
        border-radius: 16px;
    }
    .net>.block:first-of-type>.gallery-card{
        border-bottom-left-radius: 0px;
        border-top-left-radius: 0px;
    }
    .net>.block:last-of-type>.gallery-card{
        border-bottom-right-radius: 0px;
        border-top-right-radius: 0px;
    }
    .net > .block > a{
        margin-left: 8px;
    }

    form.canonical > .group{
        max-width: calc(100vw - 8px);
    }

    body header a.cta-button {
        position: fixed !important;
        bottom: 93px;
        right: 0px;
        transform: scale(0.8);
        border-radius: 50%;
    }
}



header.color-reverse > svg , .color-reverse .bottom-bar{
    filter: invert(1);
}



.table-scroll-wrap > table {
    width: 100%;
    margin-bottom: 41px;
    font-size: 18px;
}

body header a.cta-button svg{
    transform: scale(0.8);
}
body header a.cta-button svg path{
    fill: #FFFFFF;
}
body header a.cta-button {
    position: fixed !important;
    background: #000000;
    z-index: 1;
    min-height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}


@media screen and (min-width:651px){
    section.net,
    main > section.description > .net{
        gap: 12px;
    }

    header > svg{
        filter: invert(1);
    }

    .net > .block > .gallery-card{
        aspect-ratio: 4/3;
    }
    .net > .block > .gallery-card > img {
        display: block;
        min-width: 100%;
        height: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
    }

    main > .service > .item{
        margin-left: 8px;
        margin-right: 8px;
    }
    .net > .block .gallery-card,
    main > .service > .item > .gallery-screen,
    main > .description > .net > .block .gallery-card{
        border-radius: 16px;
    }
    main > .contact > #map iframe{
        border-radius: 16px;
    }


    #popup-content.active{
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        border: 1px solid #fff;
    }

    main > ol.tag,
    main > ol.advantage,
    main > h1,
    main > h2,
    main > p,
    img.small,
    .action-accent.new,
    main > .table-scroll,
    main > .table-scroll-wrap,
    main > .action,
    main > section#service,
    main > section#product,
    main > section#other,
    main > section.description,
    main > section#contact{
        margin-left: 120px;
        width: calc(100% - 240px);
    }

    header nav.bottom-bar{
        position: relative;
    }

    body header a.cta-button {
        bottom: 8px;
        right: 8px;
        border-radius: 50%;
    }
    
}
@media screen and (min-width:1250px){
    main > ol.tag,
    main > ol.advantage,
    .short,
    section#portfolio,
    main > h1,
    img.small,
    .action-accent.new,
    main > h2,
    main > p,
    main > .action,
    main > .table-scroll,
    main > .table-scroll-wrap,
    main > section#service,
    main > section#product,
    main > section#other,
    main > section.description,
    main > section#contact{
        margin-left: 20vw;
        width: 60vw;
    }
    .table-scroll-wrap,
    .table-scroll{
        margin-left: auto;
        margin-right: auto;
        max-width: 650px !important;
    }
}