/* WordPress integration: approved desktop composition; safe, uncropped portraits. */
.header .mobile-nav:not([hidden]){background:#f5f9fd;color:#20334b;border-top:1px solid #c6d8e6}
.header .mobile-nav a{color:#20334b}
body.admin-bar .header.is-fixed{top:32px}
.document-page{padding-block:150px 80px;min-height:65vh}
.prose{max-width:900px;margin-inline:auto;color:#17283e;font-size:18px;line-height:1.75}
.prose h1{font-size:clamp(32px,5vw,60px);line-height:1.15;margin-bottom:32px}
.prose h2,.prose h3{margin-block:32px 16px}.prose p,.prose ul,.prose ol,.prose blockquote{margin-block:18px}
.prose ul,.prose ol{padding-left:1.5em}.prose img{max-width:100%;height:auto}.prose table{border-collapse:collapse;max-width:100%;display:block;overflow:auto}.prose td,.prose th{padding:12px;border:1px solid #b8cce0}
.prose blockquote{border-left:3px solid #1868c0;padding-left:24px}.prose a{text-decoration:underline;color:#1868c0}
.footer .legal-links{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:16px;padding:0;font-size:13px;color:inherit}
.contact-form-dialog{width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:36px;border:1px solid #d1e3f3;border-radius:28px;background:#f7fbff;color:#17283e}
.contact-form-dialog::backdrop{background:rgb(18 39 65 / .35);backdrop-filter:blur(12px)}
.contact-form-dialog h2{font-size:30px;margin:0 24px 24px 0}.form-close{position:absolute;right:16px;top:12px;background:none;border:0;font-size:32px;color:inherit;cursor:pointer}
.wpcf7 label{display:block;margin:12px 0}.wpcf7 input:not([type=checkbox]):not([type=submit]),.wpcf7 textarea{display:block;width:100%;padding:12px 15px;border:1px solid #9ebbd7;border-radius:14px;background:white;color:#17283e;font:inherit;margin-top:6px}.wpcf7 textarea{min-height:120px;resize:vertical}.wpcf7 input[type=submit]{border:1px solid #9ebbd7;border-radius:99px;background:#e8f5ff;color:#17548b;padding:14px 26px;cursor:pointer;font:inherit}.wpcf7 .wpcf7-list-item{margin:0}.wpcf7 a{color:#1868c0;text-decoration:underline}
.hero .hero-photo img,.quote-photo img,.contact-photo img{object-fit:contain}
@media(max-width:850px){
 .hero .hero-photo{position:relative!important;inset:auto!important;width:min(100%,650px)!important;height:auto!important;aspect-ratio:auto!important;margin:26px auto 0!important;transform:none!important}
 .hero .hero-photo img{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;transform:none!important;mask-image:none!important;display:block}
 .hero-inner{height:auto!important;min-height:0!important;padding-bottom:0!important}
 .hero-project-badges{bottom:22px!important;right:20px!important}
 .quote-photo{position:relative!important;inset:auto!important;width:min(94%,560px)!important;height:auto!important;margin:24px auto 0!important;transform:none!important}
 .quote-photo img{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;transform:none!important;mask-image:none!important}
 .quote-section{display:flex!important;flex-direction:column!important;overflow:hidden}
 .quote-layout{order:-1;min-height:0!important;padding-block:50px 0!important}
 .contact-photo{width:min(90%,480px)!important;height:auto!important;max-height:none!important}
 .contact-photo img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
}
@media(max-width:782px){body.admin-bar .header.is-fixed{top:46px}}
@media(max-width:600px){body.admin-bar .header.is-fixed{top:0}}
@media(max-width:600px){.contact-form-dialog{padding:28px 20px}.legal-links{gap:12px;font-size:12px}.document-page{padding-top:120px}.hero-project-badges{position:relative!important;inset:auto!important;justify-content:flex-end;margin-block:18px!important}}

.footer-details{min-width:0}.footer-details .footer-description{margin-top:0}.footer .legal-links a{padding-block:5px;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.projects-tagline{margin-top:16px;font-size:16px;line-height:1.6}

.project-logo-link{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.project-logo-link .project-logo-stack{width:80%}


.story-photo img{aspect-ratio:4/3;object-fit:cover;object-position:25% 60%}
.story-copy>.text-link{margin-top:12px}.project h3 a:hover{text-decoration:underline;text-underline-offset:4px}

.footer .legal-links{width:100%;justify-self:stretch;align-self:start}

/* Owner placement: education and a clickable, toned scan. */
.education-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(253px,23vw,322px);gap:clamp(32px,4.5vw,64px);align-items:start;margin-top:56px;padding-bottom:28px;border-block:1px solid var(--line)}
.education-layout .education{margin:0;border:0;min-width:0}.education-layout .education-body{padding-bottom:0}
.education-award{margin:28px 0 0;min-width:0}.award-preview{display:block;width:100%;cursor:zoom-in}
.award-preview img{display:block;width:100%;height:auto;filter:grayscale(1) sepia(1) saturate(.8) hue-rotate(190deg);transition:filter .4s ease}
.award-preview:hover img,.award-preview:focus-visible img{filter:none}.education-award figcaption{font-size:13px;line-height:1.65;color:#466075;margin-top:16px}
.award-viewer img{filter:none;max-height:100%;max-width:100%;height:100%;width:auto;object-fit:contain}
.team-results{grid-template-columns:minmax(150px,.85fr) minmax(0,3fr);gap:32px}.team-results .results-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.team-results .results-grid strong{font-size:clamp(32px,3.4vw,54px)}
@media(max-width:1024px){.team-results{grid-template-columns:1fr;gap:24px}.team-results h3{max-width:none}.team-results .results-grid{gap:22px}}
@media(max-width:850px){.education-layout{grid-template-columns:1fr;gap:24px}.education-award{width:min(280px,70vw);margin:0 auto}}
@media(max-width:600px){.team-results .results-grid{grid-template-columns:1fr;gap:28px}.team-results .results-grid strong{font-size:48px}}
@media(prefers-reduced-motion:reduce){.award-preview img{transition:none}}
/* Instant color only for the certificate and BR Group logos. */
.award-preview img,.projects .project-logo,.projects .project-logo-stack .logo-text-light{transition:none}

/* Two full-page certificates, manually selected beside their course names. */
.certificate-carousel{min-width:0;margin-top:174px}
.certificate-carousel figure{margin:0 0 20px}.certificate-carousel figure[hidden]{display:none}
.certificate-preview{display:block;cursor:zoom-in}.certificate-preview img{display:block;width:100%;height:auto}
.certificate-carousel figcaption{font-size:13px;line-height:1.6;color:#466075;margin-top:12px}
.certificate-controls{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:16px}
.certificate-controls[hidden]{display:none}
.certificate-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:#1868c0;cursor:pointer}
.certificate-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.certificate-arrow[data-certificate-next] svg{transform:rotate(180deg)}
.certificate-dots{display:flex;gap:0}.certificate-dots span{width:6px;height:6px;border-radius:50%;background:#7d94a8}
.certificate-dots [aria-pressed="true"] span{background:#1868c0;outline:1px solid #1868c0;outline-offset:3px}
.certificate-controls button:hover{color:#114a89}.certificate-controls button:focus-visible{outline:2px solid #1868c0;outline-offset:1px;border-radius:4px}
.education-list [data-course],.education-list [data-course-school]{color:inherit;font-variant-numeric:normal}
.is-active-course{text-decoration:underline;text-decoration-color:#1868c0;text-underline-offset:4px;text-decoration-thickness:1px}
.biography-award{width:min(280px,70vw);margin:40px auto}
@media(max-width:850px){.certificate-carousel{width:min(360px,100%);margin:0 auto}}

/* Footer headings share a baseline and weight; compact the gap between rows. */
.footer{--footer-title-size:48px}
.footer .footer-identity>.brand,.footer .footer-invite>p{font-size:var(--footer-title-size);font-weight:300;line-height:1.2}
.footer .footer-identity>.brand{display:block;width:max-content;max-width:100%}
.footer .footer-invite>p{margin-top:0}
.footer .footer-glass{row-gap:48px}
.footer-glass>nav[aria-label="Навигация в подвале"] a{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
@media(max-width:1150px){.footer{--footer-title-size:36px}.footer .footer-glass{row-gap:40px}}
@media(max-width:850px){.footer{--footer-title-size:32px}}
@media(max-width:600px){.footer{--footer-title-size:34px}.footer .footer-glass{row-gap:32px}}
@media(max-width:360px){.footer{--footer-title-size:29px}}

/* Compact translucent forms; readable controls over the visible page. */
.contact-form-dialog{width:min(540px,calc(100% - 24px));padding:26px;border:1px solid #ffffffc9;border-radius:26px;background:linear-gradient(135deg,#ffffffed,#edf7ffe0);backdrop-filter:blur(24px) saturate(1.2);box-shadow:0 18px 60px #163b5d38;max-height:calc(100dvh - 24px);box-sizing:border-box;overflow-x:hidden}
.contact-form-dialog::backdrop{background:#24435c38;backdrop-filter:blur(8px)}
.contact-form-dialog h2{font-size:26px;line-height:1.2;margin:0 42px 18px 0}
.contact-form-dialog .form-close{width:44px;height:44px;right:12px;top:12px;border:1px solid #a9cce3;border-radius:50%;background:#ffffff75;color:#17548b;display:grid;place-items:center}
.form-close svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5}
.contact-form-dialog .wpcf7 label{margin:8px 0;font-size:14px;line-height:1.5}
.contact-form-dialog .wpcf7 p{margin:8px 0}
.contact-form-dialog .wpcf7 input:not([type=checkbox]):not([type=submit]),.contact-form-dialog .wpcf7 textarea{padding:9px 12px;border-radius:12px;background:#ffffffb8;box-sizing:border-box;min-width:0;max-width:100%;margin-top:4px;font-size:16px}
.contact-form-dialog .wpcf7 textarea{min-height:72px;height:80px;max-height:180px}
.contact-form-dialog .wpcf7-form-control-wrap{display:block;min-width:0}
.contact-form-dialog .wpcf7-acceptance label{display:flex;gap:10px;align-items:flex-start;cursor:pointer;min-height:44px;padding-block:5px;margin:6px 0}
.contact-form-dialog input[type=checkbox]{appearance:auto;width:24px;height:24px;flex:0 0 24px;margin:2px 0 0;accent-color:#1868c0;cursor:pointer}
.contact-form-dialog .wpcf7-list-item-label{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.contact-form-dialog .form-policy{display:block;margin-top:4px;font-size:12px;color:#35536c}
.contact-form-dialog .wpcf7 input[type=submit]{font-size:14px;padding:11px 22px}
@media(max-width:600px){.contact-form-dialog{padding:22px 18px}.contact-form-dialog h2{font-size:23px}}

/* Uniform one-pixel edges keep white certificates visible on white. */
.certificate-preview img{border:1px solid #a9bfd1;box-sizing:border-box}

.contact-form-dialog .wpcf7 input.br-invalid,.contact-form-dialog .wpcf7 textarea.br-invalid{border-color:#b52525;outline:2px solid #b52525;outline-offset:2px}
.contact-form-dialog .wpcf7 input[type=checkbox].br-invalid{outline:2px solid #b52525;outline-offset:3px}
.contact-form-dialog .br-field-error{display:block;font-size:13px;line-height:1.45;color:#a51e1e;margin-top:6px}
.contact-form-dialog .br-field-error[hidden]{display:none}
.contact-form-dialog .wpcf7 .br-validation-summary{display:block!important;margin:12px 0 0;padding:10px 12px;border:1px solid #bb3838;border-radius:10px;background:#fff2f0;color:#862121;font-size:13px;line-height:1.5}
