/*
 * Zigmund redesigned journal shell.
 * Intentionally independent from the legacy theme bundle.
 */
:root {
    --zmg-bg: #f7f7f7;
    --zmg-card: #fff;
    --zmg-text: #242424;
    --zmg-muted: #5f5c57;
    --zmg-subtle: #9e9a94;
    --zmg-orange: #ff5a11;
}

html { scroll-behavior: smooth; }
.zmg-body,
.zmg-body * { box-sizing: border-box; }
body.zmg-body {
    margin: 0;
    padding: 80px 0 0 !important;
    background: var(--zmg-bg);
    color: var(--zmg-text);
    font-family: "PT Root UI", "Opora PTRootUIWebVF", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.zmg-body img { display:block; max-width:100%; }
body.zmg-body a { text-decoration:none; }
.zmg-site { width:100%; overflow:clip; }

/* Exact 1440px desktop frame from Figma. */
.zmg-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.zmg-header__frame {
    position: relative;
    width: 100%;
    max-width: 1440px;
    height: 80px;
    margin: 0 auto;
}
.zmg-header__nav {
    position: absolute;
    top: 16px;
    display: inline-flex;
    height: 48px;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}
.zmg-header__nav--left { left: 83px; }
.zmg-header__nav--right { left: 852px; }
.zmg-header__nav a {
    color: #242424;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0;
}
.zmg-header__nav a:hover { color: var(--zmg-orange); }
.zmg-header__logo {
    position: absolute;
    left: 611px;
    top: 21px;
    display: block;
    width: 217px;
    height: 38px;
    overflow: hidden;
}
.zmg-header__logo img { width:217px; height:38px; object-fit:contain; }
.zmg-header__cta {
    position: absolute;
    left: 1134.5px;
    top: 21px;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 9999px;
    background: linear-gradient(90deg,#f7a934 0%,#f37645 50%,#f57442 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: .18px;
    white-space: nowrap;
}
.zmg-header__search {
    position: absolute;
    left: 1320px;
    top: 20px;
    display: block;
    width: 40px;
    height: 40px;
}
.zmg-header__search svg { display:block; width:40px; height:40px; }
.zmg-header__mobile { display:none; }

/* Keep the Figma coordinates exact at 1440+, but make the same header usable below it. */
@media (max-width: 1439px) and (min-width: 1024px) {
    .zmg-header__frame {
        display: grid;
        grid-template-columns: minmax(0,1fr) 190px minmax(0,1fr);
        align-items: center;
        gap: 18px;
        padding: 0 28px;
    }
    .zmg-header__nav,
    .zmg-header__logo,
    .zmg-header__cta,
    .zmg-header__search { position: static; }
    .zmg-header__nav { height:auto; gap:14px; }
    .zmg-header__nav a { font-size:15px; line-height:18px; }
    .zmg-header__nav--left { justify-self:start; }
    .zmg-header__logo { grid-column:2; grid-row:1; justify-self:center; width:190px; height:auto; }
    .zmg-header__logo img { width:190px; height:auto; }
    .zmg-header__nav--right { grid-column:3; grid-row:1; justify-self:start; }
    .zmg-header__cta { grid-column:3; grid-row:1; justify-self:end; margin-right:52px; min-height:34px; padding:7px 12px; font-size:15px; line-height:18px; }
    .zmg-header__search { grid-column:3; grid-row:1; justify-self:end; width:40px; height:40px; }
}
@media (max-width: 1023px) {
    body.zmg-body { padding-top:64px !important; }
    .zmg-header { height:64px; }
    .zmg-header__frame { height:64px; padding:0 20px; }
    .zmg-header__nav,
    .zmg-header__logo,
    .zmg-header__cta,
    .zmg-header__search { display:none; }
    .zmg-header__mobile { display:flex; height:64px; align-items:center; justify-content:space-between; }
    .zmg-header__mobile-logo { width:180px; }
    .zmg-header__mobile-logo img { width:180px; height:auto; }
    .zmg-header__mobile-search { color:var(--zmg-orange); font-size:30px; line-height:1; }
}

/* New footer only. */
.zmg-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    color: var(--zmg-text);
    font-family: "PT Root UI", "Opora PTRootUIWebVF", Arial, sans-serif;
}
.zmg-footer__inner {
    width: 1280px;
    max-width: calc(100% - 160px);
    margin: 0 auto;
}
.zmg-footer__main { padding:64px 0 32px; background:#f4f2f0; }
.zmg-footer__columns { display:grid; grid-template-columns:212px repeat(3,minmax(0,1fr)); gap:56px; align-items:start; }
.zmg-footer__column { display:flex; flex-direction:column; gap:32px; }
.zmg-footer__column--intro { gap:40px; }
.zmg-footer__cta-group { display:flex; flex-direction:column; align-items:flex-start; gap:20px; }
.zmg-footer__cta { display:inline-flex; min-height:42px; align-items:center; justify-content:center; padding:9px 20px; border-radius:9999px; background:linear-gradient(90deg,#f7a934,#f37645 50%,#f57442); color:#fff!important; font-size:18px; font-weight:500; line-height:22px; letter-spacing:.18px; }
.zmg-footer__accent-link,.zmg-footer .is-accent { color:var(--zmg-orange)!important; }
.zmg-footer__accent-link { font-size:16px; font-weight:500; line-height:19.2px; }
.zmg-footer__group,.zmg-footer__download { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.zmg-footer__group h3,.zmg-footer__download h3 { margin:0 0 8px; color:var(--zmg-text); font-size:20px; font-weight:700; line-height:22px; letter-spacing:.2px; }
.zmg-footer__group>a { color:#5f5c57; font-size:16px; font-weight:500; line-height:19.2px; }
.zmg-footer__stores { display:flex; gap:7px; }
.zmg-footer__qr { display:block; width:84px; height:84px; padding:6px; overflow:hidden; border:1px solid #f4f2f0; border-radius:8px; background:#fff; }
.zmg-footer__qr img { width:72px; height:72px; object-fit:cover; }
.zmg-footer__stores>div { display:flex; flex-direction:column; gap:6px; }
.zmg-footer__stores>div a { display:block; width:122px; }
.zmg-footer__help-item { display:flex; flex-direction:column; gap:12px; }
.zmg-footer__help-item+.zmg-footer__help-item { margin-top:4px; }
.zmg-footer__phone { color:var(--zmg-orange)!important; font-size:18px; font-weight:500; line-height:20.7px; }
.zmg-footer__help-item p { width:241px; max-width:100%; margin:0; color:#5f5c57; font-size:16px; font-weight:500; line-height:19.2px; }
.zmg-footer__bottomline { display:flex; align-items:flex-end; justify-content:space-between; margin-top:40px; }
.zmg-footer__socials { display:flex; align-items:center; gap:16px; }
.zmg-footer__socials a { display:block; width:32px; height:32px; background:transparent!important; }
.zmg-footer__socials img { width:32px; height:32px; }
.zmg-footer__brandline { display:flex; align-items:center; gap:74px; }
.zmg-footer__brand { display:flex; width:197px; flex-direction:column; align-items:flex-start; gap:8px; }
.zmg-footer__brand>a { display:block; width:181px; height:auto; }
.zmg-footer__brand>a img { display:block; width:181px; height:auto; }
.zmg-footer__brand span { color:#aca89f; font-size:14px; font-weight:500; line-height:16.8px; white-space:nowrap; }
.zmg-footer__age { display:grid; width:40px; height:40px; place-items:center; border-radius:50%; background:#fff; color:#aca89f; font-size:14px; font-weight:500; line-height:16.8px; }
.zmg-footer__seo { padding:46px 0; background:#e0dfdc; }
.zmg-footer__seo-grid { display:grid; grid-template-columns:568px minmax(0,1fr) minmax(0,1fr); gap:56px; align-items:start; }
.zmg-footer__about { margin:0; color:var(--zmg-text); font-size:16px; font-weight:400; line-height:22.4px; letter-spacing:.16px; }
.zmg-footer__seo-column { display:flex; flex-direction:column; gap:4px; }
.zmg-footer__seo-column h4 { margin:0 0 4px; color:var(--zmg-text); font-size:14px; font-weight:500; line-height:21px; letter-spacing:.14px; }
.zmg-footer__seo-column a { color:var(--zmg-text); font-size:12px; font-weight:400; line-height:18px; letter-spacing:.12px; }
.zmg-footer__legal { display:flex; flex-direction:column; gap:8px; margin-top:64px; }
.zmg-footer__legal p { margin:0; color:#9e9a94; font-size:12px; font-weight:400; line-height:16.8px; letter-spacing:.12px; }
.zmg-footer__legal a { color:var(--zmg-orange); }
@media(max-width:1023px){
    .zmg-footer__inner{width:calc(100% - 40px);max-width:none;}
    .zmg-footer__columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px;}
    .zmg-footer__seo-grid{grid-template-columns:1fr;gap:28px;}
    .zmg-footer__bottomline{align-items:flex-start;gap:28px;flex-direction:column;}
}
@media(max-width:640px){
    .zmg-footer__main{padding-top:40px;}
    .zmg-footer__columns{grid-template-columns:1fr;}
    .zmg-footer__brandline{gap:24px;}
    .zmg-footer__about br{display:none;}
}

/* === v7 interaction + mobile shell === */
body.zmg-body a[href],
body.zmg-body button:not(:disabled),
body.zmg-body input[type="submit"],
body.zmg-body input[type="button"],
body.zmg-body [role="button"] {
    cursor: pointer;
}
body.zmg-body button:disabled,
body.zmg-body [aria-disabled="true"] {
    cursor: default;
}
body.zmg-body a:focus-visible,
body.zmg-body button:focus-visible,
body.zmg-body input:focus-visible {
    outline: 2px solid var(--zmg-orange);
    outline-offset: 2px;
}

@media (max-width: 1023px) {
    .zmg-header__frame { padding: 0 16px; }
    .zmg-header__mobile {
        position: relative;
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        align-items: center;
        width: 100%;
        height: 64px;
    }
    .zmg-header__mobile-burger {
        display: flex;
        width: 40px;
        height: 40px;
        padding: 9px 8px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
    }
    .zmg-header__mobile-burger span {
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: var(--zmg-orange);
        transform-origin: center;
        transition: transform .18s ease, opacity .18s ease;
    }
    .zmg-header__mobile-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .zmg-header__mobile-burger.is-open span:nth-child(2) { opacity: 0; }
    .zmg-header__mobile-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .zmg-header__mobile-logo {
        justify-self: center;
        width: 160px;
    }
    .zmg-header__mobile-logo img {
        display: block;
        width: 160px;
        height: auto;
    }
    .zmg-header__mobile-search {
        justify-self: end;
        display: block;
        width: 40px;
        height: 40px;
        color: var(--zmg-orange);
        font-size: 0;
    }
    .zmg-header__mobile-search svg { display: block; width: 40px; height: 40px; }
    .zmg-header__mobile-menu {
        position: fixed;
        z-index: 999;
        top: 64px;
        left: 0;
        width: 100%;
        padding: 12px 16px 20px;
        background: rgba(255,255,255,.99);
        box-shadow: 0 12px 32px rgba(36,36,36,.10);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    .zmg-header__mobile-menu[hidden] { display: none !important; }
    .zmg-header__mobile-menu a {
        display: block;
        padding: 11px 4px;
        border-bottom: 1px solid #efefef;
        color: #242424;
        font-size: 16px;
        font-weight: 500;
        line-height: 20px;
    }
    .zmg-header__mobile-menu .zmg-header__mobile-menu-cta {
        margin-top: 14px;
        padding: 12px 18px;
        border: 0;
        border-radius: 9999px;
        background: linear-gradient(90deg,#f7a934 0%,#f37645 50%,#f57442 100%);
        color: #fff;
        text-align: center;
    }
}

@media (max-width: 390px) {
    .zmg-header__mobile-logo,
    .zmg-header__mobile-logo img { width: 148px; }
}

@media (max-width: 640px) {
    .zmg-footer__inner { width: calc(100% - 40px); max-width: none; }
    .zmg-footer__main { padding-top: 36px; padding-bottom: 28px; }
    .zmg-footer__columns { gap: 28px; }
    .zmg-footer__cta { width: 100%; }
    .zmg-footer__group h3,
    .zmg-footer__download h3 { font-size: 18px; line-height: 20px; }
    .zmg-footer__group > a,
    .zmg-footer__accent-link,
    .zmg-footer__help-item p { font-size: 14px; line-height: 17px; }
    .zmg-footer__phone { font-size: 16px; line-height: 19px; }
    .zmg-footer__bottomline { margin-top: 28px; }
    .zmg-footer__seo { padding: 30px 0; }
    .zmg-footer__seo-grid { gap: 24px; }
    .zmg-footer__about { font-size: 14px; line-height: 19px; }
    .zmg-footer__legal { margin-top: 30px; }
}
body.zmg-body button,
body.zmg-body input,
body.zmg-body textarea,
body.zmg-body select { font: inherit; }
