/* O-Digital theme overrides — moved out of inline wp_add_inline_style (de-bloat HTML, cacheable).
   Fold these into the SCSS source at the next build. Loaded after main.min.css (cascade wins). */
.mobile-menu{top:0;left:0;z-index:30}.header__top{overflow:visible}.header__lang{position:relative;z-index:12}.header__lang-inner{z-index:12}html.light .header.is-scrolled::before{background:#f3f3f388}html.dark .header.is-scrolled::before{background:#12121288}html.dark .partner-logo--light{display:none}html.light .partner-logo--dark{display:none}.skip-nav{position:fixed;top:-100%;left:1rem;z-index:9999;padding:.5rem 1rem;background:#6c63ff;color:#fff;text-decoration:none;border-radius:4px;font-size:.875rem}.skip-nav:focus{top:1rem}*:focus-visible{outline:2px solid #6c63ff;outline-offset:3px}.areas__title{justify-content:flex-start;gap:1.5rem}.form-box__field textarea{scrollbar-width:thin;scrollbar-color:rgba(254,106,32,.45) transparent}.form-box__field textarea::-webkit-scrollbar{width:4px}.form-box__field textarea::-webkit-scrollbar-track{background:transparent}.form-box__field textarea::-webkit-scrollbar-thumb{background:rgba(254,106,32,.45);border-radius:2px}.form-box__field textarea::-webkit-scrollbar-thumb:hover{background:#fe6a20}.form-box__counter{display:block;text-align:right;font:400 .6875rem/1 "Montserrat",sans-serif;color:var(--txt_special);opacity:.4;margin-top:.25rem;transition:opacity .3s,color .3s}.form-box__counter.is-near-limit{color:#fe6a20;opacity:1}.history__card--future{opacity:.4}.js-vendors-popup{color:#fe6a20;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;background:none;border:0;padding:0;font:inherit}.modal__vendors{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;justify-content:center;list-style:none;margin:0;padding:0}.modal__vendor{display:flex;align-items:center;justify-content:center;min-width:8rem;height:4rem;padding:.75rem 1.25rem;border:1px solid var(--border_default);border-radius:.75rem;background:var(--bg_gloomy)}.modal__vendor img{max-width:100%;max-height:2.5rem;width:auto;object-fit:contain}.modal__vendor span{font:600 1rem/1.2 "Montserrat",sans-serif;color:var(--txt_primary)}.header__list>li>a:not([href]){cursor:default}.thankyou__box{max-width:620px;margin:0 auto;text-align:center;padding:clamp(1.75rem,4vw,2.75rem);border-radius:1.25rem;background:var(--bg_cards);border:1px solid var(--border_default);display:flex;flex-direction:column;align-items:center;gap:1.15rem}.thankyou__check{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#fe6a20,#ff9c07);color:#fff;flex:none}.thankyou__title{font:600 clamp(1.5rem,4vw,2.25rem)/1.15 "Montserrat",sans-serif;color:var(--txt_primary);margin:0}.thankyou__message{font:400 1.0625rem/1.5 "Montserrat",sans-serif;color:var(--c_grey_darken);max-width:480px;margin:0 auto}.thankyou__btns{justify-content:center;margin-top:.5rem;flex-wrap:wrap}.main table:not(.subfield-projects__table){width:100%;border-collapse:collapse;margin:1.75rem 0;font:400 .9375rem/1.45 "Montserrat",sans-serif;color:var(--c_grey_darken)}.main table:not(.subfield-projects__table) th{text-align:left;font-weight:600;padding:.85rem 1rem;background:var(--bg_gloomy);border:1px solid var(--border_default);color:var(--txt_secondary)}.main table:not(.subfield-projects__table) td{padding:.85rem 1rem;border:1px solid var(--border_default);vertical-align:top}.main table:not(.subfield-projects__table) tr:hover td{background:var(--bg_gloomy)}.main table:not(.subfield-projects__table) td:empty{display:none}.intro .breadcrumbs{margin-top:1.75rem}
.person-quote{position:relative;margin:0;padding:0 0 0 1.25rem;font:400 1.125rem/145% "Montserrat",sans-serif;color:var(--txt_primary);font-style:italic}.person-quote::before{content:"";position:absolute;left:0;top:.2em;bottom:.2em;width:3px;border-radius:2px;background:linear-gradient(180deg,#fe6a20,#ff9c07)}.person-company{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:1.5rem}.person-company__label{font:500 1rem/120% "Montserrat",sans-serif;color:var(--c_half)}.person-company__link{display:inline-flex;align-items:center;gap:.5rem;font:500 1rem/120% "Montserrat",sans-serif;color:var(--txt_primary)}.person-company__logo{max-height:32px;max-width:120px;width:auto;object-fit:contain}.person-card{display:flex;flex-direction:column;gap:1rem;padding:1rem;border:1px solid var(--border_default);border-radius:1rem;background:var(--bg_cards)}.person-card__photo{border-radius:.75rem;overflow:hidden;aspect-ratio:3/4}.person-card__photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}.person-card__body{display:flex;flex-direction:column;gap:.5rem}.person-card__name{font:600 1.25rem/120% "Montserrat",sans-serif;color:var(--txt_primary)}.person-card__position{font:400 .9375rem/130% "Montserrat",sans-serif;color:var(--c_half)}.person-card__medias{display:flex;align-items:center;gap:.625rem;list-style:none;padding:0;margin:.25rem 0 0}.person-card__medias li{width:2.375rem;height:2.375rem}.person-card__medias a{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;background:var(--bg_ico);transition:transform .3s}.person-card__medias a:hover{transform:scale(1.05)}.digital-box__mono{width:7.5rem;height:7.5rem;display:flex;align-items:center;justify-content:center;border-radius:1.25rem;font:600 3rem/1 "Montserrat",sans-serif;color:#fff;background:linear-gradient(135deg,#fe6a20 0%,#ff9c07 100%)}.js-person-projects{overflow:hidden}.js-person-projects .swiper-slide{height:auto;width:auto}.js-person-projects .result-box{height:100%}@media(max-width:991px){.js-person-projects .result-box{max-width:none;width:100%}}.subfield-projects{padding-block:3.75rem}.subfield-projects .section-title{margin-bottom:2.5rem}.subfield-projects__scroll{overflow-x:auto;scrollbar-width:thin}.subfield-projects__table{width:100%;border-collapse:collapse;font:400 .9375rem/1.45 "Montserrat",sans-serif;color:var(--txt_primary);min-width:60rem}.subfield-projects__table th{text-align:left;font-weight:600;padding:1rem;background:var(--bg_gloomy);border:1px solid var(--border_default);color:var(--txt_secondary);vertical-align:top}.subfield-projects__table td{padding:1rem;border:1px solid var(--border_default);vertical-align:top;color:var(--c_grey_darken)}.subfield-projects__table tbody tr:hover td{background:var(--bg_gloomy)}@media(max-width:767px){.subfield-projects__table{min-width:0;border:0}.subfield-projects__table thead{display:none}.subfield-projects__table,.subfield-projects__table tbody,.subfield-projects__table tr,.subfield-projects__table td{display:block;width:100%}.subfield-projects__table tr{margin-bottom:1.25rem;border:1px solid var(--border_default);border-radius:.75rem;overflow:hidden}.subfield-projects__table td{border:0;border-bottom:1px solid var(--border_default);padding:.625rem 1rem}.subfield-projects__table td:last-child{border-bottom:0}.subfield-projects__table td:empty{display:none}.subfield-projects__table td::before{content:attr(data-label) ": ";font-weight:600;color:var(--txt_secondary);display:block;margin-bottom:.25rem;font-size:.8125rem}}.values__inline{display:flex;flex-wrap:wrap;gap:1.5rem;align-items:stretch}.value-card{flex:1 1 calc(33.333% - 1rem);min-width:14rem;display:flex;flex-direction:column;gap:1rem;padding:1.75rem;border:1px solid var(--border_default);border-radius:1rem;background:var(--bg_gloomy)}.value-card__title{font:600 1.5rem/1.1 "Montserrat",sans-serif;color:#fe6a20}.value-card__points{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.625rem}.value-card__points li{position:relative;padding-left:1.25rem;font:400 .9375rem/1.45 "Montserrat",sans-serif;color:var(--c_grey_darken)}.value-card__points li::before{content:"";position:absolute;left:0;top:.5em;width:.5rem;height:.5rem;border-radius:2px;background:linear-gradient(135deg,#fe6a20,#ff9c07)}@media(max-width:991px){.value-card{flex-basis:calc(33.333% - 1rem)}}@media(max-width:680px){.value-card{flex-basis:100%}}

/* === WEBKIT-PREFIX-FIX (auto): missing -webkit- for Chrome-on-Mac / Safari — additive === */
.header__lang-list{-webkit-backdrop-filter:blur(24px)}
.header .dd-menu{-webkit-backdrop-filter:blur(24px)}
.about__card{-webkit-backdrop-filter:blur(20px)}
.faq::after,.faq::before{-webkit-backdrop-filter:blur(200px)}
.faq__helper::after,.faq__helper::before{-webkit-backdrop-filter:blur(200px)}
.history__card div{-webkit-backdrop-filter:blur(29px)}
.error__box{-webkit-backdrop-filter:blur(38px)}
.event-box{-webkit-backdrop-filter:blur(29px)}
.result-box__info{-webkit-backdrop-filter:blur(27.8px)}
.result-box--sm .result-box__info{-webkit-backdrop-filter:blur(13px)}
.subfield-box{-webkit-backdrop-filter:blur(13px)}
.supplier-box{-webkit-backdrop-filter:blur(14px)}
.cta--video .cta__box{-webkit-backdrop-filter:blur(29px)}
.mobile-menu{-webkit-backdrop-filter:blur(24px)}
.modal__box{-webkit-backdrop-filter:blur(29px)}
.modal--search{-webkit-backdrop-filter:blur(24px)}
.modal--search .modal__box{-webkit-backdrop-filter:none}
.modal--form{-webkit-backdrop-filter:blur(24px)}
.modal--form .modal__box{-webkit-backdrop-filter:none}
html.light .modal__box{-webkit-backdrop-filter:blur(40px)}

/* === #22 About history timeline: year (.history__card p:first-child) was 600/40px — too large per COO.
   Reduce to 30px ABOVE mobile only; mobile (<=767px) keeps its 24px untouched (no regression).
   Weight 600 kept — tune with screens if still too bold. Reversible. === */
@media (min-width:768px){.history__card p:first-child{font-size:1.875rem}}

/* #1 step-way 5-step snake: handled in single-subfield.php by rendering the DOM in the design's own
   order (1,2,3,5,4) — the theme's native CSS positions + connects the steps, no grid-column overrides. */

/* #3 subfield projects table: cells now accept rich text (WYSIWYG) — keep <p> flush + style links */
.subfield-projects__table td p{margin:0}
.subfield-projects__table td p+p{margin-top:.4rem}
.subfield-projects__table td a{color:#fe6a20;text-decoration:underline;text-underline-offset:2px}

/* #articles: small related/article/event cards without a thumbnail were rendering as a narrow
   empty dark box (no .result-box__bg image). Give them a branded gradient + a consistent width
   so 1-2 cards still look like proper cards. The image covers the gradient when present. */
.result-box--sm{background:linear-gradient(135deg,#1c1c1c 0%,#2a1408 100%)}
.case-info__projects li{width:18.75rem}
@media (max-width:767px){.case-info__projects li{width:15.625rem}}

/* #partners: supplier cards in the 3-up swiper were content-height → uneven cards → the
   bottom-aligned (margin-top:auto on __descr) «ЗАМОВИТИ» buttons didn't line up (a shorter
   card sat its button higher). Stretch slides to equal height so all buttons align. */
.supplier__projects-wrapper{align-items:stretch}
.supplier__projects-slide{height:auto}
.supplier__projects-slide .supplier-box{height:100%}

/* ===== MOBILE FIXES 2026-06-01 ===== */
/* Overlay see-through: mobile menu + form/search modals used translucent --bg_menu + backdrop-filter
   that iOS Safari renders see-through (page content visible behind). Make them OPAQUE so content is covered. */
.mobile-menu{background:var(--bg_content)}
.modal--form,.modal--search{background:var(--bg_content)}
/* Empty hero: .page-preview had min-height ~30rem + ~11rem top padding → huge empty space on pages
   with only a title (e.g. /media/). Content-sized with a modest minimum instead. */
.page-preview{min-height:13rem;padding-block:8rem 2.5rem}
@media (max-width:991px){.page-preview{min-height:11rem;padding-block:7rem 2rem}}
@media (max-width:767px){.page-preview{min-height:8.5rem;padding-block:5.5rem 1.5rem}}

/* /team/ — same empty-hero issue, but for .masthead (not .page-preview): the team listing's masthead
   has only breadcrumb + title (no description), yet min-height:29.5625rem + 4.375rem bottom padding left
   a huge void before the person cards. Scoped to the team page body class so other mastheads
   (single-case with tags, archive with description) stay untouched. */
.page-template-page-team .masthead{min-height:auto;padding-block-end:2.5rem}
.page-template-page-team .experts--archive{padding-block-start:2.5rem}

/* #1 Editable mega-menu: when «Експертиза» is built from WP menu items (admin-editable via
   Appearance → Menus), the section boxes are emitted straight into .container — there are no
   hand-coded .experts-menu__item column wrappers. Flow the boxes into 4 balanced columns via CSS
   so the look matches the original layout. Scoped to the --menu modifier so the fixed partial
   (fallback) keeps its original flex columns untouched. */
.experts-menu--menu .container{display:block;-webkit-column-count:4;column-count:4;-webkit-column-gap:2.8125rem;column-gap:2.8125rem;-webkit-column-rule:1px solid var(--border_default);column-rule:1px solid var(--border_default)}
.experts-menu--menu .experts-menu__box{-webkit-column-break-inside:avoid;break-inside:avoid;margin-bottom:1.75rem}
.experts-menu--menu .experts-menu__box:last-child{margin-bottom:0}
@media (max-width:991px){.experts-menu--menu .container{-webkit-column-count:2;column-count:2}}

/* Input «ears»: iOS Safari renders a native rounded appearance on text inputs that peeks at the
   underline ends. Reset native appearance so only the flat border-bottom shows. */
.form-box__field input,.form-box__field textarea{-webkit-appearance:none;appearance:none;border-radius:0}

/* Contacts: department blocks (.outreach__box) stack on mobile with no gap → each title
   («Загальні питання»…) merged with the previous phone. Add separation. */
@media (max-width:991px){.outreach__box+.outreach__box{margin-top:2rem}}
