:root {
    color-scheme: light;
    --ink: #142432;
    --blue: #0c57dc;
    --blue-deep: #073d9e;
    --muted: #4b5d6f;
    --line: #dce6ef;
    --light: #edf5ff;
    --navy: #122c55;
    --white: #fff;
    --radius: 20px;
    --shadow: 0 24px 72px #133f7a18;
}

.studio-layout { scroll-padding-top: 28px; scrollbar-color: #b5c8df #f5f9ff; }
.studio-layout .site-main { padding-top: 0; --font-display: Inter, system-ui, sans-serif; }

.shell { width: min(100% - 96px, 1200px); margin-inline: auto; }
.studio-skip { position: fixed; z-index: 20; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 18px; border-radius: 8px; color: white; background: var(--navy); }
.studio-skip:focus { transform: none; color: white; }
.studio-header, .studio-footer { font: 400 16px/1.62 Inter, system-ui, sans-serif; color: var(--ink); }
.studio-header :focus-visible, .studio-footer :focus-visible { outline: 3px solid #1974ed; outline-offset: 4px; }

.studio-header { position: relative; z-index: 5; border-bottom: 1px solid #e4edf6; background: white; }
.studio-header-inner { min-height: 75px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(13px, 2vw, 28px); }
.studio-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: -.05em; white-space: nowrap; }
.studio-brand:hover { color: var(--blue-deep); }
.studio-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: white; font: 700 21px/1 system-ui, sans-serif; letter-spacing: 0; }
.studio-nav { display: flex; align-items: center; gap: clamp(17px, 2vw, 31px); }
.studio-nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.studio-nav a:hover, .studio-nav [aria-current="page"] { color: var(--blue); }
.studio-header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.studio-locale { display: inline-grid; place-items: center; min-width: 41px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue-deep); background: white; font-size: 12px; font-weight: 700; text-decoration: none; }
.studio-locale:hover { background: var(--light); color: var(--blue-deep); }
.studio-header .button { min-height: 44px; padding: 9px 15px; }
.studio-mobile-nav { display: none; }

.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 13px 20px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; line-height: 1.4; font-weight: 700; text-align: center; text-decoration: none; white-space: nowrap; transition: background-color .16s, border-color .16s, box-shadow .16s; }
.button span { font-size: 16px; line-height: 1; }
.button--primary { color: white; background: var(--blue); }
.button--primary:hover { color: white; background: var(--blue-deep); }
.button--secondary { color: #214369; background: white; border-color: #c7d7ea; }
.button--secondary:hover { border-color: #659bdd; background: #f2f8ff; }
.button--light { color: var(--navy); background: white; }
.button--light:hover { background: #d9eaff; }

.studio-footer { padding: 47px 0 24px; background: #f6faff; border-top: 1px solid #e0eaf5; }
.studio-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.25fr 1.15fr; gap: 26px; }
.studio-footer h2 { margin: 6px 0 10px; color: var(--ink); font: 700 14px/1.25 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.studio-footer-grid div > a:not(.studio-brand) { display: block; width: fit-content; margin-top: 6px; color: var(--muted); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.studio-footer-grid p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.studio-footer a:hover { color: var(--blue-deep); text-decoration: underline; }
.studio-footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 13px; margin-top: 31px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.studio-footer-bottom div { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.studio-footer-bottom a { color: inherit; text-decoration: none; }

#cookie-banner[hidden] { display: none; }
#cookie-banner {
    --text-secondary: #4b5d6f;
    --text-muted: #51657a;
    --border-primary: #c7d7ea;
    position: fixed;
    z-index: 1000;
    inset: auto 0 0;
    width: 100%;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    background: white;
    color: var(--ink);
    box-shadow: 0 -12px 40px #173c6d16;
    font: 400 15px/1.5 Inter, system-ui, sans-serif;
}
#cookie-banner .cookie-content { display: flex; flex-wrap: wrap; gap: 15px 24px; align-items: center; max-width: 1200px; margin: auto; }
#cookie-banner .cookie-text { flex: 1 1 330px; }
#cookie-banner .cookie-text p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
#cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 7px; }
#cookie-banner .button { min-height: 41px; padding: 8px 11px; }

@media (max-width: 1030px) {
    .shell { width: min(100% - 64px, 1200px); }
}

@media (max-width: 800px) {
    .studio-header-inner { min-height: 66px; grid-template-columns: 1fr auto auto; gap: 10px; }
    .studio-nav { display: none; }
    .studio-locale { display: none; }
    .studio-mobile-nav { display: block; }
    .studio-mobile-nav summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; list-style: none; }
    .studio-mobile-nav summary::-webkit-details-marker { display: none; }
    .studio-mobile-nav summary span { position: relative; width: 17px; height: 12px; border-block: 2px solid #365477; }
    .studio-mobile-nav summary span::after { content: ''; position: absolute; inset: 3px 0 auto; border-top: 2px solid #365477; }
    .studio-mobile-nav nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 10px max(22px, calc((100vw - 1200px) / 2)); background: white; border-bottom: 1px solid var(--line); box-shadow: 0 15px 25px #14386514; }
    .studio-mobile-nav:not([open]) nav { display: none; }
    .studio-mobile-nav nav a { color: var(--ink); padding: 10px 7px; text-decoration: none; }
    .studio-mobile-nav nav a:last-child { color: var(--blue-deep); font-weight: 700; }
    .studio-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 590px) {
    .shell { width: calc(100% - 40px); }
    .studio-brand { gap: 7px; font-size: 18px; }
    .studio-mark { width: 32px; height: 32px; font-size: 19px; }
    .studio-header .button { min-height: 41px; padding: 7px 10px; font-size: 12px; }
    .studio-header .button span { display: none; }
    .studio-mobile-nav summary { width: 39px; height: 41px; }
    .button { padding: 11px 13px; min-height: 47px; font-size: 13px; }
    .studio-footer { padding-top: 33px; }
    .studio-footer-grid { gap: 19px; }
    .studio-footer-bottom { flex-direction: column; }
}

@media (max-width: 350px) {
    .shell { width: calc(100% - 28px); }
    .studio-brand { font-size: 16px; }
    .studio-header-inner { gap: 7px; }
    .studio-header .button { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .studio-layout { scroll-behavior: auto; }
    .studio-layout *, .studio-layout *::before, .studio-layout *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
