/* Shared sans-serif defaults also cover headings inherited from Astra. */
body,button,input,select,textarea,h1,h2,h3,h4,h5,h6,.entry-content :is(h1,h2,h3,h4,h5,h6),.site-title,.site-title a { font-family:Arial,Helvetica,sans-serif; }
/* Local presentation layer. No external fonts, scripts or service calls. */
:root { --kg-ink:#202521; --kg-muted:#555b55; --kg-gold:#80613e; --kg-line:#d9d3c8; --kg-paper:#faf8f4; }
body .site-content { background:var(--kg-paper); }
.site-header .custom-logo-link { display:block; width:96px; height:80px; overflow:hidden; }
.site-header .custom-logo-link img { display:block; width:240px!important; height:auto!important; max-width:none!important; }
.site-header .ast-site-identity { padding:16px 0!important; }
.site-header .ast-primary-header-bar { padding-left:24px; padding-right:24px; min-height:88px; }
.site-header .site-logo-img { padding-right:12px; }
.entry-content p { text-align:left!important; }
.entry-content { overflow-wrap:break-word; }
.kg-page { max-width:1160px; margin:0 auto; padding:0 32px; color:var(--kg-ink); font-family:Arial,Helvetica,sans-serif; }
.kg-page *, .kg-page *::before, .kg-page *::after { box-sizing:border-box; }
.entry-content .kg-page h1, .entry-content .kg-page h2, .entry-content .kg-page h3 { color:var(--kg-ink); font-family:Arial,Helvetica,sans-serif; font-weight:400; letter-spacing:-.025em; text-wrap:balance; }
.entry-content .kg-page h1 { font-size:clamp(34px,4.1vw,56px); line-height:1.12; margin:0 0 24px; }
.entry-content .kg-page h2 { font-size:clamp(29px,3vw,40px); line-height:1.18; margin:0 0 20px; }
.entry-content .kg-page h3 { font-size:26px; line-height:1.25; margin:0 0 12px; }
.kg-page p, .kg-page li { font-size:17px; line-height:1.75; }
.kg-page p { margin:0 0 20px; }
.kg-page .kg-eyebrow { color:var(--kg-gold); font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; margin-bottom:20px; }
.kg-page .kg-lead { color:var(--kg-muted); font-size:19px; line-height:1.65; max-width:62ch; }
.kg-page .kg-name { font-weight:700; font-size:17px; margin-bottom:12px; }
.kg-hero { display:grid; grid-template-columns:minmax(0,1.42fr) minmax(0,1fr); align-items:center; gap:56px; padding:64px 0 54px; }
.kg-portrait { margin:0; align-self:stretch; display:flex; flex-direction:column; }
.kg-portrait img { width:100%; aspect-ratio:4/5; object-fit:cover; object-position:center 24%; display:block; }
.kg-portrait figcaption { border-top:2px solid var(--kg-gold); padding-top:12px; margin-top:14px; color:var(--kg-muted); font-size:13px; line-height:1.6; }
.kg-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:28px 0 18px; }
.entry-content .kg-page .kg-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:48px; padding:12px 22px; background:var(--kg-ink); border:1px solid var(--kg-ink); color:#fff; font:600 15px/1.5 Arial,Helvetica,sans-serif; text-decoration:none; border-radius:0; }
.entry-content .kg-page .kg-button:hover { background:var(--kg-gold); border-color:var(--kg-gold); color:#fff; }
.entry-content .kg-page .kg-button-secondary { background:transparent; color:var(--kg-ink); }
.kg-page a { color:var(--kg-gold); text-underline-offset:4px; }
.kg-page a:focus-visible, .site-header a:focus-visible, .site-header button:focus-visible { outline:3px solid #987044; outline-offset:5px; }
.kg-page .kg-note { color:var(--kg-muted); font-size:14px; line-height:1.65; }
.kg-section { padding:56px 0; border-top:1px solid var(--kg-line); }
.kg-section-intro { display:grid; grid-template-columns:1fr 1fr; gap:48px; margin-bottom:28px; }
.kg-service-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:0; padding:0; list-style:none; }
.kg-service-list li { display:flex; min-width:0; }
.entry-content .kg-page .kg-specializations-title { text-align:center; margin-bottom:36px; }
.entry-content .kg-page .kg-service { display:flex; flex-direction:column; align-items:center; gap:16px; width:100%; padding:36px 28px; background:#fff; color:var(--kg-ink); text-align:center; text-decoration:none; }
.kg-service-icon { flex-shrink:0; width:64px; height:64px; color:var(--kg-gold); stroke-width:1.8; }
.kg-service-icon path:first-child, .kg-service-icon rect { stroke:var(--kg-ink); }
.entry-content .kg-page .kg-service:hover, .entry-content .kg-page .kg-service:focus-visible { background:#f1ece3; }
.kg-service:hover .kg-service-name, .kg-service:focus-visible .kg-service-name { text-decoration:underline; text-underline-offset:5px; }
.kg-service-name { font:400 27px/1.25 Arial,Helvetica,sans-serif; text-wrap:balance; }
.kg-service-desc { max-width:36ch; font-size:15px; line-height:1.6; color:var(--kg-muted); }
.kg-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:36px; list-style:none; padding:8px 0 0; margin:0; counter-reset:kg-step; }
.kg-steps li { counter-increment:kg-step; }
.kg-steps li::before { content:'0' counter(kg-step); display:block; color:var(--kg-gold); font-size:13px; border-top:2px solid var(--kg-gold); padding-top:15px; margin-bottom:20px; }
.kg-split { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.kg-contact-band { background:#ece7de; padding:36px; margin:16px 0 56px; }
.kg-contact-band p:last-child { margin-bottom:0; }
.kg-subhero { padding:56px 0 36px; max-width:850px; }
.kg-contact-layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; padding-bottom:48px; }
.kg-contact-detail { border-top:1px solid var(--kg-line); padding:20px 0 4px; }
.kg-page .kg-phone { font-family:Arial,Helvetica,sans-serif; font-size:30px; line-height:1.4; color:var(--kg-ink); }
.kg-page .kg-contact-detail h2 { font:700 12px/1.6 Arial,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:var(--kg-gold); margin-bottom:10px; }
.kg-map iframe { width:100%; max-width:100%; border:0; height:320px; }
.kg-form { padding-top:20px; border-top:2px solid var(--kg-gold); scroll-margin-top:60px; }
.kg-page ul { margin-left:0; padding-left:22px; }
.kg-page .kg-service-list, .kg-page .kg-steps { padding-left:0; }
.kg-page details { border-top:1px solid var(--kg-line); padding:22px 0; }
.kg-page summary { font-size:18px; cursor:pointer; }
.kg-page details p { margin-top:16px; }
.kg-page .kg-credentials { margin:0; padding:0; list-style:none; }
.kg-credentials li { border-top:1px solid var(--kg-line); padding:24px 0 4px; }
.kg-credentials li:first-child { padding-top:0; border:0; }
.kg-audience { border-top:2px solid var(--kg-gold); padding-top:24px; }
.kg-page .srfm-form-container { margin:0!important; padding:0!important; }
.kg-page input, .kg-page textarea, .kg-page select { max-width:100%; }
@media(max-width:1000px) {
 .kg-hero { gap:32px; padding-top:40px; }
 .kg-contact-layout { gap:32px; }
}
@media(max-width:720px) {
 .kg-page { padding:0 24px; }
 .site-header .ast-site-identity { padding:12px 0!important; }
 .site-header .ast-primary-header-bar { padding-left:20px; padding-right:20px; min-height:76px; }
 .kg-hero, .kg-section-intro, .kg-split, .kg-contact-layout { grid-template-columns:1fr; gap:24px; }
 .kg-hero { padding:32px 0 36px; }
 .kg-portrait { max-width:390px; }
 .kg-portrait img { aspect-ratio:4/3; object-position:center 25%; }
 .kg-section { padding:36px 0; }
 .kg-section-intro { margin-bottom:12px; }
 .kg-steps { grid-template-columns:1fr; gap:20px; }
 .kg-steps li::before { margin-bottom:12px; }
 .kg-service-list { grid-template-columns:1fr; gap:16px; }
 .entry-content .kg-page .kg-service { padding:24px; gap:16px; }
 .kg-service-name { font-size:27px; }
 .kg-contact-band { padding:24px; margin-bottom:36px; }
 .kg-subhero { padding:32px 0 20px; }
 .kg-contact-layout { padding-bottom:32px; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior:auto!important; }
 .kg-page *, .site-header * { animation:none!important; transition:none!important; }
}
/* Astra's imported mobile header had an empty right column and a centered menu. */
.ast-mobile-header-wrap .ast-grid-center-col-layout { grid-template-columns:minmax(0,1fr) auto; }
.ast-mobile-header-wrap .ast-grid-right-section:empty { display:none; }
.ast-mobile-header-wrap .ast-grid-section-center { justify-content:flex-end; }
/* Shared site navigation and contact hierarchy. */
.site-header .ast-site-identity { display:flex; align-items:center; gap:14px; }
.site-header .site-logo-img { padding:0; flex-shrink:0; }
.site-header .kg-wordmark { display:flex; flex-direction:column; gap:5px; color:#f6eee2; text-decoration:none; white-space:nowrap; }
.kg-wordmark strong { font:400 23px/1.15 Arial,Helvetica,sans-serif; }
.kg-wordmark span { font:12px/1.3 Arial,sans-serif; color:#cfb894; }
.site-header .ast-builder-layout-element[data-section*="social"] { display:none; }
.site-header .main-header-menu > .menu-item > .menu-link { padding-left:12px; padding-right:12px; }
.kg-mobile-call { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; margin-right:8px; color:#e0c295; border:1px solid #80613e; border-radius:3px; }
.kg-footer { background:#151815; color:#eeeae3; font:16px/1.65 Arial,Helvetica,sans-serif; }
.kg-footer-inner { max-width:1224px; padding:52px 32px 24px; margin:auto; }
.kg-footer-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); column-gap:clamp(32px,6vw,80px); row-gap:28px; align-items:start; }
.kg-footer-firm { border-top:1px solid #42473f; padding-top:24px; }
.kg-footer .kg-footer-firm h2 { margin-bottom:12px; }
.kg-footer-services { padding-top:0; }
.kg-footer h2 { color:#d5b589; margin:0 0 22px; font:600 12px/1.6 Arial,sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.kg-footer-firm h2 span { display:inline-block; color:#faf8f4; font:400 25px/1.3 Arial,Helvetica,sans-serif; letter-spacing:0; text-transform:none; margin-top:8px; }
.kg-footer address { font-style:normal; margin-bottom:12px; }
.kg-footer a { color:#eeeae3; text-decoration:none; text-underline-offset:5px; }
.kg-footer a:hover { color:#e0c295; text-decoration:underline; }
.kg-footer a:focus-visible { outline:3px solid #e0c295; outline-offset:3px; }
.kg-footer p.kg-footer-note { font-size:14px; color:#c1c5bf; max-width:28ch; margin:16px 0 0; }
.kg-footer ul { margin:0; padding:0; list-style:none; }
.kg-footer-services a { display:inline-flex; align-items:center; min-height:44px; }
.kg-footer-phone { display:block; font:400 32px/1.4 Arial,Helvetica,sans-serif; padding-bottom:8px; }
.kg-footer-email { display:block; overflow-wrap:anywhere; padding:4px 0 12px; }
.kg-footer .kg-footer-form { display:inline-flex; align-items:center; min-height:44px; color:#e0c295; text-decoration:underline; }
.kg-footer-social { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.kg-footer-social a { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border:1px solid #65583f; border-radius:50%; color:#d5b589; text-decoration:none; }
.kg-footer-social svg { display:block; width:22px; height:22px; fill:currentColor; }
.kg-footer-social a:hover, .kg-footer-social a:focus-visible { background:#d5b589; border-color:#d5b589; color:#151815; }
.kg-footer-social a:focus-visible { outline:2px solid #eeeae3; outline-offset:4px; }
.kg-footer-legal { display:flex; justify-content:space-between; align-items:center; gap:24px; border-top:1px solid #42473f; margin-top:36px; padding-top:22px; color:#bcc0b9; font-size:13px; }
.kg-footer-legal p { margin:0; }
.kg-footer-legal nav { display:flex; flex-wrap:wrap; gap:0 24px; }
.kg-footer-legal a { min-height:44px; display:inline-flex; align-items:center; color:#c8ccc5; }
@media(max-width:1100px) and (min-width:922px) {
 .kg-wordmark strong { font-size:20px; }
 .site-header .main-header-menu > .menu-item > .menu-link { padding-left:8px; padding-right:8px; }
}
@media(max-width:921px) {
 .site-header .ast-site-identity { gap:10px; }
 .kg-wordmark strong { font-size:20px; }
 .kg-wordmark span { font-size:11px; }
 .site-header .ast-primary-header-bar { padding-left:16px; padding-right:16px; }
 .site-header .ast-button-wrap .menu-toggle { min-width:44px; min-height:44px; padding:8px; }

}
@media(max-width:540px) {
 .site-header .ast-site-identity { gap:8px; }
 .kg-wordmark strong { font-size:16px; }
 .kg-wordmark span { font-size:10px; }
 .site-header .ast-primary-header-bar { padding-left:12px; padding-right:12px; }
 .kg-mobile-call { margin-right:4px; }
 .kg-footer-inner { padding:36px 24px 20px; }
 .kg-footer-grid { grid-template-columns:1fr; gap:28px; }
 .kg-footer-services { border-top:1px solid #42473f; padding-top:24px; }
 .kg-footer-legal { flex-direction:column; align-items:flex-start; gap:12px; margin-top:24px; }
 .kg-footer h2 { margin-bottom:14px; }
}
.kg-footer p { text-align:left; }
@media(max-width:360px) {
 .kg-wordmark strong { font-size:14px; }
 .kg-wordmark span { font-size:9px; }
 .site-header .ast-site-identity { gap:5px; }
 .site-header .ast-primary-header-bar { padding-left:8px; padding-right:8px; }
}
/* Keep WordPress account/search inside the 32px toolbar in narrow desktop panels. */
@media(min-width:783px) and (max-width:1100px) {
 #wpadminbar #wp-admin-bar-site-name > .ab-item { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 #wpadminbar #wp-admin-bar-rank-math,
 #wpadminbar #wp-admin-bar-wpcode-admin-bar-info,
 #wpadminbar #wp-admin-bar-zip-ai-assistant,
 #wpadminbar #wp-admin-bar-customize { display:none; }
}

/* Quiet secondary link beneath the biography. */
.entry-content .kg-page .kg-experience-link { color:var(--kg-ink); font-weight:600; text-decoration:none; }
.entry-content .kg-page .kg-experience-link:hover, .entry-content .kg-page .kg-experience-link:focus-visible { color:var(--kg-ink); text-decoration:underline; }
/* Expanded navigation belongs to the same dark visual system as the header. */
#ast-mobile-header .ast-mobile-header-content,
#ast-mobile-header .ast-mobile-header-content .main-header-bar-navigation,
#ast-mobile-site-navigation,
#ast-mobile-site-navigation .main-header-menu { background:#151815; }
#ast-mobile-site-navigation { padding:8px 24px 20px; border-top:1px solid #393a30; }
#ast-mobile-site-navigation .menu-item { border:0; }
#ast-mobile-site-navigation .menu-link { display:flex; align-items:center; min-height:56px; padding:14px 20px; border-bottom:1px solid #34392f; color:#f6f0e7; background:transparent; font:400 18px/1.5 Arial,Helvetica,sans-serif; text-decoration:none; }
#ast-mobile-site-navigation .menu-item-has-children > .menu-link { padding-right:64px; }
#ast-mobile-site-navigation .ast-menu-toggle { top:0; right:8px; width:48px; height:56px; margin:0; padding:0; border:0; color:#d5b589; background:transparent; }
#ast-mobile-site-navigation .sub-menu { margin:0; padding:4px 0 4px 16px; border:0; border-left:1px solid #80613e; background:#0b0e0c; }
#ast-mobile-site-navigation .sub-menu .menu-link { min-height:48px; padding:12px 20px; font-size:17px; }
#ast-mobile-site-navigation .sub-menu .ast-icon { display:none; }
#ast-mobile-site-navigation .current-menu-item > .menu-link,
#ast-mobile-site-navigation .current-menu-ancestor > .menu-link { color:#e0c295; box-shadow:inset 3px 0 #b59360; }
#ast-mobile-site-navigation .menu-link:hover,
#ast-mobile-site-navigation .menu-link:focus-visible { color:#e0c295; background:#252b23; }
#ast-mobile-site-navigation .kg-menu-contact { padding:20px 0 0; }
#ast-mobile-site-navigation .kg-menu-contact > .menu-link { justify-content:center; min-height:52px; padding:12px; border:1px solid #d5b589; background:#d5b589; color:#151815; font-size:17px; font-weight:700; }
#ast-mobile-site-navigation .kg-menu-contact > .menu-link:hover { background:#e5c89f; }
#ast-desktop-header .main-header-menu .sub-menu { width:300px; background:#151815; border:1px solid #393a30; border-top:2px solid #b59360; }
#ast-desktop-header .main-header-menu .sub-menu .menu-link { display:flex; align-items:center; min-height:48px; padding:12px 20px; color:#f6f0e7; border-bottom:1px solid #34392f; font:400 17px/1.5 Arial,Helvetica,sans-serif; }
#ast-desktop-header .sub-menu .current-menu-item > .menu-link,
#ast-desktop-header .sub-menu .menu-link:hover,
#ast-desktop-header .sub-menu .menu-link:focus-visible { color:#e0c295; background:#252b23; }
@media(max-width:540px) {
 #ast-mobile-site-navigation { padding-left:16px; padding-right:16px; }
}

/* Display only the existing MG monogram; the legible wordmark stays beside it. */
@media(max-width:921px) {
 .site-header .custom-logo-link { width:80px; height:67px; }
 .site-header .custom-logo-link img { width:200px!important; }
}
@media(max-width:540px) {
 .site-header .custom-logo-link { width:64px; height:54px; }
 .site-header .custom-logo-link img { width:160px!important; }
}
@media(max-width:360px) {
 .site-header .custom-logo-link { width:54px; height:45px; }
 .site-header .custom-logo-link img { width:135px!important; }
}

/* Homepage: carry the quiet typography and spacing of Specializacje through
   editorial sections, without repeating the service-card layout. */
.home .kg-page .kg-section { border-top:0; padding:64px 0; }
.home .kg-page .kg-section > .kg-eyebrow,
.home .kg-page .kg-split .kg-eyebrow { display:none; }
.home .kg-page #kg-start { text-align:center; margin-bottom:40px; }
.home .kg-page .kg-steps { gap:40px; padding-top:0; }
.home .kg-page .kg-steps li { text-align:center; }
.home .kg-page .kg-steps li::before { border:0; padding:0; margin-bottom:18px; font:400 32px/1.2 Arial,Helvetica,sans-serif; }
.home .kg-page .kg-steps h3 { font-size:27px; margin-bottom:14px; }
.home .kg-page .kg-steps p { color:var(--kg-muted); font-size:15px; line-height:1.7; text-align:center!important; margin:0 auto; max-width:34ch; }
.home .kg-page .kg-split { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:48px; text-align:left; max-width:none; margin:0; padding:48px 0 56px; border-top:1px solid var(--kg-line); }
.home .kg-page .kg-split h2 { margin:0; max-width:17ch; }
.home .kg-page .kg-split p { color:var(--kg-muted); text-align:left!important; max-width:52ch; margin:0 0 16px; }
.home .kg-page .kg-experience-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:15px; }
.home .kg-page .kg-portrait figcaption { border:0; padding-top:0; margin-top:12px; }
@media(max-width:720px) {
 .home .kg-page .kg-section { padding:40px 0; }
 .home .kg-page #kg-start { margin-bottom:32px; }
 .home .kg-page .kg-steps { gap:32px; }
 .home .kg-page .kg-steps li::before { margin-bottom:12px; }
 .home .kg-page .kg-split { grid-template-columns:1fr; gap:20px; padding:36px 0; }
}
/* Share the three content rows across columns, regardless of title wrapping. */
@media(min-width:721px) {
 .home .kg-page .kg-steps { grid-template-rows:auto auto 1fr; row-gap:0; }
 .home .kg-page .kg-steps li { display:grid; grid-row:span 3; grid-template-rows:subgrid; }
}
.home .kg-page h2[id] { scroll-margin-top:64px; }

/* WCAG corrections: readable text and control boundaries in native components. */
.site-content .wp-block-spectra-button { background:#80613e!important; color:#fff!important; }
.site-content .wp-block-spectra-button .spectra-button__link { color:inherit!important; }
.site-content .wp-block-spectra-button:hover,
.site-content .wp-block-spectra-button:focus-visible { background:#202521!important; color:#fff!important; }
.site-content .entry-title { color:#202521!important; }
.kg-page #srfm-form-2271 .srfm-input-common { background:#fff!important; border-color:#80613e!important; }
.kg-page .srfm-form .srfm-submit-button,
.kg-page .srfm-form-container .srfm-submit-button { background:#202521; color:#fff; }
.kg-page .srfm-input-common:focus-visible { outline:3px solid #80613e; outline-offset:3px; }
.kg-page .srfm-error-wrap { color:#9f1b1b; }
/* Grid items must be allowed to shrink below their longest word. */
.kg-hero > *, .kg-split > *, .kg-steps > * { min-width:0; }
.kg-page h1, .kg-page h2, .kg-page h3, .kg-page .kg-experience-link { overflow-wrap:anywhere; }
.kg-page .kg-portrait img { min-width:0; max-width:100%; }

/* Let the wordmark wrap inside its grid track instead of covering phone/menu. */
@media(max-width:921px) {
 #ast-mobile-header .site-header-section-left,
 #ast-mobile-header .site-header-section-left .ast-builder-layout-element,
 #ast-mobile-header .ast-site-identity { min-width:0; max-width:100%; }
 #ast-mobile-header .ast-site-identity { width:100%; }
 #ast-mobile-header .kg-wordmark { min-width:0; white-space:normal; overflow-wrap:anywhere; }
 #ast-mobile-header .kg-mobile-call,
 #ast-mobile-header .menu-toggle { flex-shrink:0; }
}
@media(max-width:540px) {
 #ast-mobile-header .ast-above-header-bar { padding-left:12px; padding-right:12px; }
 #ast-mobile-header .ast-builder-grid-row { column-gap:12px; }
}

/* Address and visible payment data share the second footer row. */
.kg-footer-legal { align-items:flex-start; }
.kg-footer-legal nav { min-width:0; align-items:flex-start; }
.kg-footer-payment { min-width:0; border-top:1px solid #42473f; padding-top:24px; }
.kg-footer .kg-footer-payment h2 { margin-bottom:12px; }
.kg-footer-payment p { margin:0 0 12px; overflow-wrap:anywhere; }
.kg-footer-account { font-variant-numeric:tabular-nums; user-select:all; }
@media(max-width:540px) { .kg-footer-legal nav { width:100%; } }

.kg-footer .kg-footer-credit { margin:18px 0 0; color:#bcc0b9; font-size:13px; line-height:1.6; text-align:right; }
@media(max-width:540px) { .kg-footer .kg-footer-credit { text-align:left; } }

/* Keep the desktop call action above AA text contrast in every interaction state. */
#ast-desktop-header .ast-custom-button {
  background-color: #80613e;
  color: #fff;
}
#ast-desktop-header a:hover .ast-custom-button,
#ast-desktop-header a:focus-visible .ast-custom-button {
  background-color: #202521;
  color: #fff;
}
#ast-desktop-header a:focus-visible:has(.ast-custom-button) {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
#ast-desktop-header .menu-link > .dropdown-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

/* Equal typographic introductions; the existing portrait belongs to Marcin's biography. */
.kg-team {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto auto;column-gap:40px;row-gap:0;margin-bottom:24px;}
.kg-team-member {display:grid;grid-row:span 4;grid-template-rows:subgrid;min-width:0;border-top:1px solid var(--kg-line);padding:24px 0;}
.kg-team-member h2 {font-size:clamp(26px,3vw,34px);margin:0 0 12px;overflow-wrap:anywhere;}
.kg-team-member .kg-team-role {font-weight:600;margin-bottom:8px;}
.kg-team-member a {display:inline-flex;align-items:center;min-height:44px;color:var(--kg-gold);text-underline-offset:4px;}
@media(max-width:650px) {.kg-team {grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:0;} .kg-team-member {display:block;grid-row:auto;}}

.kg-team-names > span {display:block;}

/* Text-first home: no visual column or empty reserved image space. */
.home .kg-hero.kg-hero-text {display:block;width:100%;text-align:center;}
.home .kg-hero-text > div {width:100%;}
.home .kg-hero-text h1 {max-width:none;margin-inline:auto;text-align:center;}
.home .kg-hero-text .kg-lead {max-width:none;text-align:center!important;}
.home .kg-hero-text .kg-actions {justify-content:center;}
.home .kg-hero-text .kg-eyebrow {text-align:center!important;}
.home .kg-service {height:100%;justify-content:flex-start;}
/* Match practice-page gutters instead of nesting Astra and page padding. */
.home .site-content > .ast-container {max-width:1224px;padding:0;}
.home #primary {width:100%;margin:0;}

/* Direct office email beside the phone, independent from the menu trigger. */
.site-header a.kg-header-email {display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;margin-left:8px;color:#e0c295;border:1px solid #80613e;border-radius:3px;}
.site-header :is(a.kg-header-email,a.kg-mobile-call):is(:hover,:focus-visible) {background:#d6b98d;color:#202521;}
@media(max-width:921px) {
 #ast-mobile-header a.kg-header-email {margin-left:0;margin-right:8px;}
}
@media(max-width:540px) {
 #ast-mobile-header a.kg-header-email {margin-right:4px;}
}
@media(max-width:400px) {
 #ast-mobile-header .custom-logo-link {width:36px;height:30px;}
 #ast-mobile-header .custom-logo-link img {width:90px!important;}
 #ast-mobile-header .kg-wordmark span {display:none;}
 #ast-mobile-header .kg-wordmark strong {font-size:14px;}
}

.kg-contact-nojs {max-width:1224px;margin:0 auto;padding:24px;font-size:16px;line-height:1.6;}

/* Homepage trial: one AI-composited team portrait, without cropping faces. */
.home .kg-hero.kg-hero-team {grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);column-gap:32px;row-gap:24px;}
.home .kg-hero-team-heading {grid-column:1;grid-row:1;}
.home .kg-hero-team-copy {grid-column:1;grid-row:2;}
.home .kg-hero-team h1 {font-size:clamp(34px,3.4vw,48px);margin-bottom:0;}
.home .kg-hero-team .kg-eyebrow,.home .kg-hero-team .kg-lead,.home .kg-hero-team h1 {text-align:center!important;}
.home .kg-hero-team .kg-lead {font-size:17px;line-height:1.75;max-width:none;}
.home .kg-hero-team .kg-actions {justify-content:center;}
.home .kg-hero-team-photo {grid-column:2;grid-row:1 / 3;margin:0;width:100%;}
.home .kg-hero-team-photo > a {display:block;}
.home .kg-hero-team-photo > a:focus-visible {outline:3px solid var(--kg-gold);outline-offset:4px;}
.home .kg-hero-team-photo img {display:block;width:100%;height:auto;aspect-ratio:3/2;-webkit-mask:url("kg-portrait-edge.svg") center/100% 100% no-repeat;mask:url("kg-portrait-edge.svg") center/100% 100% no-repeat;}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 .home .kg-hero-team-photo img {transition:transform 320ms ease;}
 .home .kg-hero-team-photo:hover img {transform:translate(-3px,-3px);}
}
@media(max-width:1000px) {
 .home .kg-hero.kg-hero-team {grid-template-columns:1fr;gap:24px;}
 .home .kg-hero-team > * {grid-column:auto;grid-row:auto;}
 .home .kg-hero-team-photo {max-width:900px;margin-inline:auto;}
}
