body.theme-udaf {
  --udaf-primary:#1f594a; --udaf-primary-rgb:31,89,74;
  --udaf-accent:#b4a05a; --udaf-accent-rgb:180,160,90;
  --udaf-deep:#10292c; --udaf-surface-2:#edf2ed;
}

/* Wide-screen / brand shell */
:root { --udaf-container: 1440px; }
.skip-link { position:fixed; left:1rem; top:-5rem; z-index:3000; padding:.7rem 1rem; background:#fff; color:#111; border-radius:.5rem; box-shadow:var(--udaf-shadow); }
.skip-link:focus { top:1rem; }
.udaf-header { position:relative; z-index:1030; }
.udaf-navbar { min-height:76px; }
.udaf-navbar .container-udaf { min-height:74px; }
.navbar-brand { max-width:min(520px,46vw); }
.brand-lockup .brand-name small { white-space:normal; }
.udaf-desktop-global .udaf-ecosystem { display:flex; align-items:center; gap:.15rem; }
.udaf-desktop-global .udaf-ecosystem a { display:inline-flex; align-items:center; padding:.55rem .55rem; }
.udaf-desktop-global .udaf-ecosystem a.udaf-global-cta { margin-left:.65rem; padding:.68rem 1rem; color:#fff; background:var(--udaf-primary); border-radius:.7rem; }

/* Language is always visible, independent of CMS menu */
.udaf-language-switch { display:flex; align-items:center; gap:.38rem; flex:0 0 auto; font-size:.84rem; font-weight:850; color:var(--udaf-muted); }
.udaf-language-switch a { color:var(--udaf-muted); text-decoration:none; padding:.2rem .15rem; }
.udaf-language-switch[data-current="uk"] .lang-uk,
.udaf-language-switch[data-current="en"] .lang-en { color:var(--udaf-primary); text-decoration:underline; text-underline-offset:.22em; }

/* Desktop site menu */
.udaf-site-nav { border-top:1px solid var(--udaf-line); border-bottom:1px solid var(--udaf-line); background:rgba(250,251,249,.96); }
.udaf-site-nav .container-udaf { min-height:50px; display:flex; align-items:center; }
.udaf-nav-label { flex:0 0 auto; margin-right:1.1rem; color:var(--udaf-muted); text-decoration:none; font-size:.68rem; font-weight:900; letter-spacing:.15em; }
.udaf-cms-menu { list-style:none; display:flex; align-items:center; flex-wrap:wrap; gap:.05rem; margin:0; padding:0; }
.udaf-cms-menu > li { position:relative; list-style:none; }
.udaf-cms-menu a { display:flex; align-items:center; gap:.35rem; padding:.72rem .72rem; border-radius:.5rem; color:var(--udaf-ink); text-decoration:none; font-size:.88rem; font-weight:800; }
.udaf-cms-menu a:hover, .udaf-cms-menu a:focus-visible { color:var(--udaf-primary); background:rgba(var(--udaf-primary-rgb),.06); }
.udaf-cms-menu ul { display:none; position:absolute; z-index:1100; top:100%; left:0; min-width:230px; list-style:none; padding:.45rem; margin:0; background:var(--udaf-surface); border:1px solid var(--udaf-line); border-radius:.8rem; box-shadow:var(--udaf-shadow); }
.udaf-cms-menu li:hover > ul, .udaf-cms-menu li:focus-within > ul { display:block; }
.udaf-cms-menu ul ul { left:100%; top:0; }
.udaf-cms-menu .bi { display:none; }

/* Offcanvas: one coherent menu on tablet/mobile */
.udaf-menu-toggle { width:48px; height:46px; border-radius:.7rem; border:2px solid rgba(22,37,42,.58); padding:.45rem .55rem; }
.udaf-offcanvas { --bs-offcanvas-width:min(430px,92vw); background:#f8f9f6; }
.udaf-offcanvas .offcanvas-header { border-bottom:1px solid var(--udaf-line); padding:1.15rem 1.2rem; }
.udaf-offcanvas .offcanvas-body { padding:1rem 1.2rem 2rem; }
.udaf-mobile-section-label { margin:.35rem 0 .6rem; color:var(--udaf-muted); font-size:.69rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.udaf-cms-menu-mobile { display:block; }
.udaf-cms-menu-mobile > li { border-bottom:1px solid var(--udaf-line); }
.udaf-cms-menu-mobile a { padding:.82rem .25rem; font-size:1rem; }
.udaf-cms-menu-mobile ul, .udaf-cms-menu-mobile ul ul { display:block; position:static; border:0; box-shadow:none; padding:0 0 .3rem 1rem; min-width:0; background:transparent; }
.udaf-ecosystem-mobile { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; }
.udaf-ecosystem-mobile a { display:block; padding:.75rem .8rem; border:1px solid var(--udaf-line); border-radius:.7rem; background:#fff; color:var(--udaf-ink); text-decoration:none; font-weight:800; }
.udaf-ecosystem-mobile a.udaf-global-cta { grid-column:1/-1; color:#fff; background:var(--udaf-primary); border-color:var(--udaf-primary); }

/* Homepage photography */
.hero-home { min-height:670px; }
.hero-home .hero-title { font-size:clamp(3.35rem,5.25vw,6.25rem); max-width:900px; }
.hero-photo-shell { position:relative; min-height:510px; border-radius:1.35rem; overflow:hidden; box-shadow:0 30px 70px rgba(16,41,44,.15); background:#dfe9e3; }
.hero-photo-shell img { width:100%; height:100%; min-height:510px; object-fit:cover; display:block; }
.hero-photo-overlay { position:absolute; inset:auto 0 0; padding:4rem 1.5rem 1.35rem; color:#fff; background:linear-gradient(180deg,transparent,rgba(10,31,33,.83)); }
.hero-photo-overlay strong { display:block; font-size:.8rem; letter-spacing:.13em; text-transform:uppercase; }
.hero-photo-overlay span { display:block; margin-top:.35rem; color:rgba(255,255,255,.75); }
.hero-microcopy { display:flex; flex-wrap:wrap; gap:.75rem 1.25rem; margin-top:1.5rem; color:var(--udaf-muted); font-size:.83rem; font-weight:700; }
.hero-microcopy span { display:inline-flex; align-items:center; gap:.45rem; }
.hero-microcopy span::before { content:""; width:.45rem; height:.45rem; border-radius:50%; background:var(--udaf-accent); }

.domain-card { overflow:hidden; }
.domain-card-media { aspect-ratio:16/8.5; overflow:hidden; background:var(--udaf-surface-2); }
.domain-card-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.domain-card:hover .domain-card-media img { transform:scale(1.035); }
.domain-card .udaf-card-body { padding:1.2rem 1.25rem 1.35rem; }

.media-feature { overflow:hidden; border-radius:var(--udaf-radius-lg); border:1px solid var(--udaf-line); background:var(--udaf-surface); }
.media-feature img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.media-feature-body { padding:1.25rem; }
.project-grid-card { position:relative; overflow:hidden; min-height:330px; border-radius:var(--udaf-radius-lg); color:#fff; }
.project-grid-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.project-grid-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(9,26,28,.08),rgba(9,26,28,.87)); }
.project-grid-card .project-copy { position:absolute; inset:auto 1.25rem 1.25rem; z-index:2; }

/* Article module */
.article-list-shell { padding:clamp(3.5rem,7vw,6.5rem) 0; }
.article-list-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.article-card-image { aspect-ratio:16/10; width:100%; object-fit:cover; display:block; background:var(--udaf-surface-2); }
.article-card-date { color:var(--udaf-muted); font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.article-page { padding:clamp(3.5rem,7vw,6.5rem) 0; }
.article-page-inner { width:min(calc(100% - 2rem),900px); margin-inline:auto; }
.article-page .article-lead { color:var(--udaf-muted); font-size:1.2rem; }
.article-page .article-body { font-size:1.07rem; line-height:1.78; }
.article-page .article-body h2,.article-page .article-body h3 { font-family:var(--udaf-display); font-weight:850; letter-spacing:-.025em; margin-top:2.2em; }
.article-page .article-body img { border-radius:var(--udaf-radius); margin:1.5rem 0; }
.article-hero-image { width:100%; max-height:600px; object-fit:cover; border-radius:var(--udaf-radius-lg); margin:1.75rem 0 2rem; }

/* Tablet */
@media (min-width:768px) and (max-width:1199.98px) {
  :root { --udaf-container: 1120px; }
  .udaf-navbar { min-height:78px; }
  .navbar-brand { max-width:62vw; }
  .hero-home { min-height:auto; padding-top:4rem; }
  .hero-home .hero-title { font-size:clamp(3.2rem,7vw,5.3rem); }
  .hero-photo-shell, .hero-photo-shell img { min-height:390px; }
  .domain-card-media { aspect-ratio:16/7.5; }
  .article-list-grid { grid-template-columns:1fr 1fr; }
}

/* Phone */
@media (max-width:767.98px) {
  :root { --udaf-container: 720px; }
  .udaf-navbar { min-height:68px; }
  .udaf-navbar .container-udaf { min-height:66px; padding-inline:.8rem; gap:.6rem; }
  .navbar-brand { max-width:calc(100vw - 150px); margin:0; }
  .brand-mark { width:2rem; height:2rem; }
  .brand-name { font-size:1.02rem; letter-spacing:.09em; }
  .brand-name small { font-size:.46rem; letter-spacing:.16em; max-width:220px; }
  .udaf-language-switch { font-size:.78rem; gap:.28rem; }
  .udaf-menu-toggle { width:44px; height:42px; }
  .hero { padding:3.3rem 0 2.6rem; }
  .hero-home .hero-title { font-size:clamp(2.85rem,13.5vw,4.45rem); line-height:.94; }
  .lead-udaf { font-size:1.05rem; }
  .hero-photo-shell { min-height:330px; margin-top:.5rem; }
  .hero-photo-shell img { min-height:330px; }
  .hero-photo-overlay { padding:3rem 1.1rem 1rem; }
  .section { padding:3.5rem 0; }
  .domain-card-media { aspect-ratio:16/8.6; }
  .article-list-grid { grid-template-columns:1fr; }
  .project-grid-card { min-height:290px; }
  .udaf-footer { padding:3rem 0 1.5rem; }
}

@media (max-width:390px) {
  .navbar-brand { max-width:calc(100vw - 132px); }
  .brand-name small { display:none; }
  .udaf-language-switch { font-size:.75rem; }
  .hero-home .hero-title { font-size:clamp(2.65rem,14.5vw,3.6rem); }
  .hero-microcopy { gap:.55rem .8rem; }
  .udaf-ecosystem-mobile { grid-template-columns:1fr; }
  .udaf-ecosystem-mobile a.udaf-global-cta { grid-column:auto; }
}

/* Bootstrap g-5 exceeds the custom container inset; keep rows inside it. */
.container-udaf > .row { margin-inline: 0; }
.udaf-menu-toggle { min-height:44px; }
.udaf-language-switch .lang-link { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
/* UDAF design baseline — shared components */
@media(max-width:767.98px){.hero-home .hero-title{font-size:clamp(2.875rem,13.4vw,3.75rem);line-height:.98;letter-spacing:-.04em}.hero-home .row>div{padding-inline:12px}.hero-home .hero-microcopy{margin-top:1rem}}
.udaf-cms-menu a.is-active{color:var(--udaf-primary);border-bottom:3px solid var(--udaf-primary);border-radius:0;background:#edf2ed}
.udaf-cms-menu-mobile a.is-active{border-bottom:0;border-left:3px solid var(--udaf-primary);padding-left:.7rem}
.udaf-cms-menu .has-submenu{display:grid;grid-template-columns:1fr 44px;align-items:center}
.udaf-sub-toggle{min-width:44px;min-height:44px;border:0;background:transparent;color:var(--udaf-primary);font-size:1.4rem;border-radius:.35rem}
.udaf-sub-toggle:hover,.udaf-sub-toggle[aria-expanded=true]{background:#e1eae3}
.udaf-cms-menu li>ul[hidden]{display:none!important}
.udaf-cms-menu li>ul:not([hidden]){display:block;max-width:min(360px,85vw);min-width:280px}
.udaf-cms-menu-mobile li>ul:not([hidden]){grid-column:1/-1;min-width:0;max-width:100%;padding-left:.8rem}
.udaf-cms-menu-mobile ul a{font-size:.9rem;min-height:44px}
.udaf-cms-menu li>ul a{white-space:normal}
.udaf-breadcrumb{padding-block:1rem .25rem;font-size:.83rem;color:var(--udaf-muted)}
.udaf-breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem .6rem;margin:0;padding:0;align-items:baseline}
.udaf-breadcrumb li{min-width:0;overflow-wrap:anywhere}.udaf-breadcrumb li+li::before{content:'/';margin-right:.6rem;color:var(--udaf-muted)}
.udaf-breadcrumb a{color:var(--udaf-primary);text-underline-offset:3px}.udaf-breadcrumb [aria-current]{color:var(--udaf-ink)}
.udaf-internal #main-content>.section{padding-top:2.5rem}.udaf-internal #main-content>.section>.container-udaf>.eyebrow{border-left:4px solid var(--udaf-accent);padding-left:.8rem}
.udaf-internal h1{overflow-wrap:break-word}.udaf-internal .section p{max-width:76ch}.udaf-internal .section h2{margin-top:1.6rem}
.udaf-footer a.btn-light,.udaf-footer a.btn-light:visited{color:#10292c;background:#f8f9fa;border-color:#f8f9fa}
.udaf-footer a.btn-light:hover{color:#10292c;background:#dbe7df;border-color:#dbe7df}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #977d27;outline-offset:4px}
.udaf-footer a.btn-light:focus-visible{color:#10292c;background:#f8f9fa;outline:3px solid #e8cf7c;outline-offset:4px}
.contact-lead{max-width:760px;margin:1.2rem 0 2rem}.contact-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:clamp(1.2rem,4vw,4rem);align-items:start}
.contact-panel,.contact-context{border:1px solid var(--udaf-line);padding:clamp(1.2rem,3vw,2.4rem);border-radius:1.2rem;background:#fff}.contact-context{background:var(--udaf-surface-2)}
.contact-context h2{font-size:1.4rem;margin-top:0!important}.contact-context li{padding-block:.35rem}.udaf-contact-form .form-control,.udaf-contact-form .form-select{min-height:48px;border-color:#82948c}.contact-consent input{width:22px;height:22px;vertical-align:middle}.contact-consent label{min-height:44px;display:inline-flex;align-items:center;gap:.5rem}
@media(max-width:767.98px){.contact-layout{grid-template-columns:1fr}.contact-page h1{font-size:clamp(2rem,9vw,3rem)}.udaf-breadcrumb{font-size:.76rem}.udaf-internal #main-content>.section{padding-top:1.8rem}.article-page{padding-top:2rem}}

/* Final navigation: desktop caret, mobile accordion. */
.udaf-sub-toggle::before{content:'▾';display:block}.udaf-sub-toggle[aria-expanded=true]::before{content:'▴'}
.udaf-cms-menu .submenu-open>a{color:var(--udaf-primary);background:#edf2ed}
.udaf-cms-menu ul a{min-height:44px}.udaf-cms-menu-mobile .udaf-sub-toggle::before{content:'+'}.udaf-cms-menu-mobile .udaf-sub-toggle[aria-expanded=true]::before{content:'−'}
main h2[id],main h3[id]{scroll-margin-top:2rem}

/* One visual parent item: label + caret share the same state. */
.udaf-cms-menu .has-submenu > a{border-top-right-radius:0;border-bottom-right-radius:0}
.udaf-cms-menu .has-submenu > .udaf-sub-toggle{border-top-left-radius:0;border-bottom-left-radius:0}
@media(min-width:1200px){
 .udaf-site-nav .has-submenu{border-radius:.5rem;grid-template-columns:auto 44px;margin-inline:.15rem}
 .udaf-site-nav .has-submenu > a{padding-right:0;min-height:46px;border-bottom:0!important;background:transparent!important}
 .udaf-site-nav .has-submenu > .udaf-sub-toggle{background:transparent!important;min-height:46px;font-size:1rem}
 .udaf-site-nav .has-submenu:hover,.udaf-site-nav .has-submenu:focus-within,.udaf-site-nav .has-submenu.submenu-open,.udaf-site-nav .has-submenu:has(>a.is-active){background:#edf2ed}
 .udaf-site-nav .has-submenu:hover>a,.udaf-site-nav .has-submenu:focus-within>a{color:var(--udaf-primary)}
 .udaf-site-nav .has-submenu:has(>a.is-active){box-shadow:inset 0 -3px var(--udaf-primary);border-radius:0}
}
.udaf-cms-menu-mobile .has-submenu.submenu-open > a,.udaf-cms-menu-mobile .has-submenu.submenu-open > .udaf-sub-toggle{background:#edf2ed}

/* Homepage rhythm: breathing room in hero, tighter following sections. */
.hero.hero-home{padding-block:clamp(2.5rem,4vw,4rem);min-height:0}
.hero-home ~ .section{padding-block:clamp(2.5rem,4vw,4rem)}
@media(max-width:767.98px){
 .hero.hero-home{padding-block:2rem 2.5rem}
 .hero-home ~ .section{padding-block:2.5rem}
}
