.portal-social-section {
  --social-section-surface: var(--surface-raised, #fff);
  --social-section-ink: var(--text, #1d2c59);
  padding: 24px;
  border: 1px solid var(--border-default, #8a9bb8);
  border-radius: 16px;
  background: var(--social-section-surface);
  color: var(--social-section-ink);
}
.portal-social-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.portal-social-section__heading > div {
  min-width: 0;
}
.portal-social-section .portal-social-section__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  color: inherit;
}
.portal-social-section__heading p {
  margin: 8px 0 0;
  max-width: 65ch;
  font-size: 17px;
  line-height: 1.5;
  color: inherit;
}
.portal-social-section__symbol {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--link);
}
.portal-social-section__symbol svg {
  width: 26px;
  height: 26px;
}
.portal-social-section--home {
  margin-top: 24px;
}

.portal-social-block {
  margin-block: 24px;
}

.home-contact-sections {
  display: grid;
  gap: 16px;
  margin-block: 16px;
}
.home-contact-sections > .home-contacts {
  margin: 0;
  min-width: 0;
}
.home-contact-sections > .portal-social-section--home {
  min-width: 0;
  margin: 0;
  padding: 18px 24px 20px;
  border-color: var(--block-edge, var(--border-default));
  border-radius: var(--home-radius, 10px);
}
@media (max-width: 767px) {
  .home-contact-sections > .portal-social-section--home {
    padding: 14px 16px 18px;
  }
}

.portal-social-catalogue {
  min-width: 0;
}
.portal-social-catalogue__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  max-width: 100%;
  margin: 0;
  padding: 4px 4px 12px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) var(--surface-soft);
}
.portal-social-catalogue__row > li {
  flex: 0 0 44px;
  margin: 0;
  padding: 0;
}
.portal-social-catalogue__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-default);
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--surface-soft);
  cursor: default;
}
.portal-social-catalogue__icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(1);
  background: #fff;
  border-radius: 5px;
}
.portal-social-catalogue__icon:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}
.portal-social-catalogue__status {
  margin: 8px 4px 0;
  font-size: 16px;
  line-height: 1.5;
  color: inherit;
}

.portal-social-block.theme--dark-blue > .portal-social-section,
.home-contact-sections.theme--dark-blue > .portal-social-section {
  --social-section-surface: #192d43;
  --social-section-ink: #f2f6ff;
  --surface-soft: #263c55;
  --link: #a6d2ff;
}

.portal-social-block.theme--soft-blue > .portal-social-section,
.home-contact-sections.theme--soft-blue > .portal-social-section {
  --social-section-surface: var(--surface-soft);
  --social-section-ink: var(--text);
}

body.site-shell > .site-header .site-header__actions > .header-social {
  display: none;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
}

.header-social__logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
}

.header-social__logo img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.site-header details.header-social > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
}

.site-header details.header-social > summary::-webkit-details-marker {
  display: none;
}

.site-header .header-social__panel {
  position: absolute;
  z-index: 80;
  inset-inline-end: 0;
  top: calc(100% + 12px);
  width: min(320px, 100vw - 32px);
  max-height: calc(100dvh - var(--site-header-height, 140px) - 32px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1490196078);
  color: var(--text);
  background: var(--surface-raised);
}
.site-header .header-social__panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
  color: inherit;
}

.site-header .portal-social-links--menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}
.site-header .portal-social-links--menu .portal-social-link {
  width: 100%;
  justify-content: flex-start;
  border-radius: 10px;
}
.site-header .portal-social-links--menu .portal-social-link .portal-social-link__name {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  font-size: 16px;
  line-height: 1.4;
}
.site-header .portal-social-links--menu .portal-social-link__hint {
  display: none;
}

.site-header .mobile-social-links {
  padding-block: 20px;
  margin-block: 4px 12px;
  border-top: 1px solid var(--border-default);
}
.site-header .mobile-social-links h2 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
}

@media (min-width: 992px) {
  body.site-shell > .site-header .site-header__actions > .header-social {
    display: inline-block;
  }
  body.site-shell > .site-header .site-header__actions > a.header-social {
    display: inline-grid;
  }
}
@media (max-width: 767px) {
  .portal-social-section {
    padding: 16px;
  }
  .portal-social-section__heading {
    gap: 12px;
  }
}
