:root {
    --mes-green: #336600;
    --mes-green-2: #4d8218;
    --mes-green-dark: #1e3f08;
    --mes-gold: #dfbc70;
    --mes-gold-soft: #f3e4ba;
    --mes-cream: #fbf6e7;
    --mes-ink: #171b18;
    --mes-charcoal: #232824;
    --mes-muted: #687168;
    --mes-line: #e3e8df;
    --mes-surface: #f7f9f5;
    --mes-white: #ffffff;
    --shadow-sm: 0 10px 30px rgba(22, 38, 18, .07);
    --shadow-md: 0 18px 55px rgba(21, 35, 18, .12);
    --shadow-lg: 0 28px 80px rgba(14, 28, 11, .17);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    color: var(--mes-ink);
    background: #fff;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}
body.mobile-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--mes-green); text-decoration: none; }
a:hover { color: var(--mes-green-dark); }
h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    color: var(--mes-ink);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}
::selection { background: var(--mes-gold); color: var(--mes-ink); }

.container-xxl { max-width: 1440px; }
.section { padding: 104px 0; }
.section-head { max-width: 790px; margin-bottom: 52px; }
.section-head.compact { max-width: 760px; margin-bottom: 38px; }
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mes-green);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .76rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.section-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--mes-gold);
    border-radius: 20px;
}
.section-kicker.light { color: var(--mes-gold-soft); }
.section-heading {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.55rem);
}
.section-heading span,
.subhero h1 span,
.cta-band h2 span,
.contact-info h2 span { color: var(--mes-green); }
.section-head p,
.lead-copy,
.subhero p,
.service-hero p { color: var(--mes-muted); }
.lead-copy { font-size: 1.14rem; }

.btn-mes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease;
}
.btn-mes:hover { transform: translateY(-2px); }
.btn-mes-primary {
    background: linear-gradient(135deg, var(--mes-green-2), var(--mes-green));
    color: #fff;
    box-shadow: 0 12px 28px rgba(51, 102, 0, .22);
}
.btn-mes-primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(51, 102, 0, .3); }
.btn-mes-light { background: #fff; color: var(--mes-ink); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.btn-mes-light:hover { color: var(--mes-green); }
.btn-mes-outline { border-color: var(--mes-line); color: var(--mes-ink); background: #fff; }
.btn-mes-outline:hover { border-color: var(--mes-green); color: var(--mes-green); }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: var(--header-height);
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
    background: rgba(25, 29, 26, .83);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}
.site-header.is-scrolled {
    background: rgba(20, 24, 21, .96);
    box-shadow: 0 8px 30px rgba(0,0,0,.16);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
    padding-left: 28px;
    padding-right: 28px;
}
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img {
    width: 116px;
    max-height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}
.desktop-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.desktop-nav .nav-link {
    color: rgba(255,255,255,.88);
    padding: 12px 14px;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .055em;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease;
}
.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active { color: var(--mes-gold); background: rgba(255,255,255,.05); }
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link { display: flex; align-items: center; gap: 7px; }
.nav-dropdown > .nav-link i { font-size: .7rem; transition: transform .2s ease; }
.nav-dropdown:hover > .nav-link i { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 320px;
    transform: translate(-50%, 10px);
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown-menu a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    color: var(--mes-ink);
    border-radius: 11px;
    font-weight: 650;
    font-size: .9rem;
}
.nav-dropdown-menu a:hover { background: var(--mes-surface); color: var(--mes-green); }
.nav-dropdown-menu a i { color: var(--mes-green); font-size: 1rem; width: 20px; text-align: center; }
.header-phone {
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap;
}
.header-phone:hover { color: var(--mes-gold); background: rgba(255,255,255,.1); }
.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}
.mobile-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 10px; transition: transform .2s ease, opacity .2s ease; }
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: rgba(20,24,21,.99);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 22px 50px rgba(0,0,0,.28);
}
.mobile-menu.is-open { display: block; }
.mobile-menu-inner { padding: 18px 24px 30px; }
.mobile-menu a,
.mobile-submenu-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-family: "Montserrat", sans-serif;
    font-weight: 650;
    text-align: left;
}
.mobile-submenu { display: none; padding: 8px 0 8px 14px; }
.mobile-submenu.is-open { display: block; }
.mobile-submenu a { color: rgba(255,255,255,.72); font-size: .9rem; padding: 10px 0; }
.mobile-phone { color: var(--mes-gold) !important; justify-content: flex-start !important; gap: 10px; }

/* Hero */
.hero-section { padding-top: var(--header-height); background: #111; overflow: hidden; }
.hero-slide { display: block; position: relative; background: #111; }
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -34px 50px rgba(0,0,0,.2);
    pointer-events: none;
}
.hero-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1906 / 747;
    object-fit: cover;
    object-position: center;
}

/* About */
.about-section { background: #fff; }
.about-visual {
    position: relative;
    min-height: 510px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    isolation: isolate;
}
.about-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(17,24,17,.18), rgba(20,31,18,.72));
}
.about-logo-card {
    position: absolute;
    left: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,.93);
    border: 1px solid rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0,0,0,.15);
}
.about-logo-card img { width: 110px; }
.about-logo-card span { font-size: .76rem; font-weight: 800; color: var(--mes-muted); text-transform: uppercase; letter-spacing: .08em; }
.floating-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(25,32,25,.82);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.floating-chip i { color: var(--mes-gold); }
.chip-one { right: 28px; top: 30px; }
.chip-two { right: 42px; top: 88px; }
.about-section p { color: var(--mes-muted); }
.about-points { display: grid; gap: 12px; margin-top: 25px; }
.about-points > div { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: #30382f; }
.about-points i { color: var(--mes-green); font-size: 1.15rem; margin-top: 2px; }

/* Stats */
.stats-section { padding: 0 0 26px; background: #fff; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--mes-line);
    background: var(--mes-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.stat-item { padding: 30px 26px; text-align: center; position: relative; }
.stat-item:not(:last-child)::after { content: ""; position: absolute; top: 23%; bottom: 23%; right: 0; width: 1px; background: #dfe5db; }
.stat-item strong, .stat-item > span { font-family: "Montserrat", sans-serif; color: var(--mes-green); font-size: clamp(1.7rem, 3vw, 2.75rem); font-weight: 800; line-height: 1; }
.stat-item p { margin: 9px 0 0; color: var(--mes-muted); font-size: .88rem; line-height: 1.4; }

/* Services */
.services-section { background: linear-gradient(180deg, #fff 0%, var(--mes-surface) 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
    position: relative;
    min-height: 228px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--mes-line);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(20,34,17,.05);
    color: var(--mes-ink);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    right: -65px;
    top: -65px;
    opacity: .09;
    transition: transform .3s ease, opacity .3s ease;
}
.service-card.accent-green::before { background: var(--mes-green); }
.service-card.accent-gold::before { background: var(--mes-gold); opacity: .2; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(51,102,0,.26); box-shadow: var(--shadow-md); color: var(--mes-ink); }
.service-card:hover::before { transform: scale(1.2); opacity: .16; }
.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: var(--mes-green);
    background: #eef5e8;
}
.accent-gold .service-icon { color: #8d6a1f; background: #fbf1d9; }
.service-card h3, .service-card h2 { font-size: 1.2rem; margin: 0 0 10px; }
.service-card p { color: var(--mes-muted); margin: 0; font-size: .93rem; line-height: 1.6; }
.service-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mes-surface);
    color: var(--mes-green);
    transition: transform .25s ease, background .25s ease;
}
.service-card:hover .service-arrow { transform: rotate(8deg); background: #edf5e8; }
.quick-service-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 34px; }
.quick-service-tags a { padding: 8px 12px; background: #fff; border: 1px solid var(--mes-line); color: var(--mes-muted); border-radius: 999px; font-size: .82rem; font-weight: 600; transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.quick-service-tags a:hover { color: var(--mes-green); border-color: rgba(51,102,0,.34); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,34,17,.06); }

/* Production cards */
.production-cards-section { background: #fff; }
.production-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; min-width: 0; }
.production-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mes-line);
    border-radius: var(--radius-md);
    color: var(--mes-ink);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.production-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); color: var(--mes-ink); }
.production-image { aspect-ratio: 466 / 253; overflow: hidden; background: #f2f4ef; }
.production-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.production-card:hover .production-image img { transform: scale(1.035); }
.production-body { padding: 25px 26px 28px; }
.production-eyebrow { color: var(--mes-green); text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; font-weight: 800; }
.production-body h3 { font-size: 1.3rem; margin: 8px 0 11px; }
.production-body p { margin: 0 0 18px; color: var(--mes-muted); font-size: .93rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--mes-green); font-weight: 750; font-size: .9rem; }

/* CTA */
.cta-band { padding: 0 0 104px; background: #fff; }
.cta-band-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 48px 54px;
    background: linear-gradient(135deg, #1d241e 0%, #2f3a2d 52%, #24331e 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.cta-band-inner::after {
    content: "M*E*Š";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.035);
    font-family: "Montserrat", sans-serif;
    font-size: 9rem;
    font-weight: 800;
    white-space: nowrap;
}
.cta-band-inner > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.cta-band h2 span { color: var(--mes-gold); }
.cta-band p { color: rgba(255,255,255,.68); margin: 0; max-width: 760px; }

/* Portfolio */
.portfolio-section { background: var(--mes-surface); }
.portfolio-empty {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 30px;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd6c4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.portfolio-empty-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--mes-green);
    background: #eef5e8;
    border-radius: 20px;
    font-size: 1.7rem;
}
.portfolio-empty h3 { font-size: 1.45rem; }
.portfolio-empty p { max-width: 550px; margin: 0 auto; color: var(--mes-muted); }

/* Contact */
.contact-section { background: #fff; }
.contact-shell {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    padding: 34px;
    background: var(--mes-surface);
    border: 1px solid var(--mes-line);
    border-radius: var(--radius-lg);
}
.contact-info { min-width: 0; padding: 18px 20px 18px 6px; }
.contact-info h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 16px; }
.contact-info > p { color: var(--mes-muted); max-width: 530px; }
.contact-cards { min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 34px; }
.contact-mini-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    color: var(--mes-ink);
    background: #fff;
    border: 1px solid var(--mes-line);
    border-radius: 16px;
    transition: border-color .2s ease, transform .2s ease;
}
a.contact-mini-card:hover { color: var(--mes-ink); border-color: rgba(51,102,0,.35); transform: translateY(-2px); }
.contact-mini-card i { color: var(--mes-green); font-size: 1.1rem; margin-top: 2px; }
.contact-mini-card span { min-width: 0; max-width: 100%; font-size: .87rem; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; word-break: break-word; }
.contact-mini-card small { display: block; color: var(--mes-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; margin-bottom: 3px; }
.contact-form-wrap { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; padding: 30px; background: #fff; border: 1px solid var(--mes-line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.contact-form { min-width: 0; width: 100%; max-width: 100%; }
.contact-form .row { min-width: 0; max-width: 100%; }
.contact-form .row > * { min-width: 0; max-width: 100%; }
.contact-form .form-label { font-size: .82rem; font-weight: 700; color: #354033; }
.contact-form .form-control {
    min-height: 50px;
    border: 1px solid #dbe2d7;
    border-radius: 12px;
    background: #fbfcfa;
    padding: 12px 14px;
    box-shadow: none;
}
.contact-form textarea.form-control { min-height: 150px; resize: vertical; }
.contact-form .form-control:focus { border-color: rgba(51,102,0,.65); box-shadow: 0 0 0 .22rem rgba(51,102,0,.09); background: #fff; }
.form-consent { color: var(--mes-muted); font-size: .74rem; line-height: 1.5; max-width: 430px; }
.form-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 1px !important; width: 1px !important; }
.contact-alert { border-radius: 12px; font-size: .9rem; }
.contact-form-status:empty { display: none; }
.contact-form-status .alert { border-radius: 12px; font-size: .9rem; margin-bottom: 18px; }
.contact-form .form-control.is-invalid { border-color: #c94d4d; background-image: none; }
.contact-form .form-control.is-invalid:focus { border-color: #c94d4d; box-shadow: 0 0 0 .22rem rgba(201,77,77,.09); }
.contact-form .invalid-feedback { font-size: .75rem; margin-top: 6px; }
.recaptcha-field { display: block; width: 100%; max-width: 100%; overflow: hidden; padding: 5px; border: 1px solid transparent; border-radius: 10px; box-sizing: border-box; }
.g-recaptcha { transform-origin: 0 0; }
.recaptcha-field.is-invalid { border-color: rgba(201,77,77,.6); background: rgba(201,77,77,.035); }
.recaptcha-field.is-invalid .invalid-feedback { display: block; }
.contact-submit-button[disabled] { opacity: .75; cursor: wait; }
.contact-submit-button .spinner-border { width: .9rem; height: .9rem; border-width: .12em; margin-right: 4px; }


/* Popup */
.mes-popup .modal-dialog { max-width: 590px; }
.mes-popup .modal-content { border: 0; border-radius: 24px; box-shadow: 0 28px 90px rgba(0,0,0,.28); overflow: hidden; }
.mes-popup .modal-header { align-items: center; gap: 14px; padding: 24px 26px 17px; border-bottom: 1px solid var(--mes-line); }
.popup-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: var(--mes-green); border-radius: 14px; }
.mes-popup .eyebrow { display: block; color: var(--mes-green); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.mes-popup .modal-title { font-size: 1.25rem; margin: 1px 0 0; }
.mes-popup .modal-body { padding: 26px; }
.mes-popup .modal-body p { margin: 0; color: var(--mes-muted); }
.mes-popup .modal-footer { border-top: 0; padding: 0 26px 26px; }

/* Footer */
.site-footer { background: #171b18; color: rgba(255,255,255,.66); padding: 68px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.footer-brand img { width: 140px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; }
.site-footer h3 { color: #fff; font-size: .93rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer p { font-size: .88rem; line-height: 1.8; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--mes-gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.09); margin-top: 42px; padding-top: 22px; font-size: .75rem; }
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--mes-green);
    color: #fff;
    box-shadow: 0 12px 30px rgba(51,102,0,.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.back-to-top:hover { color: #fff; background: var(--mes-green-dark); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Subpages */
.page-subpage { padding-top: var(--header-height); }
.page-subpage .site-header { background: rgba(20,24,21,.97); }
.subhero,
.service-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1c211d, #2a3328 52%, #22391a);
}
.subhero::before,
.service-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    right: -170px;
    top: -300px;
    background: radial-gradient(circle, rgba(223,188,112,.26), rgba(223,188,112,0) 70%);
}
.subhero::after,
.service-hero::after {
    content: "M*E*Š";
    position: absolute;
    right: 4vw;
    bottom: -38px;
    color: rgba(255,255,255,.035);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(6rem, 15vw, 13rem);
    font-weight: 800;
    line-height: .9;
}
.subhero-inner { position: relative; z-index: 1; min-height: 390px; display: flex; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.subhero-inner > div { max-width: 850px; }
.subhero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 0 0 20px; }
.subhero h1 span { color: var(--mes-gold); }
.subhero p { color: rgba(255,255,255,.67); font-size: 1.08rem; max-width: 720px; }
.service-grid-listing { grid-template-columns: repeat(2, 1fr); }
.service-grid-listing .service-card { min-height: 220px; }
.service-grid-listing .service-card h2 { font-size: 1.35rem; }
.service-cta-strip { padding: 56px 0; background: var(--mes-green); color: #fff; }
.service-cta-strip h2 { color: #fff; margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.service-cta-strip .section-kicker::before { background: rgba(255,255,255,.35); }

/* Service detail */
.service-hero.accent-green { background: linear-gradient(135deg, #162016, #24411a 55%, #1c3016); }
.service-hero.accent-gold { background: linear-gradient(135deg, #201e19, #3e3728 55%, #2f2a20); }
.service-hero-inner { position: relative; z-index: 1; min-height: 420px; display: grid; grid-template-columns: 170px minmax(0, 850px); gap: 54px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.service-hero-icon { width: 150px; height: 150px; display: grid; place-items: center; border-radius: 34px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: var(--mes-gold); font-size: 4rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.service-hero h1 { color: #fff; font-size: clamp(2.3rem, 4vw, 4.25rem); margin: 12px 0 18px; }
.service-hero p { color: rgba(255,255,255,.67); font-size: 1.08rem; }
.back-link { color: var(--mes-gold-soft); display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.back-link:hover { color: #fff; }
.service-content-section { background: var(--mes-surface); }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.detail-card {
    scroll-margin-top: calc(var(--header-height) + 20px);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 18px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--mes-line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(22,35,19,.045);
}
.detail-card-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--mes-green); background: #eff5ea; border-radius: 16px; font-size: 1.25rem; }
.detail-card h2 { font-size: 1.28rem; margin: 2px 0 10px; }
.detail-card p { color: var(--mes-muted); font-size: .92rem; margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.check-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: #404b3f; }
.check-list i { color: var(--mes-green); font-size: 1rem; margin-top: 1px; }
.detail-note { margin-top: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; background: var(--mes-cream); border: 1px solid #efdfb4; border-radius: 12px; color: #66562f; font-size: .82rem; }
.detail-note i { margin-top: 1px; }
.service-table-card { margin-top: 28px; background: #fff; border: 1px solid var(--mes-line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.service-table-head { padding: 28px 30px 18px; }
.service-table-head h2 { margin: 0; font-size: 1.5rem; }
.service-table-card table { font-size: .86rem; }
.service-table-card thead th { color: #fff; background: var(--mes-green); border: 0; padding: 15px 18px; white-space: nowrap; }
.service-table-card tbody td { padding: 16px 18px; border-color: var(--mes-line); color: #4a5448; }
.service-table-card tbody tr:nth-child(even) td { background: #fafbf9; }
.service-bottom-cta { padding: 0 0 92px; background: var(--mes-surface); }
.service-bottom-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 48px; background: linear-gradient(135deg, var(--mes-green-dark), var(--mes-green)); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.service-bottom-cta h2 { color: #fff; margin: 0 0 8px; font-size: 2rem; }
.service-bottom-cta p { color: rgba(255,255,255,.7); margin: 0; }

/* Contact page */
.contact-page-section { background: var(--mes-surface); }
.contact-page-grid { min-width: 0; width: 100%; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; align-items: start; }
.contact-page-grid > * { min-width: 0; max-width: 100%; }
.contact-page-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-big-card { min-width: 0; width: 100%; max-width: 100%; min-height: 140px; display: flex; align-items: flex-start; gap: 15px; padding: 22px; background: #fff; border: 1px solid var(--mes-line); border-radius: 18px; color: var(--mes-ink); transition: transform .2s ease, border-color .2s ease; }
a.contact-big-card:hover { color: var(--mes-ink); transform: translateY(-3px); border-color: rgba(51,102,0,.35); }
.contact-big-card > i { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; color: var(--mes-green); background: #eff5ea; border-radius: 12px; }
.contact-big-card > div { min-width: 0; max-width: 100%; }
.contact-big-card small { display: block; color: var(--mes-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; font-weight: 800; margin-bottom: 3px; }
.contact-big-card strong { display: block; max-width: 100%; color: var(--mes-ink); font-size: .96rem; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.contact-big-card span { display: block; color: var(--mes-muted); font-size: .78rem; margin-top: 3px; }
.storefront-card { grid-column: 1 / -1; position: relative; min-height: 300px; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-sm); }
.storefront-card > img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.storefront-card > div { position: absolute; left: 18px; bottom: 18px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.storefront-card > div img { width: 100px; }
.contact-form-page { padding: 36px; }
.contact-form-page h2 { font-size: 2rem; }
.contact-form-page > p { color: var(--mes-muted); }

/* 404 */
.not-found-section { min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; padding: 90px 0; background: var(--mes-surface); }
.not-found-code { display: block; color: var(--mes-gold); font-family: "Montserrat", sans-serif; font-size: clamp(5rem, 13vw, 10rem); font-weight: 800; line-height: .9; }
.not-found-section h1 { margin: 18px 0 12px; font-size: clamp(2rem, 4vw, 3.5rem); }
.not-found-section p { max-width: 600px; margin: 0 auto 28px; color: var(--mes-muted); }

@media (max-width: 1199.98px) {
    :root { --header-height: 76px; }
    .desktop-nav, .header-phone { display: none !important; }
    .mobile-toggle { display: flex; }
    .brand img { width: 105px; max-height: 58px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .production-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-shell { grid-template-columns: 1fr; }
    .contact-info { padding: 8px 4px; }
    .contact-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .section { padding: 82px 0; }
    .hero-slide img { aspect-ratio: 16 / 7; }
    .about-visual { min-height: 430px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid #dfe5db; }
    .production-grid { grid-template-columns: 1fr; }
    .production-card { display: grid; grid-template-columns: minmax(240px, .85fr) 1.15fr; }
    .production-image { height: 100%; aspect-ratio: auto; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; padding: 42px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
    .service-hero-inner { grid-template-columns: 100px 1fr; gap: 30px; min-height: 360px; }
    .service-hero-icon { width: 100px; height: 100px; border-radius: 24px; font-size: 2.7rem; }
    .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    :root { --header-height: 70px; }
    .header-inner { padding-left: 18px; padding-right: 18px; }
    .brand img { width: 92px; }
    .hero-slide img { aspect-ratio: 4 / 3; object-fit: cover; }
    .section { padding: 68px 0; }
    .section-head { margin-bottom: 34px; }
    .section-heading { font-size: 2.15rem; }
    .about-visual { min-height: 350px; border-radius: 24px; }
    .about-logo-card { left: 18px; right: 18px; bottom: 18px; justify-content: space-between; }
    .about-logo-card img { width: 96px; }
    .floating-chip { display: none; }
    .stats-grid { border-radius: 18px; }
    .stat-item { padding: 24px 14px; }
    .service-grid, .service-grid-listing { grid-template-columns: 1fr; }
    .service-card { min-height: auto; padding: 24px; }
    .production-card { display: block; width: 100%; min-width: 0; }
    .production-image { width: 100%; height: auto; aspect-ratio: auto; }
    .production-image img { display: block; width: 100%; height: auto; object-fit: contain; }
    .cta-band { padding-bottom: 68px; }
    .cta-band-inner { padding: 32px 26px; border-radius: 24px; }
    .cta-band-inner::after { font-size: 6rem; right: -20px; }
    .portfolio-empty { padding: 48px 22px; border-radius: 22px; }
    .contact-shell { padding: 22px; border-radius: 24px; overflow: hidden; }
    .contact-info { padding-right: 0; padding-left: 0; }
    .contact-mini-card { padding: 16px; }
    .contact-cards { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .subhero-inner { min-height: 330px; }
    .subhero h1 { font-size: 2.55rem; }
    .service-hero-inner { display: block; min-height: auto; padding-top: 55px; padding-bottom: 60px; }
    .service-hero-icon { margin-bottom: 26px; width: 84px; height: 84px; font-size: 2.25rem; }
    .service-hero h1 { font-size: 2.5rem; }
    .service-bottom-cta-inner { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
    .detail-card { grid-template-columns: 1fr; padding: 24px; }
    .contact-page-info { grid-template-columns: 1fr; }
    .storefront-card { grid-column: 1; }
    .contact-form-page { padding: 26px; }
}

@media (max-width: 479.98px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-bottom: 1px solid #dfe5db; }
    .stat-item:last-child { border-bottom: 0; }
    .stat-item::after { display: none !important; }
    .contact-shell { padding: 16px; }
    .contact-mini-card { padding: 14px; gap: 10px; }
    .contact-form .row { --bs-gutter-x: 0; }
    .contact-form .row > * { padding-left: 0; padding-right: 0; }
    .contact-form .btn-mes { width: 100%; justify-content: center; }
    .contact-big-card { padding: 18px; gap: 12px; }
    .contact-form-wrap { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #f4f7f1; border: 1px solid var(--mes-line); font-size: .78rem; font-weight: 700; color: var(--mes-green); }
.detail-links a:hover { background: #edf5e8; border-color: rgba(51,102,0,.3); }

.hero-slide-link { display: block; color: inherit; }
.hero-section .carousel-indicators { margin-bottom: 18px; }
.hero-section .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border: 0; border-radius: 50%; opacity: .62; }
.hero-section .carousel-indicators .active { opacity: 1; }
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next { width: 7%; }

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: -12px 0 34px;
}
.portfolio-filter {
    border: 1px solid var(--mes-line);
    background: #fff;
    color: var(--mes-muted);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: .82rem;
    font-weight: 700;
    transition: .2s ease;
}
.portfolio-filter:hover,
.portfolio-filter.is-active {
    border-color: var(--mes-green);
    background: var(--mes-green);
    color: #fff;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.portfolio-item {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #eef1ec;
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
}
.portfolio-item[hidden] { display: none !important; }
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18,31,14,.34);
    color: #fff;
    font-size: 1.65rem;
    opacity: 0;
    transition: opacity .25s ease;
}
.portfolio-item:hover img { transform: scale(1.035); }
.portfolio-item:hover .portfolio-item-overlay,
.portfolio-item:focus-visible .portfolio-item-overlay { opacity: 1; }
.portfolio-item:focus-visible { outline: 3px solid rgba(47,106,0,.35); outline-offset: 3px; }

.portfolio-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 86px;
    background: rgba(7,10,7,.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
    touch-action: pan-y;
}
.portfolio-viewer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
body.portfolio-viewer-open { overflow: hidden; }
.portfolio-viewer-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.portfolio-viewer-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 64px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity .16s ease, transform .16s ease;
}
.portfolio-viewer-stage img.is-changing { opacity: .35; transform: scale(.985); }
.portfolio-viewer-close,
.portfolio-viewer-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.10);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}
.portfolio-viewer-close:hover,
.portfolio-viewer-nav:hover { background: rgba(255,255,255,.20); }
.portfolio-viewer-close:focus-visible,
.portfolio-viewer-nav:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.portfolio-viewer-close {
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.15rem;
}
.portfolio-viewer-nav {
    top: 50%;
    width: 52px;
    height: 64px;
    border-radius: 14px;
    font-size: 1.8rem;
    transform: translateY(-50%);
}
.portfolio-viewer-nav:hover { transform: translateY(-50%) scale(1.04); }
.portfolio-viewer-prev { left: 18px; }
.portfolio-viewer-next { right: 18px; }
.portfolio-viewer-counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    min-width: 56px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,.38);
    color: rgba(255,255,255,.82);
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}
@media (max-width: 1199.98px) {
    .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next { width: 14%; }
    .portfolio-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; scrollbar-width: thin; }
    .portfolio-filter { flex: 0 0 auto; }
    .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .portfolio-item { border-radius: 14px; aspect-ratio: 1 / 1; }
    .portfolio-viewer { padding: 58px 12px 64px; }
    .portfolio-viewer-stage img { max-height: calc(100vh - 122px); }
    .portfolio-viewer-close { top: 10px; right: 10px; width: 42px; height: 42px; }
    .portfolio-viewer-nav { top: auto; bottom: 10px; width: 48px; height: 44px; border-radius: 12px; transform: none; }
    .portfolio-viewer-nav:hover { transform: none; }
    .portfolio-viewer-prev { left: 12px; }
    .portfolio-viewer-next { right: 12px; }
    .portfolio-viewer-counter { bottom: 17px; }
}

/* Online objednávka tisku */
.print-order-hero { padding: calc(var(--header-height) + 70px) 0 70px; background: linear-gradient(135deg,#182018 0%,#273324 56%,#3a482f 100%); overflow:hidden; }
.print-order-hero-inner { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:46px; align-items:end; }
.print-order-hero .section-kicker { color:var(--mes-gold-soft); }
.print-order-hero h1 { max-width:830px; margin:0 0 18px; color:#fff; font-size:clamp(2.5rem,5vw,4.7rem); }
.print-order-hero h1 span { color:var(--mes-gold); }
.print-order-hero p { max-width:760px; margin:0; color:rgba(255,255,255,.72); font-size:1.08rem; }
.print-order-hero-note { display:flex; gap:15px; align-items:flex-start; padding:22px; border:1px solid rgba(255,255,255,.12); border-radius:20px; background:rgba(255,255,255,.07); backdrop-filter:blur(12px); }
.print-order-hero-note > i { flex:0 0 44px; width:44px; height:44px; display:grid; place-items:center; border-radius:13px; color:var(--mes-gold); background:rgba(223,188,112,.12); font-size:1.25rem; }
.print-order-hero-note strong,.print-order-hero-note span { display:block; }
.print-order-hero-note strong { color:#fff; margin-bottom:3px; }
.print-order-hero-note span { color:rgba(255,255,255,.66); font-size:.85rem; line-height:1.5; }
.print-order-section { background:var(--mes-surface); }
.print-order-shell { max-width:1120px; margin:0 auto; }
.print-stepper { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-bottom:24px; }
.print-step { position:relative; display:flex; align-items:center; gap:10px; min-width:0; padding:13px 14px; border:1px solid var(--mes-line); border-radius:14px; background:#fff; color:#8a9385; text-align:left; transition:.2s ease; }
.print-step span { flex:0 0 28px; width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#eef2eb; font-size:.75rem; font-weight:800; }
.print-step strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.76rem; }
.print-step.is-active { border-color:rgba(51,102,0,.35); color:var(--mes-green); box-shadow:0 8px 24px rgba(51,102,0,.08); }
.print-step.is-active span { color:#fff; background:var(--mes-green); }
.print-step.is-complete { color:#45533f; }
.print-step.is-complete span { color:#fff; background:var(--mes-green-2); }
.print-order-form { min-width:0; padding:36px; border:1px solid var(--mes-line); border-radius:28px; background:#fff; box-shadow:var(--shadow-sm); }
.print-form-step { display:none; min-width:0; }
.print-form-step.is-active { display:block; animation:printStepIn .22s ease both; }
@keyframes printStepIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.print-step-head { margin-bottom:28px; }
.print-step-head > span { display:block; margin-bottom:6px; color:var(--mes-green); font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.print-step-head h2 { margin:0 0 8px; font-size:clamp(1.65rem,3vw,2.35rem); }
.print-step-head p { max-width:760px; margin:0; color:var(--mes-muted); }
.product-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.product-choice { min-width:0; cursor:pointer; }
.product-choice input { position:absolute; opacity:0; pointer-events:none; }
.product-choice-card { height:100%; min-height:190px; display:flex; flex-direction:column; align-items:flex-start; padding:24px; border:1px solid var(--mes-line); border-radius:20px; background:#fbfcfa; transition:.2s ease; }
.product-choice-card > i { width:46px; height:46px; display:grid; place-items:center; margin-bottom:20px; border-radius:13px; color:var(--mes-green); background:#eef5e8; font-size:1.25rem; }
.product-choice-card strong { display:block; margin-bottom:7px; color:var(--mes-ink); font-family:"Montserrat",sans-serif; font-size:1.12rem; }
.product-choice-card small { display:block; color:var(--mes-muted); line-height:1.55; }
.product-choice-card em { display:inline-flex; margin-top:auto; padding-top:16px; color:var(--mes-green); font-style:normal; font-size:.78rem; font-weight:800; }
.product-choice:hover .product-choice-card { transform:translateY(-3px); border-color:rgba(51,102,0,.25); box-shadow:var(--shadow-sm); }
.product-choice input:checked + .product-choice-card { border-color:var(--mes-green); background:#f5f9f1; box-shadow:0 0 0 3px rgba(51,102,0,.08); }
.product-choice input:checked + .product-choice-card em::after { content:' ✓'; }
.product-type-feedback,.files-feedback { display:none!important; margin-top:10px; }
.product-type-feedback.is-visible,.files-feedback.is-visible { display:block!important; }
.product-params-panel[hidden] { display:none!important; }
.parameter-summary-card { display:flex; gap:16px; align-items:center; padding:20px; border:1px solid #dfe9d7; border-radius:17px; background:#f5f9f1; }
.parameter-summary-card > i { flex:0 0 46px; width:46px; height:46px; display:grid; place-items:center; border-radius:13px; background:#fff; color:var(--mes-green); font-size:1.25rem; box-shadow:0 6px 18px rgba(51,102,0,.08); }
.parameter-summary-card small,.parameter-summary-card strong,.parameter-summary-card span { display:block; }
.parameter-summary-card small { color:var(--mes-muted); font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.parameter-summary-card strong { margin:2px 0; font-size:1.2rem; }
.parameter-summary-card span { color:var(--mes-muted); font-size:.82rem; }
.segmented-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.segmented-options label { margin:0; cursor:pointer; }
.segmented-options input { position:absolute; opacity:0; pointer-events:none; }
.segmented-options span { display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; border:1px solid var(--mes-line); border-radius:10px; background:#fff; color:#596254; font-size:.82rem; font-weight:700; transition:.18s ease; }
.segmented-options input:checked + span { color:var(--mes-green); border-color:var(--mes-green); background:#f3f8ef; box-shadow:0 0 0 2px rgba(51,102,0,.06); }
.print-order-form .form-control,.print-order-form .form-select { min-height:48px; border-color:#dce4d7; border-radius:12px; }
.print-order-form textarea.form-control { min-height:120px; }
.print-order-form .form-control:focus,.print-order-form .form-select:focus { border-color:#8bac70; box-shadow:0 0 0 .2rem rgba(51,102,0,.1); }
.print-order-form .form-label { color:#4e584a; font-size:.78rem; font-weight:800; }
.upload-dropzone { position:relative; min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:34px; border:2px dashed #cfdac7; border-radius:22px; background:#fafcf8; text-align:center; transition:.2s ease; }
.upload-dropzone:hover,.upload-dropzone.is-dragging { border-color:var(--mes-green); background:#f4f8f0; }
.upload-dropzone.is-invalid { border-color:#dc3545; background:#fff8f8; }
.upload-dropzone input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.upload-dropzone > i { margin-bottom:12px; color:var(--mes-green); font-size:2.6rem; }
.upload-dropzone h3 { margin:0 0 7px; font-size:1.2rem; }
.upload-dropzone p { margin:0; color:var(--mes-muted); }
.upload-dropzone small { margin-top:8px; color:#8a9385; }
.upload-file-list { display:grid; gap:8px; margin-top:12px; }
.upload-file-item { min-width:0; display:flex; align-items:center; gap:12px; padding:11px 13px; border:1px solid var(--mes-line); border-radius:12px; background:#fff; }
.upload-file-item > i { color:var(--mes-green); font-size:1.2rem; }
.upload-file-item > div { min-width:0; }
.upload-file-item strong { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.82rem; }
.upload-file-item span { display:block; color:var(--mes-muted); font-size:.72rem; }
.print-info-box { display:flex; gap:14px; padding:18px; border-radius:16px; background:#f8f5eb; border:1px solid #ede1bf; }
.print-info-box > i { color:#a77b1e; font-size:1.15rem; }
.print-info-box strong { display:block; margin-bottom:2px; }
.print-info-box p { margin:0; color:#6d6757; font-size:.82rem; line-height:1.55; }
.print-form-actions { display:flex; gap:12px; align-items:center; margin-top:30px; padding-top:24px; border-top:1px solid var(--mes-line); }
.print-form-actions .btn-mes[hidden] { display:none!important; }
.print-review-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.print-review-card { min-width:0; padding:20px; border:1px solid var(--mes-line); border-radius:17px; background:#fafbf9; }
.print-review-card > small { color:var(--mes-green); text-transform:uppercase; letter-spacing:.08em; font-size:.66rem; font-weight:800; }
.print-review-card h3 { margin:4px 0 14px; font-size:1.05rem; }
.print-review-card p { margin:0; color:var(--mes-muted); font-size:.8rem; overflow-wrap:anywhere; }
.print-review-card dl { margin:0; }
.print-review-card dl > div { display:grid; grid-template-columns:1fr 1.2fr; gap:10px; padding:7px 0; border-top:1px solid #e8ece5; }
.print-review-card dt { color:var(--mes-muted); font-size:.73rem; }
.print-review-card dd { margin:0; font-size:.75rem; font-weight:700; text-align:right; overflow-wrap:anywhere; }
.print-final-note { display:flex; gap:10px; align-items:flex-start; margin-top:16px; padding:14px 16px; border-radius:13px; color:#4a5943; background:#f2f7ee; font-size:.8rem; }
.print-final-note i { color:var(--mes-green); }
.print-success { padding:44px 20px; text-align:center; }
.print-success > i { display:block; margin-bottom:12px; color:var(--mes-green); font-size:3.6rem; }
.print-success > span { color:var(--mes-green); text-transform:uppercase; letter-spacing:.1em; font-size:.72rem; font-weight:800; }
.print-success h2 { margin:5px 0 12px; font-size:2.35rem; }
.print-success p { max-width:580px; margin:0 auto 24px; color:var(--mes-muted); }
.print-form-status .alert { border-radius:14px; }

@media (max-width: 991.98px) {
    .print-order-hero-inner { grid-template-columns:1fr; gap:28px; }
    .print-order-hero-note { max-width:600px; }
    .print-stepper { grid-template-columns:repeat(5,1fr); }
    .print-step { justify-content:center; padding:10px 8px; }
    .print-step strong { display:none; }
    .print-review-grid { grid-template-columns:1fr 1fr; }
    .print-review-card:last-child { grid-column:1 / -1; }
}
@media (max-width: 767.98px) {
    .print-order-hero { padding-top:calc(var(--header-height) + 48px); padding-bottom:50px; }
    .print-order-form { padding:24px; border-radius:22px; }
    .product-choice-grid { grid-template-columns:1fr; }
    .product-choice-card { min-height:155px; }
    .print-review-grid { grid-template-columns:1fr; }
    .print-review-card:last-child { grid-column:auto; }
}
@media (max-width: 479.98px) {
    .print-order-form { padding:18px 16px; }
    .print-stepper { gap:5px; }
    .print-step { border-radius:11px; }
    .print-step span { width:26px; height:26px; flex-basis:26px; }
    .segmented-options { grid-template-columns:1fr; }
    .upload-dropzone { min-height:230px; padding:24px 16px; }
    .print-form-actions { flex-wrap:wrap; }
    .print-form-actions .btn-mes { width:100%; }
    .print-form-actions .ms-auto { margin-left:0!important; }
}

/* Konfigurátor razítek */
.stamp-order-shell { max-width: 1120px; margin: 0 auto; }
.stamp-size-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stamp-size-choice,
.stamp-template-choice { min-width: 0; cursor: pointer; }
.stamp-size-choice input,
.stamp-template-choice input { position: absolute; opacity: 0; pointer-events: none; }
.stamp-size-card { min-height: 174px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--mes-line); border-radius: 20px; background: #fbfcfa; transition: .2s ease; }
.stamp-size-card > i { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; color: var(--mes-green); background: #eef5e8; font-size: 1.25rem; }
.stamp-size-card strong { margin-bottom: 6px; font-family: "Montserrat", sans-serif; font-size: 1.15rem; }
.stamp-size-card small { color: var(--mes-muted); line-height: 1.55; }
.stamp-size-card em,
.stamp-template-card em { margin-top: auto; padding-top: 15px; color: var(--mes-green); font-size: .78rem; font-style: normal; font-weight: 800; }
.stamp-size-choice:hover .stamp-size-card,
.stamp-template-choice:hover .stamp-template-card { transform: translateY(-3px); border-color: rgba(51,102,0,.28); box-shadow: var(--shadow-sm); }
.stamp-size-choice input:checked + .stamp-size-card,
.stamp-template-choice input:checked + .stamp-template-card { border-color: var(--mes-green); background: #f5f9f1; box-shadow: 0 0 0 3px rgba(51,102,0,.08); }
.stamp-size-choice input:checked + .stamp-size-card em::after,
.stamp-template-choice input:checked + .stamp-template-card em::after { content: " ✓"; }
.stamp-size-feedback,
.stamp-template-feedback,
.stamp-logo-feedback { display: none !important; margin-top: 10px; }
.stamp-size-feedback.is-visible,
.stamp-template-feedback.is-visible,
.stamp-logo-feedback.is-visible { display: block !important; }

.stamp-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.stamp-template-card { height: 100%; min-height: 250px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid var(--mes-line); border-radius: 18px; background: #fbfcfa; transition: .2s ease; }
.stamp-template-card > strong { margin: 15px 0 5px; font-family: "Montserrat", sans-serif; font-size: .96rem; }
.stamp-template-card > small { color: var(--mes-muted); font-size: .78rem; line-height: 1.5; }
.stamp-template-mini { position: relative; width: 100%; aspect-ratio: 70 / 25; display: flex; overflow: hidden; padding: 10px; border: 2px solid #1d261a; border-radius: 4px; background: #fff; color: #192117; font-size: 8px; line-height: 1.05; }
.stamp-template-mini b,
.stamp-template-mini i,
.stamp-template-mini u { display: block; text-decoration: none; font-style: normal; }
.stamp-template-mini.is-company,
.stamp-template-mini.is-text-only { flex-direction: column; justify-content: center; align-items: center; gap: 3px; text-align: center; }
.stamp-template-mini.is-company b,
.stamp-template-mini.is-text-only b { font-size: 11px; }
.stamp-template-mini.is-logo-top { flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.stamp-template-mini.is-logo-top u { width: 52%; padding: 4px 3px; border: 1px dashed #83907c; border-radius: 3px; color: #697565; font-size: 7px; }
.stamp-template-mini.is-logo-left { display: grid; grid-template-columns: .7fr 1.3fr; gap: 7px; align-items: center; }
.stamp-template-mini.is-logo-left > u { display: grid; place-items: center; height: 70%; border: 1px dashed #83907c; border-radius: 3px; color: #697565; font-size: 7px; }
.stamp-template-mini.is-logo-left > span { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }

.stamp-editor-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr); gap: 30px; align-items: start; }
.stamp-editor-fields { min-width: 0; }
.stamp-logo-field { margin-bottom: 24px; }
.stamp-logo-field[hidden] { display: none !important; }
.stamp-logo-drop { position: relative; min-height: 154px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; border: 2px dashed #cfdac7; border-radius: 18px; background: #fafcf8; text-align: center; transition: .2s ease; }
.stamp-logo-drop:hover,
.stamp-logo-drop.is-dragging { border-color: var(--mes-green); background: #f4f8f0; }
.stamp-logo-drop.is-invalid { border-color: #dc3545; background: #fff8f8; }
.stamp-logo-drop.has-file { border-style: solid; border-color: #b9cfaa; }
.stamp-logo-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.stamp-logo-drop > i { margin-bottom: 7px; color: var(--mes-green); font-size: 2rem; }
.stamp-logo-drop strong { display: block; font-size: .92rem; }
.stamp-logo-drop span { margin-top: 3px; color: var(--mes-muted); font-size: .75rem; }
.stamp-logo-file-info { min-width: 0; display: flex; align-items: center; gap: 8px; margin-top: 9px; color: #566251; font-size: .76rem; }
.stamp-logo-file-info:empty { display: none; }
.stamp-logo-file-info i { color: var(--mes-green); }
.stamp-logo-file-info strong { max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stamp-logo-file-info span { margin-left: auto; color: var(--mes-muted); white-space: nowrap; }
.stamp-raster-warning { display: flex; gap: 12px; margin-top: 12px; padding: 15px; border: 1px solid #efd5a8; border-radius: 14px; background: #fff9ee; }
.stamp-raster-warning[hidden] { display: none !important; }
.stamp-raster-warning > i { color: #ad7418; font-size: 1.1rem; }
.stamp-raster-warning strong { display: block; margin-bottom: 2px; }
.stamp-raster-warning p { margin: 0; color: #73654e; font-size: .78rem; line-height: 1.55; }

.stamp-preview-panel { position: sticky; top: calc(var(--header-height) + 24px); min-width: 0; padding: 22px; border: 1px solid var(--mes-line); border-radius: 20px; background: #f8faf6; }
.stamp-preview-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.stamp-preview-head span { color: var(--mes-green); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stamp-preview-head strong { font-size: .82rem; }
.stamp-preview-stage { display: flex; align-items: center; justify-content: center; min-height: 245px; padding: 26px 12px; border-radius: 16px; background: #e9eee5; overflow: hidden; }
.stamp-preview { --stamp-ink: #111; position: relative; width: min(100%, 520px); aspect-ratio: 70 / 25; display: grid; overflow: hidden; border: 3px solid var(--stamp-ink); border-radius: 5px; background: #fff; color: var(--stamp-ink); box-shadow: 0 8px 24px rgba(26,34,23,.12); }
.stamp-preview.size-58x22 { aspect-ratio: 58 / 22; max-width: 450px; }
.stamp-preview-logo { display: none; align-items: center; justify-content: center; min-width: 0; min-height: 0; color: var(--stamp-ink); overflow: hidden; }
.stamp-preview-logo span { display: grid; place-items: center; width: 80%; height: 70%; border: 1px dashed currentColor; border-radius: 3px; font-size: clamp(.48rem, 1vw, .72rem); font-weight: 800; opacity: .66; }
.stamp-preview-logo.has-image span { display: none; }
.stamp-preview-logo img { display: block; max-width: 92%; max-height: 90%; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.35); }
.stamp-preview-lines { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(2px, .35vw, 5px); text-align: center; overflow: hidden; }
.stamp-preview-line { max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(.55rem, 1.18vw, .88rem); line-height: 1.05; font-weight: 600; }
.stamp-preview-line.is-main { font-size: clamp(.72rem, 1.55vw, 1.12rem); font-weight: 900; }
.stamp-preview.is-company .stamp-preview-lines,
.stamp-preview.is-text-only .stamp-preview-lines { grid-area: 1 / 1; padding: 7% 5%; }
.stamp-preview.is-logo-top { grid-template-rows: 56% 44%; }
.stamp-preview.is-logo-top .stamp-preview-logo { display: flex; grid-row: 1; padding: 3% 12% 0; }
.stamp-preview.is-logo-top .stamp-preview-lines { grid-row: 2; padding: 1% 5% 5%; }
.stamp-preview.is-logo-top .stamp-preview-line { font-size: clamp(.46rem, .92vw, .68rem); }
.stamp-preview.is-logo-top .stamp-preview-line.is-main { font-size: clamp(.58rem, 1.12vw, .84rem); }
.stamp-preview.is-logo-left { grid-template-columns: 34% 66%; }
.stamp-preview.is-logo-left .stamp-preview-logo { display: flex; grid-column: 1; padding: 7%; }
.stamp-preview.is-logo-left .stamp-preview-lines { grid-column: 2; padding: 5% 5% 5% 1%; }
.stamp-preview.is-logo-left .stamp-preview-line { font-size: clamp(.46rem, .92vw, .72rem); }
.stamp-preview.is-logo-left .stamp-preview-line.is-main { font-size: clamp(.58rem, 1.12vw, .88rem); }
.stamp-preview-note { display: flex; gap: 8px; margin: 13px 0 0; color: var(--mes-muted); font-size: .75rem; line-height: 1.45; }
.stamp-preview-note i { color: var(--mes-green); }

.stamp-review-layout { display: grid; gap: 18px; }
.stamp-review-preview { display: flex; align-items: center; justify-content: center; min-height: 245px; padding: 28px; border-radius: 18px; background: #e9eee5; }
.stamp-review-preview [data-stamp-review-preview] { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; }
.stamp-review-preview .stamp-preview { flex: 0 1 620px; width: min(100%, 620px); }
.stamp-review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stamp-review-warning { margin-top: 12px !important; padding: 10px 12px; border-radius: 10px; color: #825d1b !important; background: #fff5df; }
.stamp-review-warning i { margin-right: 5px; }

@media (max-width: 991.98px) {
    .stamp-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stamp-editor-grid { grid-template-columns: 1fr; }
    .stamp-preview-panel { position: static; }
    .stamp-review-grid { grid-template-columns: 1fr 1fr; }
    .stamp-review-grid .print-review-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .stamp-size-grid,
    .stamp-template-grid { grid-template-columns: 1fr; }
    .stamp-size-card { min-height: 150px; }
    .stamp-template-card { min-height: 220px; }
    .stamp-template-mini { max-width: 360px; }
    .stamp-preview-panel { padding: 18px; }
    .stamp-preview-stage,
    .stamp-review-preview { min-height: 195px; padding: 20px 10px; }
    .stamp-review-grid { grid-template-columns: 1fr; }
    .stamp-review-grid .print-review-card:last-child { grid-column: auto; }
}
@media (max-width: 479.98px) {
    .stamp-preview-panel { padding: 14px; }
    .stamp-preview-stage { min-height: 165px; }
    .stamp-preview { border-width: 2px; }
    .stamp-logo-file-info { flex-wrap: wrap; }
    .stamp-logo-file-info strong { max-width: 100%; flex: 1 1 calc(100% - 26px); }
    .stamp-logo-file-info span { margin-left: 26px; }
}


/* Stamp preview mirrors the production PDF geometry. */
@font-face {
    font-family: 'MES Stamp Preview';
    src: url('https://cdn.jsdelivr.net/npm/roboto-font@0.1.0/fonts/Roboto/roboto-regular-webfont.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'MES Stamp Preview';
    src: url('https://cdn.jsdelivr.net/npm/roboto-font@0.1.0/fonts/Roboto/roboto-bold-webfont.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
.stamp-preview.is-pdf-layout { display: block; position: relative; }
.stamp-preview.is-pdf-layout .stamp-preview-logo {
    position: absolute;
    padding: 0 !important;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.stamp-preview.is-pdf-layout .stamp-preview-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.stamp-preview.is-pdf-layout .stamp-preview-lines {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    padding: 0 !important;
    overflow: visible;
}
.stamp-preview.is-pdf-layout .stamp-preview-line {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: none;
    margin: 0;
    padding: 0 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    text-align: center;
    line-height: 1;
    font-family: 'MES Stamp Preview', Arial, sans-serif;
}
