/* ==========================================================================
   ILGM Kragujevac — Premium Industrial Website
   Stylesheet: style.css
   ========================================================================== */

/* ============================ 1. CSS Variables ============================ */
:root {
    /* Brand colors */
    --c-graphite: #313234;
    --c-graphite-deep: #1f2022;
    --c-steel: #386180;
    --c-steel-bright: #4a7ea4;
    --c-dark-steel: #454D53;
    --c-light-metal: #E7E8E8;
    --c-medium-gray: #939394;
    --c-white: #FFFFFF;

    /* Functional */
    --c-bg: #FFFFFF;
    --c-bg-alt: #F4F5F6;
    --c-text: #1f2022;
    --c-text-muted: #5b6066;
    --c-border: rgba(49, 50, 52, 0.10);
    --c-border-strong: rgba(49, 50, 52, 0.20);

    /* Typography */
    --ff-heading: "Oswald", "Roboto Slab", "Inter", sans-serif;
    --ff-body: "Inter", "Roboto", sans-serif;

    /* Layout */
    --container: 1320px;
    --container-pad: 32px;

    /* Spacing scale */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 48px;
    --sp-6: 64px;
    --sp-7: 96px;
    --sp-8: 128px;

    /* Transitions */
    --t-fast: 0.2s ease;
    --t-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Header */
    --header-h: 84px;
}

/* ============================ 2. Reset & Base ============================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    color: inherit;
}

ul, ol { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 0;
    color: var(--c-graphite);
}

p { margin: 0 0 var(--sp-2); }

::selection {
    background: var(--c-steel);
    color: var(--c-white);
}

/* ============================ 3. Layout helpers ============================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* ============================ 4. Typography helpers ============================ */
.eyebrow,
.section-label {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-steel);
    padding-bottom: 4px;
    position: relative;
}

.section-label::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--c-steel);
    vertical-align: middle;
    margin-right: 12px;
    transform: translateY(-2px);
}

.section-label--light { color: var(--c-light-metal); }
.section-label--light::before { background: var(--c-steel-bright); }

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 16px 0 20px;
    color: var(--c-graphite);
}

.section-title--light { color: var(--c-white); }

.section-sub {
    font-size: 1.0625rem;
    color: var(--c-text-muted);
    max-width: 680px;
    line-height: 1.7;
}

.section-sub--light { color: var(--c-light-metal); opacity: 0.8; }

.section-head {
    text-align: center;
    margin: 0 auto var(--sp-6);
    max-width: 760px;
}
.section-head .section-sub { margin-left: auto; margin-right: auto; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-graphite);
    border-bottom: 1px solid var(--c-graphite);
    padding-bottom: 6px;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.link-arrow:hover { color: var(--c-steel); border-color: var(--c-steel); }
.link-arrow__icon { transition: transform var(--t-med); }
.link-arrow:hover .link-arrow__icon { transform: translateX(6px); }

/* ============================ 5. Buttons ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-med);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--c-steel);
    color: var(--c-white);
    border-color: var(--c-steel);
}
.btn--primary:hover {
    background: var(--c-graphite);
    border-color: var(--c-graphite);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--c-white);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover {
    background: var(--c-white);
    color: var(--c-graphite);
    border-color: var(--c-white);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--c-graphite);
    border-color: var(--c-graphite);
}
.btn--outline:hover {
    background: var(--c-graphite);
    color: var(--c-white);
    border-color: var(--c-graphite);
    transform: translateY(-2px);
}

.btn--large { padding: 22px 44px; font-size: 15px; }

/* ============================ 5b. Preloader ============================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--c-graphite-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
}

.preloader::before,
.preloader::after {
    /* subtle technical grid lines on the preloader */
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.04);
}
.preloader::before {
    top: 0; bottom: 0;
    left: 50%;
    width: 1px;
}
.preloader::after {
    left: 0; right: 0;
    top: 50%;
    height: 1px;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.preloader__logo {
    width: 220px;
    height: auto;
    max-width: 60vw;
    object-fit: contain;
    /* Real colored logo — no filter applied */
    opacity: 0;
    animation: preloaderLogoIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards,
               preloaderPulse 2.6s ease-in-out 1s infinite;
}

@keyframes preloaderLogoIn {
    0% { opacity: 0; transform: scale(0.94); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.92; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.025); }
}

.preloader__bar {
    position: relative;
    width: 180px;
    max-width: 50vw;
    height: 1px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.preloader__bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 40%;
    background: var(--c-steel-bright);
    animation: preloaderBar 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes preloaderBar {
    0% { left: -40%; width: 40%; }
    50% { left: 20%; width: 60%; }
    100% { left: 100%; width: 40%; }
}

@media (max-width: 640px) {
    .preloader__logo { width: 170px; }
    .preloader__bar { width: 140px; }
}

/* ============================ 6. Header ============================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color var(--t-med), backdrop-filter var(--t-med), border-color var(--t-med), height var(--t-med);
}

.site-header.is-scrolled {
    background: rgba(31, 32, 34, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    height: 72px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--c-white);
    height: 100%;
    transition: opacity var(--t-fast);
}
.header__logo:hover { opacity: 0.85; }

.header__logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    /* Real colored logo — no filter applied */
    transition: height var(--t-med);
}

.site-header.is-scrolled .header__logo-img {
    height: 48px;
}

/* Nav */
.header__nav { display: flex; }

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    display: inline-block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-white);
    position: relative;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 18px; right: 18px; bottom: 4px;
    height: 1px;
    background: var(--c-steel-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med);
}

.nav__link:hover { color: var(--c-steel-bright); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--c-steel-bright); }
.nav__link.is-active::after { transform: scaleX(1); }

/* ============================ 6b. Dropdown menu ============================ */
.nav__item { position: relative; }

.nav__caret {
    display: inline-flex;
    align-items: center;
    width: 9px;
    height: 6px;
    margin-left: 6px;
    transition: transform var(--t-med);
    color: currentColor;
}
.nav__caret svg { width: 100%; height: 100%; }
.nav__item--has-dropdown:hover .nav__caret,
.nav__item--has-dropdown:focus-within .nav__caret { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 8px);
    min-width: 280px;
    padding: 14px 0;
    margin-top: 12px;
    background: rgba(31, 32, 34, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 2px solid var(--c-steel);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    z-index: 50;
}
.dropdown::before {
    /* invisible bridge so hover doesn't break in the gap */
    content: "";
    position: absolute;
    top: -16px; left: 0; right: 0;
    height: 16px;
}

.nav__item--has-dropdown:hover .dropdown,
.nav__item--has-dropdown:focus-within .dropdown,
.nav__item--has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.dropdown a {
    display: block;
    padding: 11px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--c-light-metal);
    border-left: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), padding var(--t-fast);
}
.dropdown a:hover {
    color: var(--c-white);
    background: rgba(56, 97, 128, 0.18);
    border-left-color: var(--c-steel-bright);
    padding-left: 32px;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 110;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--c-white);
    transition: transform var(--t-med), opacity var(--t-fast);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================ 7. Mobile menu ============================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--c-graphite-deep);
    z-index: 105;
    transform: translateY(-100%);
    transition: transform var(--t-slow);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { transform: translateY(0); }

/* Subtle technical grid lines for premium feel */
.mobile-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Close (X) button — top-right, large tap target */
.mobile-menu__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--c-white);
    cursor: pointer;
    z-index: 2;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.mobile-menu__close svg { width: 22px; height: 22px; }
.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
    background: var(--c-steel);
    border-color: var(--c-steel);
    color: var(--c-white);
    transform: rotate(90deg);
    outline: none;
}

.mobile-menu__nav {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    padding: 110px 24px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0 auto 48px;
    width: 100%;
    max-width: 460px;
}

.mobile-menu__list > li {
    width: 100%;
}

/* Shared link styling for both anchors and toggle buttons */
.mobile-menu__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    font-family: var(--ff-heading);
    font-size: clamp(1.4rem, 4.6vw, 1.85rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-white);
    background: transparent;
    border: 0;
    padding: 6px 12px;
    cursor: pointer;
    line-height: 1.2;
    transition: color var(--t-fast);
    opacity: 0;
    transform: translateY(20px);
    text-align: center;
}

.mobile-menu.is-open .mobile-menu__link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, color var(--t-fast);
}
.mobile-menu.is-open .mobile-menu__list > li:nth-child(1) .mobile-menu__link { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(2) .mobile-menu__link { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(3) .mobile-menu__link { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(4) .mobile-menu__link { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(5) .mobile-menu__link { transition-delay: 0.35s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(6) .mobile-menu__link { transition-delay: 0.40s; }
.mobile-menu.is-open .mobile-menu__list > li:nth-child(7) .mobile-menu__link { transition-delay: 0.45s; }

.mobile-menu__link:hover { color: var(--c-steel-bright); }

/* Dropdown caret — sits next to the visible label */
.mobile-menu__caret {
    display: inline-flex;
    width: 14px;
    height: 9px;
    color: var(--c-steel-bright);
    transition: transform var(--t-med);
    flex-shrink: 0;
}
.mobile-menu__caret svg { width: 100%; height: 100%; }
.mobile-menu__item.is-open .mobile-menu__caret { transform: rotate(180deg); }

/* Accordion submenu */
.mobile-menu__sublist {
    list-style: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                margin 0.4s ease,
                padding 0.4s ease;
    border-left: 1px solid rgba(255,255,255,0.0);
}
.mobile-menu__item.is-open .mobile-menu__sublist {
    max-height: 800px;
    opacity: 1;
    margin: 16px auto 8px;
    padding: 14px 0 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mobile-menu__sublink {
    display: block;
    font-family: var(--ff-body);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--c-medium-gray);
    padding: 8px 16px;
    border-left: 2px solid rgba(56, 97, 128, 0.25);
    transition: color var(--t-fast), border-color var(--t-fast), padding var(--t-fast), background var(--t-fast);
}
.mobile-menu__sublink:hover,
.mobile-menu__sublink:focus-visible {
    color: var(--c-white);
    border-left-color: var(--c-steel-bright);
    background: rgba(56, 97, 128, 0.08);
    padding-left: 22px;
    outline: none;
}

.mobile-menu__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    color: var(--c-medium-gray);
    font-size: 14px;
    letter-spacing: 0.06em;
}
.mobile-menu__footer p { margin: 0 0 6px; }

/* ============================ 8. Hero ============================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    color: var(--c-white);
    display: flex;
    align-items: center;
}

.hero__slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1) rotate(0deg);
    transition: opacity 1.6s ease;
    will-change: opacity, transform;
}

/* Cinematic Ken-Burns motion only on the active slide.
   Slow scale + subtle rotation, runs the full active interval. */
.hero__slide.is-active {
    opacity: 1;
    animation: heroKenBurns 9s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1) rotate(-0.3deg); }
    100% { transform: scale(1.08) rotate(0.3deg); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(31,32,34,0.55) 0%, rgba(31,32,34,0.45) 50%, rgba(31,32,34,0.85) 100%),
        linear-gradient(120deg, rgba(56, 97, 128, 0.18) 0%, transparent 60%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 25% 100%;
    border-left: 1px solid rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.04);
}

.hero__inner {
    position: relative;
    z-index: 4;
    width: 100%;
}

.hero__content {
    max-width: 820px;
}

.hero__content > * {
    opacity: 0;
    transform: translateY(28px);
    animation: heroFade 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero__content .eyebrow { animation-delay: 0.3s; }
.hero__content .hero__title { animation-delay: 0.45s; }
.hero__content .hero__subtitle { animation-delay: 0.6s; }
.hero__content .hero__ctas { animation-delay: 0.75s; }

@keyframes heroFade {
    to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow {
    color: var(--c-light-metal);
    margin-bottom: 24px;
}
.hero .eyebrow::before { display: none; }

.hero__title {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--c-white);
    margin-bottom: 28px;
    max-width: 14ch;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    color: var(--c-light-metal);
    max-width: 600px;
    margin-bottom: 44px;
    opacity: 0.92;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Slider dots */
.hero__dots {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 16px;
}

.hero__dot {
    width: 36px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    transition: background var(--t-med), width var(--t-med);
    padding: 0;
}
.hero__dot.is-active {
    background: var(--c-white);
    width: 60px;
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.7); }

/* Scroll indicator — positioned above the controls bar so it never overlaps */
.hero__scroll {
    position: absolute;
    right: 32px;
    bottom: 130px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--c-light-metal);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transition: opacity var(--t-med);
}
.hero__scroll:hover { opacity: 0.7; }
.hero__scroll-line {
    display: block;
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
    writing-mode: horizontal-tb;
}
.hero__scroll-line::after {
    content: "";
    position: absolute;
    top: -60px; left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--c-white));
    animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -60px; }
    100% { top: 60px; }
}

/* ============================ 9. About ============================ */
.about {
    padding: var(--sp-7) 0;
    background: var(--c-bg);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
    margin-bottom: var(--sp-6);
}

.about__head { padding-top: 8px; }

.about__head .section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    margin-top: 18px;
}

.about__lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--c-graphite);
    margin-bottom: 24px;
}

.about__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-text-muted);
    margin-bottom: 32px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.stat {
    padding: 48px 32px;
    text-align: left;
    border-right: 1px solid var(--c-border);
    transition: background var(--t-med);
    position: relative;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--c-bg-alt); }

.stat__num {
    display: block;
    font-family: var(--ff-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1;
    color: var(--c-graphite);
    margin-bottom: 12px;
}

.stat__label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    font-weight: 500;
}

/* ============================ 10. Services ============================ */
.services {
    padding: var(--sp-7) 0;
    background: var(--c-bg-alt);
    position: relative;
}

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

.service {
    padding: 48px 36px 56px;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: var(--c-white);
    position: relative;
    transition: background var(--t-med), transform var(--t-med);
    overflow: hidden;
}
.service:nth-child(3n) { border-right: none; }
.service:nth-last-child(-n+3) { border-bottom: none; }

.service::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-steel);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}

.service:hover { background: var(--c-graphite); }
.service:hover::before { transform: scaleX(1); }
.service:hover .service__title,
.service:hover .service__desc,
.service:hover .service__icon { color: var(--c-white); }
.service:hover .service__icon { color: var(--c-steel-bright); }
.service:hover .service__index { color: rgba(255,255,255,0.1); }

.service__icon {
    width: 48px;
    height: 48px;
    color: var(--c-steel);
    margin-bottom: 32px;
    transition: color var(--t-med);
}
.service__icon svg { width: 100%; height: 100%; }

.service__title {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
    color: var(--c-graphite);
    transition: color var(--t-med);
}

.service__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin: 0;
    transition: color var(--t-med);
}

.service__index {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: var(--ff-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--c-medium-gray);
    transition: color var(--t-med);
}

/* ============================ 11. Products ============================ */
.products {
    padding: var(--sp-7) 0;
    background: var(--c-bg);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--c-graphite);
    display: block;
}

.product__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.product:hover .product__image { transform: scale(1.08); }

.product__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,32,34,0.15) 0%, rgba(31,32,34,0.85) 100%);
    transition: background var(--t-med);
}
.product:hover .product__overlay {
    background: linear-gradient(180deg, rgba(56,97,128,0.25) 0%, rgba(31,32,34,0.92) 100%);
}

.product__content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 32px 28px;
    color: var(--c-white);
    z-index: 2;
}

.product__title {
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-white);
    margin-bottom: 14px;
}

.product__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-light-metal);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: color var(--t-fast), border-color var(--t-fast);
}
.product:hover .product__cta {
    color: var(--c-white);
    border-color: var(--c-steel-bright);
}

/* ============================ 12. Technology ============================ */
.technology {
    position: relative;
    padding: var(--sp-7) 0;
    background: var(--c-graphite-deep);
    color: var(--c-white);
    overflow: hidden;
}

.technology__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}
.technology__grid-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(56,97,128,0.4), transparent);
}

.technology__inner { position: relative; z-index: 1; }

.technology__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--sp-6);
}

.technology__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--sp-5);
}

.tech-feature {
    padding: 48px 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background var(--t-med);
}
.tech-feature:last-child { border-right: none; }
.tech-feature:hover { background: rgba(56, 97, 128, 0.1); }

.tech-feature__num {
    display: block;
    font-family: var(--ff-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-steel-bright);
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

.tech-feature__title {
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-white);
    margin-bottom: 14px;
}

.tech-feature__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--c-light-metal);
    opacity: 0.7;
    margin: 0;
}

/* Brands */
.technology__brands {
    text-align: center;
    padding-top: var(--sp-4);
}

.technology__brands-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-medium-gray);
    margin-bottom: 24px;
}

.technology__brands-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.brand {
    font-family: var(--ff-heading);
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--c-light-metal);
    text-transform: uppercase;
    transition: color var(--t-med);
}
.brand:hover { color: var(--c-steel-bright); }

.brand-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.2);
}

/* ============================ 13. Process ============================ */
.process {
    padding: var(--sp-7) 0;
    background: var(--c-bg);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: step;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--c-border-strong);
}

.timeline__step {
    position: relative;
    padding: 0 16px 0 0;
}

.timeline__step::before {
    content: "";
    position: absolute;
    top: 18px; left: 0;
    width: 12px;
    height: 12px;
    background: var(--c-steel);
    border-radius: 50%;
    border: 3px solid var(--c-bg);
    box-shadow: 0 0 0 1px var(--c-steel);
    z-index: 1;
}

.timeline__num {
    display: block;
    font-family: var(--ff-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--c-steel);
    margin: 56px 0 16px;
}

.timeline__title {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    color: var(--c-graphite);
}

.timeline__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin: 0;
}

/* ============================ 14. CTA ============================ */
.cta {
    position: relative;
    padding: var(--sp-7) 0;
    color: var(--c-white);
    overflow: hidden;
    background: var(--c-graphite);
    text-align: center;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(56,97,128,0.4) 0%, transparent 60%),
        url('../images/ilgm-kragujevac-slajder-2.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: grayscale(60%);
}

.cta__inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.cta__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-white);
    margin: 16px 0 24px;
    line-height: 1.1;
}

.cta__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--c-light-metal);
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ============================ 15. Footer ============================ */
.footer {
    background: var(--c-graphite-deep);
    color: var(--c-light-metal);
    padding: var(--sp-7) 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 64px;
    padding-bottom: var(--sp-6);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
    transition: opacity var(--t-fast);
}
.footer__logo:hover { opacity: 0.85; }

.footer__logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    /* Real colored logo — no filter applied */
}

.footer__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-medium-gray);
    max-width: 420px;
}

.footer__heading {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: 24px;
}

.footer__list { display: flex; flex-direction: column; gap: 12px; }
.footer__list a, .footer__list--contact li {
    font-size: 0.95rem;
    color: var(--c-medium-gray);
    transition: color var(--t-fast);
}
.footer__list a:hover { color: var(--c-steel-bright); }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 28px 0;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__copy, .footer__credit {
    margin: 0;
    font-size: 13px;
    color: var(--c-medium-gray);
    letter-spacing: 0.04em;
}

.footer__credit a {
    color: var(--c-light-metal);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1px;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.footer__credit a:hover {
    color: var(--c-steel-bright);
    border-color: var(--c-steel-bright);
}

/* ============================ 16. Reveal animation system ============================ */
.reveal {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                clip-path 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform, filter;
}

/* default behaviour — fade + slight upward translate */
.reveal { transform: translateY(32px); }
.reveal-up        { transform: translateY(36px); }
.reveal-left      { transform: translateX(-40px); }
.reveal-right     { transform: translateX(40px); }
.reveal-scale     { transform: scale(0.94); }
.reveal-line      { transform: scaleX(0); transform-origin: left center; }

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) scaleX(1);
    filter: blur(0);
}

/* ============================ 16b. About preview landscape image ============================ */
.about__head { display: flex; flex-direction: column; }

.about__image-wrap {
    position: relative;
    margin-top: 36px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--c-graphite);
}
.about__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter var(--t-med);
    filter: brightness(0.92) saturate(0.95);
}
.about__image-wrap:hover .about__image {
    transform: scale(1.07);
    filter: brightness(1) saturate(1);
}
.about__image-wrap::after {
    /* subtle premium overlay */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,32,34,0.0) 50%, rgba(31,32,34,0.55) 100%);
    pointer-events: none;
}

.about__image-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid var(--c-steel-bright);
    z-index: 2;
    pointer-events: none;
}
.about__image-corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.about__image-corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.about__image-tag {
    position: absolute;
    bottom: 18px;
    left: 24px;
    z-index: 2;
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-white);
    padding-left: 14px;
    border-left: 2px solid var(--c-steel-bright);
}

/* ============================ 16c. Back-to-top button ============================ */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(31, 32, 34, 0.92);
    color: var(--c-white);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity var(--t-med), transform var(--t-med),
                background var(--t-med), border-color var(--t-med),
                visibility var(--t-med);
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--c-steel);
    border-color: var(--c-steel);
    transform: translateY(-3px);
    outline: none;
}
.back-to-top svg { width: 18px; height: 18px; transition: transform var(--t-med); }
.back-to-top:hover svg { transform: translateY(-2px); }

@media (max-width: 640px) {
    .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
    .back-to-top svg { width: 16px; height: 16px; }
}

/* ============================ 17. Hero enhancements ============================ */

/* Subtle film grain — pure CSS using stacked gradients (lightweight, no asset) */
.hero__noise {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image:
        radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 2px;
}

/* Blueprint corner brackets + coordinates */
.hero__blueprint {
    position: absolute;
    inset: 28px;
    z-index: 4;
    pointer-events: none;
    opacity: 0.55;
}
.bp-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(255,255,255,0.45);
    border-style: solid;
    border-width: 0;
}
.bp-corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.bp-corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.bp-corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.bp-corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.bp-coord {
    position: absolute;
    font-family: var(--ff-body);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.bp-coord--tl { top: 0; left: 44px; line-height: 28px; }
.bp-coord--br { bottom: 0; right: 44px; line-height: 28px; }

/* Hero text — staged blur-fade-in animation (overrides existing heroFade) */
.hero__content > * {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    animation: heroEnter 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero__content .eyebrow,
.hero__content .hero__eyebrow { animation-delay: 0.35s; }
.hero__content .hero__title { animation-delay: 0.55s; }
.hero__content .hero__subtitle { animation-delay: 0.75s; }
.hero__content .hero__ctas { animation-delay: 0.95s; }

@keyframes heroEnter {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Hero controls bar — counter + progress + dots */
.hero__controls {
    position: absolute;
    left: 0; right: 0;
    bottom: 40px;
    z-index: 5;
}
.hero__controls-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero__counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--ff-heading);
    color: var(--c-light-metal);
    letter-spacing: 0.12em;
    flex-shrink: 0;
}
.hero__counter-current { font-size: 24px; font-weight: 600; color: var(--c-white); }
.hero__counter-sep,
.hero__counter-total { font-size: 14px; opacity: 0.55; }

.hero__progress {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.16);
    position: relative;
    overflow: hidden;
}
.hero__progress-fill {
    position: absolute;
    inset: 0 100% 0 0;
    background: var(--c-steel-bright);
    /* width controlled by JS via inline style during slide interval */
    transition: none;
}

/* Hide old default dots styling override — keep dots but compact */
.hero__dots {
    position: static;
    transform: none;
    flex-shrink: 0;
}

/* ============================ 18. Capability strip (marquee) ============================ */
.capabilities {
    background: var(--c-graphite-deep);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    position: relative;
}
.capabilities::before,
.capabilities::after {
    /* fade edges so the marquee doesn't pop */
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.capabilities::before {
    left: 0;
    background: linear-gradient(90deg, var(--c-graphite-deep), transparent);
}
.capabilities::after {
    right: 0;
    background: linear-gradient(270deg, var(--c-graphite-deep), transparent);
}

.capabilities__track {
    display: flex;
    width: max-content;
    animation: capMarquee 38s linear infinite;
}
.capabilities__track:hover { animation-play-state: paused; }

.capabilities__list {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 22px 24px;
    margin: 0;
}
.capabilities__list li {
    font-family: var(--ff-heading);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-light-metal);
    white-space: nowrap;
}
.capabilities__list li.dot {
    width: 6px;
    height: 6px;
    background: var(--c-steel);
    border-radius: 0;
    transform: rotate(45deg);
    flex-shrink: 0;
}

@keyframes capMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================ 19. Section frame corners ============================ */
.section--framed { position: relative; }
.frame-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(49, 50, 52, 0.20);
    pointer-events: none;
    z-index: 1;
}
.frame-corner--tl { top: 32px; left: 32px; border-right: 0; border-bottom: 0; }
.frame-corner--tr { top: 32px; right: 32px; border-left: 0; border-bottom: 0; }
.frame-corner--bl { bottom: 32px; left: 32px; border-right: 0; border-top: 0; }
.frame-corner--br { bottom: 32px; right: 32px; border-left: 0; border-top: 0; }

/* When applied to dark sections */
.technology .frame-corner,
.cta .frame-corner { border-color: rgba(255,255,255,0.16); }

.section-line {
    display: block;
    width: 80px;
    height: 1px;
    background: var(--c-steel);
    margin: 28px auto 0;
}

/* ============================ 20. Trust bar ============================ */
.trust {
    background: var(--c-graphite);
    color: var(--c-white);
    padding: 56px 0;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.trust__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.trust__item {
    padding: 12px 28px;
    border-right: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    transition: background var(--t-med);
}
.trust__item:last-child { border-right: 0; }
.trust__item:hover { background: rgba(56, 97, 128, 0.08); }

.trust__num {
    display: block;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--c-white);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-transform: uppercase;
}

.trust__label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-medium-gray);
    font-weight: 500;
    line-height: 1.5;
}

/* ============================ 21. Machine cards ============================ */
.machines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: var(--sp-5);
}

.machine {
    position: relative;
    padding: 56px 36px 48px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.10);
    overflow: hidden;
    transition: transform var(--t-med), border-color var(--t-med), background var(--t-med);
}

.machine::before {
    /* animated steel-blue line passing through on hover */
    content: "";
    position: absolute;
    top: -1px;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-steel-bright), transparent);
    transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.machine:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 97, 128, 0.55);
    background: rgba(56, 97, 128, 0.05);
}
.machine:hover::before { left: 100%; }

/* Corner technical brackets */
.machine__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--c-steel-bright);
    transition: width var(--t-med), height var(--t-med), opacity var(--t-med);
    opacity: 0.5;
}
.machine__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.machine__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.machine:hover .machine__corner { width: 24px; height: 24px; opacity: 1; }

.machine__line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--c-steel);
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.machine:hover .machine__line { width: 100%; }

.machine__index {
    display: block;
    font-family: var(--ff-heading);
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--c-steel-bright);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.machine__brand {
    font-family: var(--ff-heading);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--c-white);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.machine__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-light-metal);
    opacity: 0.75;
    margin-bottom: 28px;
}

.machine__tag {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-medium-gray);
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    font-weight: 500;
}

/* Capability points list */
.capability-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0;
}
.capability-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 240px;
    padding: 24px 28px;
    font-family: var(--ff-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-light-metal);
    border-right: 1px solid rgba(255,255,255,0.06);
    justify-content: center;
}
.capability-points li:last-child { border-right: 0; }
.capability-points__bullet {
    width: 6px;
    height: 6px;
    background: var(--c-steel-bright);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ============================ 22. Product card upgrades ============================ */
.product__index {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 3;
    font-family: var(--ff-heading);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--c-white);
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.product__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 3;
    border: 1px solid var(--c-steel-bright);
    opacity: 0;
    transition: opacity var(--t-med), width var(--t-med), height var(--t-med);
    pointer-events: none;
}
.product__corner--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.product__corner--bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.product:hover .product__corner { opacity: 1; width: 24px; height: 24px; }

.product__tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-light-metal);
    margin-bottom: 14px;
    padding-bottom: 10px;
    position: relative;
    opacity: 0.85;
}
.product__tag::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 24px;
    height: 1px;
    background: var(--c-steel-bright);
    transition: width var(--t-med);
}
.product:hover .product__tag::after { width: 56px; }

/* Title + CTA: lift on hover */
.product__title { transition: transform var(--t-med); }
.product:hover .product__title { transform: translateY(-4px); }
.product__cta { transition: transform var(--t-med), color var(--t-fast), border-color var(--t-fast); }
.product:hover .product__cta { transform: translateY(-4px); }

/* Slight brightness bump on the image */
.product__image { filter: brightness(0.92) saturate(0.95); transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), filter var(--t-med); }
.product:hover .product__image { filter: brightness(1) saturate(1); }

/* ============================ 23. Timeline upgrades ============================ */
.timeline { position: relative; }

.timeline__progress {
    position: absolute;
    top: 24px;
    left: 0;
    height: 1px;
    width: 0;
    background: var(--c-steel);
    z-index: 1;
    transition: width 0.15s linear;
}

.timeline__icon {
    width: 36px;
    height: 36px;
    color: var(--c-steel);
    margin: 32px 0 16px;
    transition: color var(--t-med), transform var(--t-med);
}
.timeline__icon svg { width: 100%; height: 100%; }
.timeline__step:hover .timeline__icon { color: var(--c-graphite); transform: translateY(-2px); }

/* Override layout — 5 columns now */
.timeline { grid-template-columns: repeat(5, 1fr); gap: 24px; }

.timeline__num { margin: 24px 0 8px; }

/* ============================ 24. CTA + upload card ============================ */
.cta { padding-top: 96px; padding-bottom: 96px; }

.cta__grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.6;
}

.cta__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    text-align: left;
    max-width: var(--container);
}

.cta__copy { text-align: left; }
.cta__copy .section-label { color: var(--c-light-metal); }
.cta__copy .cta__title {
    text-align: left;
    margin-top: 18px;
    margin-bottom: 20px;
}
.cta__copy .cta__text { margin-bottom: 32px; max-width: 540px; }

.cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Compact spacing on overview & detail pages */
.about.section--framed + .products { padding-top: var(--sp-3); }
.products.section--framed { padding-top: var(--sp-4); }

/* Centered CTA layout when the upload-card has been removed */
.cta__layout:not(:has(.upload-card)) {
    grid-template-columns: 1fr;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.cta__layout:not(:has(.upload-card)) .cta__copy { max-width: 720px; margin: 0 auto; text-align: center; }
.cta__layout:not(:has(.upload-card)) .cta__copy .cta__title { text-align: center; }
.cta__layout:not(:has(.upload-card)) .cta__copy .cta__text { text-align: center; margin-left: auto; margin-right: auto; }
.cta__layout:not(:has(.upload-card)) .cta__copy .cta__buttons { justify-content: center; }

/* Upload card */
.upload-card {
    position: relative;
    display: block;
    padding: 56px 40px 48px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(56, 97, 128, 0.55);
    color: var(--c-white);
    cursor: pointer;
    transition: border-color var(--t-med), background var(--t-med), transform var(--t-med);
    text-align: center;
}
.upload-card:hover {
    border-color: var(--c-steel-bright);
    background: rgba(56, 97, 128, 0.08);
    transform: translateY(-4px);
}
.upload-card.is-dragover {
    border-color: var(--c-steel-bright);
    background: rgba(56, 97, 128, 0.15);
}

.upload-card__input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-card__corner {
    position: absolute;
    width: 16px; height: 16px;
    border: 1px solid var(--c-steel-bright);
    opacity: 0.5;
    transition: opacity var(--t-med), width var(--t-med), height var(--t-med);
}
.upload-card__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.upload-card__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.upload-card__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.upload-card__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.upload-card:hover .upload-card__corner { opacity: 1; width: 22px; height: 22px; }

.upload-card__icon {
    width: 56px;
    height: 56px;
    color: var(--c-steel-bright);
    margin: 0 auto 24px;
    transition: transform var(--t-med);
}
.upload-card:hover .upload-card__icon { transform: translateY(-4px); }

.upload-card__title {
    font-family: var(--ff-heading);
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-white);
    margin-bottom: 10px;
}
.upload-card__desc {
    font-size: 0.95rem;
    color: var(--c-light-metal);
    opacity: 0.75;
    margin-bottom: 28px;
}

.upload-card__formats {
    display: block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-medium-gray);
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}

.upload-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-light-metal);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--c-steel-bright);
}

/* ============================ 25. Footer technical grid ============================ */
.footer { position: relative; }
.footer__grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.7;
}
.footer .container { position: relative; z-index: 1; }
.footer__bottom { position: relative; z-index: 1; }

/* ============================ 25b. About page — inner hero ============================ */
.page-hero {
    position: relative;
    min-height: 480px;
    height: 60vh;
    max-height: 640px;
    color: var(--c-white);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--c-graphite-deep);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    animation: heroKenBurns 14s cubic-bezier(0.33, 0, 0.2, 1) forwards;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(31,32,34,0.6) 0%, rgba(31,32,34,0.85) 100%),
        linear-gradient(120deg, rgba(56,97,128,0.18) 0%, transparent 60%);
}

.page-hero__noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    mix-blend-mode: overlay;
    background-image:
        radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 2px;
}

.page-hero__blueprint {
    position: absolute;
    inset: 32px;
    pointer-events: none;
    opacity: 0.5;
}

.page-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: var(--header-h);
}

.page-hero__content { max-width: 820px; }
.page-hero__content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: heroEnter 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.page-hero__content .breadcrumbs { animation-delay: 0.30s; }
.page-hero__content .eyebrow { animation-delay: 0.40s; }
.page-hero__content .page-hero__title { animation-delay: 0.55s; }
.page-hero__content .page-hero__subtitle { animation-delay: 0.70s; }

.page-hero__title {
    font-family: var(--ff-heading);
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--c-white);
    margin: 24px 0 24px;
}

.page-hero__subtitle {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.7;
    color: var(--c-light-metal);
    max-width: 620px;
    opacity: 0.92;
}

.page-hero .eyebrow { color: var(--c-light-metal); }
.page-hero .eyebrow::before { display: none; }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-medium-gray);
    margin-bottom: 16px;
}
.breadcrumbs a { color: var(--c-light-metal); transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--c-steel-bright); }
.breadcrumbs__sep { color: var(--c-steel-bright); }
.breadcrumbs__current { color: var(--c-white); }

/* ============================ 25c. Expertise grid (Šta radimo) ============================ */
.expertise {
    padding: var(--sp-7) 0;
    background: var(--c-bg-alt);
}

.expertise__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--c-border);
    background: var(--c-white);
}

.expertise__item {
    position: relative;
    padding: 40px 32px 44px;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: var(--c-white);
    transition: background var(--t-med), transform var(--t-med);
    overflow: hidden;
}
.expertise__item::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--c-steel);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.expertise__item:hover { background: var(--c-graphite); }
.expertise__item:hover::before { width: 100%; }
.expertise__item:hover .expertise__title,
.expertise__item:hover .expertise__desc,
.expertise__item:hover .expertise__icon { color: var(--c-white); }
.expertise__item:hover .expertise__icon { color: var(--c-steel-bright); }
.expertise__item:hover .expertise__num { color: rgba(255,255,255,0.18); }

.expertise__grid > .expertise__item:nth-child(4n) { border-right: 0; }
.expertise__grid > .expertise__item:nth-last-child(-n+4) { border-bottom: 0; }

.expertise__num {
    display: block;
    font-family: var(--ff-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--c-medium-gray);
    margin-bottom: 24px;
    transition: color var(--t-med);
}

.expertise__icon {
    width: 36px;
    height: 36px;
    color: var(--c-steel);
    margin-bottom: 24px;
    transition: color var(--t-med);
}
.expertise__icon svg { width: 100%; height: 100%; }

.expertise__title {
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-graphite);
    margin-bottom: 12px;
    transition: color var(--t-med);
}

.expertise__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin: 0;
    transition: color var(--t-med);
}

/* ============================ 25d. Why ILGM cards ============================ */
.why {
    padding: var(--sp-7) 0;
    background: var(--c-bg);
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why__card {
    position: relative;
    padding: 44px 32px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
    overflow: hidden;
}
.why__card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-steel), transparent);
    transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.why__card:hover {
    border-color: var(--c-steel);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(31,32,34,0.06);
}
.why__card:hover::before { left: 100%; }

.why__corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid var(--c-steel);
    opacity: 0.5;
    transition: opacity var(--t-med), width var(--t-med), height var(--t-med);
}
.why__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.why__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.why__card:hover .why__corner { opacity: 1; width: 22px; height: 22px; }

.why__num {
    display: block;
    font-family: var(--ff-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--c-steel);
    margin-bottom: 20px;
}

.why__title {
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-graphite);
    margin-bottom: 14px;
    line-height: 1.3;
}

.why__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin: 0;
}

/* ============================ 25d2. Products page ============================ */

/* Description text on product cards (Proizvodi listing) */
.product__desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--c-light-metal);
    opacity: 0.85;
    margin: 0 0 18px;
    max-width: 38ch;
}

/* Products intro layout (two-column) */
.products-intro {
    padding: var(--sp-7) 0;
    background: var(--c-bg);
}
.products-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.products-intro__copy { padding-right: 16px; }
.products-intro__lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--c-text-muted);
    margin-bottom: 24px;
}

/* Range — products by use case */
.range {
    padding: var(--sp-7) 0;
    background: var(--c-bg-alt);
    position: relative;
}

.range__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.range__item {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: border-color var(--t-med), box-shadow var(--t-med);
}
.range__item:hover {
    border-color: var(--c-steel);
    box-shadow: 0 24px 48px rgba(31,32,34,0.08);
}
.range__item--reverse { grid-template-columns: 1fr 1.05fr; }
.range__item--reverse .range__media { order: 2; }
.range__item--reverse .range__body { order: 1; }

.range__media {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.range__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,32,34,0.05), rgba(31,32,34,0.55));
    transition: background var(--t-med);
}
.range__item:hover .range__media::after {
    background: linear-gradient(180deg, rgba(56,97,128,0.10), rgba(31,32,34,0.55));
}

.range__index {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    font-family: var(--ff-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    color: var(--c-white);
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.range__corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--c-steel-bright);
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
}
.range__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.range__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.range__body {
    padding: 56px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.range__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-steel);
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 2px solid var(--c-steel);
}
.range__title {
    font-family: var(--ff-heading);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-graphite);
    margin: 0 0 18px;
    line-height: 1.2;
}
.range__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}
.range__items li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--c-text-muted);
    transition: color var(--t-fast);
}
.range__items li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--c-steel-bright);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.range__items li:hover { color: var(--c-graphite); }
.range__items a {
    color: inherit;
    transition: color var(--t-fast);
}
.range__items a:hover { color: var(--c-steel); }

/* Custom production section */
.custom-production {
    padding: var(--sp-7) 0;
    background: var(--c-graphite-deep);
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}
.custom-production__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    opacity: 0.7;
}

.custom-production__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.custom-production__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.custom-production__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,32,34,0.10), rgba(31,32,34,0.6));
}
.custom-production__media-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid var(--c-steel-bright);
    z-index: 2;
}
.custom-production__media-corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.custom-production__media-corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.custom-production__media-tag {
    position: absolute;
    bottom: 22px;
    left: 28px;
    z-index: 3;
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-white);
    padding-left: 14px;
    border-left: 2px solid var(--c-steel-bright);
}

.custom-production__copy .section-label { color: var(--c-light-metal); }
.custom-production__title {
    font-family: var(--ff-heading);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-white);
    margin: 16px 0 20px;
    line-height: 1.15;
}
.custom-production__text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--c-light-metal);
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 600px;
}

.custom-production__bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.custom-production__bullets li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--c-light-metal);
}
.custom-production__bullets li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--c-steel-bright);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Range / Custom production responsive */
@media (max-width: 960px) {
    .products-intro__grid { grid-template-columns: 1fr; gap: 32px; }
    .range__item,
    .range__item--reverse {
        grid-template-columns: 1fr;
    }
    .range__item--reverse .range__media { order: 0; }
    .range__item--reverse .range__body { order: 0; }
    .range__media { min-height: 240px; }
    .range__body { padding: 40px 32px; }
    .custom-production__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .range__body { padding: 32px 24px; }
}

/* ============================ 25d3. Product detail page ============================ */

/* Technical spec table */
.spec-table {
    width: 100%;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    border-collapse: collapse;
    background: var(--c-white);
}
.spec-table tr {
    border-bottom: 1px solid var(--c-border);
    transition: background var(--t-fast);
}
.spec-table tr:last-child { border-bottom: 0; }
.spec-table tr:hover { background: var(--c-bg-alt); }

.spec-table th,
.spec-table td {
    padding: 18px 24px;
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.6;
}
.spec-table th {
    width: 32%;
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    border-right: 1px solid var(--c-border);
    background: var(--c-bg-alt);
}
.spec-table td { color: var(--c-graphite); font-weight: 500; }

@media (max-width: 640px) {
    .spec-table th, .spec-table td { display: block; width: 100%; padding: 14px 18px; }
    .spec-table th { border-right: 0; border-bottom: 1px solid var(--c-border); }
}

/* Applications grid (use cases) */
.applications {
    padding: var(--sp-7) 0;
    background: var(--c-bg);
}
.applications__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--c-border);
    background: var(--c-white);
}
.application {
    position: relative;
    padding: 36px 32px 40px;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    transition: background var(--t-med);
    overflow: hidden;
}
.application::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 2px;
    background: var(--c-steel);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.application:hover { background: var(--c-graphite); }
.application:hover::before { width: 100%; }
.application:hover .application__title,
.application:hover .application__desc { color: var(--c-white); }
.application:hover .application__num { color: rgba(255,255,255,0.18); }
.application:hover .application__marker { background: var(--c-steel-bright); }

.applications__grid > .application:nth-child(3n) { border-right: 0; }
.applications__grid > .application:nth-last-child(-n+3) { border-bottom: 0; }

.application__num {
    display: block;
    font-family: var(--ff-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--c-medium-gray);
    margin-bottom: 18px;
    transition: color var(--t-med);
}
.application__marker {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--c-steel);
    transform: rotate(45deg);
    margin-bottom: 18px;
    transition: background var(--t-med);
}
.application__title {
    font-family: var(--ff-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-graphite);
    margin-bottom: 10px;
    transition: color var(--t-med);
}
.application__desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--c-text-muted);
    margin: 0;
    transition: color var(--t-med);
}

@media (max-width: 1180px) {
    .applications__grid { grid-template-columns: repeat(2, 1fr); }
    .applications__grid > .application:nth-child(3n) { border-right: 1px solid var(--c-border); }
    .applications__grid > .application:nth-child(2n) { border-right: 0; }
    .applications__grid > .application:nth-last-child(-n+3) { border-bottom: 1px solid var(--c-border); }
    .applications__grid > .application:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 640px) {
    .applications__grid { grid-template-columns: 1fr; }
    .applications__grid > .application { border-right: 0 !important; }
    .applications__grid > .application:not(:last-child) { border-bottom: 1px solid var(--c-border) !important; }
    .applications__grid > .application:last-child { border-bottom: 0 !important; }
}

/* Gallery (uses .products__grid but with simpler cards) */
.gallery .product { aspect-ratio: 4 / 3; }
.gallery .product__content { padding: 22px 24px; }
.gallery .product__title { font-size: 1.05rem; margin-bottom: 0; }

/* ============================ 25e. Contact page ============================ */
.contact-cards {
    padding: var(--sp-7) 0 var(--sp-5);
    background: var(--c-bg);
}

.contact-cards__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: var(--sp-5);
}

.contact-card {
    position: relative;
    padding: 36px 28px 32px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
    overflow: hidden;
}
.contact-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 2px;
    background: var(--c-steel);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-card:hover {
    border-color: var(--c-steel);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(31,32,34,0.06);
}
.contact-card:hover::before { width: 100%; }

.contact-card__icon {
    width: 32px;
    height: 32px;
    color: var(--c-steel);
    margin-bottom: 20px;
}
.contact-card__icon svg { width: 100%; height: 100%; }

.contact-card__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-medium-gray);
    margin-bottom: 12px;
}

.contact-card__value {
    display: block;
    font-family: var(--ff-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--c-graphite);
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0.01em;
}
.contact-card__value a {
    color: var(--c-graphite);
    transition: color var(--t-fast);
}
.contact-card__value a:hover { color: var(--c-steel); }

/* Form + Map layout */
.contact-form-section {
    padding: var(--sp-6) 0 var(--sp-7);
    background: var(--c-bg-alt);
    position: relative;
}

.contact-form-section .frame-corner { z-index: 2; }

.contact-form-section__layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* Form */
.contact-form {
    background: var(--c-white);
    padding: 48px 44px;
    border: 1px solid var(--c-border);
    position: relative;
}
.contact-form__head {
    margin-bottom: 36px;
}
.contact-form__head .section-label { color: var(--c-steel); }
.contact-form__title {
    font-family: var(--ff-heading);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--c-graphite);
    margin: 12px 0 10px;
    line-height: 1.2;
}
.contact-form__sub {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin: 0;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.contact-form__field { margin-bottom: 18px; display: flex; flex-direction: column; }
.contact-form__row .contact-form__field { margin-bottom: 0; }

.contact-form__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 8px;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-graphite);
    font-family: var(--ff-body);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder { color: var(--c-medium-gray); }
.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
    border-color: var(--c-steel);
    background: var(--c-white);
    box-shadow: 0 0 0 3px rgba(56, 97, 128, 0.12);
}
.contact-form__input:invalid:not(:placeholder-shown) {
    border-color: #b94a48;
}

.contact-form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23386180' stroke-width='1.5'><path d='M1 1l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

.contact-form__textarea {
    resize: vertical;
    min-height: 140px;
}

/* File field — re-used upload card style, smaller */
.contact-form__file {
    position: relative;
    display: block;
    padding: 20px 20px;
    background: var(--c-bg);
    border: 1px dashed rgba(56, 97, 128, 0.55);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--t-med), background var(--t-med);
    margin-bottom: 24px;
}
.contact-form__file:hover {
    border-color: var(--c-steel-bright);
    background: rgba(56, 97, 128, 0.04);
}
.contact-form__file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.contact-form__file-title {
    display: block;
    font-family: var(--ff-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-graphite);
    margin-bottom: 6px;
}
.contact-form__file-formats {
    display: block;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-medium-gray);
}

.contact-form__submit {
    width: 100%;
    margin-top: 8px;
}

.contact-form__status {
    margin-top: 18px;
    padding: 14px 16px;
    background: rgba(56, 97, 128, 0.08);
    border-left: 2px solid var(--c-steel);
    font-size: 0.92rem;
    color: var(--c-graphite);
    display: none;
}
.contact-form__status.is-visible { display: block; animation: fadeUp 0.5s ease; }
.contact-form__status.form-status--success {
    background: rgba(56, 97, 128, 0.10);
    border-left-color: var(--c-steel-bright);
    color: var(--c-graphite);
}
.contact-form__status.form-status--error {
    background: rgba(176, 48, 48, 0.06);
    border-left-color: #b03030;
    color: #8a2424;
}
.contact-form__status.form-status--info {
    background: rgba(56, 97, 128, 0.05);
    border-left-color: var(--c-medium-gray);
    color: var(--c-graphite);
}
.contact-form__submit.is-loading {
    opacity: 0.7;
    cursor: progress;
    pointer-events: none;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Map */
.map-card {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--c-graphite);
    overflow: hidden;
    border: 1px solid var(--c-border);
}
.map-card__frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.3) contrast(1.05);
    transition: filter var(--t-med);
}
.map-card:hover .map-card__frame { filter: grayscale(0); }

.map-card__corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid var(--c-steel-bright);
    z-index: 2;
    pointer-events: none;
}
.map-card__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.map-card__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.map-card__tag {
    position: absolute;
    bottom: 18px;
    left: 24px;
    z-index: 3;
    padding: 8px 14px;
    background: rgba(31,32,34,0.9);
    color: var(--c-white);
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-left: 2px solid var(--c-steel-bright);
}

/* Contact form responsive */
@media (max-width: 1180px) {
    .contact-cards__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .contact-form-section__layout { grid-template-columns: 1fr; gap: 32px; }
    .map-card { aspect-ratio: 16 / 11; }
}
@media (max-width: 640px) {
    .contact-cards__grid { grid-template-columns: 1fr; gap: 14px; }
    .contact-form { padding: 32px 22px; }
    .contact-form__row { grid-template-columns: 1fr; gap: 0; }
    .contact-form__row .contact-form__field { margin-bottom: 18px; }
}

/* ============================ 26. Stagger reveal helper ============================ */
.stagger-reveal > .reveal { transition-delay: 0s; }
.stagger-reveal > .reveal.is-visible:nth-child(1)  { transition-delay: 0.00s; }
.stagger-reveal > .reveal.is-visible:nth-child(2)  { transition-delay: 0.08s; }
.stagger-reveal > .reveal.is-visible:nth-child(3)  { transition-delay: 0.16s; }
.stagger-reveal > .reveal.is-visible:nth-child(4)  { transition-delay: 0.24s; }
.stagger-reveal > .reveal.is-visible:nth-child(5)  { transition-delay: 0.32s; }
.stagger-reveal > .reveal.is-visible:nth-child(6)  { transition-delay: 0.40s; }

/* ============================ 17. Responsive ============================ */
@media (max-width: 1180px) {
    .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .service:nth-child(3n) { border-right: 1px solid var(--c-border); }
    .service:nth-child(2n) { border-right: none; }
    .service:nth-last-child(-n+3) { border-bottom: 1px solid var(--c-border); }
    .service:nth-last-child(-n+2) { border-bottom: none; }

    .machines { grid-template-columns: 1fr; gap: 16px; }
    .timeline { grid-template-columns: 1fr; }
    .expertise__grid { grid-template-columns: repeat(2, 1fr); }
    .expertise__grid > .expertise__item:nth-child(4n) { border-right: 1px solid var(--c-border); }
    .expertise__grid > .expertise__item:nth-child(2n) { border-right: 0; }
    .expertise__grid > .expertise__item:nth-last-child(-n+4) { border-bottom: 1px solid var(--c-border); }
    .expertise__grid > .expertise__item:nth-last-child(-n+2) { border-bottom: 0; }
    .why__grid { grid-template-columns: repeat(2, 1fr); }
    .trust__list { grid-template-columns: repeat(2, 1fr); }
    .trust__item:nth-child(2) { border-right: 0; }
    .trust__item:nth-child(-n+4) { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .trust__item:last-child { grid-column: 1 / -1; border-right: 0; }

    .cta__layout { grid-template-columns: 1fr; gap: 48px; }
    .frame-corner { display: none; }
}

@media (max-width: 960px) {
    :root { --container-pad: 24px; }

    .header__nav { display: none; }
    .hamburger { display: flex; }

    .about__grid { grid-template-columns: 1fr; gap: 32px; }
    .stats { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--c-border); }
    .stat:last-child { border-bottom: none; }

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

    .about__image-wrap { aspect-ratio: 16 / 9; margin-top: 24px; }

    .timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .timeline::before {
        top: 0; bottom: 0;
        left: 8px; right: auto;
        width: 1px; height: 100%;
    }
    .timeline__progress {
        top: 0;
        left: 8px;
        width: 1px !important;
        height: 0;
        transition: height 0.15s linear;
    }
    .timeline__step {
        padding: 0 0 40px 40px;
    }
    .timeline__step:last-child { padding-bottom: 0; }
    .timeline__step::before {
        top: 6px; left: 2px;
    }
    .timeline__num { margin: 0 0 12px; }
    .timeline__icon { margin: 8px 0 12px; width: 32px; height: 32px; }

    .trust__list { grid-template-columns: 1fr; }
    .trust__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .trust__item:last-child { border-bottom: 0; }
    .trust__item:nth-child(-n+4) { border-bottom: 1px solid rgba(255,255,255,0.08); }

    .hero__controls-inner { gap: 16px; }
    .hero__counter { font-size: 13px; }
    .hero__counter-current { font-size: 20px; }

    .capabilities__list { gap: 32px; padding: 18px 16px; }
    .capabilities__list li { font-size: 13px; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --container-pad: 20px; --sp-7: 72px; }

    .header__logo-img { height: 42px; }
    .site-header.is-scrolled .header__logo-img { height: 38px; }
    .footer__logo-img { height: 54px; }

    .hero { min-height: 100vh; }
    .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .hero__subtitle { font-size: 0.98rem; margin-bottom: 32px; }
    .hero__ctas { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 320px; }
    .btn { width: 100%; padding: 16px 24px; }
    .hero__dots { bottom: 32px; gap: 10px; }
    .hero__dot { width: 28px; }
    .hero__dot.is-active { width: 44px; }
    .hero__scroll { display: none; }

    .services__grid { grid-template-columns: 1fr; }
    .service { border-right: none !important; }
    .service:not(:last-child) { border-bottom: 1px solid var(--c-border) !important; }

    .products__grid { grid-template-columns: 1fr; gap: 16px; }

    .expertise__grid { grid-template-columns: 1fr; }
    .expertise__grid > .expertise__item { border-right: 0 !important; }
    .expertise__grid > .expertise__item:not(:last-child) { border-bottom: 1px solid var(--c-border) !important; }
    .expertise__grid > .expertise__item:last-child { border-bottom: 0 !important; }

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

    .page-hero { min-height: 420px; }
    .page-hero__title { margin-top: 18px; }

    .technology__features { grid-template-columns: 1fr; }
    .tech-feature { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .tech-feature:last-child { border-bottom: none; }

    .capability-points { display: block; }
    .capability-points li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); justify-content: flex-start; }
    .capability-points li:last-child { border-bottom: 0; }

    .upload-card { padding: 40px 24px 36px; }
    .upload-card__title { font-size: 1.1rem; }

    .hero__blueprint { inset: 16px; }
    .bp-coord { font-size: 9px; letter-spacing: 0.18em; }
    .bp-coord--tl { left: 36px; }
    .bp-coord--br { right: 36px; }

    .footer__grid { grid-template-columns: 1fr; gap: 40px; }
    .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }

    .section-head { text-align: left; }
    .section-head .section-sub { margin-left: 0; }
}

/* ============================ 27. Language switch ============================ */
.nav__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-light-metal);
    border: 1px solid rgba(255,255,255,0.2);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
    margin-left: 8px;
}
.nav__lang:hover {
    color: var(--c-white);
    border-color: var(--c-steel-bright);
    background: rgba(56, 97, 128, 0.15);
}

.mobile-menu__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    font-family: var(--ff-heading);
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-light-metal);
    border: 1px solid rgba(255,255,255,0.15);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
    margin-top: 8px;
}
.mobile-menu__lang:hover {
    color: var(--c-white);
    border-color: var(--c-steel-bright);
    background: rgba(56, 97, 128, 0.12);
}

/* ============================ 28. Product detail — sidebar layout ============================ */
.product-detail {
    padding: var(--sp-7) 0;
    background: var(--c-bg);
}

.product-detail__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

/* Sidebar */
.product-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.product-sidebar__title {
    font-family: var(--ff-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-graphite);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}

.product-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 36px;
}

.product-sidebar__link {
    display: block;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--c-text-muted);
    border-left: 2px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), padding var(--t-fast);
}
.product-sidebar__link:hover {
    color: var(--c-graphite);
    border-left-color: var(--c-steel);
    background: var(--c-bg-alt);
    padding-left: 20px;
}
.product-sidebar__link.is-active {
    color: var(--c-steel);
    border-left-color: var(--c-steel);
    background: rgba(56, 97, 128, 0.06);
    font-weight: 600;
}

/* Document block */
.product-sidebar__doc {
    padding: 24px 20px;
    background: var(--c-graphite-deep);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}
.product-sidebar__doc::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.product-sidebar__doc-title {
    font-family: var(--ff-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-white);
    margin-bottom: 10px;
    position: relative;
}

.product-sidebar__doc-text {
    font-size: 0.88rem;
    color: var(--c-light-metal);
    opacity: 0.8;
    margin-bottom: 16px;
    position: relative;
}

.product-sidebar__doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-white);
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color var(--t-fast), background var(--t-fast);
    position: relative;
}
.product-sidebar__doc-btn:hover {
    border-color: var(--c-steel-bright);
    background: rgba(56, 97, 128, 0.15);
}
.product-sidebar__doc-btn svg {
    width: 14px;
    height: 14px;
}

/* Main content area */
.product-main__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--c-graphite);
    margin-bottom: 48px;
}
.product-main__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92) saturate(0.95);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1), filter var(--t-med);
}
.product-main__image:hover img {
    transform: scale(1.04);
    filter: brightness(1) saturate(1);
}
.product-main__image-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid var(--c-steel-bright);
    z-index: 2;
    pointer-events: none;
}
.product-main__image-corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.product-main__image-corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.product-main__image-tag {
    position: absolute;
    bottom: 18px;
    left: 24px;
    z-index: 2;
    font-family: var(--ff-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-white);
    padding-left: 14px;
    border-left: 2px solid var(--c-steel-bright);
}

.product-main__desc {
    margin-bottom: 48px;
}
.product-main__desc-label {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-steel);
    margin-bottom: 16px;
    position: relative;
}
.product-main__desc-label::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--c-steel);
    vertical-align: middle;
    margin-right: 12px;
    transform: translateY(-2px);
}
.product-main__desc h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    margin-bottom: 20px;
}
.product-main__desc p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-text-muted);
}

/* Product gallery grid */
.product-gallery {
    margin-bottom: 48px;
}
.product-gallery__title {
    font-family: var(--ff-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-graphite);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}
.product-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.product-gallery__item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--c-graphite);
}
.product-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88) saturate(0.9);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter var(--t-med);
}
.product-gallery__item:hover img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1);
}
.product-gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,32,34,0) 50%, rgba(31,32,34,0.6) 100%);
    pointer-events: none;
}
.product-gallery__caption {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 2;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-light-metal);
}

/* Product spec table inside detail */
.product-specs {
    margin-bottom: 48px;
}
.product-specs__title {
    font-family: var(--ff-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-graphite);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}

/* ============================ 29. Products main page — category nav strip ============================ */
.category-nav {
    padding: 0 0 var(--sp-5);
    background: var(--c-bg);
}
.category-nav__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 32px 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}
.category-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    border: 1px solid var(--c-border);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.category-nav__link:hover {
    color: var(--c-white);
    background: var(--c-graphite);
    border-color: var(--c-graphite);
    transform: translateY(-2px);
}
.category-nav__link.is-active {
    color: var(--c-white);
    background: var(--c-steel);
    border-color: var(--c-steel);
}

/* Product detail responsive */
@media (max-width: 960px) {
    .product-detail__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-sidebar {
        position: static;
        display: flex;
        flex-direction: column;
    }
    .product-sidebar__nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px;
    }
    .product-sidebar__link {
        border-left: 0;
        border: 1px solid var(--c-border);
        padding: 8px 14px;
        font-size: 12px;
    }
    .product-sidebar__link:hover {
        padding-left: 14px;
    }
    .product-sidebar__link.is-active {
        border-color: var(--c-steel);
    }
}
@media (max-width: 640px) {
    .product-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-nav__inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 8px;
        padding: 20px 0;
    }
    .category-nav__link {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 11px;
    }
}

/* ============================ 30. Category / Service Carousel ============================ */
.category-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 56px;
    width: 100%;
    box-sizing: border-box;
}
.category-carousel__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.category-carousel__slide {
    flex: 0 0 33.333%;
    width: 33.333%;
    min-width: 0;
    padding: 0 12px;
    box-sizing: border-box;
}
.category-carousel__slide > .product {
    display: block;
    width: 100%;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-graphite);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--c-white);
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.carousel-arrow:hover {
    background: var(--c-steel);
    border-color: var(--c-steel);
}
.carousel-arrow svg {
    width: 20px;
    height: 20px;
}
.carousel-arrow--prev { left: 0; }
.carousel-arrow--next { right: 0; }

@media (max-width: 960px) {
    .category-carousel { padding: 0 48px; }
    .category-carousel__slide { flex: 0 0 50%; width: 50%; }
    .carousel-arrow { width: 40px; height: 40px; }
    .carousel-arrow svg { width: 18px; height: 18px; }
}
@media (max-width: 640px) {
    .category-carousel { padding: 0 40px; }
    .category-carousel__slide { flex: 0 0 100%; width: 100%; }
    .carousel-arrow { width: 36px; height: 36px; }
    .carousel-arrow svg { width: 16px; height: 16px; }
}

/* ============================ 31. Service detail — capabilities & process ============================ */
.service-capabilities {
    margin-bottom: 48px;
}
.service-capabilities__title {
    font-family: var(--ff-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-graphite);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}
.service-capabilities__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.service-capabilities__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--c-text-muted);
    border-bottom: 1px solid var(--c-border);
}
.service-capabilities__item::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--c-steel);
}
@media (max-width: 640px) {
    .service-capabilities__list { grid-template-columns: 1fr; }
}

/* Process steps */
.process-steps {
    padding: var(--sp-7) 0;
    background: var(--c-bg-alt);
}
.process-steps__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: var(--sp-5);
}
.process-step {
    text-align: center;
    position: relative;
}
.process-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    font-family: var(--ff-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-white);
    background: var(--c-steel);
    position: relative;
}
.process-step__number::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(100% + 24px);
    height: 1px;
    background: var(--c-border-strong);
}
.process-step:last-child .process-step__number::after { display: none; }
.process-step__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.4;
}

@media (max-width: 960px) {
    .process-steps__grid { grid-template-columns: repeat(3, 1fr); }
    .process-step:nth-child(3) .process-step__number::after { display: none; }
}
@media (max-width: 640px) {
    .process-steps__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .process-step .process-step__number::after { display: none; }
    .process-step__number { width: 48px; height: 48px; font-size: 1.1rem; }
}

/* Services grid on usluge.html */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.services__grid .product {
    min-height: 380px;
}
.services__grid .product__desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    line-height: 1.5;
}
@media (max-width: 640px) {
    .services__grid { grid-template-columns: 1fr; }
}

/* ============================ 32. Logo styling (transparent logo, no plate) ============================ */
.header__logo,
.footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Gallery page section — compact spacing */
.gallery-section {
    padding: var(--sp-6) 0 var(--sp-7);
    background: var(--c-bg);
}
.gallery-section .section-head {
    margin-bottom: var(--sp-4);
}
.gallery-section .gallery-filters {
    margin-bottom: var(--sp-4);
}

/* ============================ 33. Fancybox gallery enhancements ============================ */
.product-gallery__item {
    cursor: zoom-in;
}
.product-gallery__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(31,32,34,0);
    transition: background var(--t-med);
    z-index: 2;
    pointer-events: none;
}
.product-gallery__item:hover::before { background: rgba(31,32,34,0.22); }

.product-gallery__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 3;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56,97,128,0.85);
    color: var(--c-white);
    opacity: 0;
    transition: opacity var(--t-med), transform var(--t-med);
    pointer-events: none;
}
.product-gallery__item:hover .product-gallery__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.product-gallery__zoom svg { width: 22px; height: 22px; }

/* Fancybox custom theming */
.fancybox__container { --fancybox-bg: rgba(20, 20, 22, 0.95); }
.fancybox__caption { font-family: var(--ff-body); letter-spacing: 0.08em; }

/* ============================ 34. Gallery page (galerija.html) ============================ */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 var(--sp-5);
}
.gallery-filter {
    padding: 10px 22px;
    font-family: var(--ff-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    background: transparent;
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.gallery-filter:hover {
    color: var(--c-white);
    background: var(--c-graphite);
    border-color: var(--c-graphite);
}
.gallery-filter.is-active {
    color: var(--c-white);
    background: var(--c-steel);
    border-color: var(--c-steel);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery-grid__item {
    position: relative;
    overflow: hidden;
    background: var(--c-graphite);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-grid__item.is-hidden {
    display: none;
}
.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.95);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter var(--t-med);
}
.gallery-grid__item:hover img {
    transform: scale(1.06);
    filter: brightness(1) saturate(1);
}
.gallery-grid__item-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1px solid var(--c-steel-bright);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--t-med);
}
.gallery-grid__item:hover .gallery-grid__item-corner { opacity: 1; }
.gallery-grid__item-corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.gallery-grid__item-corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.gallery-grid__caption {
    position: absolute;
    bottom: 14px;
    left: 18px;
    right: 18px;
    z-index: 3;
    color: var(--c-white);
    pointer-events: none;
}
.gallery-grid__category {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-steel-bright);
    margin-bottom: 6px;
}
.gallery-grid__title {
    font-family: var(--ff-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin: 0;
}

.gallery-grid__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 3;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56,97,128,0.85);
    color: var(--c-white);
    opacity: 0;
    transition: opacity var(--t-med), transform var(--t-med);
    pointer-events: none;
}
.gallery-grid__item:hover .gallery-grid__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.gallery-grid__zoom svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
    .gallery-filters { gap: 6px; }
    .gallery-filter { padding: 8px 14px; font-size: 11px; }
}

/* Mobile menu 8th item animation delay */
.mobile-menu.is-open .mobile-menu__list > li:nth-child(8) .mobile-menu__link,
.mobile-menu.is-open .mobile-menu__list > li:nth-child(8) .mobile-menu__lang { transition-delay: 0.50s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
