.agm-trigger,
.agm-dialog {
    --agm-navy: #15154f;
    --agm-yellow: #fceea7;
    --agm-white: #fffdf4;
    --agm-muted: #b7b7d0;
    --agm-line: #37376c;
    --agm-card: #24245c;
    --agm-radius: 20px;
    font-family: Inter, Poppins, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.agm-trigger,
.agm-trigger:visited,
.elementor .agm-trigger,
.elementor .agm-trigger:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 46px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--agm-navy);
    color: var(--agm-yellow);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.agm-trigger:hover,
.elementor .agm-trigger:hover,
.elementor .agm-trigger:focus { color: var(--agm-white); background: var(--agm-navy); }
.agm-burger { position: relative; width: 18px; height: 10px; }
.agm-burger::before,
.agm-burger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.agm-burger::before { top: 1px; }
.agm-burger::after { bottom: 1px; width: 12px; }

.agm-dialog,
.agm-dialog * { box-sizing: border-box; }
.agm-dialog {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--agm-navy);
    color: var(--agm-white);
    overscroll-behavior: contain;
    color-scheme: dark;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 240ms ease, transform 240ms cubic-bezier(.2,.7,.2,1);
}
.agm-dialog[open] { display: flex; flex-direction: column; }
.agm-dialog::backdrop { background: #10102b99; }
.agm-dialog.agm-visible { opacity: 1; transform: translateY(0); }
.agm-dialog.agm-leave { opacity: 0; transform: translateY(-12px); }

.agm-dialog a { color: inherit; text-decoration: none; }
.agm-dialog button { font: inherit; cursor: pointer; }
.agm-dialog :is(a, button):focus-visible,
.agm-trigger:focus-visible { outline: 3px solid var(--agm-yellow); outline-offset: 5px; }
.agm-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: max(clamp(12px, 2.6dvh, 22px), env(safe-area-inset-top)) 24px clamp(10px, 2.9dvh, 25px);
    background: var(--agm-navy);
}
.agm-brand { display: inline-flex; align-items: center; gap: 10px; }
.agm-dialog .agm-logo { display: block; width: 43px; height: 45px; object-fit: contain; margin: 0; }
.agm-brand strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.65px; line-height: 1.1; }
.agm-brand small { display: block; margin-top: 4px; font-size: 9px; font-weight: 600; letter-spacing: 2px; line-height: 1.25; color: var(--agm-yellow); }
.agm-dialog .agm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--agm-line);
    border-radius: 999px;
    background: transparent;
    color: var(--agm-white);
    font-size: 12px !important;
    font-weight: 600 !important;
}
.agm-dialog .agm-close:hover,
.agm-dialog .agm-close:focus { color: var(--agm-white); border-color: var(--agm-yellow); background: var(--agm-card); }
.agm-cross { position: relative; display: block; width: 14px; height: 14px; }
.agm-cross::before,
.agm-cross::after { content: ""; position: absolute; top: 6px; left: 0; width: 15px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.agm-cross::after { transform: rotate(-45deg); }

.agm-navigation {
    flex: 1 1 auto;
    min-height: 0;
    padding: clamp(8px, 1.9dvh, 16px) 24px clamp(12px, 3.3dvh, 28px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--agm-line) transparent;
    -webkit-overflow-scrolling: touch;
}
.agm-eyebrow { margin: 0 0 clamp(8px, 2.6dvh, 22px); color: var(--agm-muted); font-size: 10px; font-weight: 600; letter-spacing: 2.2px; line-height: 1.5; text-transform: uppercase; }
.agm-dialog ul { list-style: none; margin: 0; padding: 0; }
.agm-list { --agm-columns: 1; }
.agm-list > li { border-bottom: 1px solid var(--agm-line); }
.agm-row { display: flex; align-items: center; min-width: 0; }
.agm-list > li > .agm-row > a { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; min-height: var(--agm-row-height, 68px); padding: 0; font-size: var(--agm-link-font, clamp(18px, 6.5vw, 29px)); font-weight: 700; letter-spacing: -.9px; line-height: 1.2; }
.agm-list > li > .agm-row > a:hover,
.agm-dialog a[aria-current="page"] { color: var(--agm-yellow); }
.agm-list > li:not(.menu-item-has-children) > .agm-row::after { content: "↗"; padding-left: 12px; color: var(--agm-yellow); font-size: 20px; line-height: 1; }
.agm-dialog .agm-sub-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0 -7px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--agm-yellow);
}
.agm-dialog .agm-sub-toggle:hover,
.agm-dialog .agm-sub-toggle:focus { color: var(--agm-yellow); border-color: transparent; background: var(--agm-card); }
.agm-plus { position: relative; width: 16px; height: 16px; }
.agm-plus::before,
.agm-plus::after { content: ""; position: absolute; top: 7px; left: 1px; width: 14px; height: 1.5px; background: currentColor; }
.agm-plus::after { transform: rotate(90deg); transition: transform 180ms ease; }
.agm-sub-toggle[aria-expanded="true"] .agm-plus::after { transform: rotate(0); }
.agm-branch { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 200ms ease, visibility 200ms; }
.agm-branch > ul { overflow: hidden; min-height: 0; }
.agm-branch.agm-expanded { grid-template-rows: 1fr; visibility: visible; }
.agm-branch > ul > li > .agm-row > a { display: block; flex: 1; min-width: 0; padding: 12px 12px 12px 14px; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--agm-muted); }
.agm-branch > ul > li:last-child { padding-bottom: 14px; }
.agm-branch > ul > li > .agm-row > a:hover { color: var(--agm-yellow); }
.agm-branch .agm-branch { padding-left: 14px; }

.agm-foot { flex: 0 0 auto; padding: clamp(10px, 2.5dvh, 21px) 24px max(clamp(12px, 2.9dvh, 24px), env(safe-area-inset-bottom)); background: var(--agm-navy); border-top: 1px solid var(--agm-line); }
.agm-dialog .agm-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: clamp(46px, 6.4dvh, 54px); padding: clamp(10px, 1.7dvh, 14px) 22px; border-radius: 999px; background: var(--agm-yellow); color: var(--agm-navy); font-size: 15px; font-weight: 700; line-height: 1.4; }
.agm-dialog .agm-cta:hover { background: var(--agm-white); }
.agm-cta > span:last-child { font-size: 22px; font-weight: 400; }
.agm-dialog .agm-phone { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; min-height: clamp(32px, 5.2dvh, 44px); margin-top: clamp(4px, .95dvh, 8px); color: var(--agm-muted); font-size: 12px; line-height: 1.4; }
.agm-phone span { color: var(--agm-white); }

.agm-dialog[data-agm-style="rustig"] .agm-list > li { margin-bottom: 10px; border: 1px solid var(--agm-line); border-radius: var(--agm-radius); background: var(--agm-card); overflow: hidden; }
.agm-dialog[data-agm-style="rustig"] .agm-list > li > .agm-row { padding: 0 16px; }
.agm-dialog[data-agm-style="rustig"] .agm-list > li > .agm-row > a { padding: 18px 0; font-size: 19px; letter-spacing: -.3px; }
.agm-dialog[data-agm-style="rustig"] .agm-branch > ul > li > .agm-row > a { padding-left: 16px; }
.agm-dialog[data-agm-style="rustig"] .agm-navigation { padding-top: 10px; }

@media (min-width: 768px) {
    .agm-head, .agm-navigation, .agm-foot { padding-left: max(36px, calc((100vw - 640px) / 2)); padding-right: max(36px, calc((100vw - 640px) / 2)); }
}
@media (max-height: 520px) {
    .agm-head { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 8px; }
    .agm-dialog .agm-logo { width: 36px; height: 38px; }
    .agm-navigation { padding-top: 8px; padding-bottom: 8px; }
    .agm-eyebrow { display: none; }
}
@media (max-height: 500px) and (min-width: 560px) {
    .agm-list { --agm-columns: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
    .agm-foot { display: flex; align-items: center; gap: 20px; }
    .agm-dialog .agm-cta { flex: 1; }
    .agm-dialog .agm-phone { flex: 0 0 auto; margin-top: 0; }
}
@media (min-width: 1025px) { .agm-trigger, .elementor .agm-trigger { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .agm-dialog { transition: none; }
    .agm-dialog *, .agm-dialog *::before, .agm-dialog *::after { transition: none !important; }
}
