:root{
    --blue:#0077c8;
    --cyan:#00b8d9;
    --dark:#101820;
    --text:#263238;
    --muted:#607d8b;
    --light:#f4fbff;
    --white:#ffffff;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    color:var(--text);
    background:var(--white);
    line-height:1.7;
}

.container{
    width:min(1100px,90%);
    margin:auto;
}

/* HEADER */

.site-header{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(255,255,255,0.96);
    border-bottom:1px solid #e5eef5;
}

.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
}

.logo img{
    height:54px;
    width:auto;
    display:block;
}

.site-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
}

.site-nav a{
    text-decoration:none;
    color:#56636f;
    margin-left:22px;
    font-weight:600;
    font-size:15px;
    line-height:1.2;
    -webkit-font-smoothing:antialiased;
    text-rendering:geometricPrecision;
    transition:color .25s ease, background .25s ease, box-shadow .25s ease;
}

.site-nav a:hover,
.site-nav a.is-active{
    color:var(--blue);
}

.site-nav a.is-active{
    position:relative;
    font-weight:700;
}

.site-nav a.is-active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-10px;
    height:3px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--blue),var(--cyan));
}

.site-nav .facebook-menu-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    margin-left:22px;
    border-radius:4px;
    background:#1877f2;
    color:#ffffff;
    font-family:Arial, Helvetica, sans-serif;
    font-size:20px;
    font-weight:800;
    line-height:1;
}

.site-nav .facebook-menu-button:hover{
    background:#202832;
    color:#ffffff;
}

.site-nav .facebook-menu-button::after{
    display:none;
}

/* HAMBURGER */

.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    border:none;
    background:transparent;
    cursor:pointer;
    padding:8px;
}

.menu-toggle span{
    display:block;
    height:3px;
    width:100%;
    background:var(--dark);
    margin:6px 0;
    border-radius:3px;
    transition:0.25s;
}

/* HERO */

.hero{
    position:relative;
    padding:180px 0;
    text-align:center;
    background:
        linear-gradient(
            rgba(16,24,32,0.65),
            rgba(16,24,32,0.65)
        ),
        url('images/Home-slider1.jpg');
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.hero h1{
    max-width:850px;
    margin:0 auto 22px;
    font-size:3.2rem;
    line-height:1.15;
    color:#ffffff;
}

.hero p{
    max-width:720px;
    margin:0 auto 34px;
    font-size:1.1rem;
    color:#f1f1f1;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    padding:14px 32px;
    background:linear-gradient(135deg,var(--blue),var(--cyan));
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:700;
    box-shadow:0 8px 24px rgba(0,119,200,0.25);
    transition:0.25s;
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 30px rgba(0,119,200,0.35);
}

.btn-secondary{
    background:#ffffff;
    color:var(--blue);
    border:2px solid var(--blue);
}

.btn-secondary:hover{
    background:#f5faff;
}

/* SECTIONS */

.section{
    padding:90px 0;
}

.section h2{
    margin-bottom:24px;
    font-size:2.1rem;
    color:var(--blue);
}

.section p{
    margin-bottom:16px;
}

.alt{
    background:var(--light);
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:24px;
    margin-top:32px;
}

.card{
    background:#fff;
    padding:28px;
    border-radius:14px;
    border-top:4px solid var(--cyan);
    box-shadow:0 8px 24px rgba(0,0,0,0.06);
    transition:0.25s;
}

.card:hover{
    transform:translateY(-4px);
}

.card h3{
    margin-bottom:12px;
    color:var(--dark);
}

.card p{
    color:var(--muted);
}

/* INFO WIDGETS */

.info-section{
    padding:90px 0;
    background:#202832;
}

.info-widgets{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
}

.info-widget{
    background:#2b3542;
    padding:32px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.08);
    border-top:4px solid var(--cyan);
    box-shadow:0 12px 30px rgba(0,0,0,0.18);
}

.info-widget h2{
    margin-bottom:18px;
    font-size:1.6rem;
    color:#ffffff;
}

.info-widget p{
    margin-bottom:14px;
    color:#cfd8dc;
}

.info-widget .text-link{
    color:var(--cyan);
    font-weight:700;
    text-decoration:none;
}

.info-widget .text-link:hover{
    color:#ffffff;
}

.tapboard-stat-plugin h3{
    margin:0 0 16px;
    color:#ffffff;
    font-size:1.25rem;
}

.tapboard-stat-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.tapboard-stat-grid div{
    padding:16px;
    border:1px solid rgba(255,255,255,0.08);
    border-radius:8px;
    background:rgba(255,255,255,0.05);
    text-align:center;
}

.tapboard-stat-grid strong{
    display:block;
    color:#ffffff;
    font-size:2rem;
    line-height:1;
}

.tapboard-stat-grid span{
    display:block;
    margin-top:7px;
    color:#cfd8dc;
    font-size:.95rem;
}

/* LINKS */

a{
    color:var(--blue);
}

a:hover{
    color:var(--cyan);
}

/* FOOTER */

.site-footer{
    background:#111820;
    color:#cfd8dc;
    text-align:center;
    padding:34px 0;
    border-top:1px solid rgba(255,255,255,0.08);
}

/* TABLET */

@media(max-width:900px){
    .info-widgets{
        grid-template-columns:1fr;
    }
}

/* MOBILE */

@media(max-width:768px){

    .site-header{
        position:sticky;
        top:0;
    }

    .header-inner{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
        padding:12px 0;
    }

    .logo img{
        height:42px;
    }

    .menu-toggle{
        display:block;
    }

    .site-nav{
        display:none;
        position:absolute;
        top:66px;
        left:0;
        width:100%;
        background:#ffffff;
        border-top:1px solid #e5eef5;
        border-bottom:1px solid #e5eef5;
        padding:12px 0;
        text-align:center;
        box-shadow:0 12px 24px rgba(0,0,0,0.08);
    }

    .site-nav.active{
        display:block;
    }

    .site-nav a{
        position:relative;
        display:block;
        margin:0;
        padding:12px 20px;
        font-size:15px;
    }

    .site-nav a.is-active{
        background:#f4fbff;
    }

    .site-nav a.is-active::after{
        left:0;
        right:auto;
        top:10px;
        bottom:10px;
        width:3px;
        height:auto;
        border-radius:999px;
    }

    .site-nav .facebook-menu-button{
        width:auto;
        height:auto;
        margin:8px auto 0;
        max-width:72px;
        padding:10px 0;
    }

    .hero{
        padding:110px 0;
        background-position:center;
    }

    .hero h1{
        font-size:2.2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
    }

    .btn{
        width:260px;
        text-align:center;
    }

    .section,
    .info-section{
        padding:65px 0;
    }

    .cards{
        grid-template-columns:1fr;
    }
}
.back-to-top{
    position:fixed;
    right:24px;
    bottom:24px;

    width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#111820;

    color:#fff;
    text-decoration:none;
    font-size:0;
    font-weight:bold;

    border:1px solid rgba(255,255,255,0.18);
    border-radius:3px;
    box-shadow:0 8px 20px rgba(0,0,0,0.28);

    z-index:999;

    opacity:0;
    visibility:hidden;
    transform:translateY(20px);

    transition:all .3s ease;
}

.back-to-top.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.back-to-top:hover{
    transform:translateY(-3px);
    background:#0077c8;
    color:#fff;
}

.back-to-top::before{
    content:"\25B2";
    font-size:14px;
    line-height:1;
}
.footer-links{
    margin-bottom:12px;
}

.footer-links a{
    color:#ffffff;
    text-decoration:none;
    font-weight:600;
}

.footer-links a:hover{
    color:#9ed4ff;
    text-decoration:none;
}

.footer-links span{
    margin:0 10px;
    opacity:0.7;
}

.footer-copy{
    font-size:14px;
    color:#9aa7b2;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    margin-top:32px;
}

.product-card-link{
    text-decoration:none;
    color:inherit;
}

.product-card{
    height:100%;
}

.product-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:18px;
}

.product-card .text-link{
    display:inline-block;
    margin-top:8px;
    color:var(--blue);
    font-weight:700;
}

@media(max-width:1000px){
    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:600px){
    .product-grid{
        grid-template-columns:1fr;
    }
}
.product-card-link{
    text-decoration:none;
    color:inherit;
}

.product-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:18px;
}

.product-card .text-link{
    display:inline-block;
    margin-top:8px;
    color:var(--blue);
    font-weight:700;
}
.feature-list{
    margin:20px 0 35px 20px;
}

.feature-list li{
    margin-bottom:8px;
}

.product-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:20px;
}

.product-gallery img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,0.08);
}

@media(max-width:768px){
    .product-gallery{
        grid-template-columns:1fr;
    }
}
.gallery-item{
    border:none;
    background:none;
    padding:0;
    cursor:pointer;
}

.gallery-item img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,0.08);
}

.lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    z-index:2000;
    align-items:center;
    justify-content:center;
    padding:25px;
}

.lightbox.active{
    display:flex;
}

.lightbox img{
    max-width:95%;
    max-height:90vh;
    border-radius:12px;
}

.lightbox-close{
    position:fixed;
    top:20px;
    right:25px;
    background:none;
    border:none;
    color:#fff;
    font-size:42px;
    cursor:pointer;
}
.gallery-item{
    border:none;
    background:none;
    padding:0;
    cursor:pointer;
}

.gallery-item img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 8px 24px rgba(0,0,0,0.08);
}

.lightbox{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.88);
    z-index:2000;
    align-items:center;
    justify-content:center;
    padding:25px;
}

.lightbox.active{
    display:flex;
}

.lightbox img{
    max-width:90%;
    max-height:88vh;
    border-radius:12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next{
    position:fixed;
    background:none;
    border:none;
    color:#fff;
    cursor:pointer;
    z-index:2001;
}

.lightbox-close{
    top:20px;
    right:25px;
    font-size:42px;
}

.lightbox-prev,
.lightbox-next{
    top:50%;
    transform:translateY(-50%);
    font-size:46px;
    padding:20px;
}

.lightbox-prev{
    left:25px;
}

.lightbox-next{
    right:25px;
}
.product-content{
    margin-top:50px;
    background:#ffffff;
    padding:35px;
    border-radius:16px;
    box-shadow:0 8px 24px rgba(0,0,0,0.06);
}

.product-content h2{
    margin-top:30px;
    margin-bottom:15px;
    color:var(--blue);
}

.product-content h2:first-child{
    margin-top:0;
}

.product-content p{
    margin-bottom:16px;
}

.product-content ul,
.product-content ol{
    margin:15px 0 25px 22px;
}

.product-content li{
    margin-bottom:8px;
}

.page-content{
    max-width:980px;
}

.page-content.has-wide-plugin{
    max-width:none;
}

.cms-page-section{
    padding-top:0;
}

.cms-page-intro-band{
    margin-bottom:32px;
}

.page-content h2,
.page-content h3{
    color:var(--dark);
    line-height:1.25;
}

.page-content h2{
    margin:0 0 16px;
    font-size:2rem;
}

.page-content h3{
    margin:28px 0 12px;
    font-size:1.25rem;
}

.page-content p{
    margin:0 0 16px;
}

.page-content ul,
.page-content ol{
    margin:0 0 20px 22px;
}

.page-content li{
    margin-bottom:8px;
}

.page-gallery{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:34px;
}

.page-gallery-item{
    overflow:hidden;
    border-radius:8px;
}

.page-gallery-item img{
    display:block;
    width:100%;
    height:240px;
    object-fit:cover;
    border-radius:inherit;
    transition:transform .25s ease;
}

.page-gallery-item:hover img{
    transform:scale(1.04);
}

.cms-video-embed{
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;
    margin:24px 0;
    border-radius:8px;
    overflow:hidden;
    background:#101820;
    box-shadow:0 10px 28px rgba(16,24,32,0.12);
}

.cms-video-embed iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}

.cms-video-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin:24px 0;
}

.cms-video-grid .cms-video-embed{
    margin:0;
}

#ispindel-calibration{
    width:100%;
    max-width:none;
    padding:28px;
    border:1px solid #dce8ef;
    border-radius:8px;
    background:#ffffff;
    box-shadow:0 10px 28px rgba(16,24,32,0.08);
}

#ispindel-calibration > h2:first-child{
    margin:0 0 10px;
    font-size:2rem;
}

#ispindel-calibration > p:first-of-type{
    max-width:760px;
    color:var(--muted);
}

#ispindel-calibration table{
    width:100%;
    border-collapse:collapse;
    margin:18px 0;
    overflow:hidden;
    border:1px solid #dce8ef;
    border-radius:8px;
    background:#ffffff;
}

#ispindel-calibration .ispindel-tool-panel{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:flex-start;
    margin:0 0 30px;
    padding:18px;
    border:1px solid #dce8ef;
    border-radius:8px;
    background:#f7fbfd;
}

#ispindel-calibration .ispindel-tool-panel #ispindelFormula,
#ispindel-calibration .ispindel-tool-panel #resultsTable,
#ispindel-calibration .ispindel-tool-panel #chart{
    flex:1 1 100%;
}

#ispindel-calibration .is-hidden,
#ispindelFormula:empty,
#resultsTable:empty{
    display:none !important;
}

#ispindel-calibration th,
#ispindel-calibration td{
    padding:10px;
    border-bottom:1px solid #dce8ef;
    text-align:left;
}

#ispindel-calibration th{
    background:#f4fbff;
    color:var(--dark);
    font-size:.9rem;
}

#ispindel-calibration input[type="number"]{
    width:100%;
    min-height:40px;
    padding:0 10px;
    border:1px solid #cbd7df;
    border-radius:5px;
    font:inherit;
}

#ispindel-calibration button{
    border:0;
    border-radius:5px;
    font-weight:800;
    cursor:pointer;
}

#ispindel-calibration #dataTable button{
    width:30px;
    height:30px;
    background:#b42318;
    color:#ffffff;
}

#ispindel-calibration .mainBtn,
#ispindel-calibration #copyBtn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    margin:8px 8px 8px 0;
    padding:0 16px;
    background:#202832;
    color:#ffffff;
}

#ispindel-calibration .calculateBtn{
    background:#0077c8;
}

#ispindel-calibration .mainBtn:hover,
#ispindel-calibration #copyBtn:hover{
    background:#101820;
}

#ispindel-calibration .calculateBtn:hover{
    background:#005f9e;
}

.firmwares-plugin{
    width:100%;
    max-width:none;
}

.firmwares-download-list{
    display:grid;
    gap:14px;
}

.firmware-download-button{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:72px;
    padding:16px 18px;
    border:1px solid #dce8ef;
    border-radius:8px;
    background:#ffffff;
    color:var(--dark);
    text-decoration:none;
    box-shadow:0 8px 20px rgba(16,24,32,0.06);
    transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.firmware-download-button:hover{
    transform:translateY(-2px);
    border-color:var(--blue);
    box-shadow:0 12px 26px rgba(0,119,200,0.16);
}

.firmware-download-button span{
    font-weight:800;
}

.firmware-download-button small{
    display:inline-flex;
    align-items:center;
    min-height:36px;
    padding:0 12px;
    border-radius:6px;
    background:linear-gradient(135deg,var(--blue),var(--cyan));
    color:#ffffff;
    font-weight:800;
    white-space:nowrap;
}

@media(max-width:640px){
    .firmware-download-button{
        align-items:flex-start;
        flex-direction:column;
    }
}

#ispindelFormula{
    margin:18px 0 0 !important;
    padding:14px;
    border:1px solid #dce8ef;
    border-radius:6px;
    background:#f8fbfd;
    color:var(--dark);
    white-space:normal;
    overflow-wrap:anywhere;
}

#resultsTable{
    overflow-x:auto;
}

#chart{
    display:block;
    width:100% !important;
    max-width:100%;
    height:320px !important;
    margin:18px 0 0;
    border:1px solid #dce8ef;
    border-radius:6px;
    background:#ffffff;
}

#ispindel-calibration .error-good,
#ispindel-calibration .quality-good{
    color:#0a8f2f;
    font-weight:800;
}

#ispindel-calibration .error-ok,
#ispindel-calibration .quality-ok{
    color:#d18b00;
    font-weight:800;
}

#ispindel-calibration .error-bad,
#ispindel-calibration .quality-bad{
    color:#c62828;
    font-weight:800;
}

#ispindel-calibration > div[class*="contain-inline-size"]{
    display:none;
}

#ispindel-converter{
    width:100%;
    max-width:none;
    padding:28px;
    border:1px solid #dce8ef;
    border-radius:8px;
    background:#ffffff;
    box-shadow:0 10px 28px rgba(16,24,32,0.08);
}

#ispindel-converter h2{
    margin:0 0 10px;
    font-size:2rem;
}

#ispindel-converter p{
    color:var(--muted);
}

#ispindel-converter label{
    display:block;
    margin-bottom:7px;
    color:var(--dark);
    font-weight:800;
}

#ispindel-converter textarea,
#ispindel-converter select{
    width:100%;
    border:1px solid #cbd7df;
    border-radius:6px;
    padding:11px 12px;
    font:inherit;
    background:#ffffff;
}

#ispindel-converter textarea{
    min-height:112px;
    font-family:Consolas, monospace;
    line-height:1.45;
}

#ispindel-converter .converter-field{
    margin:18px 0;
}

#ispindel-converter .converter-actions{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:end;
    margin:18px 0;
}

#ispindel-converter .converter-actions label{
    grid-column:1 / -1;
    margin-bottom:-2px;
}

#ispindel-converter button{
    min-height:42px;
    padding:0 18px;
    border:0;
    border-radius:6px;
    background:#0077c8;
    color:#ffffff;
    font-weight:800;
    cursor:pointer;
}

#ispindel-converter button:hover{
    background:#005f9e;
}

#ispindel-converter .converter-result{
    margin-top:22px;
}

#ispindel-converter .converter-result h3{
    margin:0 0 10px;
}

#ispindel-converter pre{
    min-height:46px;
    margin:0;
    padding:14px;
    border:1px solid #dce8ef;
    border-radius:6px;
    background:#f7fbfd;
    color:#101820;
    white-space:pre-wrap;
    word-break:break-word;
}
.technical-content{
    margin-top:60px;
    background:#202832;
    color:#d8e2e7;
    padding:40px;
    border-radius:16px;
    border-top:4px solid var(--cyan);
    font-size:0.95rem;
    line-height:1.3;
}

.technical-content h2{
    color:#ffffff;
    margin-top:25px;
    margin-bottom:12px;
}

.technical-content h3{
    color:var(--cyan);
    margin-top:20px;
    margin-bottom:10px;
}

.technical-content p{
    max-width:none;
    color:#cfd8dc;
    margin-bottom:10px;
}

.technical-content ul,
.technical-content ol{
    max-width:none;
    margin:0 0 15px 20px;
}

.technical-content li{
    max-width:none;
    color:#cfd8dc;
    margin-bottom:4px;
}

.portfolio-container{
    width:100%;
    margin:auto;
    padding:0 24px 24px;
}

.products-section{
    padding-top:0;
    padding-bottom:0;
}

.portfolio-intro-band{
    width:100%;
    margin:0 0 24px;
    background:#2b3542 !important;
    color:#ffffff;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 12px 30px rgba(0,0,0,0.18);
}

.portfolio-intro-inner{
    width:100%;
    min-height:128px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    padding:28px 24px;
}

.portfolio-intro{
    max-width:820px;
}

.portfolio-intro h1{
    margin:0 0 8px;
    color:#ffffff;
    font-size:2.2rem;
    line-height:1.15;
}

.portfolio-intro p{
    max-width:850px;
    margin:0;
    color:#cfd8dc;
}

.portfolio-intro-text{
    max-width:850px;
    color:#cfd8dc;
}

.portfolio-intro-text p:last-child{
    margin-bottom:0;
}

.product-detail-section{
    padding-top:0;
}

.product-intro-band{
    margin-bottom:32px;
}

.product-intro-inner{
    width:min(1100px,90%);
    margin:auto;
    justify-content:space-between;
}

.product-back-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-height:40px;
    padding:0 16px;
    border:1px solid rgba(255,255,255,0.22);
    border-radius:4px;
    background:rgba(255,255,255,0.08);
    color:#ffffff;
    font-weight:700;
    text-decoration:none;
}

.product-back-link:hover{
    background:#0077c8;
    border-color:#0077c8;
}

.portfolio-filter{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:7px;
    margin:0;
    max-width:760px;
}

.portfolio-filter a{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:32px;
    padding:0 9px;
    border:1px solid #d7e4ec;
    border-radius:6px;
    background:#2b3542;
    color:#ffffff;
    text-decoration:none;
    font-weight:700;
    font-size:.82rem;
    line-height:1.15;
}

.portfolio-filter a:hover,
.portfolio-filter a.active{
    color:#ffffff;
    border-color:var(--blue);
    background:linear-gradient(135deg,var(--blue),var(--cyan));
}

.portfolio-filter span{
    min-width:19px;
    height:19px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#edf7fb;
    color:var(--blue);
    font-size:11px;
    line-height:1;
}

.portfolio-filter a:hover span,
.portfolio-filter a.active span{
    background:rgba(255,255,255,0.22);
    color:#ffffff;
}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(var(--portfolio-columns,6),minmax(0,1fr));
    gap:8px;
}

.portfolio-item{
    position:relative;
    display:block;
    aspect-ratio:1/1;
    overflow:hidden;
    background:#dce8ef;
    color:#ffffff;
    text-decoration:none;
    border-radius:8px;
}

.portfolio-item img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius:inherit;
    transition:transform .28s ease;
}

.portfolio-item:hover img{
    transform:scale(1.05);
}

.portfolio-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:18px;
    text-align:center;
    background:rgba(16,24,32,0.24);
    opacity:1;
    transition:background .25s ease;
}

.portfolio-item:hover .portfolio-overlay{
    background:rgba(0,119,200,0.78);
}

.portfolio-overlay strong{
    color:#ffffff;
    font-size:16px;
    line-height:1.25;
    text-shadow:0 2px 12px rgba(0,0,0,0.45);
    transition:color .25s ease;
}

.portfolio-overlay small{
    color:#ffffff;
    font-weight:700;
    text-shadow:0 2px 12px rgba(0,0,0,0.45);
}

.portfolio-item:hover .portfolio-overlay strong,
.portfolio-item:hover .portfolio-overlay small{
    color:#ffffff;
    text-shadow:none;
}

.home-products-section{
    padding:65px 0 24px;
}

.home-products-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:24px;
}

.home-products-head h2{
    margin:0;
}

.home-products-head .text-link{
    font-weight:700;
    text-decoration:none;
}

.webshop-section{
    padding-top:0;
}

.webshop-intro-band{
    margin-bottom:32px;
}

.webshop-intro-inner{
    width:min(1100px,90%);
    margin:auto;
}

.cms-page-intro-inner{
    width:min(1100px,90%);
    margin:auto;
}

.shop-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}

.shop-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:24px;
    align-items:start;
}

.shop-layout .shop-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.shop-card{
    display:flex;
    flex-direction:column;
    min-height:100%;
    background:#ffffff;
    border:1px solid #dce8ef;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(16,24,32,0.08);
}

.shop-card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    display:block;
}

.shop-image-button{
    width:100%;
    border:0;
    background:none;
    padding:0;
    cursor:pointer;
    overflow:hidden;
}

.shop-image-button img{
    transition:transform .25s ease;
}

.shop-image-button:hover img{
    transform:scale(1.04);
}

.shop-card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    gap:12px;
    padding:18px;
}

.shop-card h2{
    margin:0;
    font-size:1.25rem;
    color:var(--dark);
}

.shop-card p{
    margin:0;
    color:var(--muted);
}

.shop-description{
    color:var(--text);
}

.shop-description p:last-child{
    margin-bottom:0;
}

.shop-buy-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-top:auto;
    padding-top:8px;
}

.shop-buy-row strong{
    color:var(--dark);
    font-size:1.1rem;
}

.shop-buy-row form{
    margin:0;
}

.shop-add-button{
    min-height:38px;
    padding:0 16px;
    border:1px solid #b7d9ee;
    border-radius:5px;
    background:#eef8fd;
    color:#005f9e;
    box-shadow:none;
    font-size:.92rem;
    letter-spacing:0;
    transition:background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.shop-add-button:hover{
    background:#0077c8;
    border-color:#0077c8;
    color:#ffffff;
    transform:translateY(-1px);
}

.shop-cart{
    position:sticky;
    top:94px;
    padding:20px;
    border:1px solid #dce8ef;
    border-radius:8px;
    background:#ffffff;
    box-shadow:0 8px 24px rgba(16,24,32,0.08);
}

.shop-cart h2{
    margin:0 0 14px;
    color:var(--dark);
    font-size:1.35rem;
}

.shop-cart-empty{
    margin:0;
    color:var(--muted);
}

.shop-cart-items{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.shop-cart-item{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding-bottom:12px;
    border-bottom:1px solid #dce8ef;
}

.shop-cart-item strong,
.shop-cart-item small{
    display:block;
}

.shop-cart-item small{
    color:var(--muted);
}

.shop-cart-controls{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.shop-cart-controls button{
    min-width:28px;
    min-height:28px;
    border:1px solid #dce8ef;
    border-radius:4px;
    background:#ffffff;
    color:var(--dark);
    font-weight:800;
    cursor:pointer;
}

.shop-cart-controls button:last-child{
    padding:0 8px;
    color:#b42318;
}

.shop-cart-total{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:10px 0;
    padding-top:10px;
    border-top:1px solid #dce8ef;
    color:var(--dark);
}

.shop-cart-discount strong{
    color:#116329;
}

.shop-cart-grand-total{
    margin-top:14px;
    border-top:2px solid #dce8ef;
    font-size:1.08rem;
}

.shop-coupon{
    margin:16px 0;
    padding:14px;
    border:1px solid #dce8ef;
    border-radius:6px;
    background:#f8fbfd;
}

.shop-coupon label{
    display:block;
    margin-bottom:8px;
    color:var(--dark);
    font-weight:800;
    font-size:.92rem;
}

.shop-coupon div{
    display:flex;
    gap:8px;
}

.shop-coupon input{
    min-width:0;
    flex:1;
    border:1px solid #cbd7df;
    border-radius:5px;
    padding:0 10px;
    min-height:38px;
    font:inherit;
}

.shop-coupon button{
    min-height:38px;
    padding:0 12px;
    border:1px solid #0077c8;
    border-radius:5px;
    background:#ffffff;
    color:#0077c8;
    font-weight:800;
    cursor:pointer;
}

.shop-coupon button:hover{
    background:#0077c8;
    color:#ffffff;
}

.shop-coupon p{
    margin:8px 0 0;
    color:var(--muted);
    font-size:.9rem;
}

.shop-cart-warning{
    margin:6px 0 0;
    color:#b42318;
    font-size:.9rem;
    font-weight:700;
}

.shop-checkout-button{
    width:100%;
    min-height:46px;
    border-radius:5px;
    background:#ffc439;
    color:#102030;
    box-shadow:none;
    font-size:.98rem;
    letter-spacing:0;
    transition:background .2s ease, color .2s ease, transform .2s ease;
}

.shop-checkout-button:hover{
    background:#202832;
    color:#ffffff;
    transform:translateY(-1px);
}

.shop-checkout-button:disabled{
    opacity:.5;
    cursor:not-allowed;
    transform:none;
}

.notice-inline{
    padding:16px 18px;
    border:1px solid #dce8ef;
    border-radius:8px;
    background:#ffffff;
    color:var(--muted);
    font-weight:700;
}

@media(max-width:1200px){
    .portfolio-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

    .shop-layout{
        grid-template-columns:1fr;
    }

    .shop-cart{
        position:static;
    }
}

@media(max-width:800px){
    .portfolio-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

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

    .shop-layout .shop-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .portfolio-container{
        padding:0 14px 18px;
    }

    .products-section{
        padding-top:0;
    }

    .portfolio-intro-inner{
        align-items:flex-start;
        flex-direction:column;
        padding:22px 14px;
    }

    .portfolio-intro h1{
        font-size:1.8rem;
    }

    .product-intro-inner{
        width:90%;
        align-items:flex-start;
    }

    .webshop-intro-inner{
        width:90%;
    }

    .cms-page-intro-inner{
        width:90%;
    }

    .portfolio-filter{
        justify-content:flex-start;
        max-width:none;
    }
}

@media(max-width:620px){
    .shop-grid{
        grid-template-columns:1fr;
    }

    .shop-layout .shop-grid{
        grid-template-columns:1fr;
    }

    .shop-buy-row{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:768px){
    .page-gallery{
        grid-template-columns:1fr;
    }

    .cms-video-grid{
        grid-template-columns:1fr;
    }

    #ispindel-calibration{
        padding:18px;
    }

    #ispindel-calibration > h2:first-child{
        font-size:1.55rem;
    }

    #ispindel-calibration table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    #chart{
        height:240px !important;
    }

    #ispindel-converter{
        padding:18px;
    }

    #ispindel-converter h2{
        font-size:1.55rem;
    }

    #ispindel-converter .converter-actions{
        grid-template-columns:1fr;
    }
}
