/* Профілі медіумів — палітра теми fmr (блакитна, Lora + Source Sans Pro). */
.md-main { background: #fff; }
.md-wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.md-wrap--text { max-width: 760px; }
.md-crumbs { max-width: 1040px; margin: 0 auto; padding: 1rem 1.5rem 0; font-size: .88rem; color: #5D6D7E; }
.md-crumbs a { color: #2e6e94; }
.md-crumbs span { margin: 0 .45rem; color: #9fb6c6; }

.md-hero { background: linear-gradient(135deg, #D6EAF8 0%, #EBF5FB 100%); padding: 3rem 0 3.25rem; margin-top: 1rem; }
.md-hero__grid { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; }
.md-avatar { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: 0 8px 28px rgba(74,133,173,.22); }
.md-eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #3b6f8f; margin: 0 0 .4rem; }
.md-hero h1 { font-style: italic; margin: 0 0 .25rem; }
.md-role { font-family: 'Lora', Georgia, serif; font-size: 1.15rem; color: #1a5276; margin: 0 0 .75rem; }
.md-tagline { font-size: 1.1rem; color: #3D5A70; max-width: 620px; margin: 0 0 1.25rem; }
.md-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.md-chips { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.md-chips li { background: #fff; border: 1px solid #bcd7e8; border-radius: 999px; padding: .25rem .85rem; font-size: .85rem; color: #1a5276; margin: 0; }

.md-section { padding: 3.25rem 0; }
.md-section--alt { background: #F2F4F6; }
.md-section h2 { margin: 0 0 1.25rem; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.md-two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: start; }
.md-two--flip { grid-template-columns: .85fr 1.15fr; }
.md-bio p { font-size: 1.05rem; line-height: 1.8; }
.md-fig { margin: 0; }
.md-fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.09); }
.md-fig figcaption { margin-top: .6rem; font-size: .88rem; color: #5D6D7E; font-style: italic; }

.md-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.md-box { background: #fff; border: 1px solid #e0eaf3; border-top: 3px solid #D6EAF8; border-radius: 8px; padding: 1.25rem 1.4rem; box-shadow: 0 3px 14px rgba(0,0,0,.05); }
.md-box h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: #1a5276; }
.md-box p { margin: 0; font-size: .95rem; color: #3D5A70; }
.md-list { margin: 0 0 1rem 1.2rem; }
.md-list li { margin-bottom: .6rem; font-style: italic; color: #2C3E50; }
.md-note { font-size: .9rem; color: #5D6D7E; border-left: 3px solid #D6EAF8; padding-left: .9rem; }
.md-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.md-steps li { counter-increment: s; background: #fff; border: 1px solid #e0eaf3; border-radius: 8px; padding: 1.1rem 1.2rem; margin: 0; }
.md-steps li::before { content: counter(s); display: block; font-family: 'Lora', serif; font-size: 1.5rem; color: #4a85ad; margin-bottom: .2rem; }
.md-steps h3 { margin: 0 0 .3rem; font-size: 1rem; }
.md-steps p { margin: 0; font-size: .9rem; color: #3D5A70; }

.md-band { background: #1a2e3b; color: #d6eaf8; padding: 3rem 0; text-align: center; }
.md-band h2 { color: #fff; margin: 0 0 .6rem; }
.md-band p { color: #a8c5d8; max-width: 640px; margin: 0 auto 1.25rem; }
.md-band .btn-secondary { color: #fff; border-color: #a8c5d8; }
.md-band .btn-secondary:hover { background: #fff; color: #1a2e3b; }
.md-band__btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.md-faq details { border-bottom: 1px solid #e0eaf3; padding: .85rem 0; }
.md-faq summary { cursor: pointer; font-weight: 600; color: #1a2e3b; }
.md-faq details p { margin: .6rem 0 0; color: #3D5A70; }
.md-others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.md-other { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid #e0eaf3; border-radius: 8px; padding: .8rem 1rem; color: #1a2e3b; text-decoration: none; }
.md-other img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.md-other strong { display: block; font-family: 'Lora', serif; }
.md-other span { font-size: .85rem; color: #5D6D7E; }
.md-disclosure { font-size: .82rem; color: #8fb0c5; margin-top: 1rem; }
.md-authorlink { margin-top: 1.25rem; font-size: .95rem; }

/* Картки на сторінках /our-mediums/ та /about-us/ */
.md-team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 1.5rem 0 2rem; }
.md-person { background: #fff; border: 1px solid #e0eaf3; border-top: 3px solid #D6EAF8; border-radius: 10px; padding: 1.4rem; box-shadow: 0 3px 16px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: .5rem; }
.md-person__head { display: flex; gap: 1rem; align-items: center; }
.md-person__head img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.page-content .md-person h3 { margin: 0; font-size: 1.2rem; }
.page-content .md-person h3 a { color: #1a2e3b; text-decoration: none; }
.md-person__role { margin: 0; color: #1a5276; font-size: .95rem; }
.md-person__spec { margin: 0; font-size: .85rem; color: #5D6D7E; }
.md-person__bio { margin: 0; font-size: .95rem; color: #3D5A70; flex: 1; }
.page-content a.md-person__link { font-weight: 600; text-decoration: none; }
.page-content a.md-person__link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .md-hero__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .md-actions, .md-chips { justify-content: center; }
  .md-two, .md-two--flip { grid-template-columns: 1fr; }
  .md-cards, .md-others, .md-steps, .md-team { grid-template-columns: 1fr; }
  .md-avatar { width: 160px; height: 160px; }
}
