/* marel-style */
/*
Theme Name: MAREL BAU Theme
Theme URI: https://marel-bau.de
Author: MAREL BAU GmbH
Author URI: https://marel-bau.de
Description: Individuelles WordPress Theme für MAREL BAU GmbH
Version: 1.0
Text Domain: marelbau-theme
*/

@font-face {
    font-family: 'Inter';
    src: url('https://marel-bau.de/wp-content/themes/marelbau-theme/assets/fonts/Inter-Variable-latin.woff2') format('woff2'),
         url('https://marel-bau.de/wp-content/themes/marelbau-theme/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Arial auf Inter-Maße skaliert: verhindert Layout-Verschiebung beim Schriftwechsel */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica'), local('Liberation Sans');
    ascent-override: 90.49%;
    descent-override: 22.56%;
    line-gap-override: 0%;
    size-adjust: 107.06%;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    color: #1d2433;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-snap-type: y proximity;
}

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

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

.container {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
}

.site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

section,
.content-section,
.leistungen-section,
.site-footer {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.center-heading {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #d7deeb;
    background: #ffffff;
    color: #7b8391;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #1c2434;
}

.section-heading p {
    margin: 0;
    color: #667084;
    font-size: 17px;
    line-height: 1.75;
}

.content-section {
    padding: 95px 0;
    background: #eef3fa;
}

.leistungen-section {
    padding: 95px 0 110px;
    background: #f7f9fd;
}

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

.service-card {
    background: #ffffff;
    border: 1px solid #dfe6f2;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(18, 32, 60, 0.04);
}

.service-card-primary {
    background: linear-gradient(135deg, #2f7cff 0%, #4d8fff 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(47, 124, 255, 0.24);
}

.service-tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2f7cff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.service-card-primary .service-tag {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.service-card h3 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1d2433;
}

.service-card-primary h3 {
    color: #ffffff;
}

.service-card p {
    margin: 0 0 18px;
    color: #647084;
    line-height: 1.75;
    font-size: 16px;
}

.service-card-primary p {
    color: rgba(255, 255, 255, 0.92);
}

.service-meta {
    padding-top: 14px;
    border-top: 1px solid #e7edf7;
    color: #8a92a0;
    font-size: 14px;
    font-weight: 500;
}

.service-card-primary .service-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.88);
}

.site-footer {
    background: #081427;
    padding: 54px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.site-footer p,
.site-footer a {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    line-height: 1.7;
}

.footer-title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700;
}

@media (max-width: 991px) {
    .services-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body {
        scroll-snap-type: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .service-card h3 {
        font-size: 24px;
    }
}

/* marel-base */
@font-face {
    font-family: 'Inter';
    src: url('https://marel-bau.de/wp-content/themes/marelbau-theme/assets/fonts/Inter-Variable-latin.woff2') format('woff2'),
         url('https://marel-bau.de/wp-content/themes/marelbau-theme/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    color: #1d2433;
    background: #ffffff;
}

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

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

.container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-main {
    display: block;
}

/* admin bar fix */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
/* marel-utilities */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none !important;
}
/* marel-top-header */
:root {
    --top-header-height: 44px;
    --top-header-bg: linear-gradient(90deg, #f8fbff 0%, #eef5ff 50%, #f8fbff 100%);
    --top-header-border: #dbe6f3;
    --top-header-text: #3f4755;
    --top-header-muted: #64748b;
    --top-header-blue: #2f7cff;
    --top-header-blue-dark: #175fe6;
    --top-header-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.top-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-header-height);
    z-index: 10000;
    background: var(--top-header-bg);
    border-bottom: 1px solid var(--top-header-border);
    box-shadow: var(--top-header-shadow);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.top-header-bar.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.top-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.top-header-side {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 220px;
}

.top-header-left {
    justify-content: flex-start;
}

.top-header-right {
    justify-content: flex-end;
}

.top-header-items {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    overflow: hidden;
}

.top-header-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--top-header-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-header-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -9px;
    width: 1px;
    height: 12px;
    background: #d7e0ec;
    transform: translateY(-50%);
}

.top-header-icon,
.top-header-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-header-icon {
    color: var(--top-header-muted);
}

.top-header-icon svg,
.top-header-contact-icon svg {
    display: block;
}

.top-header-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.top-header-phone {
    color: #ffffff;
    background: linear-gradient(135deg, var(--top-header-blue) 0%, var(--top-header-blue-dark) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 4px 14px rgba(47, 124, 255, 0.25);
}

.top-header-phone:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 8px 18px rgba(47, 124, 255, 0.32);
}

.top-header-mail {
    color: var(--top-header-blue-dark);
    background: #ffffff;
    border: 1px solid #d8e5fb;
    box-shadow: 0 2px 8px rgba(47, 124, 255, 0.08);
}

.top-header-mail:hover {
    transform: translateY(-1px);
    background: #f5f9ff;
    border-color: #bfd4fb;
}

.top-header-mail .top-header-contact-icon {
    color: var(--top-header-blue);
}

.top-header-contact-text {
    display: inline-block;
}

/* Admin Bar */
body.admin-bar .top-header-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .top-header-bar {
        top: 46px;
    }
}

/* Laptop / kleiner Desktop */
@media (max-width: 1200px) {
    .top-header-side {
        min-width: auto;
    }

    .top-header-items {
        gap: 10px 14px;
    }

    .top-header-item {
        font-size: 11.5px;
    }

    .top-header-contact {
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .top-header-contact-text {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tablet */
@media (max-width: 991px) {
    :root {
        --top-header-height: 40px;
    }

    .top-header-inner {
        gap: 12px;
    }

    .top-header-side {
        min-width: auto;
    }

    .top-header-items {
        gap: 8px 12px;
    }

    .top-header-item {
        font-size: 11px;
    }

    .top-header-item:not(:last-child)::after {
        display: none;
    }

    .top-header-contact {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .top-header-contact-text {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Mobile komplett aus */
@media (max-width: 640px) {
    :root {
        --top-header-height: 0px;
    }

    .top-header-bar {
        display: none;
    }
}
/* marel-header */
:root {
    --top-header-height: 38px;
    --admin-bar-offset: 0px;
    --site-header-top: var(--top-header-height);
}

body.top-header-hidden {
    --site-header-top: 0px;
}

body.admin-bar {
    --admin-bar-offset: 32px;
}

.site-header {
    position: fixed;
    top: calc(var(--site-header-top) + var(--admin-bar-offset));
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #071734;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        top 0.22s ease,
        transform 0.3s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

/* Startseite transparent */
.home .site-header {
    background: rgba(7, 23, 52, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Alle anderen Seiten direkt blau */
body:not(.home) .site-header {
    background: #071734;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --admin-bar-offset: 46px;
    }
}

/* Shrink */
.site-header.is-shrunk {
    background: rgba(7, 23, 52, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

/* Desktop container normal */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 68px;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    transition:
        min-height 0.3s ease,
        height 0.3s ease,
        padding 0.3s ease,
        gap 0.3s ease;
}

/* Desktop container shrunk – ca. 10px größer als vorher */
.site-header.is-shrunk .header-container {
    min-height: 42px;
    height: 42px;
    padding: 0 16px;
    gap: 14px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.site-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 220px;
    max-width: 100%;
    min-height: 46px;
    overflow: hidden;
    transition:
        min-height 0.3s ease,
        height 0.3s ease,
        width 0.3s ease;
}

/* Shrink: Logo klein, aber nicht ultramicro */
.site-header.is-shrunk .site-logo {
    width: 130px;
    min-height: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    filter: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        max-height 0.3s ease;
}

.site-logo-default {
    max-height: 56px;
    opacity: 1;
    transform: translateY(0);
}

.site-logo-scrolled {
    position: absolute;
    left: 0;
    top: 50%;
    max-height: 30px;
    opacity: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Im Shrink Standardlogo aus, kleines Logo an */
.site-header.is-shrunk .site-logo-default {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    max-height: 22px;
}

.site-header.is-shrunk .site-logo-scrolled {
    opacity: 1;
    transform: translateY(-50%);
    max-height: 22px;
}

.site-header.is-shrunk .site-logo img {
    max-height: 22px;
}

.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: gap 0.3s ease;
}

.site-header.is-shrunk .nav-menu {
    gap: 16px;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
    transition:
        opacity 0.2s ease,
        color 0.2s ease,
        font-size 0.3s ease,
        line-height 0.3s ease,
        height 0.3s ease;
}

.site-header.is-shrunk .nav-menu a {
    display: inline-flex;
    align-items: center;
    height: 42px;
    font-size: 13px;
    line-height: 1;
    padding: 0;
}

.nav-menu a:hover,
.marel-link:hover {
    opacity: 0.86;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
    transition: gap 0.3s ease;
}

.site-header.is-shrunk .header-right {
    gap: 10px;
}

.marel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    background: #2f7cff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(47, 124, 255, 0.24);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        padding 0.3s ease,
        height 0.3s ease,
        font-size 0.3s ease,
        border-radius 0.3s ease;
}

.site-header.is-shrunk .marel-link {
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(47, 124, 255, 0.2);
}

.marel-link:hover {
    transform: translateY(-1px);
}

.desktop-cta {
    display: inline-flex;
}

.mobile-menu-cta {
    display: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        width 0.3s ease,
        height 0.3s ease,
        border-radius 0.3s ease;
}

.site-header.is-shrunk .menu-toggle {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition:
        transform 0.28s ease,
        opacity 0.28s ease,
        width 0.3s ease;
}

.site-header.is-shrunk .menu-toggle span {
    width: 14px;
}

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

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

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

.mobile-header-contacts {
    display: none;
}

.mobile-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mobile-contact-btn:hover {
    transform: translateY(-1px);
}

.mobile-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-contact-phone {
    background: linear-gradient(135deg, #2f7cff 0%, #175fe6 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(47, 124, 255, 0.22);
}

.mobile-contact-mail {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-service-bar {
    display: none;
}

/* Tablet / kleiner Desktop */
@media (max-width: 991px) {
    .header-container {
        min-height: 62px;
        padding: 6px 20px;
        gap: 18px;
    }

    .site-logo {
        width: 200px;
        min-height: 42px;
    }

    .site-logo-default {
        max-height: 50px;
    }

    .site-logo-scrolled {
        max-height: 28px;
    }

    .nav-menu {
        gap: 18px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .site-header.is-shrunk .header-container {
        min-height: 38px;
        height: 38px;
        padding: 0 12px;
        gap: 10px;
    }

    .site-header.is-shrunk .site-logo {
        width: 110px;
        min-height: 20px;
        height: 20px;
    }

    .site-header.is-shrunk .site-logo img,
    .site-header.is-shrunk .site-logo-default,
    .site-header.is-shrunk .site-logo-scrolled {
        max-height: 20px;
    }

    .site-header.is-shrunk .nav-menu {
        gap: 12px;
    }

    .site-header.is-shrunk .nav-menu a {
        height: 38px;
        font-size: 12px;
    }

    .site-header.is-shrunk .marel-link {
        height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }

    .site-header.is-shrunk .menu-toggle {
        width: 32px;
        height: 32px;
    }

    .site-header.is-shrunk .menu-toggle span {
        width: 12px;
    }
}

/* WP Admin Bar mobil */
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: calc(var(--top-header-height, 44px) + 46px);
    }

    body.admin-bar.top-header-hidden .site-header {
        top: 46px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .mobile-service-bar,
    .site-header,
    .main-navigation {
        transition:
            transform 0.3s ease,
            top 0.3s ease,
            opacity 0.25s ease,
            background 0.35s ease,
            border-color 0.35s ease,
            box-shadow 0.35s ease,
            backdrop-filter 0.35s ease;
    }

    .mobile-service-bar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #081a36, #0d2246);
        z-index: 10001;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-service-bar.is-mobile-hidden {
        transform: translateY(-100%);
    }

    .mobile-service-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
    }

    .mobile-service-logo {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 auto;
        text-decoration: none;
    }

    .mobile-service-logo img {
        display: block;
        width: auto;
        height: 28px;
        max-width: 110px;
    }

    .mobile-service-phone {
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 1 1 auto;
        color: #ffffff;
        text-decoration: none;
    }

    .mobile-service-text {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
        min-width: 0;
    }

    .mobile-service-label {
        font-size: 11px;
        font-weight: 700;
        color: #7fc0ff;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-service-number {
        font-size: 15px;
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-service-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .mobile-service-mail,
    .mobile-service-burger {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        color: #ffffff;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-service-burger {
        flex-direction: column;
        gap: 4px;
    }

    .mobile-service-burger span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .site-header.menu-open .mobile-service-burger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.menu-open .mobile-service-burger span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .mobile-service-burger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-header {
        position: fixed;
        top: 58px !important;
        left: 0;
        width: 100%;
        height: 0 !important;
        min-height: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
        z-index: 9999;
    }

    body.top-header-hidden .site-header {
        top: 58px !important;
    }

    .site-header.is-mobile-hidden {
        transform: translateY(-100%);
    }

    .header-container {
        min-height: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: visible !important;
    }

    .site-branding,
    .header-right,
    .desktop-cta,
    .menu-toggle,
    .mobile-header-contacts {
        display: none !important;
    }

    .main-navigation {
        position: fixed;
        top: 59px;
        left: 0;
        right: 0;
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 16px 16px 18px;
        background: rgba(7, 23, 52, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        z-index: 10000;
    }

    .site-header.menu-open .main-navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-width: 100%;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu li:last-child {
        border-bottom: 0;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 14px 2px;
        font-size: 15px;
        color: #ffffff;
        height: auto;
    }

    .mobile-menu-cta {
        display: block;
        margin-top: 14px;
    }

    .mobile-menu-cta .marel-link {
        display: flex;
        width: 100%;
        height: auto;
        padding: 13px 16px;
        border-radius: 12px;
        font-size: 14px;
    }

    body.admin-bar .site-header,
    body.admin-bar.top-header-hidden .site-header {
        top: 46px !important;
    }

    body.admin-bar .main-navigation,
    body.admin-bar.top-header-hidden .main-navigation {
        top: 105px;
    }

    body.admin-bar .site-header.is-mobile-hidden,
    body.admin-bar.top-header-hidden .site-header.is-mobile-hidden {
        transform: translateY(calc(-100% - 46px));
    }
}
/* marel-footer */
.site-footer {
    background: #071734;
    color: rgba(255, 255, 255, 0.82);
    padding: 54px 0 26px;
    margin-top: 80px;
}

.footer-container {
    width: min(1240px, calc(100% - 120px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand,
.footer-contact-item {
    min-width: 0;
}

.footer-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.footer-text {
    margin: 0;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.78);
}

.footer-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8eb8ff;
}

.footer-contact-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.86);
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #8eb8ff;
}

.footer-contact-item a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 22px;
    text-align: center;
}

.footer-copy {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.66);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.32);
}

@media (max-width: 991px) {
    .footer-container {
        width: calc(100% - 64px);
    }

    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        width: calc(100% - 32px);
    }

    .site-footer {
        padding: 42px 0 22px;
        margin-top: 56px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 22px;
    }

    .footer-title {
        font-size: 22px;
    }

    .footer-text,
    .footer-contact-item p,
    .footer-copy,
    .footer-legal a {
        font-size: 14px;
    }
}
/* marel-legal */
.legal-page {
    padding: 180px 20px 90px;
    background: #f7f9fd;
}

.legal-page-inner {
    max-width: 980px;
    margin: 0 auto;
}

.legal-hero {
    margin-bottom: 34px;
    text-align: center;
}

.legal-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #d7deeb;
    background: #ffffff;
    color: #7b8391;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.legal-hero h1 {
    margin: 0 0 14px;
    color: #1c2434;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.legal-hero p {
    margin: 0;
    color: #667084;
    font-size: 17px;
    line-height: 1.7;
}

.legal-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dfe6f2;
    border-radius: 28px;
    padding: 34px 34px 10px;
    box-shadow: 0 18px 44px rgba(18, 32, 60, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-block {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e8eef7;
}

.legal-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-block h2 {
    margin: 0 0 12px;
    color: #1f2430;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.legal-block p {
    margin: 0;
    color: #556070;
    font-size: 16px;
    line-height: 1.8;
}

.legal-block strong {
    color: #1c2434;
}

.legal-block a {
    color: #2f7cff;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.legal-block a:hover {
    color: #1f6df0;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .legal-page {
        padding: 92px 16px 72px;
    }

    .legal-hero {
        margin-bottom: 26px;
    }

    .legal-hero h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    .legal-hero p {
        font-size: 15px;
        line-height: 1.65;
    }

    .legal-card {
        padding: 24px 20px 6px;
        border-radius: 22px;
    }

    .legal-block {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .legal-block h2 {
        font-size: 18px;
    }

    .legal-block p {
        font-size: 15px;
        line-height: 1.75;
    }

.legal-card-wide {
    padding-bottom: 22px;
}

.legal-block + .legal-block {
    margin-top: 0;
}

.legal-block h3 {
    margin: 18px 0 10px;
    color: #2a3242;
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.legal-block ul.legal-list {
    margin: 12px 0 16px 20px;
    padding: 0;
    color: #556070;
    font-size: 16px;
    line-height: 1.8;
}

.legal-block ul.legal-list li {
    margin-bottom: 6px;
}

.legal-block p + p {
    margin-top: 14px;
}

.legal-block h2 + p {
    margin-top: 0;
}

@media (max-width: 767px) {
    .legal-block h3 {
        font-size: 16px;
        margin: 16px 0 8px;
    }

    .legal-block ul.legal-list {
        margin: 10px 0 14px 18px;
        font-size: 15px;
        line-height: 1.75;
    }

    .legal-block p + p {
        margin-top: 12px;
    }
}
}
