:root {
    --bg: #f3f5f7;
    --panel: #ffffff;
    --ink: #17202a;
    --muted: #64717d;
    --line: #dfe5ea;
    --accent: #0f766e;
    --accent-dark: #0c5f58;
    --accent-soft: #e6f4f2;
    --shadow: 0 24px 60px rgba(14, 28, 44, .12);
    --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(15, 118, 110, .12), transparent 32rem),
        radial-gradient(circle at 90% 5%, rgba(37, 99, 235, .10), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(223, 229, 234, .85);
}

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

.brand-mark { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-symbol {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #153e75);
    box-shadow: 0 10px 24px rgba(15, 118, 110, .26);
}
.brand-text { font-size: 1.15rem; }

.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .94rem; font-weight: 650; color: #2c3945; }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 10px;
    min-width: 48px;
    font-weight: 800;
    cursor: pointer;
}
.lang-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn {
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 16px 34px rgba(15, 118, 110, .23);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 18px 38px rgba(15, 118, 110, .30); }
.btn-small { padding: 10px 15px; font-size: .9rem; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: #f9fbfc; color: var(--ink); box-shadow: none; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid rgba(15, 118, 110, .35); box-shadow: none; }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-dark); box-shadow: none; }

.hero { padding: 92px 0 58px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 46px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    font-size: clamp(1.7rem, 3.8vw, 3.45rem);
    line-height: .9;
    letter-spacing: -.075em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
h1::after {
    content: "";
    display: block;
    width: min(620px, 100%);
    height: 8px;
    background: currentColor;
    opacity: .82;
    margin-top: 22px;
}
.hero-lead { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-panel {
    position: relative;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(223, 229, 234, .92);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-panel::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -30%;
    width: 260px;
    height: 260px;
    background: rgba(15, 118, 110, .12);
    border-radius: 50%;
}
.panel-line { height: 4px; width: 92px; background: var(--accent); border-radius: 999px; margin-bottom: 22px; }
.quick-stat { position: relative; padding: 18px 0; border-bottom: 1px solid var(--line); }
.quick-stat:last-child { border-bottom: 0; }
.quick-stat strong { display: block; font-size: 2.25rem; letter-spacing: -.04em; }
.quick-stat span { color: var(--muted); font-weight: 650; }

.section { padding: 72px 0; }
.section-head { max-width: 720px; }
.section-head.centered { text-align: center; margin: 0 auto 36px; }
.section-head.split { display: flex; align-items: end; justify-content: space-between; gap: 22px; max-width: none; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.055em; margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }

.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.logo-card {
    min-height: 112px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(223, 229, 234, .9);
    box-shadow: 0 14px 36px rgba(14, 28, 44, .08);
    padding: 20px;
    overflow: hidden;
    position: relative;
}
.logo-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 14px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(15, 118, 110, .45), transparent);
}
.logo-card span {
    font-size: clamp(1.25rem, 2vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -.045em;
    color: #2f4b5b;
}
.logo-card.b-rkert span, .logo-card.pepperl-fuchs span, .logo-card.asco span, .logo-card.omron span { color: #1f8f83; }
.logo-card.siemens span, .logo-card.sick span, .logo-card.keyence span, .logo-card.balluff span { color: #126a8a; }
.logo-card.abb span { color: #c62828; }
.logo-card.schneider-electric span { color: #15803d; }
.logo-card.allen-bradley span { color: #24496b; }

.all-brands-section { background: rgba(255, 255, 255, .58); border-top: 1px solid rgba(223, 229, 234, .75); border-bottom: 1px solid rgba(223, 229, 234, .75); }
.brand-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.brand-list span {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-weight: 700;
    color: #344453;
}
.brand-list span::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: start; }
.steps { display: grid; gap: 16px; }
.step-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(14, 28, 44, .07);
}
.step-card span { color: var(--accent); font-weight: 950; letter-spacing: .14em; font-size: .78rem; }
.step-card strong { display: block; margin: 10px 0 8px; font-size: 1.18rem; }
.step-card p { color: var(--muted); margin-bottom: 0; line-height: 1.6; }

.site-footer { background: #111c26; color: #fff; padding: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 420px; gap: 44px; align-items: start; }
.footer-logo { font-size: 2rem; font-weight: 950; letter-spacing: -.06em; margin-bottom: 14px; }
.site-footer p { color: rgba(255, 255, 255, .72); line-height: 1.7; }
.contact-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    padding: 24px;
}
.contact-card h3 { margin-bottom: 18px; }
.contact-card p { margin-bottom: 8px; }
.contact-card a { color: #8ddbd2; font-weight: 800; }
.footer-btn { margin-top: 16px; width: 100%; }

.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 100;
}
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 26, .62); backdrop-filter: blur(8px); }
.modal-dialog {
    position: relative;
    width: min(680px, calc(100% - 32px));
    max-height: calc(100vh - 42px);
    overflow: auto;
    margin: 22px auto;
    background: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f0f3f5;
    color: var(--ink);
    font-size: 1.6rem;
    cursor: pointer;
}
.modal-lead { color: var(--muted); line-height: 1.65; }
.inquiry-form { display: grid; gap: 16px; margin-top: 24px; }
.inquiry-form label { display: grid; gap: 8px; font-weight: 800; color: #27323d; }
.field-hint {
    display: block;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.5;
}
.inquiry-form input, .inquiry-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 15px;
    font: inherit;
    color: var(--ink);
    background: #fbfcfd;
    outline: none;
}
.inquiry-form .file-input {
    padding: 12px 14px;
    background: #fff;
}
.inquiry-form input:focus, .inquiry-form textarea:focus {
    border-color: rgba(15, 118, 110, .65);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
    background: #fff;
}
.captcha-line { grid-template-columns: 1fr 160px; align-items: center; }
.hp-field { display: none !important; }
.form-submit { width: 100%; margin-top: 4px; }
.form-status { min-height: 24px; font-weight: 800; color: var(--muted); }
.form-status.ok { color: #15803d; }
.form-status.error { color: #b42318; }
body.modal-open { overflow: hidden; }

@media (max-width: 980px) {
    .hero-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
    .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .brand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-head.split { align-items: start; flex-direction: column; }
}

@media (max-width: 720px) {
    .container { width: min(100% - 28px, 1180px); }
    .nav-bar { align-items: flex-start; padding: 14px 0; flex-direction: column; }
    .nav-links { flex-wrap: wrap; gap: 10px; }
    .hero { padding-top: 58px; }
    .section { padding: 56px 0; }
    h1 {
        font-size: clamp(1.4rem, 7.2vw, 2.2rem);
        max-width: 10ch;
        line-height: .94;
        margin-bottom: 22px;
    }
    h1::after {
        height: 6px;
        margin-top: 16px;
    }
    .hero-lead { font-size: 1rem; }
    .hero-panel { padding: 24px 20px; }
    .quick-stat strong { font-size: 1.95rem; }
    .hero-actions > * { width: 100%; }
    .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-list { grid-template-columns: 1fr; }
    .captcha-line { grid-template-columns: 1fr; }
    .modal-dialog { margin: 16px auto; padding: 26px 20px; border-radius: 22px; }
}


.logo-card.has-logo {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.logo-card.has-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .13);
    border-color: rgba(15, 118, 110, .28);
}

/* Extracted logo image cards */
.logo-card.has-logo {
    min-height: 132px;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 22px 20px 16px;
    background: rgba(255, 255, 255, .92);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.logo-card.has-logo::after {
    inset: auto 24px 10px;
    opacity: .45;
}
.logo-card.has-logo img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 230px);
    max-height: 72px;
    object-fit: contain;
    filter: saturate(1.03) contrast(1.02);
}
.logo-card.has-logo span {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-size: .82rem;
    line-height: 1.2;
    font-weight: 800;
    color: #64717d !important;
    text-align: center;
    letter-spacing: .02em;
}
.logo-card.has-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .13);
    border-color: rgba(15, 118, 110, .28);
}
.logo-card.eltra img,
.logo-card.schneider-electric img,
.logo-card.burkert img,
.logo-card.baumer img,
.logo-card.sick img {
    width: min(100%, 250px);
    max-height: 86px;
}
.logo-card.pilz img,
.logo-card.abb img,
.logo-card.bosch-rexroth img,
.logo-card.allen-bradley img {
    width: min(100%, 245px);
}

/* Company logo + header contact layout */
.site-header {
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 34px rgba(14, 28, 44, .06);
}

.nav-bar {
    min-height: 104px;
    align-items: center;
}

.logo-link {
    flex: 0 0 auto;
    padding: 8px 0;
}

.company-logo {
    display: block;
    width: clamp(210px, 22vw, 330px);
    max-height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(14, 28, 44, .10));
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.top-contacts {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
    width: 100%;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(223, 229, 234, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    color: #31404c;
    font-size: .88rem;
    font-weight: 760;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(14, 28, 44, .05);
}

.contact-pill:hover {
    border-color: rgba(15, 118, 110, .32);
    color: var(--accent);
}

.contact-icon {
    display: inline-grid;
    place-items: center;
    height: 20px;
    min-width: 34px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f3f6f8;
    color: #5e6b75;
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 950;
}

.header-cta {
    background: linear-gradient(135deg, #c7a11a, #8f7415);
    box-shadow: 0 14px 30px rgba(143, 116, 21, .24);
}

.header-cta:hover {
    background: linear-gradient(135deg, #b89212, #76600f);
    box-shadow: 0 18px 36px rgba(143, 116, 21, .30);
}

.nav-links {
    justify-content: flex-end;
}

.footer-company-logo {
    display: block;
    width: min(100%, 360px);
    max-height: 120px;
    object-fit: contain;
    object-position: left center;
    margin: -8px 0 18px;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .28));
}

@media (max-width: 980px) {
    .nav-bar {
        min-height: auto;
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .header-right {
        align-items: flex-start;
        width: 100%;
    }

    .top-contacts,
    .nav-links {
        justify-content: flex-start;
    }

    .company-logo {
        width: min(320px, 78vw);
    }
}

@media (max-width: 720px) {
    .top-contacts {
        align-items: stretch;
    }

    .contact-pill,
    .header-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }

    .company-logo {
        width: min(280px, 82vw);
    }

    .site-header .nav-links {
        width: 100%;
        row-gap: 12px;
    }

    .lang-switch {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

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