/* Общее оформление самостоятельных HTML-страниц резидентов. */
.resident-html-profile {
  --hp-blue: #154692;
  --hp-navy: #123666;
  --hp-cyan: #20abd2;
  --hp-ink: #203247;
  --hp-muted: #526275;
  --hp-line: #dce5ed;
  width: 100%;
  margin: 0;
  background: #fff;
  color: var(--hp-ink);
  font: 20px/1.6 Arial, Helvetica, sans-serif;
  text-align: left;
  overflow-wrap: break-word;
}
.resident-html-profile *, .resident-html-profile *::before, .resident-html-profile *::after { box-sizing: border-box; }
.resident-html-profile :is(p,h1,h2,ul,li,figure,dl,dt,dd) { margin: 0; padding: 0; text-indent: 0; }
.resident-html-profile :is(h1,h2) { color: var(--hp-navy); font-family: inherit; text-transform: none; }
.resident-html-profile a { color: var(--hp-blue); }
.resident-html-profile a:focus-visible { outline: 3px solid #087b9b; outline-offset: 5px; }
.resident-html-profile [id] { scroll-margin-top: 28px; }
.resident-html-profile .hp-shell { width: 100%; max-width: 1900px; margin-inline: auto; padding-inline: 48px; }
.resident-html-profile .hp-brandbar { padding-block: 22px 4px; }
.resident-html-profile .hp-back { display: inline-flex; align-items: center; gap: 10px; color: var(--hp-muted); font-size: 16px; text-decoration: none; }
.resident-html-profile .hp-back span { font-size: 22px; }
.resident-html-profile .hp-back:hover { color: var(--hp-blue); text-decoration: underline; }
.resident-html-profile .hp-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.resident-html-profile .hp-logo { display: block; flex: 0 1 auto; width: var(--rp-logo-width, clamp(120px, 13.2vw, 235px)); min-width: 0; max-width: var(--rp-logo-max, 36%); height: auto; }
.resident-html-profile .hp-hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.16fr); align-items: center; gap: 42px; padding-block: 22px 40px; }
.resident-html-profile .hp-hero > *, .resident-html-profile .hp-benefits > * { min-width: 0; }
.resident-html-profile h1 { flex: 0 0 auto; font-size: clamp(40px, 4.3vw, 72px); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; white-space: nowrap; }
.resident-html-profile .hp-hero__title { margin-top: 18px; font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; line-height: 1.22; letter-spacing: -.015em; color: var(--hp-navy); }
.resident-html-profile .hp-hero__resident { margin-top: 12px; color: var(--hp-muted); font-size: 16px; line-height: 1.5; }
.resident-html-profile .hp-hero__lead { max-width: 49ch; margin-top: 22px; font-size: 22px; }
.resident-html-profile .hp-hero__description { max-width: 52ch; margin-top: 14px; color: var(--hp-muted); }
.resident-html-profile .hp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 28px; }
.resident-html-profile .hp-website { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; padding: 12px 22px; background: var(--hp-blue); color: #fff; font-size: 17px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.resident-html-profile .hp-website:hover { background: var(--hp-navy); }
.resident-html-profile .hp-anchor { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 2px solid var(--hp-cyan); font-size: 17px; font-weight: 700; text-decoration: none; }
.resident-html-profile .hp-anchor:hover { color: #08708e; border-color: var(--hp-blue); }
.resident-html-profile .hp-photo { min-width: 0; }
.resident-html-profile .hp-photo > a { position: relative; display: block; width: 100%; aspect-ratio: 1.6; overflow: hidden; background: #eaf0f5; }
.resident-html-profile .hp-photo img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.resident-html-profile .hp-photo > a:hover img { transform: scale(1.025); }
.resident-html-profile .hp-photo > a:focus-visible { outline-offset: 3px; }
.resident-html-profile .hp-photo__open { position: absolute; right: 12px; bottom: 12px; display: grid; width: 36px; height: 36px; place-items: center; background: #123666e8; color: #fff; font-size: 22px; line-height: 1; pointer-events: none; }
.resident-html-profile .hp-photo figcaption { margin-top: 9px; color: var(--hp-muted); font-size: 16px; line-height: 1.45; }
.resident-html-profile .hp-hero__photo > a { aspect-ratio: 16 / 9; }
.resident-html-profile .hp-hero__photo figcaption { padding-left: 13px; border-left: 3px solid var(--hp-cyan); }
.resident-html-profile .hp-stats { padding: 32px 40px 34px; border-top: 3px solid var(--hp-cyan); background: var(--hp-navy); color: #fff; }
.resident-html-profile .hp-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.resident-html-profile .hp-stat { display: flex; flex-direction: column; min-width: 0; }
.resident-html-profile .hp-stat + .hp-stat { padding-left: 28px; border-left: 1px solid #ffffff38; }
.resident-html-profile .hp-stat dt { order: 2; margin-top: 8px; color: #d9e7f5; font-size: 18px; font-weight: 400; line-height: 1.45; }
.resident-html-profile .hp-stat dd { order: 1; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 9px; color: #fff; font-size: clamp(42px, 3.6vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.resident-html-profile .hp-stat dd span { font-size: 24px; font-weight: 400; letter-spacing: 0; }
.resident-html-profile .hp-section { padding-block: 56px 44px; }
.resident-html-profile h2 { margin-bottom: 28px; font-size: clamp(34px, 3.3vw, 48px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.resident-html-profile .hp-benefits { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); align-items: start; gap: 44px; }
.resident-html-profile .hp-benefit-list { display: grid; gap: 18px; list-style: none; color: var(--hp-muted); line-height: 26px; }
.resident-html-profile .hp-benefit-list li { position: relative; padding-left: 22px; }
.resident-html-profile .hp-benefit-list li::before { position: absolute; left: 0; content: "›"; color: var(--hp-blue); font-weight: 700; }
.resident-html-profile .hp-photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.resident-html-profile .hp-residents-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; padding-block: 24px 32px; border-top: 1px solid var(--hp-line); }
.resident-html-profile .hp-residents-nav a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; text-decoration: none; }
.resident-html-profile .hp-residents-nav a:hover { text-decoration: underline; }
@media (max-width: 1200px) and (min-width: 601px) {
  .resident-html-profile .hp-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .resident-html-profile .hp-stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 1050px) {
  .resident-html-profile { font-size: 19px; }
  .resident-html-profile .hp-shell { padding-inline: 32px; }
  .resident-html-profile .hp-hero { gap: 28px; }
  .resident-html-profile .hp-hero__lead { font-size: 20px; }
  .resident-html-profile .hp-hero__description { font-size: 18px; }
  .resident-html-profile .hp-stats { padding-inline: 24px; }
  .resident-html-profile .hp-stats__grid { gap: 20px; }
  .resident-html-profile .hp-stat + .hp-stat { padding-left: 20px; }
  .resident-html-profile .hp-stat:nth-child(3) { padding-left: 0; }
  .resident-html-profile .hp-stat dt { font-size: 16px; }
  .resident-html-profile .hp-stat dd { font-size: 42px; }
  .resident-html-profile .hp-stat dd span { font-size: 22px; }
  .resident-html-profile .hp-benefits { grid-template-columns: 1fr; gap: 28px; }
  .resident-html-profile .hp-benefit-list { max-width: 65ch; gap: 14px; }
}
@media (max-width: 850px) {
  .resident-html-profile .hp-shell { padding-inline: 24px; }
  .resident-html-profile .hp-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 18px; }
  .resident-html-profile .hp-hero__copy { max-width: 720px; }
  .resident-html-profile .hp-section { padding-top: 42px; }
}
@media (max-width: 600px) {
  .resident-html-profile { font-size: 18px; }
  .resident-html-profile .hp-shell { padding-inline: 20px; }
  .resident-html-profile .hp-brandbar { padding-top: 16px; }
  .resident-html-profile .hp-heading { gap: 12px; }
.resident-html-profile .hp-logo { width: var(--rp-logo-mobile-width, 120px); }
  .resident-html-profile .hp-back { gap: 7px; font-size: 14px; }
  .resident-html-profile h1 { font-size: clamp(28px, 8vw, 44px); }
  .resident-html-profile .hp-hero__title { margin-top: 14px; font-size: 28px; }
  .resident-html-profile .hp-hero__lead { margin-top: 18px; font-size: 18px; }
  .resident-html-profile .hp-hero__description { font-size: 17px; }
  .resident-html-profile .hp-actions { gap: 18px 22px; margin-top: 22px; }
  .resident-html-profile .hp-website { padding-inline: 18px; font-size: 16px; }
  .resident-html-profile .hp-anchor { font-size: 15px; }
  .resident-html-profile .hp-hero { padding-bottom: 28px; }
  .resident-html-profile .hp-stats { padding: 4px 20px; }
  .resident-html-profile .hp-stats__grid { grid-template-columns: 1fr; gap: 0; }
  .resident-html-profile .hp-stat, .resident-html-profile .hp-stat + .hp-stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 0; border-left: 0; }
  .resident-html-profile .hp-stat + .hp-stat { border-top: 1px solid #ffffff38; }
  .resident-html-profile .hp-stat dt { margin: 0; font-size: 14px; }
  .resident-html-profile .hp-stat dd { font-size: 32px; column-gap: 7px; }
  .resident-html-profile .hp-stat dd span { font-size: 16px; }
  .resident-html-profile .hp-section { padding-block: 36px; }
  .resident-html-profile h2 { margin-bottom: 24px; font-size: 32px; }
  .resident-html-profile .hp-benefit-list { gap: 14px; }
  .resident-html-profile .hp-photo-pair { grid-template-columns: 1fr; gap: 24px; }
  .resident-html-profile .hp-photo figcaption { font-size: 14px; }
  .resident-html-profile .hp-residents-nav { gap: 12px; padding-block: 20px 24px; }
  .resident-html-profile .hp-residents-nav a { font-size: 16px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .resident-html-profile .hp-hero { grid-template-columns: 1fr; }
  .resident-html-profile .hp-hero__copy { display: grid; grid-template-columns: minmax(0, 1fr) 42%; column-gap: 20px; max-width: none; }
  .resident-html-profile .hp-hero__copy > * { grid-column: 1 / -1; }
  .resident-html-profile .hp-heading { display: contents; }
  .resident-html-profile .hp-heading h1 { grid-column: 1; grid-row: 1; }
  .resident-html-profile .hp-logo { grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-self: end; width: var(--rp-logo-tablet-width, 280px); max-width: 100%; }
  .resident-html-profile .hp-hero__title { grid-column: 1; grid-row: 2; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .resident-html-profile *, .resident-html-profile *::before, .resident-html-profile *::after { scroll-behavior: auto; transition: none; }
}

/* Общая композиция новых HTML-страниц резидентов. */
.resident-html-profile h1 { flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: clamp(32px, 3.5vw, 64px); }
.resident-html-profile .hp-stats__grid { grid-template-columns: repeat(var(--rp-count, 4), minmax(0, 1fr)); }
.resident-html-profile .hp-heading { align-items: center; }
.resident-html-profile .hp-hero__photo > a { aspect-ratio: auto; }
.resident-html-profile .hp-hero__photo img { height: auto; object-fit: contain; }
.resident-html-profile .hp-photo-pair img { object-fit: contain; }
.resident-html-profile .rp-extra { padding-top: 0; }
.resident-html-profile .rp-extra p { max-width: 100ch; color: var(--hp-muted); }
.resident-html-profile .rp-documents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.resident-html-profile .rp-document > a { aspect-ratio: 3 / 4; }
.resident-html-profile .rp-document img { object-fit: contain; }
.resident-html-profile .rp-table-wrap { max-width: 100%; overflow-x: auto; }
.resident-html-profile table { width: 100%; margin: 0 0 15px; border: 1px solid #eee; border-collapse: collapse; border-spacing: 0; font-size: 17px; line-height: 1.5; }
.resident-html-profile caption { text-align: left; color: var(--hp-muted); margin-bottom: 12px; }
.resident-html-profile :is(td,th) { padding: 6px 24px; border: 1px solid var(--hp-line); text-align: left; vertical-align: top; }
.resident-html-profile th { padding-block: 9px; }
.resident-html-profile td { border-top-color: #eee; }
.resident-html-profile thead { color: #fff; background: var(--hp-navy); }
.resident-html-profile tbody th { color: #555; font-weight: 400; }
.resident-html-profile tbody tr:nth-child(even) { background: #edf3f8; }
.resident-html-profile .rp-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.resident-html-profile h3 { font-size: 26px; font-weight: 500; line-height: 1.3; color: var(--hp-navy); margin: 0 0 20px; padding-bottom: 10px; }
.resident-html-profile .rp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.resident-html-profile .rp-archive { font-size: 16px; color: var(--hp-muted); margin-top: 16px; }
@media (max-width: 1200px) and (min-width: 601px) { .resident-html-profile .hp-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
 .resident-html-profile .hp-stats__grid, .resident-html-profile .rp-columns, .resident-html-profile .rp-gallery { grid-template-columns: 1fr; }
 .resident-html-profile .rp-documents { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
 .resident-html-profile .hp-heading { flex-wrap: wrap; }
 .resident-html-profile h1 { font-size: clamp(30px, 7.8vw, 44px); }
 .resident-html-profile .hp-logo { max-width: 40%; }
}

.resident-html-profile thead th { color: #fff; }
