@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Noto+Sans:wght@400&display=swap");

/* Always paint the home hero immediately. Slider Revolution replaces this
   fallback once its scripts finish, but a JS/cache failure must not leave a
   white first screen. */
body.home rs-module-wrap#rev_slider_1_1_wrapper {
  visibility: visible !important;
  min-height: min(980px, calc(100vh - 120px));
  background: #17231f url("https://universalbag.kz/wp-content/uploads/revslider/video-media/1030-4_9.jpeg") center center / cover no-repeat !important;
}

body.home rs-module-wrap#rev_slider_1_1_wrapper > rs-module,
body.home rs-module-wrap#rev_slider_1_1_wrapper rs-slides,
body.home rs-module-wrap#rev_slider_1_1_wrapper rs-slide {
  background-color: transparent !important;
}

@media (max-width: 1024px) {
  body.home rs-module-wrap#rev_slider_1_1_wrapper {
    min-height: 680px;
  }
}

@media (max-width: 767px) {
  body.home rs-module-wrap#rev_slider_1_1_wrapper {
    min-height: 600px;
  }
}

/* Unified header */
.top_panel {
  z-index: 10000;
  background: #fff;
}

.top_panel.ub-scroll-header {
  position: fixed !important;
  inset: 0 0 auto 0;
  width: 100%;
  box-shadow: 0 8px 30px rgba(10, 23, 38, .10);
  transition: transform .28s ease, opacity .28s ease;
}

.admin-bar .top_panel.ub-scroll-header {
  top: 32px;
}

.top_panel.ub-scroll-header.ub-header-hidden {
  transform: translateY(-115%);
  opacity: 0;
  pointer-events: none;
}

.top_panel.ub-scroll-header.ub-header-visible {
  transform: translateY(0);
  opacity: 1;
}

.top_panel .sc_layouts_search,
.top_panel .search_wrap,
.top_panel .search_modern,
.top_panel a[href="#panel-bar"] {
  display: none !important;
}

/* Header request form popup */
body.ub-popup-open {
  overflow: hidden;
}

.ub-header-request-button {
  display: none;
}

@media (max-width: 767px) {
  /* Revolution Slider otherwise keeps an oversized desktop headline. */
  #slider-1-slide-9-layer-20 {
    font-size: clamp(40px, 11.5vw, 46px) !important;
    line-height: .96 !important;
    letter-spacing: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
  }

  rs-layer-wrap:has(#slider-1-slide-9-layer-20) {
    top: 170px !important;
    left: 38px !important;
  }

  #slider-1-slide-9-layer-11,
  #slider-1-slide-9-layer-18 {
    display: none !important;
  }

  .top_panel [data-id="bb9d829"] > .elementor-widget-wrap {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .ub-header-request-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 36px;
    padding: 8px 12px;
    background: #ff6c48;
    color: #fff !important;
    font: 400 15px/1 "Bebas Neue", cursive;
    white-space: nowrap;
  }
}

.ub-request-popup {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility .22s ease;
}

.ub-request-popup.is-open {
  visibility: visible;
  opacity: 1;
}

.ub-request-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 20, 25, .72);
  backdrop-filter: blur(5px);
}

.ub-request-popup__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(500px, 1.08fr);
  width: min(1180px, 100%);
  max-height: min(820px, calc(100vh - 56px));
  overflow: hidden auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
  transform: translateY(18px) scale(.985);
  transition: transform .25s ease;
}

.ub-request-popup.is-open .ub-request-popup__dialog {
  transform: translateY(0) scale(1);
}

.ub-request-popup__visual {
  min-height: 610px;
  background:
    linear-gradient(135deg, rgba(0, 83, 57, .08), rgba(0, 0, 0, .04)),
    url("https://universalbag.kz/wp-content/uploads/2024/11/BAM_9546.png") center/cover no-repeat;
}

.ub-request-popup__content {
  align-self: center;
  padding: 58px 64px 52px;
}

.ub-request-popup__eyebrow {
  margin-bottom: 18px;
  color: #168653;
  font: 400 21px/1.2 "Bebas Neue", cursive;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ub-request-popup__content h2 {
  margin: 0 0 28px;
  color: #232021;
  font: 400 clamp(42px, 4vw, 62px)/.96 "Bebas Neue", cursive !important;
  letter-spacing: -.01em;
}

.ub-request-popup__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(35, 32, 33, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #232021;
  font: 300 31px/1 Arial, sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ub-request-popup__close::after {
  content: "×";
}

.ub-request-popup.is-open:has(.ub-request-popup__state:not(:checked)) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ub-request-popup__form .columns_wrap {
  margin-right: -9px;
  margin-left: -9px;
}

.ub-request-popup__form .columns_wrap > [class*="column-"] {
  padding-right: 9px;
  padding-left: 9px;
}

.ub-request-popup__form input:not([type="submit"]):not([type="checkbox"]),
.ub-request-popup__form textarea {
  width: 100%;
  font-size: 16px !important;
}

.ub-request-popup__form textarea {
  min-height: 90px;
  max-height: 130px;
}

.ub-request-popup__form input[type="submit"] {
  width: auto !important;
  min-width: 168px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 26px !important;
  border-radius: 0;
  background: #ff6c48 !important;
  font-size: 18px !important;
  line-height: 52px !important;
}

.ub-request-popup .wpcf7 .wpcf7-form .wpcf7-submit-style {
  height: 52px !important;
  line-height: 52px !important;
}

.ub-request-popup .wpcf7 .wpcf7-form .wpcf7-submit-style input.wpcf7-submit {
  width: 178px !important;
  min-width: 178px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 24px 0 50px !important;
  font-size: 18px !important;
  line-height: 52px !important;
}

.ub-request-popup__form .wpcf7-acceptance {
  display: block;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.45;
}

.ub-request-popup__loading,
.ub-request-popup__error {
  padding: 22px 0;
  color: #737373;
}

@media (max-width: 900px) {
  .ub-request-popup__dialog {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
  }

  .ub-request-popup__visual {
    min-height: 170px;
  }

  .ub-request-popup__content {
    padding: 36px 42px 38px;
  }
}

@media (max-width: 600px) {
  .ub-request-popup {
    align-items: end;
    padding: 12px;
  }

  .ub-request-popup__dialog {
    max-height: calc(100vh - 24px);
    border-radius: 15px;
  }

  .ub-request-popup__visual {
    min-height: 110px;
  }

  .ub-request-popup__content {
    padding: 26px 22px 28px;
  }

  .ub-request-popup__content h2 {
    margin-bottom: 20px;
    font-size: 38px !important;
  }

  .ub-request-popup__eyebrow {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .ub-request-popup__form .columns_wrap > [class*="column-"] {
    width: 100%;
  }
}

/* Language selector inspired by universalgroup.kz */
.ub-language-switch {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  margin-left: 12px;
  font-family: Rubik, Arial, sans-serif;
}

.top_panel .sc_layouts_menu_nav > li > a {
  padding-right: 6px !important;
  padding-left: 6px !important;
}

.ub-language-switch__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 58px;
  padding: 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0b0b0b !important;
  font: 700 16px/1 Rubik, Arial, sans-serif !important;
  letter-spacing: normal;
  cursor: pointer;
}

.ub-language-switch__chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.ub-language-switch.is-open .ub-language-switch__chevron {
  transform: translateY(2px) rotate(225deg);
}

.ub-language-switch__button::after {
  display: none;
}

.ub-language-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  width: 178px;
  margin: 0;
  padding: 7px;
  list-style: none;
  border: 1px solid rgba(35, 145, 48, .18);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(9, 49, 16, .20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .2s ease;
}

.top_panel .sc_layouts_menu_nav > li.ub-language-switch > .ub-language-switch__menu {
  position: absolute !important;
  top: calc(100% + 9px) !important;
  right: 0 !important;
  left: auto !important;
  display: grid !important;
  width: 178px !important;
  min-width: 178px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(35, 145, 48, .18) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 18px 44px rgba(9, 49, 16, .20) !important;
}

.ub-language-switch.is-open .ub-language-switch__menu,
.ub-language-switch:hover .ub-language-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top_panel .sc_layouts_menu_nav > li.ub-language-switch.is-open > .ub-language-switch__menu,
.top_panel .sc_layouts_menu_nav > li.ub-language-switch:hover > .ub-language-switch__menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.menu_mobile li.ub-language-switch-mobile {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  width: 100%;
}

.menu_mobile li.ub-language-switch-mobile > .ub-language-switch__menu {
  top: 58px !important;
  right: auto !important;
  left: 0 !important;
  display: grid !important;
  width: 178px !important;
  min-width: 178px !important;
  padding: 7px !important;
  border: 1px solid rgba(35, 145, 48, .18) !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 18px 44px rgba(9, 49, 16, .20) !important;
}

.menu_mobile li.ub-language-switch-mobile.is-open > .ub-language-switch__menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.ub-language-switch__menu > li {
  margin: 0;
  padding: 0;
}

.ub-language-switch__menu a {
  display: grid !important;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 0;
  min-height: 39px;
  padding: 7px 9px !important;
  border-radius: 8px;
  color: #273329 !important;
  font: 400 15px/1.5 Rubik, Arial, sans-serif !important;
  text-transform: none !important;
}

.ub-language-switch__menu a:hover,
.ub-language-switch__menu a.is-active {
  background: #eef9ed;
  color: #239f35 !important;
}

.ub-language-switch__code {
  width: 34px;
  font: 800 12px/1.5 Rubik, Arial, sans-serif;
}

.ub-language-switch__name {
  font: 500 13px/1.5 Rubik, Arial, sans-serif;
}

/* Unified, tighter footer */
.footer_wrap [data-id="38a5d9e2"],
.footer_wrap .elementor-widget-spacer .elementor-spacer-inner:empty {
  max-height: 28px !important;
}

.footer_wrap [data-id="38a5d9e2"] {
  display: none !important;
}

.footer_wrap [data-id="547a4134"] {
  padding-top: 30px !important;
  padding-bottom: 24px !important;
}

.footer_wrap [data-id="46bcfa46"] {
  min-height: 0 !important;
  padding: 16px 0 !important;
}

.footer_wrap [data-id="46bcfa46"] .elementor-spacer {
  display: none !important;
}

.footer_wrap p:last-child {
  margin-bottom: 0;
}

/* Catalog: remove the empty gap shown between product blocks */
.page-id-35991 [data-id="b71c77c"],
.page-id-36437 [data-id="b71c77c"] {
  height: 54px !important;
  min-height: 54px !important;
  overflow: hidden;
}

/* News archive */
body.blog .sidebar {
  display: none !important;
}

body.blog .page_content_wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ub-news-hero {
  display: flex;
  align-items: center;
  width: 100%;
  height: 393px;
  background: #d7d7d7;
}

.ub-news-hero__inner {
  width: min(1235px, calc(100% - 30px));
  margin: 0 auto;
}

.ub-news-hero h1 {
  margin: 0 0 8px;
  color: #072032;
  font: 600 64px/1.06 Montserrat, Arial, sans-serif !important;
  letter-spacing: -.02em;
  text-transform: none;
}

.ub-news-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 18px;
  font: 500 18px/1.3 Montserrat, Arial, sans-serif;
  text-transform: uppercase;
}

.ub-news-breadcrumbs a {
  color: #fff !important;
}

.ub-news-breadcrumbs span {
  color: #fff;
  font-size: 32px;
  font-weight: 300;
}

.ub-news-breadcrumbs strong {
  color: #4caf50;
  font-weight: 500;
}

body.blog .content_wrap {
  width: min(1260px, 100%) !important;
  max-width: 1260px !important;
  margin-top: 100px !important;
  margin-bottom: 100px !important;
}

body.blog .content {
  width: 100% !important;
  max-width: none !important;
}

body.blog .posts_container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px;
}

body.blog article.post_item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  margin: 0 !important;
  min-height: 387px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 52, 44, .10);
}

body.blog article.post_item .post_featured {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  border-radius: 0;
  overflow: hidden;
}

body.blog article.post_item .post_featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.blog article.post_item .post_title {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  color: #072032 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

body.blog article.post_item .post_title a {
  display: block;
  color: #072032 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 600 !important;
  text-align: left;
  text-transform: none !important;
}

body.blog article.post_item .post_header {
  display: flex;
  flex: 1;
  align-items: flex-start;
  padding: 18px 18px 20px;
  color: #5c6972;
  font-family: "Noto Sans", Arial, sans-serif;
}

body.blog article.post_item .post_meta,
body.blog article.post_item .post-more-link,
body.blog article.post_item .more-link,
body.blog article.post_item .post_readmore,
body.blog article.post_item .post_date {
  display: none !important;
}

body.blog article.post_item .post_content,
body.blog article.post_item .post_content p {
  font-size: 16px;
  line-height: 1.5;
}

body.blog article.post_item .post_content {
  display: none !important;
}

body.blog article.post_item .post_content p {
  display: none !important;
}

body.blog .nav-links,
body.blog .pagination_wrap {
  grid-column: 1 / -1;
}

/* Single news article */
body.single-post .content_wrap {
  width: min(860px, calc(100% - 48px)) !important;
  max-width: 860px !important;
}

body.single-post .content {
  width: 100% !important;
}

body.single-post .page_content_wrap > .content_wrap {
  display: grid;
  grid-template-columns: minmax(0, 840px) minmax(290px, 340px);
  gap: 48px;
  align-items: start;
  width: min(1228px, calc(100% - 60px)) !important;
  max-width: 1228px !important;
  padding-top: 96px !important;
}

body.single-post .page_content_wrap > .content_wrap > .content {
  min-width: 0;
}

body.single-post .post_header_single .post_meta,
body.single-post .post_meta_single > :not(.post_share),
body.single-post .post_author,
body.single-post .author_info,
body.single-post .nav-links-single,
body.single-post .related_wrap,
body.single-post .related_posts,
body.single-post .post_meta_likes {
  display: none !important;
}

body.single-post .post_title {
  width: 100% !important;
  max-width: 1080px;
  margin-right: auto !important;
  margin-left: auto !important;
  font-size: clamp(36px, 3.6vw, 46px) !important;
  line-height: 1.16 !important;
  text-align: center;
  color: #fff !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

body.single-post .post_header_single h1.post_title.entry-title {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 1080px !important;
}

body.single-post .post_header_single > .content_wrap {
  width: min(1080px, calc(100% - 40px)) !important;
  max-width: 1080px !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.single-post .post_header_single {
  right: auto !important;
  left: 50% !important;
  width: calc(100% - 80px) !important;
  max-width: 1100px !important;
  margin-right: auto;
  margin-left: auto;
  transform: translate(-50%, -50%) !important;
}

body.single-post .post_featured {
  position: relative;
  height: 341px !important;
  min-height: 341px !important;
  max-height: 341px !important;
  border-radius: 0;
  overflow: hidden;
}

body.single-post .post_featured::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 28, 24, .82), rgba(15, 65, 43, .56));
  pointer-events: none;
}

body.single-post .post_header_single {
  z-index: 2;
}

body.single-post .post_featured img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

body.single-post .post_content,
body.single-post .post_content p,
body.single-post .post_content li {
  font-family: "Noto Sans", Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

body.single-post .post_content p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none !important;
  hyphens: none !important;
  overflow-wrap: normal;
  word-break: normal;
}

body.single-post .post_content h2,
body.single-post .post_content h3 {
  margin-top: 1.7em;
  font-size: 30px !important;
  line-height: 1.25 !important;
  color: #072032;
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

.ub-single-news-main-image {
  width: 100%;
  margin: 0 0 42px;
  overflow: hidden;
  background: #eef2ef;
}

.ub-single-news-main-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
}

.ub-single-news-sidebar {
  position: sticky;
  top: 110px;
  box-sizing: border-box;
  width: 100%;
  padding: 36px 32px 30px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(7, 32, 50, .09);
}

.ub-single-news-sidebar h2 {
  margin: 0 !important;
  color: #072032 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.ub-single-news-sidebar__line {
  width: 32px;
  height: 3px;
  margin: 18px 0 6px;
  background: #4caf50;
}

.ub-single-news-sidebar__item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 !important;
  padding: 24px 0 !important;
  border-bottom: 1px solid #e8ece9;
}

.ub-single-news-sidebar__image {
  display: block;
  overflow: hidden;
  border-radius: 5px;
  aspect-ratio: 6 / 5;
}

.ub-single-news-sidebar__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ub-single-news-sidebar__copy h3 {
  margin: 0 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  text-align: left !important;
  text-transform: none !important;
  -webkit-hyphens: none !important;
  hyphens: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.ub-single-news-sidebar__copy h3 a {
  color: #072032 !important;
  -webkit-hyphens: none !important;
  hyphens: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.ub-single-news-sidebar__copy h3 a:hover {
  color: #4caf50 !important;
}

.ub-single-news-sidebar__all {
  display: inline-flex;
  margin-top: 24px;
  color: #168c52 !important;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.ub-single-news-sidebar__loading,
.ub-single-news-sidebar__empty {
  margin: 22px 0 0 !important;
  color: #69757c;
  font-size: 14px;
}

/* Contacts: reduce oversized headings and vertical gaps */
.page-id-1453 [data-id="306f2c24"] {
  min-height: 0 !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

.page-id-1453 [data-id="306f2c24"] h1,
.page-id-1453 [data-id="306f2c24"] h2 {
  font-size: clamp(36px, 4vw, 54px) !important;
  line-height: 1.02 !important;
}

.page-id-1453 [data-id="3ecd4bc8"],
.page-id-1453 [data-id="525271f7"] {
  height: 30px !important;
}

.page-id-1453 [data-id="3ecd4bc8"] .elementor-spacer-inner,
.page-id-1453 [data-id="525271f7"] .elementor-spacer-inner {
  height: 30px !important;
}

.page-id-1453 [data-id="feb37e1"],
.page-id-1453 [data-id="d808af3"] {
  height: 20px !important;
}

.page-id-1453 [data-id="feb37e1"] .elementor-spacer-inner,
.page-id-1453 [data-id="d808af3"] .elementor-spacer-inner {
  height: 20px !important;
}

.page-id-1453 [data-id="8ec8ee9"],
.page-id-1453 [data-id="3899c58"] {
  height: 24px !important;
  min-height: 24px !important;
}

.page-id-1453 [data-id="973f9ce"] {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.page-id-1453 [data-id="b35b84a"],
.page-id-1453 [data-id="b35b84a"] .sc_googlemap {
  min-height: 0 !important;
  height: 350px !important;
}

.page-id-1453 [data-id="b35b84a"] {
  width: min(1100px, calc(100% - 30px)) !important;
  max-width: 1100px !important;
  margin: 38px auto 52px !important;
  overflow: hidden;
  border: 1px solid #e4e6e7;
  border-radius: 16px;
}

.page-id-1453.ub-contact-layout-ready [data-id="01270eb"],
.page-id-1453.ub-contact-layout-ready [data-id="1585f1e"],
.page-id-1453.ub-contact-layout-ready [data-id="39368c24"],
.page-id-1453.ub-contact-layout-ready [data-id="b35b84a"],
.page-id-1453.ub-contact-layout-ready [data-id="973f9ce"] {
  display: none !important;
}

.page-id-1453.ub-contact-layout-ready [data-id="a444612"] > .elementor-container {
  display: block;
}

.page-id-1453.ub-contact-layout-ready [data-id="a444612"] > .elementor-container > .elementor-column {
  display: none !important;
}

.ub-contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr);
  gap: 44px;
  width: 100%;
  margin: 34px auto 0;
}

.ub-contact-info {
  padding: 28px;
  border-radius: 16px;
  background: #f5f6f6;
}

body.page-id-1453.ub-contact-layout-ready .ub-contact-info [data-id="01270eb"],
body.page-id-1453.ub-contact-layout-ready .ub-contact-info [data-id="1585f1e"] {
  display: block !important;
}

.ub-contact-map-inline {
  width: 100%;
  height: 360px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #e4e6e7;
  border-radius: 14px;
  background: #fff;
}

.ub-contact-map-inline .elementor-widget-container,
.ub-contact-map-inline .sc_googlemap,
.ub-contact-map-inline iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.ub-contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 18px;
}

.ub-contact-card {
  min-width: 0;
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid #e4e6e7;
  border-radius: 14px;
  background: #fff;
}

.ub-contact-card .sc_icons_icon {
  display: none !important;
}

.ub-contact-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ub-contact-qr-card h3 {
  margin: 0 0 16px;
  font-size: 24px !important;
  line-height: 1.15 !important;
}

.ub-contact-qr {
  width: 150px;
  max-width: 100%;
}

.ub-contact-qr img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.ub-contact-card .sc_icons_item_title {
  font-size: 24px !important;
  line-height: 1.15 !important;
}

.ub-contact-card .sc_icons_item_description,
.ub-contact-card .sc_icons_item_more_link {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.ub-contact-form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 580px;
  margin: 68px auto 52px;
  overflow: hidden;
  border: 1px solid #e4e6e7;
  border-radius: 16px;
  background: #fff;
}

.ub-contact-form-visual {
  min-height: 580px;
  background:
    linear-gradient(135deg, rgba(0, 83, 57, .06), rgba(0, 0, 0, .04)),
    url("https://universalbag.kz/wp-content/uploads/2024/11/BAM_9546.png") center/cover no-repeat;
}

.ub-contact-form-content {
  align-self: center;
  padding: 42px 54px;
}

.ub-contact-form-eyebrow {
  margin-bottom: 16px;
  color: #168653;
  font: 400 20px/1.2 "Bebas Neue", cursive;
  text-transform: uppercase;
}

.ub-contact-form-content h2 {
  margin: 0 0 28px;
  color: #232021;
  font: 400 clamp(40px, 4vw, 56px)/.98 "Bebas Neue", cursive !important;
}

.ub-contact-form-mount input:not([type="submit"]):not([type="checkbox"]),
.ub-contact-form-mount textarea {
  width: 100%;
  font-size: 16px !important;
}

.ub-contact-form-mount textarea {
  min-height: 90px;
  max-height: 120px;
}

.ub-contact-form-mount .columns_wrap {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 0 18px !important;
}

.ub-contact-form-mount .columns_wrap.margin-bottom {
  grid-template-columns: 1fr;
}

.ub-contact-form-mount .columns_wrap > [class*="column-"] {
  width: 100% !important;
  padding: 0 !important;
}

.ub-contact-form-mount .columns_wrap p {
  margin: 0 !important;
}

.page-id-36476 [data-id="306f2c24"] {
  min-height: 0 !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

.page-id-36476.ub-contact-layout-ready [data-id="39368c24"],
.page-id-36476.ub-contact-layout-ready [data-id="b35b84a"] {
  display: none !important;
}

.page-id-36476.ub-contact-layout-ready [data-id="a444612"] > .elementor-container {
  display: block;
}

.page-id-36476.ub-contact-layout-ready [data-id="a444612"] > .elementor-container > .elementor-column {
  display: none !important;
}

.ub-contact-address-card {
  border: 0;
  background: transparent;
}

.ub-contact-card h3 {
  margin: 0 0 14px;
  color: #072032;
  font: 600 22px/1.2 Montserrat, Arial, sans-serif !important;
  text-transform: none;
}

.ub-contact-card p {
  margin: 0 0 8px !important;
  color: #56636c;
  font: 400 15px/1.55 "Noto Sans", Arial, sans-serif;
}

.ub-contact-card a {
  color: #ff6845;
  overflow-wrap: anywhere;
}

.ub-kz-home-news {
  width: min(1260px, calc(100% - 40px));
  margin: 84px auto;
}

.ub-kz-home-news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.ub-kz-home-news__head span {
  display: block;
  margin-bottom: 8px;
  color: #168653;
  font: 600 13px/1.2 Montserrat, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ub-kz-home-news__head h2 {
  margin: 0;
  color: #072032;
  font: 600 clamp(32px, 4vw, 52px)/1.05 Montserrat, Arial, sans-serif !important;
  text-transform: none;
}

.ub-kz-home-news__head > a {
  flex: 0 0 auto;
  color: #168653;
  font: 700 14px/1.2 Montserrat, Arial, sans-serif;
  text-transform: uppercase;
}

.ub-kz-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.ub-kz-news-card {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 52, 44, .10);
}

.ub-kz-news-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ub-kz-news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ub-kz-news-card__body {
  padding: 18px 18px 22px;
}

.ub-kz-news-card__body h2 {
  margin: 0 !important;
  font: 600 18px/1.4 Montserrat, Arial, sans-serif !important;
  text-align: left !important;
  text-transform: none !important;
}

.ub-kz-news-card__body h2 a {
  color: #072032 !important;
}

.ub-kz-news-loading,
.ub-kz-news-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px;
  color: #65727a;
  text-align: center;
}

@media (max-width: 782px) {
  .admin-bar .top_panel.ub-scroll-header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  .ub-language-switch {
    margin: 8px 0;
  }

  body.blog .content_wrap,
  body.single-post .content_wrap {
    width: min(100% - 30px, 860px) !important;
  }

  .ub-news-hero {
    height: 260px;
  }

  .ub-news-hero h1 {
    font-size: 42px !important;
  }

  .ub-news-breadcrumbs {
    gap: 10px;
    font-size: 14px;
  }

  body.blog .content_wrap {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
  }

  body.blog .posts_container {
    grid-template-columns: 1fr !important;
  }

  body.blog article.post_item .post_featured {
    margin-bottom: 0 !important;
  }

  body.blog article.post_item .post_featured img {
    height: 100%;
  }

  body.blog article.post_item .post_featured {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  body.blog article.post_item .post_title {
    font-size: 18px !important;
  }

  body.single-post .post_title {
    font-size: 30px !important;
  }

  body.single-post .post_header_single > .content_wrap {
    width: calc(100% - 30px) !important;
  }

  body.single-post .post_featured {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
  }

  body.single-post .page_content_wrap > .content_wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
    width: calc(100% - 30px) !important;
    padding-top: 40px !important;
  }

  .ub-single-news-main-image {
    margin-bottom: 30px;
  }

  .ub-single-news-sidebar {
    position: static;
    padding: 28px 22px 24px;
  }

  .ub-single-news-sidebar__item {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0 !important;
  }

  .ub-single-news-sidebar__copy h3 {
    font-size: 14px !important;
  }

  .page-id-1453 [data-id="306f2c24"] {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  .page-id-36476 [data-id="306f2c24"] {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  .page-id-1453 [data-id="b35b84a"],
  .page-id-1453 [data-id="b35b84a"] .sc_googlemap {
    height: 280px !important;
  }

  .ub-contact-layout,
  .ub-contact-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .ub-contact-info,
  .ub-contact-cards,
  .ub-contact-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .ub-contact-map-inline {
    height: 260px;
  }

  .ub-contact-form-section {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 42px;
  }

  .ub-contact-form-visual {
    min-height: 180px;
  }

  .ub-contact-form-content {
    padding: 30px 22px 34px;
  }

  .ub-contact-form-content h2 {
    font-size: 38px !important;
  }

  .ub-contact-form-mount .columns_wrap > [class*="column-"] {
    width: 100%;
  }

  .ub-contact-form-mount .columns_wrap {
    grid-template-columns: 1fr;
  }

  .ub-kz-home-news {
    width: calc(100% - 30px);
    margin: 54px auto;
  }

  .ub-kz-home-news__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .ub-kz-news-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ub-news-hero {
    height: 320px;
  }

  .ub-news-hero h1 {
    font-size: 52px !important;
  }

  body.blog .posts_container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.single-post .page_content_wrap > .content_wrap {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    width: calc(100% - 40px) !important;
    padding-top: 70px !important;
  }

  .ub-single-news-sidebar {
    padding: 28px 22px 24px;
  }

  .ub-single-news-sidebar__item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .ub-single-news-sidebar__copy h3 {
    font-size: 14px !important;
  }

  .ub-contact-layout {
    grid-template-columns: 1fr;
  }

  .ub-contact-form-section {
    grid-template-columns: 1fr;
  }

  .ub-contact-form-visual {
    min-height: 240px;
  }

  .ub-kz-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
