/* Django accompanies the content. The original brand mark remains the logo. */
.django-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,28%);align-items:center;gap:clamp(22px,4vw,64px);margin-block:0 28px}
.django-copy{min-width:0}
.django-copy>h1,.django-copy>h2{margin-top:0}
.django-copy>p:last-child{margin-bottom:0}
.django-figure{display:flex;align-items:center;justify-content:center;min-width:0;margin:0;padding:0;pointer-events:none}
.django-figure img{display:block;width:100%;height:auto;max-height:290px;object-fit:contain;filter:drop-shadow(0 12px 24px #0005)}
.django-heading-kontakt{grid-template-columns:minmax(0,1fr) minmax(210px,32%)}
.django-heading-kontakt .django-figure img{max-height:380px}
.django-heading-praxis .django-figure img,.django-heading-theorie .django-figure img{max-height:270px}
.django-heading-erfolge{grid-template-columns:minmax(0,1fr) 170px;margin-bottom:14px}
.django-heading-erfolge .django-figure img{max-height:205px}
.django-contact-cta{margin-top:22px;background:#167b43!important;border-color:#31b66d!important;color:white!important;text-align:center;white-space:normal}
.django-contact-cta:hover{background:#126438!important}
.kuba-local-intro{background:linear-gradient(140deg,#151812,#0b0e0e)}
.kuba-local-intro p{max-width:860px;color:var(--muted);line-height:1.8}
.kuba-whatsapp-button .django-wa-mascot{position:absolute;display:block!important;width:78px;height:85px;right:0;bottom:calc(100% - 7px);overflow:hidden;pointer-events:none}
.kuba-whatsapp-button .django-wa-mascot img{display:block;width:78px;height:auto;max-width:none;filter:drop-shadow(0 2px 3px #0007)}
.kuba-whatsapp-button{isolation:isolate}
.kuba-site-footer{padding-bottom:150px}
.welcome-local{padding-block:18px;border-top:1px solid #d6aa5c55;margin-top:28px}
.welcome-local a{color:#edc77e;text-decoration:underline;text-underline-offset:4px}
body.kuba-farsi .django-copy{direction:rtl;text-align:right}
body.kuba-farsi .django-contact-cta{direction:rtl}
@media(max-width:700px){
 .django-heading{grid-template-columns:minmax(0,1fr) 120px;gap:18px;align-items:center;margin-bottom:24px}
 .django-figure img{max-height:170px}
 .django-heading-kontakt{grid-template-columns:minmax(0,1fr) 130px}
 .django-heading-kontakt .django-figure img{max-height:220px}
 .django-heading-erfolge{grid-template-columns:minmax(0,1fr) 105px}
 .django-heading-erfolge .django-figure img{max-height:150px}
 .django-heading-praxis .django-figure img,.django-heading-theorie .django-figure img{max-height:160px}
 .kuba-whatsapp-button .django-wa-mascot{width:56px;height:58px;right:0}
 .kuba-whatsapp-button .django-wa-mascot img{width:56px}
}
@media(max-width:480px){
 .django-heading{grid-template-columns:minmax(0,1fr);gap:14px}
 .django-copy{order:1}
 .django-figure{order:0;justify-content:flex-end;margin-top:-6px}
 .django-figure img{width:120px;max-height:150px}
 .django-heading-kontakt .django-figure{justify-content:center;margin-top:0}
 .django-heading-kontakt .django-figure img{width:170px;max-height:230px}
 .django-heading-theorie .django-figure img{width:155px;max-height:155px}
 .django-heading-praxis .django-figure img{width:165px;max-height:155px}
 .django-heading-erfolge{grid-template-columns:minmax(0,1fr) 82px;gap:12px}
 .django-heading-erfolge .django-copy{order:0}
 .django-heading-erfolge .django-figure{order:1;margin:0}
 .django-heading-erfolge .django-figure img{width:82px;max-height:125px}
 .django-contact-cta{display:block;max-width:100%}
}
@media(prefers-reduced-motion:reduce){.django-figure img{animation:none}}
/* Reveal transforms must not create horizontal scrolling on narrow screens. */
@media(max-width:700px){main{overflow-x:clip}}
/* Exact outlines taken from the supplied original logo, not a substitute font. */
.kuba-wordmark{display:block;object-fit:contain;max-width:100%;height:auto}
header.site-header .brand .kuba-wordmark,.welcome-header .welcome-brand .kuba-wordmark{display:block;width:135px;height:78px;max-width:135px;margin:0}
.kuba-footer-brand .kuba-wordmark{width:145px;height:auto}
.kuba-home-wordmark{display:flex;align-items:center;gap:20px;letter-spacing:.16em;margin-bottom:24px}
.kuba-home-wordmark .kuba-wordmark{width:155px;height:auto;flex:none}
.kuba-home-wordmark>span{font-size:.76rem;line-height:1.5}
@media(max-width:1450px){
 header.site-header .brand>img:not(.kuba-wordmark){display:none}
 header.site-header .brand .kuba-wordmark{width:70px;height:44px;max-width:100%}
}
@media(max-width:600px){
 .kuba-home-wordmark{gap:16px;margin-bottom:22px}
 .kuba-home-wordmark .kuba-wordmark{width:115px}
 .kuba-home-wordmark>span{font-size:.67rem;letter-spacing:.12em}
 .welcome-header .welcome-brand>img:not(.kuba-wordmark){display:none}
 .welcome-header .welcome-brand .kuba-wordmark{width:100px;height:auto}
}
@media(max-width:360px){header.site-header .brand .kuba-wordmark{width:54px;height:40px}}

/* Golden Django emblem beside the original wordmark in the footer. */
.kuba-site-footer .kuba-footer-brand{display:inline-flex;align-items:center;gap:18px;max-width:100%;vertical-align:middle}
.kuba-site-footer .kuba-footer-brand>.kuba-footer-emblem{display:block;width:88px;height:auto;flex:none;object-fit:contain}
.kuba-site-footer .kuba-footer-brand>.kuba-wordmark{width:145px;height:auto;flex:none}
@media(max-width:360px){
 .kuba-site-footer .kuba-footer-brand{gap:14px}
 .kuba-site-footer .kuba-footer-brand>.kuba-footer-emblem{width:72px}
 .kuba-site-footer .kuba-footer-brand>.kuba-wordmark{width:135px}
}
