@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Oswald:wght@500;600&display=swap');

/* =========================================================
   NORRMOTOR — GLOBAL STYLES
   ========================================================= */

:root{
    --bg:#07090b;
    --panel:#0f1419;
    --panel2:#151b21;
    --line:#252d35;
    --text:#f5f7f8;
    --muted:#8f99a3;
    --accent:#e7b84b;
    --max:1240px;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    min-width:0;
    background:var(--bg);
    color:var(--text);
    font-family:Inter,Arial,sans-serif;
    overflow-x:hidden;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    display:block;
    max-width:100%;
}

button,
input,
textarea,
select{
    font:inherit;
}

button{
    -webkit-tap-highlight-color:transparent;
}

.container{
    width:min(var(--max),calc(100% - 40px));
    margin-inline:auto;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    width:100%;
    background:#090c0f;
    border-bottom:1px solid var(--line);
}

.topbar{
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
    min-width:0;
    font-weight:900;
    letter-spacing:1.8px;
    white-space:nowrap;
}

.brand img{
    display:block;
    width:145px;
    max-width:100%;
    height:auto;
    max-height:42px;
    object-fit:contain;
}

.brand-mark{
    width:37px;
    height:37px;
    display:grid;
    place-items:center;
    flex:0 0 37px;
    background:var(--accent);
    color:#090b0c;
    font-weight:900;
    clip-path:polygon(
        0 0,
        100% 0,
        100% 76%,
        76% 100%,
        0 100%
    );
}


/* =========================================================
   DESKTOP HEADER SEARCH
   ========================================================= */

.header-search{
    display:flex;
    align-items:stretch;
    width:min(390px,42vw);
    margin-left:auto;
}

.header-search input{
    flex:1 1 auto;
    min-width:0;
    width:100%;
    height:46px;
    padding:11px 13px;
    background:#11161b;
    border:1px solid var(--line);
    border-right:0;
    border-radius:8px 0 0 8px;
    color:#fff;
    outline:none;
    font-family:inherit;
    font-size:15px;
    line-height:1.2;
    -webkit-appearance:none;
    appearance:none;
}

.header-search input::placeholder{
    color:#6f7982;
}

.header-search input:focus{
    border-color:#59636c;
}

.header-search button{
    flex:0 0 48px;
    width:48px;
    min-width:48px;
    height:46px;
    padding:0;
    border:1px solid var(--line);
    border-radius:0 8px 8px 0;
    background:#20272d;
    color:#fff;
    font-size:19px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.header-search button:hover{
    background:#293139;
}


/* =========================================================
   MAIN NAV
   ========================================================= */

.nav{
    min-height:76px;
    display:flex;
    align-items:center;
    gap:25px;
}

.main-nav{
    display:flex;
    flex:1 1 auto;
    gap:20px;
    overflow:hidden;
    min-width:0;
}

.main-nav a{
    white-space:nowrap;
    color:#aeb6bd;
    font-size:12px;
}

.main-nav a:hover{
    color:#fff;
}

.search-link{
    color:#aeb6bd;
    font-size:25px;
}

.search-link:hover{
    color:#fff;
}

.menu-toggle{
    display:none;
    align-items:center;
    justify-content:center;
    background:transparent;
    border:0;
    color:#fff;
    cursor:pointer;
}


/* =========================================================
   CATEGORY BAR
   ========================================================= */

.category-bar{
    width:100%;
    background:#0d1115;
    border-top:1px solid rgba(255,255,255,.04);
}

.category-nav{
    display:flex;
    align-items:center;
    gap:0;
    min-width:0;
    overflow-x:auto;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
}

.category-nav a{
    flex:0 0 auto;
    white-space:nowrap;
    padding:14px 16px;
    color:#aeb6bd;
    font-size:13px;
    border-right:1px solid rgba(255,255,255,.04);
}

.category-nav a:first-child{
    padding-left:0;
    padding-right:18px;
}

.category-nav a:hover,
.category-nav a.home-link{
    color:#fff;
}

.category-nav a.home-link{
    font-weight:800;
}


/* =========================================================
   MOBILE SEARCH
   ========================================================= */

.mobile-search-row{
    display:none;
}

.mobile-search-container{
    width:100%;
}

.mobile-search{
    display:flex;
    align-items:stretch;
    width:100%;
    min-width:0;
}

.mobile-search input{
    flex:1 1 auto;
    min-width:0;
    width:100%;
    height:46px;
    padding:0 14px;
    background:#11161b;
    border:1px solid var(--line);
    border-right:0;
    border-radius:8px 0 0 8px;
    color:#fff;
    outline:none;
    font-family:inherit;
    font-size:16px;
    line-height:1.2;
    -webkit-appearance:none;
    appearance:none;
}

.mobile-search input::placeholder{
    color:#6f7982;
}

.mobile-search input:focus{
    border-color:#59636c;
}

.mobile-search button{
    flex:0 0 50px;
    width:50px;
    min-width:50px;
    height:46px;
    padding:0;
    border:1px solid var(--line);
    border-radius:0 8px 8px 0;
    background:#20272d;
    color:#fff;
    font-size:20px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.mobile-search button:hover{
    background:#293139;
}


/* =========================================================
   MOBILE NAV
   ========================================================= */

.mobile-nav{
    display:none;
    width:100%;
    background:#0d1115;
    border-bottom:1px solid var(--line);
}

.mobile-nav.is-open,
.mobile-nav.open{
    display:block;
}

.mobile-nav-inner{
    display:flex;
    flex-direction:column;
    gap:0;
}

.mobile-nav-inner a{
    display:flex;
    align-items:center;
    min-height:46px;
    padding:10px 4px;
    border-bottom:1px solid var(--line);
    font-size:13px;
}

.mobile-nav-inner a:last-child{
    border-bottom:0;
}

.mobile-nav-inner a:hover{
    color:#fff;
}

.mobile-nav-inner .home-link{
    font-weight:800;
}


/* =========================================================
   HERO
   ========================================================= */

.masthead{
    position:relative;
    width:100%;
    border-bottom:1px solid var(--line);
    background:
        radial-gradient(
            circle at 80% 20%,
            #202830 0,
            #0b0e11 38%,
            #07090b 70%
        );
    overflow:hidden;
}

.mast-grid{
    min-height:530px;
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
    align-items:center;
    gap:50px;
    padding-top:45px;
    padding-bottom:45px;
}

.mast-copy{
    position:relative;
    z-index:2;
    min-width:0;
}

.kicker,
.eyebrow{
    color:var(--accent);
    font-family:Oswald,sans-serif;
    font-size:12px;
    letter-spacing:2px;
}

.masthead h1{
    max-width:850px;
    margin:16px 0 25px;
    font-size:clamp(48px,7vw,88px);
    line-height:.94;
    letter-spacing:-4px;
}

.masthead h1 em{
    color:#c6cbd0;
    font-style:normal;
}

.masthead p{
    max-width:610px;
    margin:0;
    color:var(--muted);
    font-size:17px;
    line-height:1.7;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:26px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:11px 16px;
    border:0;
    background:var(--accent);
    color:#090b0c;
    font-size:12px;
    font-weight:800;
    line-height:1.15;
    text-align:center;
    cursor:pointer;
}

.btn:hover{
    filter:brightness(1.06);
}

.btn.secondary{
    background:#20272d;
    color:#fff;
}

.btn.secondary:hover{
    background:#293139;
}

.btn.danger{
    background:#3b1d22;
    color:#ffb9c0;
}


/* =========================================================
   HERO ART
   ========================================================= */

.mast-art{
    position:relative;
    width:100%;
    height:380px;
    min-width:0;
    background:linear-gradient(
        145deg,
        #171e25,
        #0a0d10
    );
    border:1px solid var(--line);
    overflow:hidden;
    isolation:isolate;
}

.mast-art::before,
.mast-art::after{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:440px;
    height:440px;
    transform:translate(-50%,-50%);
    border:1px solid #2b343d;
    border-radius:50%;
    pointer-events:none;
    z-index:0;
}

.mast-art::after{
    width:260px;
    height:260px;
}

.hero-image-box{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    overflow:hidden;
    z-index:1;
}

.hero-image-box img{
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center;
}

.hero-placeholder{
    display:flex;
    align-items:flex-end;
    justify-content:flex-start;
}

.speed{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    z-index:1;
    color:#222a31;
    font-size:145px;
    font-weight:900;
    letter-spacing:-14px;
}

.art-label{
    position:absolute;
    left:20px;
    bottom:18px;
    z-index:3;
    color:#6f7982;
    font:11px Oswald,sans-serif;
    letter-spacing:2px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section{
    padding:76px 0;
}

.section-title{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:26px;
}

.section-title h2{
    margin:6px 0 0;
    font-size:34px;
    line-height:1.1;
    letter-spacing:-1px;
}

.section-title > a{
    color:var(--accent);
    font-size:13px;
}

.muted,
.intro{
    color:var(--muted);
}


/* =========================================================
   BANNERS
   ========================================================= */

.banners{
    display:flex;
    flex-direction:column;
    gap:18px;
    width:100%;
    padding-top:24px;
}

.banner{
    position:relative;
    display:block;
    width:100%;
    aspect-ratio:4 / 1;
    min-width:0;
    overflow:hidden;
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:10px;
}

.banner img{
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center;
}

/* Middle/ad banner: keep the original ad proportions. */
.ad-strip{
    width:100%;
    margin:24px 0;
}

.banner.wide{
    width:100%;
    max-width:970px;
    height:auto;
    aspect-ratio:auto;
    margin:0 auto;
}

.banner.wide img{
    width:100%;
    height:auto;
    object-fit:contain;
}

.banner::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        transparent 35%,
        rgba(0,0,0,.7)
    );
    pointer-events:none;
}

.banner span{
    position:absolute;
    right:14px;
    bottom:12px;
    left:14px;
    z-index:2;
    font-weight:700;
    text-shadow:0 2px 12px #000;
}

/* =========================================================
   NEWS
   ========================================================= */

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

.news-card{
    min-width:0;
    overflow:hidden;
    background:var(--panel);
    border:1px solid var(--line);
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.news-card:hover{
    transform:translateY(-3px);
    border-color:#3b444d;
}

.news-image{
    height:260px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#171d22;
    color:#5d666e;
    font-weight:800;
    letter-spacing:2px;
}

.news-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.placeholder{
    background:repeating-linear-gradient(
        135deg,
        #171c20,
        #171c20 10px,
        #1b2126 10px,
        #1b2126 20px
    );
}

.news-body{
    padding:19px;
}

.news-body h3{
    margin:8px 0;
    font-size:21px;
    line-height:1.12;
}

.news-body p{
    margin:0 0 13px;
    color:var(--muted);
    font-size:13px;
    line-height:1.55;
}

.news-body time{
    color:#68717a;
    font-size:11px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.category-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1px;
    background:var(--line);
    border:1px solid var(--line);
}

.category-grid a{
    position:relative;
    min-width:0;
    min-height:135px;
    padding:27px;
    background:var(--panel);
}

.category-grid b{
    display:block;
    font-size:21px;
}

.category-grid span{
    display:block;
    max-width:300px;
    margin-top:8px;
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
}

.category-grid i{
    position:absolute;
    right:22px;
    bottom:20px;
    color:var(--accent);
    font-style:normal;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.products-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.product{
    min-width:0;
    padding:11px;
    background:var(--panel);
    border:1px solid var(--line);
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.product:hover{
    transform:translateY(-3px);
    border-color:#3b444d;
}

.product-image{
    height:185px;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:#171d22;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.product-info{
    padding:13px 3px;
}

.product-info > span{
    color:var(--muted);
    font-size:10px;
    letter-spacing:1px;
    text-transform:uppercase;
}

.product-info > b{
    display:block;
    margin:6px 0;
    font-size:14px;
}

.product-info p{
    color:var(--muted);
    font-size:11px;
    line-height:1.5;
}

.product-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}

.product-bottom strong{
    color:var(--accent);
    font-size:14px;
}

.product-bottom small{
    color:#d6dadd;
    font-size:10px;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    margin-bottom:70px;
    padding:40px;
    background:linear-gradient(
        120deg,
        #11171c,
        #0d1013
    );
    border:1px solid var(--line);
}

.newsletter h2{
    margin:7px 0;
    font-size:29px;
    line-height:1.15;
}

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

.newsletter form{
    display:flex;
    min-width:0;
}

.newsletter input,
.search-form input{
    min-width:270px;
    padding:14px 16px;
    background:#080a0c;
    border:1px solid var(--line);
    color:#fff;
    outline:none;
}

.newsletter input:focus,
.search-form input:focus{
    border-color:#59636c;
}

.newsletter button{
    padding:0 20px;
    background:var(--accent);
    border:0;
    color:#090b0c;
    font-weight:800;
    cursor:pointer;
}

.newsletter button:hover{
    filter:brightness(1.06);
}


/* =========================================================
   PAGE
   ========================================================= */

.page{
    padding:70px 0 90px;
}

.page h1{
    margin:8px 0 15px;
    font-size:56px;
    line-height:1;
    letter-spacing:-3px;
}

.intro{
    max-width:680px;
    margin-bottom:35px;
    line-height:1.6;
}


/* =========================================================
   ARTICLE
   ========================================================= */

.article{
    max-width:900px;
    padding:70px 0 90px;
}

.article h1{
    margin:12px 0;
    font-size:clamp(42px,6vw,74px);
    line-height:1;
    letter-spacing:-3px;
}

.meta{
    margin:20px 0 30px;
    color:var(--muted);
    font-size:12px;
}

.article-hero{
    width:100%;
    max-height:560px;
    margin-bottom:30px;
    object-fit:cover;
}

.lead{
    color:#d8dde1;
    font-size:21px;
    line-height:1.6;
}

.article-content{
    overflow-wrap:anywhere;
    color:#c5cbd0;
    font-size:17px;
    line-height:1.85;
}

.article-content br{
    content:"";
    display:block;
    margin:10px;
}


/* =========================================================
   SEARCH PAGE
   ========================================================= */

.search-form{
    display:flex;
    max-width:700px;
    margin:25px 0 45px;
}

.search-form input{
    flex:1 1 auto;
    min-width:0;
}

.search-form .btn{
    padding-inline:25px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.empty{
    padding:50px;
    background:var(--panel);
    border:1px solid var(--line);
    color:var(--muted);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
    position:relative;
    width:100%;
    margin-top:0;
    padding:0 0 20px;
    color:var(--muted);
}

.footer-full-line{
    display:block;
    position:relative;
    width:100vw;
    max-width:100vw;
    height:1px;
    min-height:1px;
    margin-top:0;
    margin-right:calc(50% - 50vw);
    margin-bottom:55px;
    margin-left:calc(50% - 50vw);
    padding:0;
    background:var(--line);
    border:0;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:50px;
}

.footer-brand{
    margin-bottom:15px;
}

.site-footer p{
    max-width:450px;
    color:var(--muted);
    line-height:1.6;
}

.footer-grid b{
    display:block;
    margin-bottom:14px;
    color:#fff;
}

.footer-grid a{
    display:block;
    margin:8px 0;
    color:var(--muted);
    transition:color .2s ease;
}

.footer-grid a:hover{
    color:#fff;
}

.copyright{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:35px;
    padding-top:18px;
    padding-bottom:5px;
    border-top:1px solid var(--line);
    color:#68717a;
    font-size:11px;
    text-align:center;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-body{
    background:#090c0f;
}

.admin-wrap{
    display:flex;
    min-height:100vh;
}

.admin-side{
    position:sticky;
    top:0;
    width:245px;
    height:100vh;
    padding:25px;
    background:#0d1217;
    border-right:1px solid var(--line);
}

.admin-side .brand{
    margin-bottom:35px;
}

.admin-side a{
    display:block;
    padding:11px 10px;
    color:#9099a2;
    font-size:13px;
}

.admin-side a.active,
.admin-side a:hover{
    background:#181e24;
    color:#fff;
}

.side-title{
    margin:0 10px 8px;
    color:#56616a;
    font:10px Oswald,sans-serif;
    letter-spacing:2px;
}

.admin-main{
    flex:1 1 auto;
    max-width:1550px;
    padding:35px;
}

.admin-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:30px;
}

.admin-top h1{
    margin:4px 0 0;
    font-size:30px;
}

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

.stat{
    padding:22px;
    background:var(--panel);
    border:1px solid var(--line);
}

.stat b{
    display:block;
    font-size:30px;
}

.stat span{
    color:var(--muted);
    font-size:12px;
}

.admin-card{
    margin-bottom:18px;
    padding:22px;
    background:var(--panel);
    border:1px solid var(--line);
}

.admin-card h2{
    margin-top:0;
    font-size:18px;
}

.quick{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.field label{
    display:block;
    margin-bottom:6px;
    color:#9aa2aa;
    font-size:12px;
}

.field input,
.field textarea,
.field select{
    width:100%;
    padding:11px;
    background:#080b0d;
    border:1px solid #303840;
    color:#fff;
    outline:none;
}

.field input:focus,
.field textarea:focus,
.field select:focus{
    border-color:#59636c;
}

.field textarea{
    min-height:150px;
    resize:vertical;
}

.full{
    grid-column:1 / -1;
}

.admin-table{
    width:100%;
    border-collapse:collapse;
    font-size:12px;
}

.admin-table th,
.admin-table td{
    padding:12px;
    border-bottom:1px solid var(--line);
    text-align:left;
    vertical-align:top;
}

.admin-table th{
    color:#7f8992;
}

.admin-table small{
    display:block;
    margin-top:4px;
    color:#65707a;
}

.table-wrap{
    overflow:auto;
}

.inline{
    display:inline;
}

.alert{
    margin-bottom:18px;
    padding:12px;
    background:#16251c;
    border:1px solid #284d34;
    color:#b8e8c4;
}

.alert.error{
    background:#281619;
    border-color:#5b2930;
    color:#ffbec4;
}

.toolbar{
    display:flex;
    gap:5px;
    margin-bottom:5px;
}

.toolbar button{
    padding:7px 10px;
    background:#20272d;
    border:1px solid var(--line);
    color:#fff;
    cursor:pointer;
}

.rich-editor{
    min-height:300px;
    padding:14px;
    background:#080b0d;
    border:1px solid #303840;
    line-height:1.7;
}

.login{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:20px;
}

.login-box{
    width:min(430px,100%);
    padding:35px;
    background:var(--panel);
    border:1px solid var(--line);
}

.login-box h1{
    margin:30px 0;
}

.login-box .field{
    margin:15px 0;
}

.login-box .btn{
    width:100%;
}

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


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:950px){

    .main-nav{
        display:none;
    }

    .menu-toggle{
        display:flex;
        flex:0 0 46px;
        width:46px;
        min-width:46px;
        height:46px;
        margin-left:auto;
    }

    .mast-grid{
        grid-template-columns:1fr;
        gap:30px;
        min-height:0;
        padding-top:45px;
        padding-bottom:45px;
    }

    .mast-art{
        height:360px;
    }

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

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

    .banners,
    .category-grid{
        grid-template-columns:1fr;
    }

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

    .admin-side{
        width:190px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .header-search{
        width:min(340px,55vw);
    }

    .category-nav a{
        padding-inline:12px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:768px){

    .container{
        width:min(
            calc(100% - 28px),
            var(--max)
        );
    }


    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .site-header{
        position:relative;
        z-index:1000;
    }

    .site-header .topbar{
        min-height:64px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        padding-top:8px;
        padding-bottom:8px;
    }

    .site-header .topbar .header-search{
        display:none !important;
    }

    .site-header .brand{
        flex:1 1 auto;
        max-width:calc(100% - 58px);
        min-width:0;
    }

    .site-header .brand img{
        width:auto;
        max-width:100%;
        height:auto;
        max-height:48px;
    }


    /* -----------------------------------------------------
       HAMBURGER
       ----------------------------------------------------- */

    .site-header .menu-toggle{
        flex:0 0 46px;
        width:46px;
        min-width:46px;
        height:46px;
        margin:0;
        padding:0;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:5px;
        border:0;
        background:transparent;
        color:#fff;
        cursor:pointer;
        z-index:1100;
    }

    .site-header .menu-toggle span{
        display:block;
        width:25px;
        height:2px;
        border-radius:2px;
        background:currentColor;
        transition:
            transform .2s ease,
            opacity .2s ease;
    }

    .site-header .menu-toggle.is-open span:nth-child(1){
        transform:translateY(7px) rotate(45deg);
    }

    .site-header .menu-toggle.is-open span:nth-child(2){
        opacity:0;
    }

    .site-header .menu-toggle.is-open span:nth-child(3){
        transform:translateY(-7px) rotate(-45deg);
    }


    /* -----------------------------------------------------
       MOBILE SEARCH
       ----------------------------------------------------- */

    .site-header .mobile-search-row{
        display:block !important;
        width:100%;
        margin:0;
        padding:6px 0 12px;
    }

    .site-header .mobile-search-container{
        display:block !important;
        width:100%;
        max-width:none;
        padding-left:10px;
        padding-right:10px;
    }

    .site-header .mobile-search{
        display:flex !important;
        width:100%;
        max-width:none;
        margin:0;
    }

    .site-header .mobile-search input{
        flex:1 1 auto;
        width:100%;
        min-width:0;
        height:46px;
        min-height:46px;
        padding:0 14px;
        font-size:16px;
    }

    .site-header .mobile-search button{
        flex:0 0 50px;
        width:50px;
        min-width:50px;
        height:46px;
        min-height:46px;
    }


    /* -----------------------------------------------------
       CATEGORY BAR
       ----------------------------------------------------- */

    .site-header .category-bar{
        display:none !important;
    }


    /* -----------------------------------------------------
       MOBILE NAV
       ----------------------------------------------------- */

    .mobile-nav{
        display:none;
        position:relative;
        z-index:999;
        width:100%;
    }

    .mobile-nav.is-open{
        display:block;
    }

    .mobile-nav-inner{
        padding-top:4px;
        padding-bottom:8px;
    }

    .mobile-nav-inner a{
        min-height:46px;
        padding:10px 4px;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .masthead{
        width:100%;
        max-width:100%;
        overflow:hidden;
    }

    .mast-grid{
        width:100%;
        max-width:100%;
        min-width:0;
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:25px;
        padding-top:34px;
        padding-bottom:34px;
    }

    .mast-copy{
        width:100%;
        max-width:none;
        min-width:0;
        order:1;
    }

    .kicker,
    .eyebrow{
        font-size:11px;
        letter-spacing:1.8px;
    }

    .masthead h1{
        width:100%;
        max-width:none;
        margin:13px 0 19px;
        font-size:clamp(42px,12vw,58px);
        line-height:.95;
        letter-spacing:-2.8px;
        overflow-wrap:normal;
        word-break:normal;
    }

    .masthead h1 em{
        display:inline;
    }

    .masthead p{
        width:100%;
        max-width:620px;
        margin:0;
        font-size:15px;
        line-height:1.62;
    }


    /* -----------------------------------------------------
       HERO BUTTONS
       ----------------------------------------------------- */

    .hero-actions{
        width:100%;
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        gap:10px;
        margin-top:24px;
    }

    .hero-actions .btn{
        width:100%;
        min-width:0;
        min-height:54px;
        padding:13px 10px;
        display:flex;
        align-items:center;
        justify-content:center;
        text-align:center;
        white-space:nowrap;
        font-size:17px;
        font-weight:800;
        line-height:1.15;
        letter-spacing:-.15px;
    }


    /* -----------------------------------------------------
       HERO IMAGE
       ----------------------------------------------------- */

    .mast-art{
        order:2;
        width:100%;
        max-width:none;
        min-width:0;
        height:auto;
        min-height:0;
        max-height:none;
        margin:0;
        background:linear-gradient(
            145deg,
            #171e25,
            #0a0d10
        );
        overflow:hidden;
    }

    .mast-art::before{
        width:330px;
        height:330px;
    }

    .mast-art::after{
        width:200px;
        height:200px;
    }

    .mast-art .hero-image-box{
        position:relative;
        inset:auto;
        width:100%;
        height:auto;
        max-width:none;
        overflow:hidden;
        z-index:1;
    }

    .mast-art .hero-image-box img{
        display:block;
        width:100%;
        height:auto;
        max-width:none;
        object-fit:contain;
        object-position:center center;
    }

    .hero-placeholder{
        min-height:0;
    }

    .art-label{
        left:13px;
        bottom:12px;
        font-size:9px;
        letter-spacing:1.5px;
    }


    /* -----------------------------------------------------
       CONTENT
       ----------------------------------------------------- */

    .section{
        padding:50px 0;
    }

    .section-title{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
        margin-bottom:22px;
    }

    .section-title h2{
        font-size:29px;
    }

    .section-title > a{
        font-size:12px;
    }

    .news-grid,
    .products-grid{
        grid-template-columns:1fr;
    }

    .news-image{
        height:auto;
        aspect-ratio:16 / 10;
    }

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

    .category-grid a{
        min-height:120px;
        padding:22px;
    }

    .banners{
        grid-template-columns:1fr;
        gap:14px;
        padding-top:18px;
    }

    .banner{
        height:auto;
        aspect-ratio:4 / 1;
        border-radius:8px;
    }

    .banner.wide{
        height:auto;
        aspect-ratio:24 / 5;
    }

    .banner img{
        width:100%;
        height:100%;
        object-fit:cover;
    }

    .product-image{
        height:auto;
        aspect-ratio:16 / 10;
    }


    /* -----------------------------------------------------
       NEWSLETTER
       ----------------------------------------------------- */

    .newsletter{
        display:block;
        margin-bottom:45px;
        padding:25px;
    }

    .newsletter h2{
        font-size:25px;
        line-height:1.2;
    }

    .newsletter form{
        width:100%;
        margin-top:20px;
        display:grid;
        grid-template-columns:minmax(0,1fr) auto;
    }

    .newsletter input{
        width:100%;
        min-width:0;
    }

    .newsletter button{
        padding:0 14px;
        white-space:nowrap;
    }


    /* -----------------------------------------------------
       PAGE
       ----------------------------------------------------- */

    .page{
        padding:50px 0 70px;
    }

    .page h1{
        font-size:43px;
        letter-spacing:-2px;
    }


    /* -----------------------------------------------------
       ARTICLE
       ----------------------------------------------------- */

    .article{
        padding:50px 0 70px;
    }

    .article h1{
        font-size:clamp(38px,10vw,56px);
        letter-spacing:-2.2px;
    }

    .article-hero{
        max-height:none;
        aspect-ratio:16 / 10;
        object-fit:cover;
    }

    .lead{
        font-size:18px;
    }

    .article-content{
        font-size:16px;
        line-height:1.75;
    }


    /* -----------------------------------------------------
       SEARCH PAGE
       ----------------------------------------------------- */

    .search-form{
        display:block;
        width:100%;
    }

    .search-form input{
        width:100%;
        min-width:0;
        margin-bottom:8px;
    }

    .search-form .btn{
        width:100%;
        padding:13px;
    }


    /* -----------------------------------------------------
       EMPTY
       ----------------------------------------------------- */

    .empty{
        padding:30px 22px;
    }


    /* -----------------------------------------------------
       ADMIN
       ----------------------------------------------------- */

    .admin-wrap{
        display:block;
    }

    .admin-side{
        position:static;
        width:auto;
        height:auto;
    }

    .admin-main{
        padding:20px;
    }

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

    .full{
        grid-column:auto;
    }

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


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer-full-line{
        width:100vw;
        max-width:100vw;
        margin-left:calc(50% - 50vw);
        margin-right:calc(50% - 50vw);
        margin-bottom:35px;
    }

    .site-footer{
        padding-bottom:15px;
    }

    .footer-grid{
        gap:25px;
    }

    .copyright{
        width:100%;
        margin-top:35px;
        padding-top:18px;
        padding-bottom:5px;
        padding-left:10px;
        padding-right:10px;
        text-align:center;
        display:flex;
        align-items:center;
        justify-content:center;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width:480px){

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


    /* HEADER */

    .site-header .topbar{
        min-height:58px;
        padding-top:7px;
        padding-bottom:7px;
    }

    .site-header .brand img{
        max-width:175px;
        max-height:42px;
    }

    .site-header .menu-toggle{
        flex:0 0 42px;
        width:42px;
        min-width:42px;
        height:42px;
    }

    .site-header .menu-toggle span{
        width:23px;
    }


    /* SEARCH */

    .site-header .mobile-search-row{
        padding-top:5px;
        padding-bottom:11px;
    }

    .site-header .mobile-search-container{
        padding-left:9px;
        padding-right:9px;
    }

    .site-header .mobile-search input{
        height:44px;
        min-height:44px;
        padding-left:13px;
        padding-right:12px;
        font-size:16px;
    }

    .site-header .mobile-search button{
        flex-basis:47px;
        width:47px;
        min-width:47px;
        height:44px;
        min-height:44px;
    }


    /* HERO */

    .mast-grid{
        gap:22px;
        padding-top:29px;
        padding-bottom:29px;
    }

    .masthead h1{
        margin-top:12px;
        margin-bottom:18px;
        font-size:clamp(39px,11.8vw,52px);
        letter-spacing:-2.4px;
    }

    .masthead p{
        font-size:14px;
        line-height:1.6;
    }


    /* HERO BUTTONS */

    .hero-actions{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        gap:8px;
        margin-top:20px;
    }

    .hero-actions .btn{
        min-height:52px;
        padding:12px 6px;
        font-size:16px;
        font-weight:800;
        line-height:1.15;
    }


    /* HERO IMAGE */

    .mast-art{
        height:auto;
        min-height:0;
        max-height:none;
    }

    .mast-art .hero-image-box{
        position:relative;
        width:100%;
        height:auto;
        inset:auto;
    }

    .mast-art .hero-image-box img{
        width:100%;
        height:auto;
        max-width:none;
        object-fit:contain;
        object-position:center center;
    }

    .mast-art::before{
        width:280px;
        height:280px;
    }

    .mast-art::after{
        width:170px;
        height:170px;
    }

    .art-label{
        left:11px;
        bottom:10px;
        font-size:8px;
    }


    /* CONTENT */

    .section{
        padding:42px 0;
    }

    .section-title h2{
        font-size:27px;
    }

    .news-body{
        padding:16px;
    }

    .news-body h3{
        font-size:20px;
    }


    /* NEWSLETTER */

    .newsletter{
        padding:22px;
    }

    .newsletter form{
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
    }

    .newsletter input{
        height:46px;
    }

    .newsletter button{
        height:46px;
    }


    /* FOOTER */

    .copyright{
        width:100%;
        padding-left:10px;
        padding-right:10px;
        text-align:center;
    }
}



@media (max-width:767px){
    .banners{
        grid-template-columns:1fr;
        gap:14px;
        padding-top:18px;
    }

    .banner{
        aspect-ratio:300 / 250;
        border-radius:8px;
    }

    .banner.wide{
        width:100%;
        aspect-ratio:auto;
    }

    .banner.wide img{
        width:100%;
        height:auto;
    }

    .ad-strip{
        margin-top:18px;
        margin-bottom:18px;
    }
}

@media (max-width:480px){
    .banners{
        gap:12px;
        padding-top:14px;
    }

    .banner{
        border-radius:6px;
    }
}

/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width:360px){

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

    .masthead h1{
        font-size:38px;
        letter-spacing:-2px;
    }

    .masthead p{
        font-size:13px;
    }

    .hero-actions{
        gap:7px;
    }

    .hero-actions .btn{
        min-height:50px;
        padding:11px 4px;
        font-size:15px;
    }

    .mast-art{
        height:auto;
        min-height:0;
    }

    .mast-art .hero-image-box{
        height:auto;
    }

    .mast-art .hero-image-box img{
        width:100%;
        height:auto;
        object-fit:contain;
    }

    .category-grid a{
        padding:19px;
    }
}


.field-help{
    display:block;
    margin-top:8px;
    font-size:13px;
    line-height:1.5;
    color:var(--muted);
}

.banner-preview{
    width:100%;
    max-width:600px;
    margin-top:12px;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--panel);
}

.banner-preview img{
    display:block;
    width:100%;
    height:auto;
    max-width:100%;
}

/* =========================================================
   ACCESSIBILITY / TOUCH
   ========================================================= */

@media (hover:none){

    .news-card:hover,
    .product:hover{
        transform:none;
    }
}

@media (prefers-reduced-motion:reduce){

    html{
        scroll-behavior:auto;
    }

    *,
    *::before,
    *::after{
        transition:none !important;
        animation:none !important;
    }
}


/* =========================================================
   FINAL BANNER AD FORMATS
   980x120 · 300x250 · 120x600 · 728x90 · 300x100
   ========================================================= */

.banners.home-top-banner-slot {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: 22px;
    gap: 0;
}

.banner-item {
    width: var(--banner-w, 300px);
    max-width: 100%;
}

.banner {
    display: block;
    width: var(--banner-w, 300px);
    max-width: 100%;
    height: var(--banner-h, 250px);
    aspect-ratio: auto;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 8px;
}

.banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-size-980x120 { --banner-w: 980px; --banner-h: 120px; }
.banner-size-300x250 { --banner-w: 300px; --banner-h: 250px; }
.banner-size-120x600 { --banner-w: 120px; --banner-h: 600px; }
.banner-size-728x90  { --banner-w: 728px; --banner-h: 90px; }
.banner-size-300x100 { --banner-w: 300px; --banner-h: 100px; }

.ad-strip {
    width: 100%;
    margin: 24px auto;
}

.ad-strip .banner {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .banners.home-top-banner-slot {
        padding-top: 18px;
    }

    .banner {
        max-width: 100%;
        height: auto;
        aspect-ratio: var(--banner-w) / var(--banner-h);
    }

    .banner img {
        height: 100%;
    }
}

/* =========================================================
   NORRMOTOR — BANNER PLACERING / HOME GRID
   ========================================================= */

/* Alla bannerpositioner håller sig inom samma innehållslinje. */
.banners.home-top-banner-slot,
.ad-strip,
.banners {
    width: min(var(--max), calc(100% - 40px));
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Hem – toppen: upp till fyra reklamplatser på samma rad. */
.banners.home-top-banner-slot {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 4px;
}

/* Varje plats får sin egen kolumn och kan aldrig trycka ut containern. */
.banners.home-top-banner-slot .banner-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Bildannonser följer vald proportion utan att lämna innehållslinjen. */
.banners.home-top-banner-slot .banner-item > .banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: var(--banner-w, 300) / var(--banner-h, 250);
    margin: 0;
    box-sizing: border-box;
}

.banners.home-top-banner-slot .banner-item > .banner img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* HTML / JavaScript / Custom-kod får själv bestämma sin höjd,
   men bredden begränsas till sin bannerkolumn. */
.banners.home-top-banner-slot .banner-item > iframe,
.banners.home-top-banner-slot .banner-item > img,
.banners.home-top-banner-slot .banner-item > div,
.banners.home-top-banner-slot .banner-item > a {
    max-width: 100%;
}

.banners.home-top-banner-slot .banner-item > * {
    box-sizing: border-box;
}

/* Vanliga bannerstorlekar. CSS-variablerna används också av PHP-koden. */
.banner-size-980x120 { --banner-w: 980px; --banner-h: 120px; }
.banner-size-300x250 { --banner-w: 300px; --banner-h: 250px; }
.banner-size-120x600 { --banner-w: 120px; --banner-h: 600px; }
.banner-size-728x90  { --banner-w: 728px; --banner-h: 90px; }
.banner-size-300x100 { --banner-w: 300px; --banner-h: 100px; }

/* Mittbanner och övriga fullbreddsbanners hålls också inom linjen. */
.ad-strip {
    width: min(var(--max), calc(100% - 40px));
    max-width: var(--max);
    margin: 24px auto;
    box-sizing: border-box;
    overflow: hidden;
}

.ad-strip .banner.wide {
    width: min(var(--banner-w, 728px), 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: var(--banner-w, 728) / var(--banner-h, 90);
    margin-left: auto;
    margin-right: auto;
}

/* Tablet: två bannerplatser per rad. */
@media (max-width: 1000px) {
    .banners.home-top-banner-slot {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Mobil: en banner per rad, alltid inom sidans innehållslinje. */
@media (max-width: 767px) {
    .banners.home-top-banner-slot,
    .ad-strip,
    .banners {
        width: calc(100% - 28px);
    }

    .banners.home-top-banner-slot {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 18px;
        padding-bottom: 2px;
    }

    .banners.home-top-banner-slot .banner-item {
        width: 100%;
    }

    .banners.home-top-banner-slot .banner-item > .banner {
        width: 100%;
        height: auto;
        aspect-ratio: var(--banner-w, 300) / var(--banner-h, 250);
    }

    .ad-strip {
        margin-top: 18px;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .banners.home-top-banner-slot,
    .ad-strip,
    .banners {
        width: calc(100% - 20px);
    }

    .banners.home-top-banner-slot {
        gap: 12px;
        padding-top: 14px;
    }
}
