.home-page .section.section-gos {
  padding-top: 0;
  padding-bottom: 0;
}

.gosuslugi-banners {
  display: flex;
  gap: 15px;
  margin: 8px 0 20px;
  align-items: stretch;
}

.gosuslugi-banners__first {
  flex: 1 1 52%;
  box-shadow: none;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  display: flex;
}

.gosuslugi-banners__second {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  display: flex;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gosuslugi-banners__third {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  display: flex;
}

#e329fb40-widget-pos {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 325px !important;
  height: auto;
}

.gosuslugi-banners__second::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  pointer-events: none;
}

.gosuslugi-banners__second .gosuslugi-pos-og-widget,
.gosuslugi-banners__second .gosuslugi-pos-og-widget__startWindow {
  width: 100% !important;
  height: 100% !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
}

.gosuslugi-banners__second .gosuslugi-pos-og-widget__start {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.gosuslugi-banners__second .gosuslugi-pos-og-widget__startHead {
  font-size: 28px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  padding: 16px 16px 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.gosuslugi-banners__second .gosuslugi-pos-og-widget__startText {
  font-size: 16px !important;
  line-height: 1.35 !important;
  padding: 8px 16px 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.gosuslugi-banners__second .gosuslugi-pos-og-widget__startBtn {
  margin-top: auto !important;
  align-self: flex-start !important;
  margin-left: 16px !important;
  margin-bottom: 16px !important;
  position: relative !important;
  z-index: 2 !important;
}

.gosuslugi-pos-og-widget .gosuslugi-pos-og-widget__startBg {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background-position: center bottom !important;
  background-size: cover !important;
  z-index: 1 !important;
}

#js-show-iframe-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 240px;
  max-width: 100%;
  background: linear-gradient(138.4deg, #38bafe 26.49%, #2d73bc 79.45%);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#js-show-iframe-wrapper .pos-banner-fluid * {
  box-sizing: border-box;
}

#js-show-iframe-wrapper .pos-banner-fluid .pos-banner-btn_2 {
  display: block;
  width: 240px;
  min-height: 56px;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  background: #0d4cd3;
  color: #fff;
  border: none;
  border-radius: 8px;
  outline: 0;
}

#js-show-iframe-wrapper .pos-banner-fluid .pos-banner-btn_2:hover {
  background: #1d5deb;
}

#js-show-iframe-wrapper .pos-banner-fluid .pos-banner-btn_2:focus,
#js-show-iframe-wrapper .pos-banner-fluid .pos-banner-btn_2:active {
  background: #2a63ad;
}

#js-show-iframe-wrapper .bf-2 {
  position: relative;
  display: grid;
  grid-template-columns: var(--pos-banner-fluid-2__grid-template-columns);
  grid-template-rows: var(--pos-banner-fluid-2__grid-template-rows);
  width: 100%;
  height: 100%;
  max-width: none;
  font-family: LatoWeb, sans-serif;
}

#js-show-iframe-wrapper .bf-2__decor {
  grid-column: var(--pos-banner-fluid-2__decor-grid-column);
  grid-row: var(--pos-banner-fluid-2__decor-grid-row);
  padding: var(--pos-banner-fluid-2__decor-padding);
  background-image: var(--pos-banner-fluid-2__bg-url, url('https://pos.gosuslugi.ru/bin/banner-fluid/2/banner-fluid-bg-2-small.svg'));
  background-position: var(--pos-banner-fluid-2__bg-position, calc(10% + 64px) calc(100% - 20px));
  background-repeat: no-repeat;
  background-size: var(--pos-banner-fluid-2__bg-size, cover);
}

#js-show-iframe-wrapper .bf-2__logo-wrap {
  position: absolute;
  top: var(--pos-banner-fluid-2__logo-wrap-top);
  bottom: var(--pos-banner-fluid-2__logo-wrap-bottom);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: var(--pos-banner-fluid-2__logo-wrap-padding);
  background: #2d73bc;
  border-radius: var(--pos-banner-fluid-2__logo-wrap-border-radius);
}

#js-show-iframe-wrapper .bf-2__logo {
  width: 128px;
}

#js-show-iframe-wrapper .bf-2__slogan {
  font-family: LatoWebBold, sans-serif;
  font-size: var(--pos-banner-fluid-2__slogan-font-size);
  line-height: var(--pos-banner-fluid-2__slogan-line-height);
  color: #fff;
}

#js-show-iframe-wrapper .bf-2__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--pos-banner-fluid-2__content-padding);
}

#js-show-iframe-wrapper .bf-2__description {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

#js-show-iframe-wrapper .bf-2__text {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 32px;
  font-family: LatoWebBold, sans-serif;
  color: #fff;
}

#js-show-iframe-wrapper .bf-2__text_small {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 24px;
  font-family: LatoWeb, sans-serif;
}

#js-show-iframe-wrapper .bf-2__btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.banner-pb_wrapper,
.banner-pb_container {
  height: 100%;
}

.banner-pb_container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: transparent;
  padding: 22px 22px 18px;
}

.banner-pb_image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  border-radius: var(--radius-md);
}

.banner-pb_image img {
  display: block;
  width: 78%;
  max-height: 180px;
  height: auto;
  object-fit: contain;
}

.banner-pb_content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
}

.banner-pb_content__title {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #09090b;
}

.banner-pb_content__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #27272a;
}

.banner-pb_content__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-pb_content__link a {
  text-decoration: none;
}

.banner-pb_button {
  min-width: 120px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  transition: background-color .2s ease;
}

.banner-pb_content__link a:hover .banner-pb_button {
  background: #1e40af;
}

.banner-pb_icon {
  width: 100px;
  height: auto;
  display: block;
}

@media (max-width: 1200px) {
  .gosuslugi-banners {
    flex-wrap: wrap;
  }

  .gosuslugi-banners__first,
  .gosuslugi-banners__second,
  .gosuslugi-banners__third {
    flex: 1 1 100%;
    min-width: 0;
  }

  .banner-pb_image {
    min-height: 190px;
    background-size: contain;
  }

  .banner-pb_content__title {
    font-size: 16px;
  }

  .banner-pb_content__subtitle {
    font-size: 16px;
  }

  .banner-pb_button {
    min-width: 120px;
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .gosuslugi-banners {
    flex-direction: column;
  }
}
