.t-popup {
    z-index: 1200!important;
}

/* BeviTec template: brand styles for standard form blocks */
.t-form .t-input,
.t-form .t-select,
.t-form textarea.t-input {
  border: 1px solid #c9d2e6 !important;
  border-radius: 14px !important;
  background-color: #f0f3fa !important;
  color: #1f2043 !important;
}
.t-form .t-input:focus,
.t-form .t-select:focus {
  border-color: #0535a6 !important;
}
/* phone field: the mask wrapper carries the border, the inner input stays flat */
.t-form .t-input-phonemask__wrap .t-input-phonemask {
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}
.t-form .t-submit {
  background-color: #0535a6 !important;
  color: #ffffff !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}
.t-form .t-submit:hover {
  background-color: #1f2043 !important;
}

/* Map blocks (T570): rounded brand card inside the content grid, with the brand disc */
.t570 {
  padding: 48px 20px;
  box-sizing: border-box;
}
.t570 .t570__mainblock {
  max-width: 1160px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
}
.t570 .t570__map .t-map {
  height: 100% !important;
  min-height: 600px;
}
.t570 .t570__col_text {
  position: relative;
  overflow: hidden;
}
.t570 .t570__col_text::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -120px;
  border-radius: 50%;
  background-color: #2e3b63;
  z-index: 0;
}
.t570 .t570__contentwrapper {
  position: relative;
  z-index: 1;
}
.t570 .t570__title {
  font-weight: 800 !important;
  font-size: 40px !important;
  line-height: 1.15 !important;
  letter-spacing: -1px;
}
@media screen and (max-width: 960px) {
  .t570 { padding: 32px 20px; }
  .t570 .t570__mainblock { border-radius: 24px; display: block; }
  .t570 .t570__map .t-map { height: 300px !important; min-height: 0; }
  .t570 .t570__title { font-size: 30px !important; }
  .t570 .t570__col_text::after { width: 200px; height: 200px; right: -70px; bottom: -90px; }
}

/* Header dropdown (T2871): rounded panel, rounded hover rows, text lined up with the parent item */
@media screen and (min-width: 981px) {
  .t-menu-base .t-menusub__menu-wrapper {
    transform: translateX(-18px);
  }
  .t-menu-base .t-menusub__innermenu-content {
    padding: 8px !important;
  }
  .t-menu-base .t-menusub__list-item {
    border-radius: 14px;
    overflow: hidden;
  }
}

/* Tables (T431): rounded brand card, no stray bottom line under the last row */
.t431 .t431__table {
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #dfe5f2;
}
.t431 .t431__tbody tr:last-child td {
  border-bottom-width: 0 !important;
}
@media screen and (max-width: 640px) {
  .t431 .t431__table { border-radius: 20px; }
}

/* Bitrix24 participation form inside the Zero block: brand colours over the Bitrix theme */
.bvt-b24 .b24-form > div {
  --b24-primary-color: #0535a6 !important;
  --b24-primary-hover-color: #1f2043 !important;
  --b24-primary-text-color: #ffffff !important;
  --b24-text-color: #1f2043 !important;
  --b24-background-color: #ffffff !important;
  --b24-field-border-color: #c9d2e6 !important;
  --b24-field-background-color: #f0f3fa !important;
  --b24-field-focus-background-color: #ffffff !important;
  --b24-popup-background-color: #ffffff !important;
  --b24-font-family: inherit !important;
}
.bvt-b24 .b24-form-wrapper {
  box-shadow: none !important;
  max-width: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.bvt-b24 .b24-form-padding-side {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.bvt-b24 .b24-form-header {
  display: none !important;
}
.bvt-b24 .b24-form-control {
  border-radius: 14px !important;
  font-family: inherit !important;
}
.bvt-b24 .b24-form-btn {
  border-radius: 30px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease-in-out !important;
}
.bvt-b24 .b24-form-field-agreement,
.bvt-b24 .b24-form-field-agreement a {
  color: #4a5578 !important;
}

/* Pop-ups with Bitrix24 forms (T868 in the footer): same look as the participation form on /exhibit */
.t868 .t-popup__container {
  border-radius: 32px !important;
  background-color: #ffffff !important;
  overflow: hidden;
}
.t868 .t868__code-wrap {
  padding: 40px 32px 16px;
}
.t868 .b24-form > div {
  --b24-primary-color: #0535a6 !important;
  --b24-primary-hover-color: #1f2043 !important;
  --b24-primary-text-color: #ffffff !important;
  --b24-text-color: #1f2043 !important;
  --b24-background-color: #ffffff !important;
  --b24-field-border-color: #c9d2e6 !important;
  --b24-field-background-color: #f0f3fa !important;
  --b24-field-focus-background-color: #ffffff !important;
  --b24-popup-background-color: #ffffff !important;
  --b24-font-family: inherit !important;
}
.t868 .b24-form-wrapper {
  box-shadow: none !important;
  max-width: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.t868 .b24-form-padding-side {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.t868 .b24-form-header {
  border-bottom: none !important;
  padding-top: 0 !important;
  padding-bottom: 16px !important;
  text-align: left !important;
}
.t868 .b24-form-header-title {
  font-family: var(--t-headline-font, Arial), sans-serif !important;
  font-weight: 800 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  color: #0535a6 !important;
  text-align: left !important;
  margin: 0 !important;
}
.t868 .b24-form-control {
  border-radius: 14px !important;
  font-family: inherit !important;
}
.t868 .b24-form-btn {
  border-radius: 30px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  transition: background-color 0.2s ease-in-out !important;
}
.t868 .b24-form-field-agreement,
.t868 .b24-form-field-agreement a {
  color: #4a5578 !important;
}
@media screen and (max-width: 640px) {
  .t868 .t-popup__container { border-radius: 24px !important; }
  .t868 .t868__code-wrap { padding: 32px 20px 8px; }
  .t868 .b24-form-header-title { font-size: 22px !important; }
}
