@import url("assets/fonts/fonts.css");

[hidden]{display:none!important}
.component-fallback{display:flex;gap:20px;flex-wrap:wrap;padding:20px;background:#fff;color:#003b5c}
.close-modal{border:0;background:transparent;font:inherit}
.footer-contact-link{display:inline-block;margin-top:14px;color:inherit;text-underline-offset:4px}
#contact-status{font-size:14px;line-height:1.6;margin-top:16px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important}}

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

body{
    background:var(--color-canvas);
    padding-top:90px;
}

.content-limit{

    max-width:calc(50% + 900px);

    margin:0 auto;

    width:100%;

}

/* ========================================
   DESIGN SYSTEM
======================================== */

:root{

    /* ========================================
       DESIGN TOKENS — COLORS
    ======================================== */

    --color-brand: #1099d5;
    --color-brand-rgb: 16, 153, 213;
    --color-brand-hover: #1099d5;
    --color-brand-dark:#003b5c;
    --color-brand-soft:#e5f5fc;

    --color-text:#3b4146;
    --color-heading:#1a1a1a;
    --font-body:"Inter", Arial, sans-serif;
    --font-heading:"Montserrat", Arial, sans-serif;
    --color-text-muted:#5f6b73;

    --color-border:#d7dde0;
    --color-surface:#ffffff;
    --color-canvas:#f3f5f6;

    /* Съвместимост със старите класове */
    --primary-blue:var(--color-brand);
    --primary-blue-hover:var(--color-brand-hover);
    --footer-blue:var(--color-brand-dark);

    --text-dark:var(--color-text);
    --text-light:var(--color-text-muted);

    --border-color:var(--color-border);
    --background-light:var(--color-canvas);
    --card-background:var(--color-surface);

    /* ========================================
       LAYOUT
    ======================================== */

    --content-max:calc(50vw + 845px);

    --sidebar-min:260px;
    --sidebar-max:360px;

    --product-card-min:210px;
    --product-card-max:300px;

    --category-card-min:200px;
    --category-card-max:250px;

    --layout-gap-min:8px;
    --layout-gap-max:35px;

    --section-gap-min:20px;
    --section-gap-max:60px;

    /* ========================================
       SPACING
    ======================================== */

    --space-2xs:4px;
    --space-xs:8px;
    --space-sm:12px;
    --space-md:16px;
    --space-lg:20px;
    --space-xl:30px;
    --space-2xl:40px;
    --space-3xl:60px;
    --space-4xl:80px;

    --page-padding-min:10px;
    --page-padding-max:30px;

    --gap-min:8px;
    --gap-max:20px;

    /* ========================================
       SIZES
    ======================================== */

    --navbar-height:90px;

    --hero-arrow-width:60px;
    --hero-arrow-height:80px;
    --category-arrow-overlap:48px;

    --category-image-height:150px;
    --category-text-height:70px;

    --button-height:42px;

    /* ========================================
       FONT SIZES
    ======================================== */

    --font-xs:12px;
    --font-sm:14px;
    --font-md:16px;
    --font-lg:18px;
    --font-xl:24px;
    --font-2xl:32px;

    /* ========================================
       RADIUS
    ======================================== */

    --radius-small:0;
    --radius-medium:0;
    --radius-large:0;

    /* ========================================
       SHADOWS
    ======================================== */

    --shadow-small:
        0 4px 10px rgba(0,0,0,.08);

    --shadow-hover:
        0 8px 18px rgba(0,0,0,.12);

    /* ========================================
       TRANSITIONS
    ======================================== */

    --transition-fast:.25s ease;
    --transition-slow:.55s ease;

}

/* =========================
   NAVBAR
========================= */

.navbar{

    width:100%;

    height:90px;

    background:white;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:
0
clamp(
var(--page-padding-min),
1.5vw,
var(--page-padding-max)
);

    box-shadow:0 2px 10px rgba(0,0,0,0.08);

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:9999;
}

/* MENU */

.menu{

    display:flex;

    gap:30px;

    list-style:none;
}

.menu a{

    position:relative;

    color:var(--text-dark);

    text-decoration:none;

    font-weight:600;

    font-size:17px;

    transition:var(--transition-fast);

    padding:35px 0;

    display:block;
}

.menu a:hover{

    color:var(--primary-blue);
}

/* BUTTON */

.contact-btn{

    height:42px;

    padding:0 18px;

    border:none;

    background:var(--primary-blue);

    color:white;

    border-radius:var(--radius-medium);

    font-weight:700;

    font-size:var(--font-md);

    cursor:pointer;

    transition:var(--transition-fast);

    flex-shrink:0;
}

.contact-btn:hover{

    transform:translateY(-2px);

    background:var(--color-brand);
}

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

.hero{

    position:relative;

    padding-left:0;
    padding-right:0;

    max-width:var(--content-max);

    width:100%;

    margin:0 auto;

    aspect-ratio:3 / 1;

    box-shadow:
        0 8px 8px rgba(0,0,0,0.09);

}

/* SLIDES */

.hero-slide{

    position:absolute;

    inset:0;

    background-size:cover;

    background-position:left center;

    background-repeat:no-repeat;

    opacity:0;

    transition:opacity 1.5s ease;

}

/* ACTIVE */

.hero-slide.active{

    opacity:1;
}

/* INDIVIDUAL SLIDES */

.hero-slide:nth-child(1){

    background-image:url("assets/slides/slide1.webp");
}

.hero-slide:nth-child(2){

    background-image:url("assets/slides/slide2.webp");
}

.hero-slide:nth-child(3){

    background-image:url("assets/slides/slide3.webp");
}

.hero-slide:nth-child(4){

    background-image:url("assets/slides/slide4.webp");
}

.hero-slide:nth-child(5){

    background-image:url("assets/slides/slide5.webp");
}

.hero-slide:nth-child(6){
    background-image:url("assets/slides/Slide6.webp");
}

.hero-slide:nth-child(7){
    background-image:url("assets/slides/Slide7.webp");
}

.hero-slide:nth-child(8){
    background-image:url("assets/slides/Slide8.webp");
}

.hero-arrow{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:var(--hero-arrow-width);

    height:var(--hero-arrow-height); 

    border:none;

    background:rgba(255,255,255,0.25);

    backdrop-filter:blur(4px);

    color:white;

    font-size:38px;

    cursor:pointer;

    z-index:30;

    transition:.25s;

}

.hero-prev{

    left:0px;

}

.hero-next{

    right:0px;

}

.hero-arrow:hover{

    background:rgba(21,101,192,.75);

}

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

.categories{

    display:flex;

    gap:clamp(3px,1vw,var(--card-gap-max));

    overflow:visible;

    scroll-behavior:smooth;

    padding-top:10px;
}

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

.categories-wrapper{

    display:flex;
    align-items:stretch;
    gap:clamp(8px, 1vw, 16px);

    padding:0 clamp(
    var(--page-padding-min),
    1.5vw,
    var(--page-padding-max)
);

    margin-top:10px;

    position:relative;
    z-index:1000;
}

.categories-viewport{

    flex:1;

    overflow:hidden;

    padding-bottom:30px;

    min-width:0;
}

/* =========================
   CARD
========================= */

.card{

    position:relative;

    overflow:hidden;

    display:block;

    text-decoration:none;

    color:inherit;

    position:relative;

    z-index:10;

    flex:0 0 var(--category-card-max);

    min-width:var(--category-card-min);

    background:white;

    border-radius:var(--radius-medium);

    overflow:hidden;

    cursor:pointer;

    border:1px solid #bcc9d8;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.08);

    transition:0.3s;
}

.card::before{

    content:"";

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:0;

    background:#eef4fb;

    transition:height .55s ease;

    z-index:0;

}

/* IMAGE */

.card img{

    width:100%;

    height:var(--category-image-height);

    object-fit:contain;

    background:white;

    transition:0.3s;

    position:relative;

    z-index:2;
}

/* BOTTOM SECTION */

.overlay{

    height:var(--category-text-height);

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 18px;

    background:transparent;

    position:relative;

    z-index:2;
}

/* TEXT */

.overlay h3{

    color:var(--color-text);

    font-size:var(--font-md);

    font-weight:700;

    line-height:1.2;

    transition:.3s;
}

.card:hover .overlay h3{

    color:var(--color-brand);

}

/* ARROW */

.overlay::after{

    content:"›";

    font-size:32px;

    color:var(--color-brand);

    font-weight:300;
}

/* HOVER */

.card:hover{

    z-index:100;

    transform:none;

    border-color:rgba(21,101,192,.45);

    box-shadow:
        0 8px 18px rgba(21,101,192,0.12);

}

.card:hover::before{

    height:100%;

}

body[data-page="home"] .card{
    box-shadow:none;
}

body[data-page="home"] .card:not(:hover){
    border-color:transparent;
}

/* =========================
   CATEGORY ARROWS
========================= */

.cat-arrow{
    position:relative;
    z-index:200;
    width:clamp(44px, 4vw, 60px);
    min-width:44px;
    height:222px;
    margin-top:10px;
    border:none;
    border-radius:var(--radius-small);
    color:white;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:clamp(4px, .7vw, 12px);
    flex:0 0 clamp(44px, 4vw, 60px);
    transition:0.25s;
}

.cat-arrow.prev{
    background:var(--color-brand);
}

.cat-arrow.next{
    background:#ef6c00;
}

.arrow-label{
    writing-mode:vertical-rl;
    transform:rotate(180deg);
    font-size:clamp(10px, .8vw, 12px);
    font-weight:700;
    letter-spacing:.5px;
    text-transform:uppercase;
    line-height:1;
    white-space:nowrap;
}

.arrow-icon{
    font-size:clamp(28px, 3vw, 42px);
    line-height:1;
}

.cat-arrow:hover{

    transform:translateY(-4px);

}

.cat-arrow.prev:hover{

    background:#3d8df3;

    box-shadow:
        0 6px 14px rgba(21,101,192,0.30);

}

.cat-arrow.next:hover{

    background:#ff9d42;

    box-shadow:
        0 6px 14px rgba(239,108,0,0.30);

}

.cat-arrow.hidden{

    display:none;
}

/* =========================
   DROPDOWN MENU
========================= */

.dropdown{

    position:relative;
}

/* MENU */

/* SHOW ON HOVER */

/* Родителят остава маркиран */

/* ITEMS */

/* LINKS */

/* HOVER */

/* =========================
   SECOND LEVEL DROPDOWN
========================= */

/* ARROW */

/* SUBMENU */

/* SECOND LEVEL ITEMS */

/* SHOW */

/* BUTTON */

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

.news-box{

    display:flex;

    flex-direction:column;

    gap:20px;
}

/* HEADER */

.section-header{

    margin-bottom:12px;
}

.section-header h2{

    font-size:var(--font-xl);

    font-weight:700;

    color:var(--color-text);

    padding-bottom:14px;

    border-bottom:2px solid #d7e1ee;
}

/* NEWS BUTTON */

.news-btn{

    background:white;

    border:1px solid #d8e1ec;

    padding:12px 20px;

    border-radius:var(--radius-medium);

    cursor:pointer;

    font-weight:700;

    transition:0.3s;
}

.news-btn:hover{

    border-color:var(--color-brand);

    color:var(--color-brand);
}

/* DATE */

.news-date{

    color:var(--color-brand);

    font-weight:700;

    font-size:14px;
}

/* TITLE */

.news-card h3{

    margin-top:10px;

    margin-bottom:12px;

    font-size:var(--font-xl);

    color:var(--color-text);
}

/* TEXT */

.news-card p{

    color:var(--color-text-muted);

    line-height:1.7;

    overflow:hidden;

    display:-webkit-box;

    -webkit-box-orient:vertical;

    -webkit-line-clamp:8;

}

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

.footer{

    background:var(--color-brand-dark);

    color:white;

    margin-top:80px;
}

/* TOP */

.footer-top{

    display:grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1fr
        1.2fr;

    gap:var(--space-2xl);

    padding:

70px

clamp(
var(--page-padding-min),
1.5vw,
var(--page-padding-max)
);
}

/* COLUMN */

.footer-column{

    display:flex;

    flex-direction:column;
}

/* LOGO */

.footer-logo{

    width:180px;

    margin-bottom:20px;

    filter:brightness(0) invert(1);
}

/* TEXT */

.footer-column p{

    color:rgba(255,255,255,0.75);

    line-height:1.7;

    margin-bottom:20px;
}

/* TITLES */

.footer-column h4{

    font-size:22px;

    margin-bottom:24px;
}

/* LINKS */

.footer-column a{

    color:rgba(255,255,255,0.75);

    text-decoration:none;

    margin-bottom:var(--space-sm);

    transition:0.3s;
}

.footer-column a:hover{

    color:white;

    transform:translateX(4px);
}

/* CONTACT */

.footer-contact{

    display:flex;

    flex-direction:column;

    gap:12px;

    color:rgba(255,255,255,0.75);
}

/* NEWSLETTER */

/* SOCIALS */

.socials{

    display:flex;

    gap:14px;

    margin-top:25px;
}

.socials span{

    width:42px;

    height:42px;

    border:1px solid rgba(255,255,255,0.2);

    border-radius:var(--radius-medium);

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    transition:0.3s;
}

.socials span:hover{

    background:var(--color-brand);

    background:var(--color-brand);
}

/* BOTTOM */

.footer-bottom{

    border-top:
        1px solid rgba(255,255,255,0.12);

    padding:

22px

clamp(
var(--page-padding-min),
1.5vw,
var(--page-padding-max)
);

    display:flex;

    justify-content:space-between;

    color:rgba(255,255,255,0.6);

    font-size:14px;
}

/* SHOW */

/* CLICKABLE NEWS IMAGES */

/* =========================
   INFO SECTION
========================= */

.info-section{

    display:grid;

    grid-template-columns:380px 1fr;

    gap:30px;

    padding:

15px

clamp(
var(--page-padding-min),
1.5vw,
var(--page-padding-max)
)

80px

clamp(
var(--page-padding-min),
1.5vw,
var(--page-padding-max)
);

    align-items:start;

    position:relative;

    z-index:1;
}

/* BUTTON */

/* SIDE IMAGES */

.side-image-box img{

    width:100%;

    height:auto;

    display:block;

    cursor:pointer;

    background:white;
}

/* =========================
   LEFT COLUMN
========================= */

.left-column{

    display:flex;

    flex-direction:column;

    gap:14px;

    align-self:start;

    background:#eef2f6;

    border:1px solid var(--color-border);

    border-radius:var(--radius-medium);

    padding:14px;

}

.about-title{

    background:var(--color-brand);

    color:white;

    font-size:var(--font-xl);

    font-weight:700;

    padding:18px 22px;

    border-radius:var(--radius-medium);

    margin:0 0 14px 0;
}

/* ABOUT BOX */

.about-box{

    background:white;

    border-radius:var(--radius-medium);

    padding:var(--space-xl);

    border:1px solid #e2e8f0;
}

/* TEXT */

.about-box p{

    color:var(--color-text-muted);

    line-height:1.7;

    margin-bottom:25px;
}

/* LIST */

.about-box ul{

    list-style:none;

    margin-bottom:30px;
}

.about-box li{

    margin-bottom:var(--space-sm);

    color:var(--color-text);

    font-weight:600;
}

.about-column{

    display:flex;

    flex-direction:column;

    gap:0px;

    align-self:start;
}

/* BUTTON */

.about-btn{

    background:var(--color-brand);

    color:white;

    border:none;

    padding:14px 24px;

    border-radius:var(--radius-medium);

    cursor:pointer;

    font-weight:700;

    transition:0.3s;
}

.about-btn:hover{

    background:var(--color-brand);
}

/* SIDE IMAGES */

.side-image{

    width:100%;

    height:auto;

    display:block;

    object-fit:contain;

    border-radius:var(--radius-medium);

    background:white;

    cursor:pointer;
}

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

.news-card{
    background:white;
    border-radius:var(--radius-medium);
    padding:28px;
    border:1px solid #e2e8f0;
    box-shadow:0 4px 14px rgba(0,0,0,.06);
    overflow:hidden;
}

.news-content{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(220px, 400px);
    grid-template-areas:
        "date image"
        "title image"
        "text image"
        "button image";
    column-gap:clamp(16px, 2vw, 30px);
    row-gap:12px;
    align-items:start;
    min-width:0;
}

.news-content > *{
    min-width:0;
}

.news-image{
    grid-area:image;
    width:100%;
    max-width:400px;
    min-width:0;
    height:auto;
    object-fit:contain;
    display:block;
    border-radius:var(--radius-medium);
    justify-self:end;
}

.news-card p{
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:8;
}

.news-card.expanded{

    height:auto;

    min-height:320px;

}

.news-card.expanded p{

    display:block;

    overflow:visible;
}

.news-card:hover{

    transform:none;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.06);
}

/* CONTENT */

.news-content{

    display:grid;

    grid-template-columns:minmax(420px,1fr) minmax(280px,400px);

    grid-template-areas:

        "date image"
        "title image"
        "text image"
        "button image";

    column-gap:30px;

    row-gap:12px;

}

.news-date{

    grid-area:date;

}

.news-content h3{

    grid-area:title;

}

.news-image{

    grid-area:image;

}

.news-content p{

    grid-area:text;

}

.news-toggle{

    grid-area:button;

    justify-self:start;

}

/* NEWS IMAGE */

.news-image{

    width:100%;

    max-width:400px;

    min-width:280px;

    height:auto;

    object-fit:contain;

    display:block;

    border-radius:var(--radius-medium);

    justify-self:end;

}

/* =========================
   IMAGE MODAL
========================= */

.image-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,0.88);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;
}

/* SHOW */

.image-modal.active{

    display:flex;
}

/* MODAL IMAGE */

.modal-image{

    max-width:92%;

    max-height:92%;

    object-fit:contain;

    border-radius:var(--radius-medium);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.5);
}

/* CLOSE BUTTON */

.close-modal{

    position:absolute;

    top:25px;

    right:35px;

    font-size:54px;

    color:white;

    cursor:pointer;

    transition:0.3s;

    user-select:none;
}

.close-modal:hover{

    transform:scale(1.1);

    color:#cccccc;
}

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

.hero-dots{

    position:absolute;

    bottom:35px;

    left:50%;

    transform:translateX(-50%);

    display:flex;

    gap:12px;

    z-index:20;

}

/* DOT */

.hero-dot{

    width:12px;

    height:12px;

    border-radius:30%;

    background:rgba(255,255,255,0.45);

    cursor:pointer;

    transition:0.3s;

    border:2px solid rgba(21,101,192,0.35);

    box-shadow:
    0 2px 6px rgba(0,0,0,0.25);
}

/* ACTIVE */

.hero-dot.active{

    background:white;

    transform:scale(1.2);

    background:var(--color-brand);

    border:2px solid white;

    box-shadow:
    0 2px 8px rgba(0,0,0,0.30);
}

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

/* PAGE BANNER */

.page-banner{

    position:relative;

    z-index:5;

    width:100%;

    aspect-ratio:4200 / 700;

    background-image:url("assets/banners/products-banner.webp");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    box-shadow:
    0 6px 10px rgba(0,0,0,0.10);

    border-bottom:
    5px solid rgba(255,255,255,0.65);
}

/* PRODUCTS LAYOUT */

.products-section{

    display:grid;

    grid-template-columns:
        auto
        minmax(0,1fr);

    align-items:start;

    gap:clamp(
        var(--layout-gap-min),
        2vw,
        var(--layout-gap-max)
    );

    padding:
        50px
        clamp(
            var(--page-padding-min),
            1.5vw,
            var(--page-padding-max)
        )
        80px;

}

/* LEFT SIDEBAR */

.products-sidebar{

    width:var(--sidebar-max);

    flex:0 0 var(--sidebar-max);

    transition:width .25s;

    overflow:hidden;

}

.products-sidebar.small{

    width:var(--sidebar-min);

    flex-basis:var(--sidebar-min);

}

.products-sidebar.hidden{

    display:none;

}

/* SIDEBAR BOX */

.products-sidebar-box{

    background:white;

    border:1px solid var(--color-border);

    border-radius:var(--radius-small);

    overflow:hidden;

    padding:var(--space-lg);

    box-shadow:
        0 4px 12px rgba(0,0,0,0.05);
}

/* SIDEBAR TITLE */

.products-sidebar-title{

    background:var(--color-brand);

    color:white;

    padding:18px 22px;

    font-size:var(--font-xl);

    font-weight:700;

    border-radius:var(--radius-medium);

    margin-bottom:var(--space-sm);

    box-shadow:
        0 4px 10px rgba(15,76,129,0.18);
}

/* PRODUCT NAV */

.products-nav li{

    border-bottom:1px solid #e8edf3;
}

.products-nav li:last-child{

    border-bottom:none;
}

/* MAIN CONTENT */

.products-content{

    width:100%;

    min-width:0;

}

/* SECTION TITLE */

.products-heading{

    font-size:var(--font-xl);

    font-weight:700;

    color:var(--color-text);

    margin-bottom:24px;

    padding-bottom:18px;

    border-bottom:2px solid #d7e1ee;
}

/* PRODUCTS GRID */

.products-grid{

    display:grid;

    width:100%;

    grid-template-columns:

        repeat(

            auto-fit,

            minmax(

                min(

                    100%,

                    var(--product-card-min)

                ),

                1fr

            )

        );

    gap:clamp(

        var(--gap-min),

        1vw,

        var(--gap-max)

    );

    align-items:start;

}

/* PRODUCT CARD */

.products-card{

    position:relative;

    display:flex;

    flex-direction:column;

    width:100%;

    min-width:0;

    max-width:none;

    justify-self:center;

    max-width:var(--product-card-max);

    background:#fff;

    border:1px solid #e2e8f0;

    border-radius:var(--radius-medium);

    overflow:hidden;

    box-shadow:0 4px 10px rgba(0,0,0,.08);

    transition:.25s;

}

.products-card::before{

    content:"";

    position:absolute;

    left:0;
    right:0;
    bottom:0;

    height:0;

    background:#eef4fb;

    transition:height .18s ease-out;

    z-index:0;

}

.products-card:hover{

    transform:none;

    border-color:rgba(21,101,192,.45);

    box-shadow:
        0 8px 18px rgba(21,101,192,0.12);

}

.products-card:hover::before{

    height:100%;

    transition:height .55s ease-out;

}

/* CARD IMAGE */

.products-card img{

    width:100%;

    aspect-ratio:16 / 12;

    object-fit:contain;

    padding:12px;

    background:#fff;

    flex-shrink:0;

    position:relative;

    z-index:2;

}

/* CARD CONTENT */

.products-card-body{

    position:relative;

    z-index:2;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    padding:14px;

    overflow:hidden;

    min-height:clamp(78px,7vw,96px);

}

.products-card h3{

    font-size:clamp(15px,1vw,18px);

    font-weight:700;

    color:var(--color-text);

    line-height:1.2;

    margin-bottom:6px;

    overflow:hidden;

    display:-webkit-box;

    -webkit-box-orient:vertical;

    -webkit-line-clamp:2;

    transition:.25s;

}

.products-card:hover h3{

    color:var(--color-brand);

}

.products-card:hover p{

    color:var(--color-brand);

}

.products-card p{

    color:var(--color-text-muted);

    font-size:clamp(13px,.9vw,15px);

    line-height:1.35;

    margin:0;

    flex:1;

    overflow:hidden;

    display:-webkit-box;

    -webkit-box-orient:vertical;

    -webkit-line-clamp:2;

    transition:.3s;

}

/* BUTTON */

.products-link{

    margin-top:auto;

    color:var(--color-brand);

    text-decoration:none;

    font-weight:700;

}

/* FEATURES STRIP */

.products-features{

    display:grid;

    grid-template-columns:

        repeat(
            auto-fit,
            minmax(240px,1fr)
        );

    gap:20px;

}

/* FEATURE BOX */

.products-feature{

    background:white;

    border:1px solid var(--color-border);

    border-radius:var(--radius-small);

    padding:26px;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.05);
}

.products-feature h4{

    color:var(--color-text);

    margin-bottom:12px;

    font-size:22px;
}

.products-feature p{

    color:var(--color-text-muted);

    line-height:1.7;
}

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

.header{

    height:92px;

    background:white;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 34px;

    border-bottom:1px solid var(--border-color);

    position:sticky;

    top:0;

    z-index:1000;
}

.header-left{

    display:flex;

    align-items:center;

    gap:clamp(12px, 1.2vw, 18px);
}

.logo img{

    height:58px;

    display:block;
}

.logo-text{

    display:flex;
    align-self:flex-end;

    flex-direction:column;

    gap:3px;
}

.logo-title{

    font-size:18px;
    line-height:1;

    font-weight:700;

    color:var(--text-dark);
}

.logo-subtitle{

    font-size:9px;

    font-weight:600;

    color:#6ea8e5;

    letter-spacing:1px;
}

.header-divider{

    width:1px;

    height:52px;

    background:#d9e0e8;

    margin-left:16px;

    margin-right:32px;
}

.main-nav{

    display:flex;

    align-items:center;

    gap:42px;
}

.main-nav a{

    position:relative;

    color:var(--text-dark);

    text-decoration:none;

    font-weight:600;

    font-size:17px;

    transition:var(--transition-fast);
}

.main-nav a.active{

    color:var(--primary-blue);
}

.main-nav a.active::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:100%;

    height:3px;

    background:var(--primary-blue);

    border-radius:20px;
}

.header-actions{

    display:flex;

    align-items:center;

    gap:14px;

    border-left:1px solid #d9e0e8;

    padding-left:24px;

}

.header-icon,

.lang-btn{

    width:44px;

    height:44px;

    border:1px solid var(--border-color);

    background:white;

    border-radius:var(--radius-medium);

    cursor:pointer;

    transition:var(--transition-fast);

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    flex-shrink:0;
}

.quote-btn{

    height:54px;

    padding:0 28px;

    border:none;

    background:var(--primary-blue);

    color:white;

    border-radius:var(--radius-medium);

    font-weight:700;

    font-size:var(--font-md);

    cursor:pointer;

    transition:var(--transition-fast);
}

/* ACTIVE MENU LINK */

.menu a.active{

    color:var(--primary-blue) !important;
}

.menu a.active::after{

    content:"";

    position:absolute;

    left:0;

    bottom:26px;

    width:100%;

    height:3px;

    background:var(--primary-blue);

    border-radius:20px;
}

.header-icon img{

    width:32px;

    height:32px;

    object-fit:contain;
}

.nav-divider{

    margin-left:26px;

    margin-right:26px;
}

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

.header-search{

    display:flex;

    align-items:center;

    height:44px;

    border:1px solid var(--border-color);

    border-radius:var(--radius-medium);

    overflow:hidden;

    background:white;
}

/* INPUT */

.header-search input{

    width:220px;

    height:100%;

    border:none;

    outline:none;

    padding:0 18px;

    font-size:15px;

    color:var(--text-dark);

    background:white;
}

/* SEARCH BUTTON */

.search-btn{

    width:58px;

    height:100%;

    border:none;

    border-left:1px solid var(--border-color);

    background:white;

    cursor:pointer;

    transition:var(--transition-fast);

    display:flex;

    align-items:center;

    justify-content:center;
}

/* ICON */

.search-btn img{

    width:34px;

    height:34px;

    object-fit:contain;
}

/* HOVER */

.search-btn:hover{

    background:#f4f8fc;
}

.products-nav{

list-style:none;

margin:0;

padding:0;

}

/* =====================================
MAIN CATEGORY
===================================== */

.nav-group{

margin:0;

}

.nav-main{

display:flex;

align-items:center;

gap:10px;

padding:12px 16px;

height:48px;

box-sizing:border-box;

border-bottom:1px solid #e5eaf0;

transition:.25s;

}

.nav-main:hover{

    background:#f1f4f8;
}

.nav-main:hover .nav-link{

    color:var(--color-brand);
}

.nav-toggle{

width:18px;

text-align:center;

color:var(--color-brand);

font-size:10px;

cursor:pointer;

flex-shrink:0;

}

.nav-toggle::before{

content:"▶";

}

.nav-group.active .nav-toggle::before{

content:"▼";

}

.nav-link{

flex:1;

height:100%;

display:flex;

align-items:center;

color:var(--color-text);

text-decoration:none;

font-weight:700;

line-height:1.2;

}

.nav-link:hover{

color:var(--color-brand);

}

/* =====================================
SECOND LEVEL
===================================== */

.nav-sub{

display:none;

list-style:none;

margin:0;

padding:0;

}

.nav-group.active .nav-sub{

display:block;

}

.nav-sub-header{

display:flex;

align-items:center;

gap:10px;

min-height:42px;

padding:0 16px 0 24px;

border-bottom:1px solid #eef2f6;

}

.nav-sub-header:hover{

    background:#f1f4f8;
}

.nav-sub-toggle{

width:16px;

text-align:center;

color:var(--color-brand);

font-size:10px;

cursor:pointer;

flex-shrink:0;

}

.nav-sub-toggle::before{

content:"▶";

}

.nav-sub-main{

flex:1;

display:block;

padding:10px 0;

color:#374151;

text-decoration:none;

font-size:14px;

font-weight:500;

transition:.25s;

}

.nav-sub-main:hover{

color:var(--color-brand);

}

/* =====================================
THIRD LEVEL
===================================== */

.nav-third{

display:none;

list-style:none;

margin:0;

padding:0;

}

.nav-sub-group.active > .nav-third{

display:block;

}

.nav-third-item{

padding:8px 16px 8px 62px;

font-size:13px;

color:#6b7280;

border-bottom:1px solid #f1f4f8;

cursor:pointer;

transition:.2s;

}

.nav-third-item:hover{

    background:#f1f4f8;

    color:var(--color-brand);
}

/* =====================================
SECOND LEVEL ITEMS WITHOUT CHILDREN
===================================== */

.nav-sub-item a{

display:block;

padding:10px 16px 10px 40px;

color:#374151;

text-decoration:none;

font-size:14px;

font-weight:500;

transition:.25s;

}

.nav-sub-item:hover{

    background:#f1f4f8;
}

.nav-sub-item:hover a{

    color:var(--color-brand);
}

.nav-sub-toggle::before{

    content:"▶";

    display:block;
}

.nav-sub-group.active > .nav-sub-header .nav-sub-toggle::before{

    content:"▼";
}

.nav-sub-main{

    flex:1;

    padding:10px 16px 10px 0;

    color:#374151;

    text-decoration:none;

    transition:.25s;

    font-size:14px;

    font-weight:500;
}

.nav-sub-main:hover{

    background:transparent;

    color:var(--color-brand);
}

/* ACTIVE CATEGORY */

.nav-main.active{

    background:#e8f1ff;
}

.nav-main.active .nav-link{

    color:var(--color-brand);
}

.nav-sub-header.active{

    background:#e8f1ff;
}

.nav-sub-header.active .nav-sub-main{

    color:var(--color-brand);
}

.nav-sub-item.active{

    background:#e8f1ff;
}

.nav-sub-item.active .nav-sub-main{

    color:var(--color-brand);
}

.nav-third-item.active{

    background:#e8f1ff;
    color:var(--color-brand);

}

.nav-third-item.active a{

    color:var(--color-brand);
}

.nav-third-item a{

    display:block;

    color:inherit;

    text-decoration:none;

}

.products-card-link{

    text-decoration:none;

    color:inherit;

    display:block;

}

/* PRODUCT PAGE */

.product-page-card{

    background:#fff;

    border:1px solid var(--color-border);

    border-radius:var(--radius-medium);

    box-shadow:0 3px 12px rgba(0,0,0,.08);

    padding:var(--space-xl);

}

.product-page-top{

    display:grid;

    grid-template-columns:380px 1fr;

    gap:30px;

}

.product-page-left{

    min-height:400px;

    border:1px solid #e5e7eb;

    border-radius:var(--radius-medium);

    display:flex;

    align-items:center;

    justify-content:center;

}

.product-page-right{

    min-height:400px;

}

.product-page-bottom{

    margin-top:30px;

    border-top:1px solid var(--color-border);

    padding-top:25px;

}

/* PRODUCT DETAILS PAGE */

.products-grid.product-mode{

    display:block;

}

.product-details-page{

    width:100%;

}

.product-details-card{

    background:#fff;

    border:1px solid var(--color-border);

    border-radius:var(--radius-medium);

    box-shadow:0 3px 12px rgba(0,0,0,.08);

    padding:var(--space-xl);

}

.product-details-top{

    display:grid;

    grid-template-columns:420px 1fr;

    gap:var(--space-2xl);

}

.product-details-left{

    display:flex;

    flex-direction:column;

}

.product-details-right{

    min-height:450px;

}

.product-details-bottom{

    margin-top:30px;

    padding-top:30px;

    border-top:1px solid var(--color-border);

}

.product-main-image{

    width:110%;
    max-width:none;

    height:auto;

    max-width:none;

    object-fit:contain;

}

.product-features-list{

    margin-top:20px;

    padding-left:20px;

}

.product-features-list li{

    margin-bottom:10px;

    line-height:1.5;

    font-size:15px;

    color:var(--color-brand);

}

.product-features-list{

    margin-top:20px;

    padding-left:22px;

    list-style-type:disc;

}

.product-image-box{

    width:100%;

    border:1px solid #e5e7eb;

    border-radius:var(--radius-medium);

    padding:25px;

    background:#fff;

    min-height:360px;

    display:flex;

    align-items:center;

    justify-content:center;

}

.product-pdf-section{

    margin-top:50px;

}

.product-pdf-title{

    display:inline-block;

    background:var(--color-brand);

    color:#fff;

    padding:8px 14px;

    border-radius:var(--radius-medium);

    margin-bottom:10px;

    font-weight:600;

}

.product-pdf-link:hover{

    background:#e4eefb;

}

.product-spec-title{

    margin-top:30px;

    margin-bottom:15px;

}

.product-spec-table{

    width:100%;

    border-collapse:collapse;

    font-size:14px;

}

.product-spec-table th{

    width:40%;

    background:#f3f3f3;

    padding:8px 12px;

    border:1px solid #d9d9d9;

    text-align:center;

    font-weight:600;

}

.product-spec-table td{

    padding:8px 12px;

    border:1px solid #d9d9d9;

    background:#fff;

}

.product-pdf-link{

    background:#eef4fb;

    border:1px solid #d9e4f2;

    padding:10px 12px;

    margin-bottom:6px;

    display:flex;

    align-items:center;

    gap:8px;

    color:var(--color-brand);

    font-size:14px;

    cursor:pointer;

    transition:.2s;

}

.pdf-icon{

    width:16px;

    height:16px;

    object-fit:contain;

    flex-shrink:0;

}

.product-options{

    display:flex;

    align-items:center;

    gap:20px;

    margin-top:10px;

}

.product-select{

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    width:220px;
    height:50px;

    border:1px solid var(--color-brand);
    border-radius:var(--radius-medium);

    color:var(--color-brand);

    padding-left:14px;
    padding-right:60px;

    font-size:var(--font-md);

    background-color:#ffffff;

    background-image:
        url("assets/icons/dropdown-arrow.svg"),
        linear-gradient(
            to right,
            transparent calc(100% - 50px),
            #eef4fb calc(100% - 50px)
        );

    background-repeat:
        no-repeat,
        no-repeat;

    background-position:
        calc(100% - 20px) center,
        left top;

    background-size:
        12px,
        100% 100%;

}

.product-qty{

    display:flex;

    align-items:center;

    border:1px solid var(--color-brand);

    border-radius:var(--radius-medium);

    overflow:hidden;

}

.product-qty input{

    width:35px;

    height:50px;

    text-align:center;

    border:none;

    font-size:18px;

}

.product-qty button{

    width:40px;

    height:50px;

    border:none;

    background:#eef4fb;

    color:var(--color-brand);

    font-size:20px;

    cursor:pointer;

}

.product-order-btn{

    margin-left:auto;

    width:220px;

    height:50px;

    border:none;

    border-radius:var(--radius-medium);

    background:var(--color-brand);

    color:#fff;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

}

.product-qty input::-webkit-outer-spin-button,
.product-qty input::-webkit-inner-spin-button{

    -webkit-appearance:none;
    margin:0;

}

.product-qty input{

    appearance:textfield;
    -moz-appearance:textfield;

}

.qty-display{

    display:flex;

    align-items:center;

    gap:1x;

    padding:0 8px;

}

.qty-display span{

    color:#1f2937;

    font-size:var(--font-md);

}

/* Responsive product detail template */
.product-details-card{
    container:product-detail / inline-size;
    min-width:0;
    padding:clamp(14px, 2vw, var(--space-xl));
}

.product-details-top{
    grid-template-columns:minmax(220px, .85fr) minmax(0, 1.3fr);
    gap:clamp(20px, 3vw, var(--space-2xl));
}

.product-details-left,
.product-details-right{
    min-width:0;
    min-height:0;
    overflow-wrap:anywhere;
}

.product-main-image{
    display:block;
    width:100%;
    max-width:100%;
}

.product-image-box{
    min-height:0;
    aspect-ratio:1;
}

.product-pdf-section{
    margin-top:24px;
}

.product-spec-table{
    table-layout:fixed;
    overflow-wrap:anywhere;
}

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

.product-select{
    width:100%;
    min-width:0;
}

.product-qty{
    justify-self:start;
}

.product-order-btn{
    grid-column:span 2;
    margin-left:0;
    width:100%;
}

.product-order-btn:hover{
    background:var(--color-brand-hover);
}

.product-order-btn:focus-visible{
    outline:2px solid var(--color-brand-dark);
    outline-offset:3px;
}

@container product-detail (min-width:1000px){
    .product-options{
        grid-template-columns:repeat(3, minmax(0, 1fr)) auto minmax(140px, 1fr);
    }

    .product-order-btn{
        grid-column:auto;
    }
}

@container product-detail (max-width:680px){
    .product-details-top{
        grid-template-columns:minmax(0, 1fr);
    }

    .product-image-box{
        max-width:420px;
        align-self:center;
    }
}

@container product-detail (max-width:480px){
    .product-options{
        grid-template-columns:minmax(0, 1fr);
    }

    .product-order-btn{
        grid-column:auto;
    }

    .product-spec-table th,
    .product-spec-table td{
        padding:8px;
        vertical-align:top;
    }
}

.contacts-card{

    background:#fff;

    border:1px solid var(--color-border);

    border-radius:var(--radius-medium);

    box-shadow:0 3px 12px rgba(0,0,0,.08);

    min-height:800px;

    padding:var(--space-xl);

    margin-bottom:40px;

}

/* =========================
   SMART PRODUCT CARDS
========================= */

/* =========================
   RESPONSIVE STABILIZATION
========================= */

html,
body{

    max-width:100%;

    overflow-x:hidden;

}

.navbar{

    gap:24px;

}

.navbar nav{

    min-width:0;

    flex:0 1 auto;

}

.header-left,
.header-actions{

    flex:0 0 auto;

}

.menu{

    gap:clamp(14px,1.7vw,30px);

}

.header-actions{

    gap:10px;

    padding-left:16px;

}

.products-sidebar{

    transition:none;

}

.products-sidebar-title{

    width:100%;

}

.categories-viewport{

    container-type:inline-size;

}

.categories-wrapper{

    container-type:inline-size;

}

.categories{

    gap:0;

    overflow:visible;

    transition:transform .55s ease;

    will-change:transform;

}

.categories.show-machines{

    transform:translateX(-100%);

}

.categories-page{

    flex:0 0 100%;

    min-width:0;

    display:grid;

    grid-template-columns:
        repeat(
            7,
            minmax(
                var(--category-card-min),
                var(--category-card-max)
            )
        );

    justify-content:space-between;

    gap:clamp(10px,.8vw,16px);

}

.categories-page .card{

    width:100%;

    min-width:0;

    max-width:var(--category-card-max);

    flex:none;

}

.category-extra{

    display:none;

}

.category-card-icon{
    display:none;
}

@container (max-width:1360px){

    .categories-page{

        grid-template-columns:
            repeat(
                4,
                minmax(
                    var(--category-card-min),
                    var(--category-card-max)
                )
            );

        justify-content:space-between;

        align-content:start;

    }

    .categories-page .card{

        max-width:var(--category-card-max);

    }

    .categories-page .card > img{
    display:none;
}

.categories-page .overlay{
    justify-content:flex-start;
    gap:10px;
    padding:0 14px;
}

.categories-page .category-card-icon{
    display:block;
    flex:0 0 44px;
    width:44px;
    height:44px;
    object-fit:contain;
    background:transparent;
    position:static;
    z-index:auto;
}

.categories-page .overlay h3{
    margin:0;
    flex:1 1 0;
    min-width:0;
    overflow-wrap:anywhere;
    text-transform:none;
}

.categories-page .overlay::after{
    margin-left:auto;
    flex:0 0 auto;
}

    .categories-page .overlay{

        height:auto;
        min-height:var(--category-text-height);

        padding:8px 14px;

    }

    .category-extra{

        display:block;

    }

    .cat-arrow{

        height:calc(
            (var(--category-text-height) * 2) +
            clamp(10px,.8vw,16px)
        );

    }

}

@container (max-width:820px){

    .categories-page{

        grid-template-columns:
            repeat(
                2,
                minmax(
                    min(100%, 140px),
                    1fr
                )
            );

        justify-content:stretch;

    }

    .categories-page .card{

        max-width:none;

    }

    .overlay h3{

        font-size:14px;

    }

    .categories-page .category-card-icon{
    flex-basis:38.5px;
    width:38.5px;
    height:38.5px;
}

.categories-page .overlay{
    gap:8px;
    padding:8px 10px;
}

    .cat-arrow{

        height:calc(
            (var(--category-text-height) * 4) +
            (clamp(10px,.8vw,16px) * 3)
        );

    }

}

.header-search input{

    width:clamp(120px,10vw,220px);

}

@media (max-width:1500px){

    .contact-btn{

        padding:0 14px;

        font-size:14px;

    }

}

@media (max-width:1280px){

    .products-section{

        grid-template-columns:
            minmax(240px, var(--sidebar-min))
            minmax(0, 1fr);

    }

    .products-sidebar{

        width:var(--sidebar-min);

        flex-basis:var(--sidebar-min);

    }

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

}

@media (max-width:980px){
    body{
        padding-top:150px;
    }

    .navbar{
        min-height:150px;
        display:flex;
        flex-wrap:wrap;
        justify-content:space-between;
        align-content:center;
        gap:8px 14px;
        padding:8px 18px;
    }

    .header-left{
        order:1;
        width:auto;
        flex-direction:column;
        align-items:flex-start;
        justify-content:center;
        gap:2px;
    }

    .header-divider{
        display:none;
    }

    .logo img{
        height:58px;
    }

    .logo-text{
        align-items:flex-start;
    }

    .logo-title{
        font-size:16px;
        line-height:1;
    }

    .logo-subtitle{
        display:none;
    }

    .header-actions{
        order:2;
        display:flex;
        align-items:center;
        gap:8px;
        padding-left:0;
        border-left:none;
    }

    .header-search{
        width:clamp(120px, 28vw, 190px);
    }

    .header-search input{
        width:100%;
        min-width:0;
        padding:0 10px;
    }

    .header-icon,
    .lang-btn{
        width:42px;
        height:42px;
    }

    .navbar nav{
        order:3;
        width:100%;
        max-width:none;
        flex:0 0 100%;
        overflow:hidden;
    }

    .menu{
        justify-content:center;
        gap:0 16px;
        row-gap:4px;
    }

    .menu a{
        padding:8px 0;
        font-size:14px;
    }

    .page-banner{

        min-height:120px;

    }

    .products-section{

        padding:
            30px
            clamp(20px,4vw,40px)
            60px;

    }

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

    .footer-top{

        grid-template-columns:repeat(2, minmax(0, 1fr));

        gap:32px;

        padding:
            48px
            clamp(20px,4vw,40px);

    }

    .footer-bottom{

        gap:12px;

        flex-wrap:wrap;

    }

}

@media (max-width:780px){

    body{

        padding-top:138px;

    }

    .navbar{

        min-height:138px;

    }

    .products-section{

        grid-template-columns:1fr;

    }

    .products-sidebar{

        display:none;

    }

    .products-grid{

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

    }

}

@media (max-width:520px){

    body{

        padding-top:126px;

    }

    .navbar{

        min-height:126px;

        padding-left:14px;

        padding-right:14px;

    }

    .logo img{

        height:48px;

    }

    .logo-title{

        font-size:16px;

    }

    .logo-subtitle{

        display:none;

    }

    .menu{

        justify-content:flex-start;

        gap:16px;

    }

    .menu a{

        font-size:14px;

    }

    .hero{

        aspect-ratio:16 / 8.8;

    }

    .hero-arrow{

        width:38px;

        height:54px;

        font-size:28px;

    }

    .hero-dots{

        bottom:14px;

        gap:8px;

    }

    .hero-dot{

        width:10px;

        height:10px;

    }

    .categories-wrapper{

        gap:10px;

        padding:0 14px;

    }

    .cat-arrow{

        width:44px;

    }

    .products-card{

        max-width:none;

    }

    .footer{

        margin-top:50px;

    }

    .footer-top{

        grid-template-columns:1fr;

        gap:28px;

        padding:40px 20px;

    }

    .footer-column h4{

        margin-bottom:14px;

        font-size:19px;

    }

    .footer-bottom{

        flex-direction:column;

        align-items:flex-start;

        padding:18px 20px;

    }

}

.news-toggle{

    margin-top:12px;

    align-self:flex-start;

    padding:10px 18px;

    background:#eef2f6;

    color:#4b5563;

    border:1px solid #d6dde6;

    border-radius:3px;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.news-toggle:hover{

    background:var(--color-brand);

    border-color:var(--color-brand);

    color:#ffffff;

}

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

    .about-column{
        width:100%;
    }

    .news-content{
        grid-template-columns:1fr;
        grid-template-areas:
            "date"
            "title"
            "image"
            "text"
            "button";
    }

    .news-image{
        justify-self:center;
        max-width:420px;
        margin:4px auto 8px;
    }
}

.news-image,
.side-image{
    cursor:pointer;
}

/* ========================================
   HEADER — NEW RESPONSIVE SYSTEM
======================================== */

@media (min-width: 781px) {
    body {
        padding-top: 110px !important;
    }

    .navbar .menu-btn {
        display: none !important;
    }

    .header-actions {
        justify-self: end;
        margin-left: auto;
    }

    .navbar {
        height: 110px;
        min-height: 110px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand navigation actions";
        align-items: center;
        gap: clamp(16px, 2vw, 34px);
        padding: 0 clamp(18px, 2.4vw, 42px);
        overflow: visible;
    }

    .header-left {
        grid-area: brand;
        min-width: 0;
        gap: clamp(10px, 1.1vw, 18px);
    }

    .logo img {
        width: auto;
        height: clamp(56px, 4.5vw, 68px);
    }

    .header-divider {
        height: 58px;
        margin: 0 0 0 clamp(6px, 1vw, 18px);
    }

    .navbar > nav.desktop-nav,
    .navbar > nav.compact-nav {
        grid-area: navigation !important;
        justify-self: center;
        min-width: 0;
        max-width: none;
        overflow: visible !important;
    }

    .navbar > nav.desktop-nav {
        display: block;
    }

    .navbar > nav.compact-nav {
        display: none;
    }

    /* Режим 1: малки икони, по-голям текст */
    .desktop-nav .menu {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: clamp(18px, 2.1vw, 38px);
        overflow: visible;
    }

    .desktop-nav .menu > li {
        position: relative;
    }

    .desktop-nav .menu > li > a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 0;
        color: var(--text-dark);
        font-size: clamp(15px, 1vw, 17px);
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
    }

    .desktop-nav .menu > li > a > img,
    .desktop-nav .menu > li > a > svg.themeable-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    }

    .desktop-nav .menu > li > a.active::after {
        bottom: -4px;
    }

    /* Dropdown-ите остават видими извън header-а */
    .desktop-nav .dropdown,
    .desktop-nav .dropdown-menu,
    .desktop-nav .dropdown-submenu {
        overflow: visible !important;
    }

    .header-actions {
        grid-area: actions;
        position: relative;
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(6px, .7vw, 10px);
        padding-left: clamp(14px, 1.6vw, 24px);
        border-left: 0;
    }

    .header-actions::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 1px;
        height: 58px;
        transform: translateY(-50%);
        background: #d9e0e8;
    }

    .header-search {
        display: flex !important;
        width: auto;
        height: 44px;
    }

    .header-search input {
        width: clamp(130px, 12vw, 220px);
        min-width: 0;
    }

    .search-btn {
        width: 52px;
    }

    .search-btn img {
        width: 28px;
        height: 28px;
    }

    .header-icon,
    .lang-btn {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .header-icon img {
        width: 28px;
        height: 28px;
    }
}

/* Режим 2: същото меню като режим 1, но с големи икони и малък текст */
@media (min-width: 781px) and (max-width: 1319px) {
    body {
        padding-top: 104px !important;
    }

    .navbar {
        height: 104px;
        min-height: 104px;
        grid-template-columns: clamp(115px, 16vw, 180px) minmax(0, 1fr) auto;
        gap: clamp(10px, 1.3vw, 18px);
        padding-left: clamp(16px, 2vw, 30px);
        padding-right: clamp(16px, 2vw, 30px);
    }

    .logo-text,
    .header-divider,
    .navbar > nav.compact-nav {
        display: none;
    }

    .logo img {
        height: clamp(52px, 5vw, 64px);
    }

    /* Същото реално меню с dropdown-и от режим 1 */
    .navbar > nav.desktop-nav {
        position: relative;
        display: block;
        justify-self: stretch;
        min-width: 0;
        margin-left: clamp(30px, 2.3vw, 36px);
        padding-left: clamp(10px, 2vw, 34px);
        padding-right: clamp(10px, 2.8vw, 46px);
        border-left: 1px solid #d9e0e8;
        overflow: visible !important;
    }

    /* Групата остава центрирана; свива се само свободното място около нея */
    .desktop-nav .menu {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: clamp(0px, .45vw, 12px);
        overflow: visible;
    }

    .desktop-nav .menu > li {
        flex: 0 0 auto;
    }

    .desktop-nav .menu > li > a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 66px;
        padding: 4px 0 8px;
        color: var(--text-dark);
        font-size: clamp(9px, .8vw, 12px);
        font-weight: 700;
        line-height: 1.05;
        white-space: nowrap;
    }

    /* По-големи икони; текстът остава вторичен */
    .desktop-nav .menu > li > a > img,
    .desktop-nav .menu > li > a > svg.themeable-icon {
        width: clamp(42px, 3.5vw, 52px);
        height: clamp(42px, 3.5vw, 52px);
        object-fit: contain;
    }

    .desktop-nav .menu > li > a.active::after {
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
    }

    /* Dropdown-ите от режим 1 са видими и в режим 2 */
    .desktop-nav .dropdown,
    .desktop-nav .dropdown-menu,
    .desktop-nav .dropdown-submenu {
        overflow: visible !important;
    }

    /* Десният divider остава пред search/actions */
    .header-actions {
        gap: clamp(5px, .65vw, 9px);
        padding-left: clamp(12px, 1.4vw, 20px);
    }

    .header-actions::before {
        display: block;
    }

    .header-search input {
        width: clamp(70px, 10vw, 150px);
    }

    .header-icon,
    .lang-btn {
        width: clamp(36px, 3.3vw, 44px);
        height: clamp(36px, 3.3vw, 44px);
        flex-basis: clamp(36px, 3.3vw, 44px);
    }

    .search-btn {
        width: clamp(42px, 3.8vw, 52px);
    }

    .header-icon img {
        width: clamp(23px, 2vw, 28px);
        height: clamp(23px, 2vw, 28px);
    }

    /* Връща dropdown-ите в режим 2 */

    /* Dropdown размерите се свиват плавно в целия режим 2 */

    /* По подразбиране подменютата отварят надясно. */

/* Само при най-десния главен раздел подменюто отваря наляво. */

    /* Първото ниво стои центрирано под съответната категория. */

}

/* ========================================
   HEADER — PHONE MODE
======================================== */

.mobile-menu-overlay,
.mobile-drawer {
    display: none;
}

@media (max-width: 780px) {
    body {
        padding-top: 76px !important;
    }

    body.drawer-open {
        overflow: hidden;
    }

    .navbar {
        height: 76px !important;
        min-height: 76px !important;
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "brand actions";
        align-items: center;
        gap: 12px;
        padding: 0 14px !important;
    }

    .header-left {
        grid-area: brand;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .logo img {
        height: clamp(40px, 11vw, 50px) !important;
    }

    .logo-text,
    .header-divider,
    .navbar > nav.desktop-nav,
    .navbar > nav.compact-nav {
        display: none !important;
    }

    .header-actions {
        grid-area: actions;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        min-width: 0;
        padding: 0 !important;
        gap: 8px;
    }

    .header-actions::before {
        display: none;
    }

    .navbar .header-search {
        display: flex !important;
        flex: 1 1 auto;
        min-width: 0;
        height: 42px;
    }

    .navbar .header-search input {
        width: 100% !important;
        min-width: 0;
        padding: 0 11px;
        font-size: 14px;
    }

    .navbar .search-btn {
        width: 42px;
        flex: 0 0 42px;
    }

    .navbar .search-btn img {
        width: 24px;
        height: 24px;
    }

    .navbar .cart-btn {
        display: none !important;
    }

    .navbar .header-actions > .language-switcher {
        display: flex !important;
        flex: 0 0 38px;
    }

    .navbar .language-switcher .lang-btn {
        width: 38px;
        height: 42px;
    }

    .navbar .menu-btn {
        display: flex;
        flex: 0 0 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .menu-btn span {
        display: block;
        width: 23px;
        height: 3px;
        border-radius: 2px;
        background: var(--text-dark);
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 76px 0 0;
        z-index: 10000;
        display: block;
        background: rgba(0, 0, 0, .54);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
    }

    .mobile-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .mobile-drawer {
        position: fixed;
        top: 76px;
        right: 0;
        z-index: 10001;
        display: block;
        width: 100%;
        max-width: none;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        overflow-y: auto;
        background: #fff;
        box-shadow: none;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        border-top: 1px solid #d5d9de;
        transition: transform .32s ease, visibility 0s linear .32s;
    }

    .mobile-drawer.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0s;
    }

    .menu-btn span{
        transition: transform .2s ease, opacity .2s ease;
    }

    .menu-btn[aria-expanded="true"] span:nth-child(1){
        transform:translateY(8px) rotate(45deg);
    }

    .menu-btn[aria-expanded="true"] span:nth-child(2){
        opacity:0;
    }

    .menu-btn[aria-expanded="true"] span:nth-child(3){
        transform:translateY(-8px) rotate(-45deg);
    }

    .drawer-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 76px;
        padding: 12px 16px;
        border-bottom: 1px solid #e5eaf0;
    }

    .drawer-logo img {
        display: block;
        width: auto;
        height: 42px;
    }

    .drawer-close {
        width: 40px;
        height: 40px;
        border: 1px solid #dbe3eb;
        border-radius: 4px;
        background: #fff;
        color: var(--text-dark);
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
    }

    .drawer-content {
        position: relative;
        padding: 10px 16px 30px;
    }

    .drawer-primary-nav {
        display: grid;
        padding-right: 54px;
    }

    .drawer-primary-link {
        display: flex;
        align-items: center;
        gap: 13px;
        min-height: 60px;
        color: var(--text-dark);
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }

    .drawer-primary-link img,
    .drawer-primary-link > svg.themeable-icon {
        width: 44.2px;
        height: 44.2px;
        flex: 0 0 44.2px;
        object-fit: contain;
    }

    .drawer-utilities {
        position: absolute;
        top: 16px;
        right: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .drawer-utilities .lang-btn,
    .drawer-utilities .cart-btn {
        display: flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
    }

    .drawer-divider {
        height: 1px;
        margin: 12px 0 22px;
        background: #e5eaf0;
    }

    .drawer-categories-title {
        margin: 0 0 12px;
        color: #6e7784;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .drawer-categories {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
    }

    .drawer-category {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 70px;
        padding: 7px 0;
        border-bottom: 1px solid #e5eaf0;
        color: var(--text-dark);
        font-size: clamp(12px, 2.3vw, 15px);
        font-weight: 700;
        line-height: 1.16;
        text-decoration: none;
    }

    .drawer-category img,
    .drawer-category > svg.themeable-icon {
        width: 40.3px;
        height: 40.3px;
        flex: 0 0 40.3px;
        object-fit: contain;
    }
}

/* PRODUCT FEATURES – PANEL ABOVE FOOTER */

.products-features{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:0;
    margin:0 0 32px;
    overflow:hidden;
    background:#fff;
    border:1px solid var(--color-border);
    border-radius:14px;
    box-shadow:0 4px 12px rgba(0, 0, 0, .06);
}

.products-feature{
    display:flex;
    align-items:center;
    gap:18px;
    min-width:0;
    min-height:160px;
    padding:clamp(18px, 1.8vw, 26px) clamp(14px, 2vw, 34px);
    background:#fff;
    border:0;
    border-right:1px solid var(--color-border);
    border-radius:0;
    box-shadow:none;
}

.products-feature:last-child{
    border-right:0;
}

.products-feature-icon{
    flex:0 0 68px;
    width:68px;
    height:68px;
    padding:14px;
    object-fit:contain;
    background:#f2f5f9;
    border-radius:50%;
}

.products-feature-content{
    min-width:0;
}

.products-feature h4{
    margin:0 0 8px;
    color:var(--color-text);
    font-size:clamp(14px, 1.2vw, 20px);
    line-height:1.3;
}

.products-feature p{
    margin:0;
    color:var(--color-text);
    font-size:clamp(13px, 1vw, 16px);
    line-height:1.55;
}

/* 2 реда по 2 при по-малка ширина */
@media (max-width:1000px){

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

    .products-feature{
        min-height:145px;
    }

    .products-feature:nth-child(2){
        border-right:0;
    }

    .products-feature:nth-child(-n+2){
        border-bottom:1px solid var(--color-border);
    }
}

@media (max-width:560px){

    .products-features{
        margin-bottom:20px;
    }

    .products-feature{
        gap:12px;
        min-height:120px;
        padding:18px 14px;
    }

    .products-feature-icon{
        flex-basis:48px;
        width:48px;
        height:48px;
        padding:10px;
    }

    .products-feature p{
        line-height:1.4;
    }
}

@media (max-width:780px){
    .products-feature{
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:12px;
        padding:20px 14px;
    }

    .products-feature-icon{
        flex:0 0 48px;
        width:48px;
        height:48px;
        padding:10px;
    }
}

.products-features{
    width:100%;
}

/* ========================================
   FESTO-INSPIRED VISUAL SYSTEM
======================================== */

/* Shared type inheritance, including controls and generated content. */
*,
*::before,
*::after{
    font-family:inherit;
    border-radius:0 !important;
}

body{
    background:var(--color-canvas);
    color:var(--color-text);
    font-family:var(--font-body);
    font-size:16px;
    font-weight:400;
    line-height:1.625;
}

body:is([data-page="home"], [data-page="products"], [data-page="machines"], [data-page="partners"], [data-page="contacts"]){
    background:#fff;
}

body:is([data-page="products"], [data-page="machines"], [data-page="partners"]) :is(.card, .products-card, .product-page-card, .product-details-card){
    box-shadow:none;
}

body[data-page="contacts"] :is(.contact-layout, .contacts-card, .products-features, .products-feature){
    box-shadow:none;
}

/* Home introduction and section headings */
body[data-page="home"] .info-section{
    grid-template-columns:minmax(0, 1fr);
    gap:56px;
    padding-bottom:40px;
}

body[data-page="home"] .footer-master{
    margin-top:40px;
}

body[data-page="home"] .section-header{
    margin-bottom:26px;
}

body[data-page="home"] .section-header h2,
body:is([data-page="products"], [data-page="machines"], [data-page="partners"]) .products-heading,
body[data-page="contacts"] .contact-layout h2{
    padding-bottom:10px;
    border-bottom:0;
}

body[data-page="home"] .section-header h2::after,
body:is([data-page="products"], [data-page="machines"], [data-page="partners"]) .products-heading::after,
body[data-page="contacts"] .contact-layout h2::after{
    content:"";
    display:block;
    width:64px;
    height:3px;
    margin-top:8px;
    background:var(--color-brand);
}

.home-partners{
    min-width:0;
}

.home-partners-viewport{
    --partner-columns:6;
    --partner-gap:24px;
    display:grid;
    grid-template-rows:repeat(3, 112px);
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - (var(--partner-columns) - 1) * var(--partner-gap)) / var(--partner-columns));
    gap:24px var(--partner-gap);
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    padding:4px;
}

.home-partners-viewport::-webkit-scrollbar{
    display:none;
}

.home-partner{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    padding:12px;
    background:#fff;
}

.home-partner img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    transform:scale(1.75);
    transform-origin:center;
}

.home-partner:focus-visible{
    outline:2px solid var(--color-brand);
    outline-offset:1px;
}

@media (max-width:1100px){
    .home-partners-viewport{
        --partner-columns:4;
        --partner-gap:20px;
    }
}

@media (max-width:780px){
    .home-partners-viewport{
        --partner-columns:3;
        --partner-gap:16px;
        grid-template-rows:repeat(3, 96px);
    }

    .home-partner img{
        transform:scale(1.3);
    }
}

@media (max-width:480px){
    .home-partners-viewport{
        --partner-columns:2;
    }
}

.home-news{
    min-width:0;
}

.home-news-band{
    padding:28px 0 8px;
    background:#f5f7fa;
    box-shadow:0 0 0 100vmax #f5f7fa;
    clip-path:inset(0 -100vmax);
}

.home-news-viewport{
    --news-columns:4;
    --news-gap:28px;
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:calc((100% - (var(--news-columns) - 1) * var(--news-gap)) / var(--news-columns));
    gap:var(--news-gap);
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    padding:4px;
}

.home-news-viewport::-webkit-scrollbar{
    display:none;
}

.home-news-card{
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
}

.home-news-card .home-news-image{
    display:block;
    width:100%;
    min-width:0;
    max-width:none;
    height:auto;
    aspect-ratio:1.2;
    object-fit:contain;
    margin:0;
    background:#fff;
}

.home-news-toggle{
    margin:0;
    box-shadow:none;
    max-width:100%;
}

.home-news-navigation{
    display:flex;
    align-items:center;
    gap:16px;
    width:min(100%, 1040px);
    margin:36px auto 0;
}

.home-news-navigation button{
    flex:0 0 44px;
    height:44px;
    padding:0;
    background:transparent;
    border:0;
    color:var(--color-brand);
    font-size:32px;
    cursor:pointer;
}

.home-news-navigation button:disabled{
    opacity:.35;
    cursor:default;
}

.home-news-scroll{
    --news-thumb-width:40%;
    flex:1;
    min-width:0;
    height:6px;
    appearance:none;
    -webkit-appearance:none;
    background:#d9e0e3;
    cursor:pointer;
}

.home-news-scroll::-webkit-slider-thumb{
    appearance:none;
    -webkit-appearance:none;
    width:var(--news-thumb-width);
    height:6px;
    background:var(--color-brand);
}

.home-news-scroll::-moz-range-thumb{
    width:var(--news-thumb-width);
    height:6px;
    border:0;
    background:var(--color-brand);
}

.home-news-details{
    padding:28px 0 0;
    line-height:1.65;
}

.home-news-details h3{
    margin-bottom:16px;
    font-size:var(--font-lg);
}

.home-news-details p{
    margin-bottom:14px;
}

@media (max-width:1100px){
    .home-news-viewport{
        --news-columns:3;
        --news-gap:20px;
    }
}

@media (max-width:780px){
    .home-news-viewport{
        --news-columns:2;
        --news-gap:16px;
    }

    .home-news-toggle{
        padding:10px 8px;
        font-size:13px;
    }
}

@media (max-width:560px){
    .home-news-viewport{
        --news-columns:1;
    }
}

.home-video-player{
    position:relative;
    aspect-ratio:16 / 9;
    overflow:hidden;
    border-radius:12px !important;
    background:#111;
}

.home-video-preview,
.home-video-player iframe{
    display:block;
    width:100%;
    height:100%;
    position:absolute;
    inset:0;
    border:0;
}

.home-video-preview{
    padding:0;
    cursor:pointer;
    background:#111;
}

.home-video-preview[hidden]{
    display:none;
}

.home-video-poster{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.home-video-play{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    display:grid;
    place-items:center;
    width:clamp(64px, 9vw, 150px);
    aspect-ratio:1;
    border-radius:50% !important;
    background:#fff;
    color:var(--color-brand);
}

.home-video-play svg{
    width:32%;
    height:38%;
    margin-left:7%;
}

.home-video-dots{
    display:flex;
    justify-content:center;
    gap:2px;
    margin-top:12px;
}

.home-video-dot{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
}

.home-video-dot::before{
    content:"";
    width:12px;
    height:12px;
    border-radius:50% !important;
    background:var(--color-border);
}

.home-video-dot[aria-pressed="true"]::before{
    background:var(--color-brand);
}

.home-video-preview:focus-visible{
    outline:3px solid var(--color-brand);
    outline-offset:-4px;
}

.home-video-dot:focus-visible{
    outline:2px solid var(--color-brand);
    outline-offset:-4px;
}

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

.home-process-image{
    display:block;
    width:100%;
    aspect-ratio:16 / 9;
    object-fit:cover;
    cursor:default;
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag:none;
    -webkit-touch-callout:none;
}

.home-process-item h3{
    margin:18px 0 12px;
    font-size:var(--font-lg);
    font-weight:600;
}

.home-process-item p{
    margin:0;
    font-size:var(--font-md);
    line-height:1.4;
    color:var(--color-text-muted);
}

@media (max-width:1100px){
    .home-process-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        row-gap:32px;
    }
}

@media (max-width:560px){
    .home-process-grid{
        grid-template-columns:minmax(0, 1fr);
    }
}

.home-about-layout{
    display:grid;
    grid-template-columns:minmax(0, 65fr) minmax(0, 35fr);
    gap:clamp(32px, 4vw, 72px);
    align-items:start;
}

.home-about-copy{
    min-width:0;
    max-width:960px;
    font-size:var(--font-md);
    line-height:1.625;
}

.home-about-copy h3{
    margin:32px 0 16px;
    font-size:var(--font-lg);
    font-weight:600;
}

.home-about-copy h3:first-child{
    margin-top:0;
}

.home-about-copy p{
    margin:0 0 16px;
}

.home-about-history{
    list-style:none;
    margin:0;
    padding-left:0;
}

.home-about-history li{
    padding-left:0;
    margin-bottom:16px;
}

.history-year{
    color:var(--color-brand);
    font-weight:600;
}

.home-about-certificate{
    width:100%;
    max-width:540px;
    justify-self:center;
}

@media (max-width:780px){
    .home-about-layout{
        grid-template-columns:minmax(0, 1fr);
    }

    .home-about-certificate{
        justify-self:center;
    }
}

h1, h2, h3, h4, h5, h6{
    font-family:var(--font-body);
    color:var(--color-heading);
    font-weight:600;
    line-height:1.35;
    letter-spacing:-0.01em;
}

/* По-малко MASTER лого и Festo-подобен cyan */
.logo img{
    filter:brightness(0) saturate(100%) invert(51%) sepia(89%)
           saturate(1787%) hue-rotate(165deg)
           brightness(99%) contrast(101%);
}

@media (min-width:1320px){
    .logo img{
        height:clamp(46px, 3.6vw, 56px);
    }
}

@media (min-width:781px) and (max-width:1319px){
    .logo img{
        height:clamp(44px, 4vw, 54px);
    }
}

@media (max-width:780px){
    .logo img{
        height:clamp(38px, 10vw, 46px) !important;
    }
}

/* ========================================
   CATEGORY PAGE SWITCH
======================================== */

.categories-wrapper{
    display:block;
    position:relative;
}

.categories-viewport{
    width:100%;
    min-width:0;
    margin-right:0;
    padding-bottom:10px;
}

/* Централният switch под картите */
.category-switch{
    display:grid;
    grid-template-columns:40px minmax(180px, 1fr) 40px;
    align-items:center;
    gap:18px;

    width:min(100%, 1040px);
    height:42px;
    margin:0 auto 22px;
    padding:0;

    color:var(--color-brand);
    background:transparent;
    border:0;
    cursor:pointer;
}

.category-switch-arrow{
    font-size:34px;
    font-weight:400;
    line-height:1;
}

/* Сивата част на слайда */
.category-switch-track{
    display:block;
    height:6px;
    overflow:hidden;
    background:var(--color-border);
}

/* Cyan половината показва активната група */
.category-switch-progress{
    display:block;
    width:50%;
    height:100%;
    background:var(--color-brand);
    transform:translateX(0);
    transition:transform .4s ease;
}

/* При Производство синята половина се измества надясно */
.category-switch.is-machines .category-switch-progress{
    transform:translateX(100%);
}

.category-switch:hover .category-switch-progress{
    background:var(--color-brand-hover);
}

@media (max-width:560px){

    .category-switch{
        grid-template-columns:30px minmax(120px, 1fr) 30px;
        gap:10px;
        width:calc(100% - 28px);
        margin-bottom:16px;
    }

    .category-switch-arrow{
        font-size:28px;
    }
}

/* FOOTER — MASTER */
.footer-master {
    margin-top: 80px;
    background: var(--color-brand-dark);
    color: #fff;
}

.footer-master .footer-top {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1.2fr 0.95fr;
    gap: clamp(32px, 5vw, 96px);
    max-width: 1920px;
    margin: 0 auto;
    padding: 58px clamp(28px, 4vw, 82px) 46px;
}

.footer-master .footer-logo {
    display: block;
    width: 215px;
    max-width: 100%;
    margin: 0 0 16px;
    filter: brightness(0) invert(1);
}

.footer-description {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.footer-master h4 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
}

.footer-master h4 a {
    color: inherit;
    text-decoration: none;
}

.footer-master h4 a:hover {
    text-decoration: underline;
}

.footer-links,
.footer-subscribe {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact {
    display: grid;
    gap: 14px;
    margin: 0;
    font-style: normal;
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.footer-contact img {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin: 0 0 30px;
}

.footer-socials a {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-socials img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-socials a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.footer-subscribe p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 17px;
    line-height: 1.5;
}

.footer-master .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 38px clamp(28px, 4vw, 82px);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    font-weight: 500;
}

.footer-certifications {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-certifications img {
    width: auto;
    height: 68px;
    max-width: 130px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (max-width: 1000px) {
    .footer-master .footer-top {
        grid-template-columns: 1.3fr 1fr;
    }

    .footer-subscribe {
        grid-column: 1 / -1;
        max-width: 420px;
    }

    .footer-socials {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .footer-master .footer-links {
        display: none;
    }

    .footer-master .footer-top {
        grid-template-columns: 1fr;
        padding-block: 42px 34px;
    }

    .footer-subscribe {
        grid-column: auto;
    }

    .footer-master .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 28px;
    }

    .footer-certifications {
        gap: 18px;
    }

    .footer-certifications img {
        height: 48px;
        max-width: 92px;
    }

    .footer-socials a {
        width: 58px;
        height: 58px;
    }

    .footer-socials img {
        width: 34px;
        height: 34px;
    }
}

/* SVG icon colour states. The SVG strokes remain exactly as authored. */
.themeable-icon{
    color:#898989;
}

.desktop-nav .menu > li > a.active > .themeable-icon,
.compact-nav-link.active > .themeable-icon{
    color:var(--primary-blue);
}

@media (hover:hover){
    .categories-page .card:hover .category-card-icon,
    .drawer-primary-link:hover > .themeable-icon,
    .drawer-category:hover > .themeable-icon{
        color:var(--primary-blue);
    }
}

/* ========================================
   CONTACTS PAGE
======================================== */
.contact-page-banner{
    display:flex;
    align-items:center;
    min-height:220px;
    background-position:left center;
}

.contact-page-content{
    padding:0 clamp(9px, 1.5vw, 26px) 24px;
}

.contact-layout{
    display:grid;
    grid-template-columns:minmax(230px, .9fr) minmax(420px, 1.65fr) minmax(300px, 1.05fr);
    background:#fff;
    border:0;
    box-shadow:0 4px 16px rgba(0, 0, 0, .07);
}

.contact-info-panel,
.contact-form-panel,
.contact-map-panel{
    min-width:0;
    padding:34px clamp(22px, 2.3vw, 42px) 38px;
}

.contact-form-panel,
.contact-map-panel{
    border-left:1px solid #edf0f3;
}

.contact-layout h2{
    margin:0 0 24px;
    color:var(--color-text);
    font-size:clamp(21px, 1.5vw, 27px);
}

.contact-detail{
    display:flex;
    align-items:flex-start;
    gap:16px;
    margin-bottom:24px;
}

.contact-detail > .contact-svg-icon,
.contact-detail-symbol{
    flex:0 0 38px;
    width:38px;
    height:38px;
    object-fit:contain;
}

.contact-svg-icon{
    display:inline-block;
    color:var(--color-brand);
    background-color:currentColor;
    -webkit-mask:var(--contact-icon) center / contain no-repeat;
    mask:var(--contact-icon) center / contain no-repeat;
}

.contact-socials .contact-svg-icon{
    color:inherit;
}

.contact-detail-symbol{
    display:grid;
    place-items:center;
    border:2px solid var(--color-brand);
    border-radius:50%;
    color:var(--color-brand);
    font-size:28px;
    line-height:1;
}

.contact-detail h3{
    margin:0 0 4px;
    font-size:16px;
}

.contact-detail p{
    margin:0;
    color:var(--color-text-muted);
    font-size:15px;
    line-height:1.5;
}

.contact-detail a{
    color:inherit;
    text-decoration:none;
}

.contact-detail a:hover{
    color:var(--color-brand);
    text-decoration:underline;
}

.contact-form{
    display:grid;
    gap:14px;
}

.contact-form-row{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
}

.contact-form label:not(.contact-consent){
    display:block;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea{
    width:100%;
    border:1px solid #cfd8e2;
    border-radius:2px;
    background:#fff;
    color:var(--color-text);
    font:inherit;
    font-size:15px;
    outline:none;
    transition:border-color .2s, box-shadow .2s;
}

.contact-form input:not([type="checkbox"]){
    height:48px;
    padding:0 16px;
}

.contact-form textarea{
    min-height:150px;
    padding:14px 16px;
    resize:vertical;
}

.contact-form input:focus,
.contact-form textarea:focus{
    border-color:var(--color-brand);
    box-shadow:0 0 0 3px rgba(var(--color-brand-rgb), .12);
}

.contact-consent{
    display:flex;
    align-items:flex-start;
    gap:9px;
    color:var(--color-text-muted);
    font-size:13px;
    line-height:1.4;
}

.contact-consent input{
    margin-top:2px;
    accent-color:var(--color-brand);
}

.contact-submit{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:min(100%, 360px);
    height:50px;
    padding:0 24px;
    border:0;
    background:var(--color-brand);
    color:#fff;
    font-weight:700;
    cursor:pointer;
    transition:background .2s;
}

.contact-submit:hover{
    background:var(--color-brand-dark);
}

.contact-map-panel iframe{
    display:block;
    width:100%;
    max-width:100%;
    border:0;
    height:clamp(280px, 26vw, 450px);
}

.contact-social-title{
    margin-top:26px !important;
    margin-bottom:14px !important;
}

.contact-socials{
    display:flex;
    gap:14px;
}

.contact-socials a{
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    border:0;
    background:transparent;
    color:var(--color-brand);
    transition:color .2s;
}

.contact-socials .contact-svg-icon{
    width:27px;
    height:27px;
    object-fit:contain;
}

.contact-socials a:hover{
    color:var(--color-brand-hover);
}

.contact-page-content > .products-features{
    margin-top:18px;
}

.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;
}

@media (max-width:1180px){
    .contact-layout{
        grid-template-columns:minmax(230px, .8fr) minmax(420px, 1.5fr);
    }

    .contact-map-panel{
        grid-column:1 / -1;
        border-top:1px solid #edf0f3;
        border-left:0;
    }
}

@media (max-width:780px){
    :root{
        --page-padding-min:20px;
        --page-padding-max:60px;
    }

    .contact-page-content{
        padding-inline:clamp(18px, 3vw, 52px);
    }

    .contact-page-banner{
        min-height:150px;
    }

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

    .contact-form-panel,
    .contact-map-panel{
        grid-column:auto;
        border-top:1px solid #edf0f3;
        border-left:0;
    }
}

@media (max-width:520px){
    .contact-page-content{
        padding-inline:14px;
    }

    .contact-info-panel,
    .contact-form-panel,
    .contact-map-panel{
        padding:26px 18px 30px;
    }

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

/* Site-wide editorial typography, shared by static and catalog pages. */
body strong, body b{
    font-weight:600;
}

body :is(.section-header h2, .products-heading){
    font-size:clamp(26px, 2vw, 28px);
    font-weight:700;
    color:var(--color-heading);
    line-height:1.35;
}

body :is(.home-about-copy, .home-process-item, .home-news-details,
    .products-card, .product-page-card, .product-details-right,
    .contact-detail) p{
    max-width:960px;
    font-size:16px;
    font-weight:400;
    line-height:1.625;
    color:var(--color-text);
}

body :is(.home-news-details, .product-details-right) p + p{
    margin-top:16px;
}

body :is(.overlay, .products-card, .product-page-card) h3{
    font-weight:600;
    line-height:1.4;
    overflow-wrap:break-word;
}

body :is(.home-process-item, .home-news-details, .product-details-right, .contact-detail) h3{
    font-size:18px;
    font-weight:600;
    color:var(--color-heading);
}

body .contact-form :is(input:not([type="checkbox"]), textarea){
    font-size:16px;
}

.footer-master .footer-description,
.footer-master .footer-links a,
.footer-master .footer-contact a{
    font-size:16px;
    font-weight:400;
    line-height:1.625;
}

.footer-master h4{
    font-size:18px;
    font-weight:600;
}

/* Equal catalog cards across every row, with two-line text slots. */
.products-grid:not(.product-mode){
    grid-auto-rows:1fr;
    align-items:stretch;
}

.products-grid > .products-card-link{
    display:flex;
    min-width:0;
    height:100%;
}

.products-grid .products-card{
    height:100%;
    max-width:none;
}

.products-card .products-card-body{
    flex:1;
}

body .products-card .products-card-body h3{
    line-height:1.4;
    height:2.8em;
    min-height:2.8em;
    flex:none;
    -webkit-line-clamp:2;
}

body .products-card .products-card-body p{
    font-family:var(--font-body);
    font-size:clamp(13px, .9vw, 15px);
    font-weight:400;
    color:var(--color-text-muted);
    line-height:1.5;
    height:3em;
    min-height:3em;
    flex:none;
    -webkit-line-clamp:2;
}

/* HEADER — две ленти */
.header-topbar {
    display: none;
}

@media (min-width: 781px) {
    .navbar {
        --header-side: clamp(18px, 4.1vw, 84px);
        height: 110px;
        min-height: 110px;
        padding: 0 var(--header-side);
        grid-template-columns: auto minmax(0, 1fr) clamp(135px, 13.5vw, 274.5px);
        grid-template-rows: 40px 70px;
        grid-template-areas:
            "topbar topbar topbar"
            "brand navigation actions";
        column-gap: clamp(18px, 2.5vw, 52px);
        row-gap: 0;
        background: #fff;
    }

    .navbar .header-topbar {
        grid-area: topbar;
        display: flex;
        align-items: center;
        justify-content: space-between;
        align-self: stretch;
        gap: 16px;
        margin: 0 calc(-1 * var(--header-side));
        padding: 0 var(--header-side);
        background: #f2f5f8;
        color: #43536a;
    }

    .header-slogan {
        margin: 0;
        font-size: clamp(9px, .65vw, 12px);
        font-weight: 600;
        line-height: 1.25;
        color: #8491a2;
    }

    .header-toplinks {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .navbar .header-topitem {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 24px;
        padding: 0 clamp(10px, 1.5vw, 30px);
        border: 0;
        border-left: 1px solid #b9c4d1;
        border-radius: 0;
        background: transparent;
        color: #43536a;
        font: inherit;
        font-size: clamp(11px, .8vw, 15px);
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    .navbar .header-topitem:first-child {
        border-left: 0;
        padding-left: 0;
    }

    .navbar .header-topitem:last-child {
        padding-right: 0;
    }

    .navbar .header-topitem img {
        display: block;
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .header-language-arrow {
        width: 7px;
        height: 7px;
        margin: -4px 0 0 2px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
    }

    .navbar .header-left {
        gap: 12px;
        align-items: flex-end;
        margin: 0;
    }

    .navbar .logo img {
        width: auto;
        height: clamp(32.4px, 2.34vw, 45px);
    }

    .navbar .logo-text {
        display: flex;
        align-self: flex-end;
        padding-bottom: 1px;
    }

    .navbar .logo-title {
        font-size: clamp(8.775px, .77625vw, 14.85px);
        line-height: 1;
        font-weight: 700;
        white-space: nowrap;
    }

    .navbar .header-divider,
    .navbar .header-actions::before,
    .navbar .header-actions > .cart-btn,
    .navbar .header-actions > .language-switcher {
        display: none;
    }

    .navbar > nav.desktop-nav {
        display: block;
        justify-self: stretch;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .navbar .desktop-nav > .menu {
        justify-content: space-evenly;
        gap: clamp(12px, 2vw, 40px);
        margin: 0;
        padding: 0;
    }

    .navbar .desktop-nav > .menu > li > a,
    .navbar .compact-nav > a {
        flex-direction: row;
        min-width: 0;
        gap: 0;
        padding: 12px 0;
        font-size: clamp(12.6px, .945vw, 18px);
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
    }

    .navbar .desktop-nav > .menu > li > a > img,
    .navbar .desktop-nav > .menu > li > a > svg,
    .navbar .compact-nav > a > img,
    .navbar .compact-nav > a > svg {
        display: none;
    }

    .navbar .desktop-nav > .menu > li > a.active::after {
        left: 0;
        right: 0;
        bottom: 2px;
        width: auto;
        height: 3px;
        border-radius: 3px;
    }

    .navbar .header-actions {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        gap: 0;
    }

    .navbar .header-search {
        width: 100%;
        height: 40px;
        border: 1px solid #dbe2eb;
        border-radius: 3px;
        overflow: hidden;
        background: #fff;
    }

    .navbar .header-search input {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        height: 100%;
        padding: 0 12px;
        border: 0;
        background: transparent;
        font-size: 14px;
    }

    .navbar .search-btn {
        flex: 0 0 40px;
        width: 40px;
        height: 100%;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .navbar .search-btn img {
        width: 21px;
        height: 21px;
    }

    .navbar .header-topitem:focus-visible {
        outline: 2px solid var(--primary-blue);
        outline-offset: 4px;
    }
}

@media (min-width: 781px) and (max-width: 1319px) {
    .navbar {
        --header-side: 18px;
        height: 104px;
        min-height: 104px;
        grid-template-rows: 36px 68px;
        grid-template-columns: auto minmax(0, 1fr) clamp(90px, 12vw, 157.5px);
        column-gap: 16px;
    }

    .navbar .header-left {
        gap: 8px;
    }

    .navbar .logo img {
        height: clamp(26.1px, 2.7vw, 35.1px);
    }

    .navbar .logo-title {
        font-size: clamp(7.425px, .81vw, 10.125px);
    }

    .navbar .desktop-nav > .menu {
        gap: clamp(8px, 1.2vw, 16px);
    }

    .navbar .desktop-nav > .menu > li > a {
        font-size: clamp(9.9px, 1.035vw, 13.5px);
    }

    .navbar .header-topitem {
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 11px;
    }

    .navbar .header-topitem img {
        width: 19px;
        height: 19px;
    }

    .header-slogan {
        max-width: 240px;
        font-size: 9px;
    }
}

/* Главно меню — като заглавията на категориите */
.navbar .desktop-nav > .menu > li > a,
.navbar .compact-nav > a,
.navbar .logo-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Падащи менюта и горна лента — като сайдбара */
.navbar .dropdown-menu,
.navbar .dropdown-submenu,
.navbar .header-slogan,
.navbar .header-topitem,
.navbar .header-search input {
    font-family: var(--font-body);
}

/* По-тъмен и четлив текст в горната лента */
.navbar .header-topbar .header-slogan,
.navbar .header-topbar .header-topitem {
    font-family: var(--font-body);
    color: #34445a;
    font-weight: 600;
}

.navbar .header-topbar .header-slogan {
    font-size: 12px;
}

@media (min-width: 781px) and (max-width: 1319px) {
    .navbar .header-topbar .header-slogan {
        font-size: 10px;
    }
}

/* Центрирана, компактна група на главното меню */
@media (min-width: 781px) {
    .navbar .desktop-nav > .menu {
        justify-content: center;
        gap: clamp(20px, 2vw, 36px);
    }
}

@media (min-width: 781px) and (max-width: 1319px) {
    .navbar .desktop-nav > .menu {
        gap: clamp(10px, 1.3vw, 17px);
    }
}

/* MEGA MENU — бял фон, отваряне с клик */
.mega-panel[hidden] {
    display: none !important;
}

@media (min-width: 781px) {

    .navbar .desktop-nav > .menu > .mega-host {
        position: static;
    }

    .navbar > nav.desktop-nav {
        position: static;
    }

    .navbar .mega-panel {
        position: absolute;
        top: 100%;
        left: var(--header-side, 24px);
        right: var(--header-side, 24px);
        z-index: 10003;
        max-height: calc(100dvh - 125px);
        overflow: auto;
        padding: 14px 24px 24px;
        background: #fff;
        border: 1px solid #e8edf2;
        border-radius: 5px;
        box-shadow: 0 12px 28px rgb(25 45 65 / 14%);
        color: var(--text-dark);
    }

    .mega-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 12px;
    }

    .navbar .mega-all {
        color: #526173;
        font: 500 12px var(--font-body);
        text-decoration: none;
    }

    .mega-close {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #526173;
        font-size: 26px;
        cursor: pointer;
    }

    .mega-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.7fr);
        min-height: 360px;
    }

    .mega-column {
        min-width: 0;
        padding-right: 18px;
    }

    .mega-second {
        padding-left: 18px;
        border-left: 1px solid #e8edf2;
    }

    .navbar .mega-row {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        padding: 10px 14px;
        border-radius: 3px;
        color: #34445a;
        font-family: var(--font-body);
        font-size: clamp(12px, 1vw, 16px);
        font-weight: 500;
        line-height: 1.4;
        text-decoration: none;
    }

    .navbar .mega-row:hover,
    .navbar .mega-row.is-selected {
        background: #ecf8fe;
        color: #009fe3;
    }

    .mega-category-icon {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        object-fit: contain;
    }

    .mega-arrow {
        margin-left: auto;
        padding-left: 5px;
        font-size: 23px;
        line-height: 1;
    }

    .mega-preview {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        padding: 12px 0 12px 30px;
        border-left: 1px solid #e8edf2;
        background: #fff;
    }

    .mega-title {
        margin: 0;
        font-family: var(--font-body);
        font-size: clamp(19px, 1.65vw, 30px);
        font-weight: 700;
        line-height: 1.3;
    }

    .mega-title::after {
        content: "";
        display: block;
        width: 54px;
        height: 3px;
        margin-top: 16px;
        background: #009fe3;
    }

    .mega-picture {
        display: block;
        width: 100%;
        height: clamp(180px, 18vw, 300px);
        margin: 14px 0;
        object-fit: contain;
        background: #fff;
    }

    .mega-picture[hidden] {
        display: none;
    }

    .navbar .mega-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: auto;
        padding: 12px 22px;
        border-radius: 3px;
        background: #009fe3;
        color: #fff;
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .mega-empty {
        margin: 12px;
        color: #687687;
        font-family: var(--font-body);
        font-size: 13px;
    }

    .mega-panel a:focus-visible,
    .mega-close:focus-visible {
        outline: 2px solid #009fe3;
        outline-offset: 2px;
    }
}

@media (min-width: 781px) and (max-width: 1319px) {
    .navbar .mega-panel {
        padding: 10px 14px 18px;
    }

    .mega-layout {
        grid-template-columns: 1.1fr 1fr 1.2fr;
        min-height: 320px;
    }

    .mega-column {
        padding-right: 10px;
    }

    .mega-second {
        padding-left: 10px;
    }

    .navbar .mega-row {
        gap: 8px;
        padding: 9px 8px;
        font-size: 12px;
    }

    .mega-preview {
        padding-left: 18px;
    }

    .mega-category-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }
}

@media (max-width: 780px) {
    .navbar .mega-panel {
        display: none !important;
    }
}

/* Мега меню — размери като слайдшоуто */
@media (min-width: 781px) {
    .navbar .mega-panel {
        left: 50%;
        right: auto;
        transform: translateX(-50%);

        width: 100%;
        max-width: var(--content-max);
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 3 / 1;
        box-sizing: border-box;

        padding: 12px 20px;
        overflow: hidden;
    }

    /* Премахва реда „Всички…“ и мястото над категориите */
    .navbar .mega-all {
        display: none;
    }

    .navbar .mega-toolbar {
        position: absolute;
        top: 4px;
        right: 6px;
        margin: 0;
        z-index: 2;
    }

    .navbar .mega-layout {
        height: 100%;
        min-height: 0;
        grid-template-rows: minmax(0, 1fr);
    }

    .navbar .mega-column {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .navbar .mega-preview {
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        padding-right: 28px;
        overflow-y: auto;
    }

    .navbar .mega-picture {
        flex: 1 1 0;
        min-height: 0;
        height: 0;
        width: 100%;
        margin: 10px 0;
        object-fit: contain;
    }

    .navbar .mega-title,
    .navbar .mega-action {
        flex-shrink: 0;
    }
}

@media (min-width: 781px) {
    /* Еднакво отстояние отгоре и отдолу */
    .navbar .mega-panel {
        padding-top: clamp(24px, 2.5vw, 48px);
        padding-bottom: clamp(24px, 2.5vw, 48px);
    }

    /* Снимките са с 15% по-малки, запазват центъра си */
    .navbar .mega-picture {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Отворено мега меню — отделна индикация от текущата страница */
@media (min-width: 781px) {
    .navbar {
        --mega-tab-half-row: 35px;
    }

    .navbar .desktop-nav > .menu > .mega-host >
    a[aria-expanded="true"] {
        position: relative;
        z-index: 10004;
        isolation: isolate;
    }

    .navbar .desktop-nav > .menu > .mega-host >
    a[aria-expanded="true"]::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: calc(50% - var(--mega-tab-half-row) - 1px);
        left: -12px;
        right: -12px;

        background: #fff;
        border: 1px solid #e8edf2;
        border-bottom: 0;
        border-radius: 0;

        z-index: -1;
        pointer-events: none;
    }

    /* Отварянето само по себе си не оцветява надписа */
    .navbar .desktop-nav > .menu > .mega-host >
    a[aria-expanded="true"]:not(.active) {
        color: var(--text-dark);
    }

    /* Текущата страница запазва синьото и подчертаването */
    .navbar .desktop-nav > .menu > li > a.active {
        color: var(--primary-blue);
    }
}

@media (min-width: 781px) and (max-width: 1319px) {
    .navbar {
        --mega-tab-half-row: 34px;
    }

    .navbar .desktop-nav > .menu > .mega-host >
    a[aria-expanded="true"]::before {
        left: -6px;
        right: -6px;
    }
}

@media (min-width: 781px) {
    /* Табът остава отворен отдолу към менюто */
    .navbar .desktop-nav > .menu > .mega-host >
    a[aria-expanded="true"]::before {
        border-radius: 6px 6px 0 0 !important;
    }

    /* Външен контур на мега менюто */
    .navbar .mega-panel {
        border-radius: 6px !important;
    }
}

/* Категории и подкатегории — Montserrat SemiBold */
.navbar .mega-row {
    font-weight: 600;
}

.navbar .mega-panel .mega-action {
    transition: background .2s;
}

.navbar .mega-panel .mega-action:hover,
.navbar .mega-panel .mega-action:focus-visible {
    background: var(--color-brand-dark);
    color: #fff;
    text-decoration: none;
}

/* Inter for reading text; Montserrat only for primary page/section headings. */
body :is(h1, h2) {
    font-family: var(--font-heading);
}
body :is(h3, h4, h5, h6),
body :is(.products-card, .product-page-card, .overlay) :is(h1, h2, h3),
body :is(.managed-product-heading, .product-title, .product-name),
body .product-details-page :is(h1, h2),
body[data-page="contacts"] .contact-layout h2,
body[data-page="home"] :is(#home-process-title, #home-videos-title, #home-news-title) {
    font-family: var(--font-body);
}
.drawer-category-branch summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}.drawer-category-branch summary::-webkit-details-marker{display:none}.drawer-category-branch summary>.drawer-category{flex:1}.drawer-category-children{padding-left:18px;border-left:1px solid #d7e1e9;margin-left:10px}.drawer-category-children .drawer-category{padding-top:8px;padding-bottom:8px}.drawer-section-title{font-size:14px;margin:14px 0;color:#003b5c}.drawer-category-branch[open]>summary>span{transform:rotate(45deg)}

.nav-third .nav-sub-group > .nav-sub-header{padding-left:24px}.nav-third .nav-third{margin-left:12px}
@media (max-width: 780px) {
    .mobile-drawer { opacity: 1; }
    .drawer-section-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 10px; }
    .drawer-section-tabs button { padding: 12px 0; border: 0; border-bottom: 2px solid #e5eaf0; background: transparent; color: #003b5c; text-align: left; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
    .drawer-section-tabs button[aria-pressed="true"] { color: #008dcc; border-bottom-color: #008dcc; }
    .drawer-category-column { min-width: 0; }
    .drawer-category-select { width: 100%; border: 0; border-bottom: 1px solid #e5eaf0; background: transparent; text-align: left; font-family: inherit; cursor: pointer; }
    .drawer-category-select[aria-pressed="true"] { color: #007db5; background: #edf7fc; }
    .drawer-category-arrow { margin-left: auto; padding-right: 4px; color: #007db5; }
    .drawer-category span { overflow-wrap: anywhere; }
    .drawer-category-all { color: #007db5; }
    .drawer-category:focus-visible, .drawer-section-tabs button:focus-visible { outline: 2px solid #008dcc; outline-offset: -2px; }
}
@media (max-width: 780px) and (prefers-reduced-motion: reduce) {
    .mobile-drawer, .mobile-menu-overlay { transition: none; }
}

/* Refined desktop brand, search and navigation separators. */
@media (min-width:781px) {
 .navbar .header-left { position:relative; gap:8px; }
 .navbar .logo { display:flex; align-items:flex-end; }
 .navbar .logo-text { margin:0; padding-bottom:0; }
 .navbar .header-divider { display:block; position:absolute; right:calc(-.5 * clamp(18px, 2.5vw, 52px)); top:50%; transform:translateY(-50%); width:1px; height:32px; margin:0; border:0; background:#b9c4d1; }
 .navbar .header-actions { position:relative; }
 .navbar .header-actions::before { content:""; display:block; position:absolute; left:calc(-.5 * clamp(18px, 2.5vw, 52px)); top:50%; transform:translateY(-50%); width:1px; height:32px; background:#b9c4d1; }
 .navbar .header-search { overflow:visible; }
 .navbar .search-btn { flex-basis:44px; width:44px; }
 .navbar .search-btn img { width:42px; height:42px; }
}
@media (min-width:781px) and (max-width:1319px) {
 .navbar .header-left { gap:6px; }
 .navbar .header-divider { right:-8px; }
 .navbar .header-actions::before { left:-8px; }
}

/* Contacts: preserve the original banner edge on managed banners too. */
body[data-page="contacts"] .managed-page-banner{
    z-index:5;
    border-bottom:5px solid rgba(255,255,255,.65);
    box-shadow:0 6px 10px rgba(0,0,0,.10);
}
@media(min-width:781px){
    .contact-form-panel,.contact-map-panel{position:relative;border-left:0}
    .contact-form-panel::before,.contact-map-panel::before{content:"";position:absolute;left:0;top:34px;bottom:0;width:1px;background:#edf0f3;pointer-events:none}
}
@media(min-width:781px) and (max-width:1180px){.contact-map-panel::before{display:none}}

/* Keep the privacy policy page on its original desktop spacing. */
@media (min-width: 781px) {
    body[data-page="privacy"] {
        --content-max: 1690px;
        --page-padding-min: 20px;
        --page-padding-max: 60px;
    }

    body[data-page="privacy"] .navbar,
    body[data-page="privacy"] .footer-top,
    body[data-page="privacy"] .footer-bottom {
        padding-left: clamp(20px, 3vw, 60px);
        padding-right: clamp(20px, 3vw, 60px);
    }
}

/* Give the last home category card a little room for its hover shadow. */
@media (min-width: 781px) {
    body[data-page="home"] .categories-viewport {
        padding-right: 4px;
    }
}

/* Mobile search: header toggle and separate search submission. */
.mobile-search-toggle{display:none}
@media(max-width:780px){
 .navbar{flex-wrap:wrap}
 .navbar .mobile-search-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:10px;border:1px solid #dbe2eb;background:white}
 .mobile-search-toggle img{width:20px;height:20px}
 .navbar .header-search{display:none!important;position:absolute;top:100%;left:0;width:100%;height:52px;margin:0;padding:4px 12px;background:white;border:0;border-bottom:1px solid #dbe2eb;border-radius:0;box-sizing:border-box}
 .navbar.mobile-search-open .header-search{display:flex!important}
 .navbar .header-search input{display:block;flex:1;min-width:0;width:0;border:1px solid #dbe2eb;height:44px;padding:0 12px}
 .navbar .header-search .search-btn{flex:0 0 44px;width:44px;height:44px;border:1px solid #dbe2eb;border-left:0;background:white}
 .navbar .header-search .search-btn img{width:20px;height:20px}
}

@media(max-width:780px){
 body:has(.navbar.mobile-search-open){padding-top:128px!important}
 .navbar .mobile-search-toggle{order:1}
 .navbar .header-actions>.language-switcher{order:2}
 .navbar .header-actions>.menu-btn{order:3}
}
