.subpage-main {
  min-height: 720px;
  padding-bottom: 80px;
  background: #f4f7fc;
}

.page-breadcrumb {
  padding: 16px 0 18px;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumb__icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-right: 6px;
  color: #e86a5a;
}

.breadcrumb__icon img { display: block; width: 25px;}

.breadcrumb__label {
  margin-right: 2px;
  color: #666;
}

.breadcrumb a {
  color: #666;
  transition: color .2s ease;
}

.breadcrumb a:hover { color: #176dce; }

.breadcrumb__sep {
  margin: 0 8px;
  color: #999;
}

.subpage-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-top: 28px;
}

.subpage-layout--full {
  grid-template-columns: 1fr;
}

.subpage-main--resource-list .image-list-card__media {
  aspect-ratio: 3 / 4;
}

.side-card,
.content-panel {
  background: #fff;
  box-shadow: 0 7px 28px rgba(31, 71, 124, .07);
}

.side-card { position: sticky; top: 20px; overflow: hidden; }
.side-card__title { margin: 0; padding: 23px 25px; color: #fff; font-size: 22px; font-weight: 600; background: linear-gradient(135deg, #1f70db, #65a6ed); }
.side-nav { padding: 8px 22px 22px; }
.side-nav a { position: relative; display: block; padding: 17px 10px 17px 20px; border-bottom: 1px solid #e5eaf1; color: #4e5662; font-size: 16px; transition: color .2s ease, padding-left .2s ease; }
.side-nav a::before { content: ""; position: absolute; top: 50%; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: #c7d0dc; transform: translateY(-50%); }
.side-nav a:hover, .side-nav a.active { padding-left: 24px; color: #176dce; }
.side-nav a.active::before { background: #176dce; }

.content-panel { min-width: 0; padding: 34px 38px 42px; }
.panel-heading { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid #dfe5ed; }
.panel-heading h2 { position: relative; margin: 0; padding-left: 16px; color: #1768bd; font-size: 24px; line-height: 1.35; }
.panel-heading h2::before { content: ""; position: absolute; inset: 2px auto 2px 0; width: 4px; border-radius: 2px; background: #ef4d62; }

.image-list-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 20px; }
.image-list-card { min-width: 0; overflow: hidden; border: 1px solid #e5e9ef; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.image-list-card__link { display: block; height: 100%; color: inherit; }
.image-list-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(28, 66, 115, .13); }
.image-list-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f7; }
.image-list-card__media--square,
.image-list-card__media--square img { aspect-ratio: 1 / 1; }
.image-list-card__placeholder { display: block; width: 100%; height: 100%; }
.image-list-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .3s ease; }
.image-list-card:hover img { transform: scale(1.05); }
.image-list-card__body { padding: 15px 14px 17px; }
.image-list-card h3 { margin: 0 0 7px; overflow: hidden; font-size: 16px; line-height: 1.5; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.image-list-card p { margin: 0; overflow: hidden; color: #8a919c; font-size: 13px; line-height: 1.55; white-space: nowrap; text-overflow: ellipsis; }

.article-list {  }
.article-list-item { display: grid; grid-template-columns: 1fr auto; gap: 25px; align-items: center; padding: 22px 2px; border-bottom: 1px solid #edf0f4; }
.article-list-item__title { position: relative; min-width: 0; padding-left: 17px; }
.article-list-item__title::before { content: ""; position: absolute; top: 10px; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: #2276d4; }
.article-list-item h3 { margin: 0 0 5px; overflow: hidden; font-size: 17px; line-height: 1.5; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.article-list-item p { margin: 0; overflow: hidden; color: #949ba5; font-size: 13px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.article-list-item time { color: #9aa1ab; font-size: 14px; white-space: nowrap; }
.article-list-item:hover h3 { color: #176dce; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 12px; border: 1px solid #e0e5ec; color: #727985; background: #fff; font-size: 14px; }
.pagination a:hover, .pagination .current { border-color: #2074d4; color: #fff; background: #2074d4; }

.prose { color: #4e5660; font-size: 16px; line-height: 2; }
.prose p { margin: 0 0 21px; text-indent: 2em; }
.prose h3 { margin: 30px 0 14px; color: #1768bd; font-size: 19px; }
.prose img { width: min(100%, 820px); margin: 28px auto; }

.detail-panel { padding: 42px 50px 55px; }
.article-header { margin-bottom: 34px; padding-bottom: 25px; border-bottom: 1px solid #e5e9ef; text-align: center; }
.article-header h1 { margin: 0 0 18px; color: #214c80; font-size: 31px; line-height: 1.45; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 25px; justify-content: center; color: #8a919a; font-size: 14px; }
.font-size-controls button { min-width: 27px; padding: 1px 5px; border: 0; color: #6c7480; background: transparent; cursor: pointer; }
.font-size-controls button:hover, .font-size-controls button.active { color: #176dce; }
.article-body { color: #3f4650; font-size: var(--article-size, 17px); line-height: 2.05; }
.article-body p { margin: 0 0 22px; text-indent: 2em; }
.article-body h2 { margin: 29px 0 14px; color: #164f91; font-size: 1.13em; }
.article-body figure { margin: 30px 0; text-align: center; }
.article-body figure img { width: min(100%, 820px); margin: auto; }
.article-body figcaption { margin-top: 10px; color: #939aa4; font-size: 13px; }
.detail-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 45px; padding-top: 24px; border-top: 1px solid #e5e9ef; color: #69717d; font-size: 14px; }
.detail-nav a:last-child { text-align: right; }
.detail-nav a:hover { color: #176dce; }

.profile-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.profile-detail > .profile-info:only-child { grid-column: 1 / -1; }
.profile-photo { padding: 13px; border: 1px solid #e0e5ec; background: #fff; box-shadow: 0 8px 24px rgba(30, 64, 107, .08); }
.profile-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.profile-photo--expert img { aspect-ratio: 3 / 4; }
.profile-info h1 { margin: 0 0 5px; color: #27313d; font-size: 30px; }
.profile-role { margin: 0 0 28px; color: #176dce; font-size: 16px; }
.profile-facts { margin: 0; }
.profile-facts > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px dashed #e3e7ed; }
.profile-facts dt { color: #8a929d; }
.profile-facts dd { margin: 0; color: #414954; }
.profile-intro { margin-top: 28px; }
.profile-intro h2 { margin: 0 0 13px; color: #27313d; font-size: 19px; }
.profile-intro p { margin: 0; color: #59616d; line-height: 1.95; text-indent: 2em; }

.contact-panel { padding: 38px 42px 48px; }
.contact-info { margin-bottom: 42px; }
.contact-info p { margin: 0 0 10px; color: #333; font-size: 15px; line-height: 1.85; }
.contact-info p:last-child { margin-bottom: 0; }
.contact-form-intro { margin: 0 0 22px; color: #333; font-size: 15px; line-height: 1.85; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 2px;
  color: #333;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .2s ease;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #2074d4; outline: none; }
.contact-form button[type="submit"] {
  align-self: flex-start;
  min-width: 96px;
  margin-top: 4px;
  padding: 9px 34px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: #2074d4;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease;
}
.contact-form button[type="submit"]:hover { background: #1768bd; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1050px) {
  .image-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-detail { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  .subpage-main { padding-bottom: 50px; }
  .page-breadcrumb { padding: 14px 0 16px; }
  .subpage-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 25px; }
  .side-card { position: static; }
  .side-card__title { padding: 17px 20px; font-size: 19px; }
  .side-nav { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
  .side-nav a { flex: 0 0 auto; padding: 9px 15px; border: 1px solid #e2e7ee; border-radius: 4px; font-size: 14px; white-space: nowrap; }
  .side-nav a::before { display: none; }
  .side-nav a:hover, .side-nav a.active { padding-left: 15px; border-color: #176dce; color: #fff; background: #176dce; }
  .content-panel, .detail-panel, .contact-panel { padding: 24px 18px 30px; }
  .panel-heading h2 { font-size: 21px; }
  .image-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 10px; }
  .image-list-card__body { padding: 11px 10px 13px; }
  .image-list-card h3 { font-size: 14px; }
  .article-list-item { grid-template-columns: 1fr; gap: 7px; padding: 17px 0; }
  .article-list-item h3 { font-size: 16px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .article-list-item p { display: none; }
  .article-list-item time { padding-left: 17px; font-size: 13px; }
  .prose { font-size: 15px; line-height: 1.9; }
  .article-header h1 { font-size: 24px; }
  .article-body { line-height: 1.95; }
  .detail-nav { grid-template-columns: 1fr; gap: 12px; }
  .detail-nav a:last-child { text-align: left; }
  .profile-detail { grid-template-columns: 1fr; gap: 26px; }
  .profile-photo { width: min(100%, 310px); margin-inline: auto; }
  .profile-info h1 { font-size: 26px; }
  .profile-facts > div { grid-template-columns: 80px 1fr; }
}
