/* Common to the digital homepage and the editor canvas. Inline author settings take precedence. */
.custom-homepage-block {
    font-family: Manrope, sans-serif;
    color: var(--ink, #101828);
    overflow-wrap: break-word;
}
.custom-homepage-block > .container {
    width: 100%;
    max-width: var(--box, 1452px);
    margin-inline: auto;
    padding-inline: 0;
}
.custom-homepage-block :is(.custom-block-title, .hb-heading, .hb-documents h2, .hb-contacts h2, .hb-announcements h2) {
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.18;
    letter-spacing: -.03em;
    font-weight: 800;
    color: inherit;
}
.custom-homepage-block .editor-content {
    color: inherit;
    line-height: 1.6;
}
.custom-homepage-block :is(.hb-doc, .hb-announcement, .hb-link-card) {
    border: 1px solid var(--line, #e6ecf5) !important;
    background-color: #fff !important;
    border-radius: var(--radius, 16px) !important;
    color: var(--ink, #101828) !important;
}
.custom-homepage-block :is(.hb-doc, .hb-announcement, a.hb-link-card):is(:hover, :focus-within) {
    background-color: var(--soft, #f4f7fb) !important;
    border-color: var(--brand, #3a86f8) !important;
    box-shadow: 0 10px 24px rgba(31,111,224,.1);
    transform: none;
}
.custom-homepage-block a.hb-link-card:hover .hb-link-card-text { color: var(--muted, #667085) !important; }
.custom-homepage-block a.hb-link-card:hover .hb-link-card-icon { background: #e8f0fe; color: var(--brand-dark, #1f6fe0); }
.custom-homepage-block :is(.hb-doc-title, .hb-link-card-title, .hb-announcement-title) {
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.02em;
}
.custom-homepage-block .hb-announcement .card-img-top {
    height: 180px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: #e8eef8;
}
.custom-homepage-block :is(.hb-documents, .hb-announcements) .rounded-pill {
    border-radius: 8px !important;
    border-color: #bcd2fa;
    font-weight: 650;
}
.custom-homepage-block :is(.hb-announcement, .hb-doc) .text-muted { color: var(--muted, #667085) !important; }
.custom-homepage-block :is(.hb-alert,.hb-contacts-map,.hb-video .ratio) { border-radius: var(--radius, 16px) !important; }
.custom-homepage-block .hb-contacts-list strong { font-weight: 750; }
.custom-homepage-block :is(.hb-col,.hb-row-col) { min-width: 0; }
.custom-homepage-block .editor-content :is(th,td) { border-color: var(--line, #e6ecf5); }
.custom-homepage-block .editor-content th { background: var(--soft, #f4f7fb); }
.custom-homepage-block :is(.hb-btn,.link-more):focus-visible,
.custom-homepage-block a:focus-visible { outline: 2px solid var(--brand-dark, #1f6fe0); outline-offset: 2px; }
.custom-homepage-block .hb-placeholder { background: var(--soft, #f4f7fb); border-radius: 12px; }
.digital-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.digital-services-wide,.digital-services > :only-child { grid-column: 1/-1; }
.digital-services .gosuslugi-widget-container { min-width: 0; border-radius: var(--radius, 16px); overflow: hidden; }
@media (max-width: 767px) {
    .digital-services { grid-template-columns: minmax(0,1fr); }
}
.custom-homepage-block .hb-button-group .hb-btn {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: -.015em;
}
.custom-homepage-block .hb-btn-primary { background: var(--brand-dark, #1f6fe0); border-color: var(--brand-dark, #1f6fe0); }
.custom-homepage-block .hb-button-group .hb-btn-outline { border-color: #bcd2fa; color: var(--ink, #101828); }
.custom-homepage-block .hb-button-group .hb-btn-outline:hover { background: var(--soft, #f4f7fb); }
.custom-homepage-block .hb-image img,.custom-homepage-block .hb-wide-banner-media { max-width: 100%; }

/* The widget section has no heading to provide space above its banners. */
html[data-layout="2"] .page > section ~ .digital-services,
html[data-layout="2"] .hb-canvas .digital-services {
    margin-block-start: clamp(24px, 3vw, 40px);
}
