
html { min-width: 1180px; }
.content img { max-width: 100%; height: auto; }
.content iframe { max-width: 100%; }
.b-head-menu ul, .b-left-menu ul { margin: 0; padding: 0; }
.b-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 0 40px; }
.b-projects__item { width: auto; height: 360px; background: #bf012a; color: #fff; text-decoration: none; }
.b-projects__item_text { height: 290px; }
.b-projects__item img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1024px) {
  html { min-width: 0; overflow-x: hidden; }
  body { min-width: 0; overflow-x: hidden; }
  .g-lightbox-wrapper,
  .b-body-wrapper { min-width: 0; overflow-x: hidden; }
  .g-white-bg {
    left: 0;
    right: 0;
    width: auto;
    margin-left: 0;
  }
  .l-body-wrapper,
  .b-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
  .b-main-wrapper { padding-bottom: 180px; }
  .b-header {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-areas:
      "logo contacts"
      "nav nav";
    gap: 18px 24px;
    height: auto;
    min-height: 0;
    padding: 22px 24px 18px;
  }
  .b-logo {
    grid-area: logo;
    margin: 0;
    align-self: center;
  }
  .b-logo img {
    display: block;
    width: 220px;
    height: auto;
  }
  .b-header__contacts {
    grid-area: contacts;
    min-width: 0;
    text-align: right;
  }
  .b-header__contacts-phone {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 6px;
  }
  .b-head-menu {
    grid-area: nav;
    margin: 0;
  }
  .b-head-menu ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .b-head-menu li {
    width: auto;
    font-size: 28px;
  }
  .b-head-menu span,
  .b-head-menu a {
    display: block;
  }
  .b-head-menu .socials {
    display: flex;
    gap: 10px;
    width: auto;
    margin-top: 8px;
  }
  .b-head-menu .socials a { margin-right: 0; }
  .g-page-title,
  .content h1 {
    padding: 42px 0 28px;
    font-size: 56px;
  }
  .b-content-wrapper { padding: 0 0 32px; }
  .b-left-menu {
    float: none;
    width: auto;
    margin: 30px 0 24px;
  }
  .b-left-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .b-left-menu li {
    margin: 0;
    font-size: 20px;
  }
  .b-left-menu a,
  .b-left-menu span {
    padding: 7px 10px 5px;
  }
  .b-right-col {
    width: auto;
    margin-left: 0;
  }
  .content {
    max-width: 760px;
    margin: 0 auto;
  }
  .content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
  }
  .content [style*="padding-left"] {
    padding-left: 0 !important;
  }
  .b-index-slider {
    width: calc(100% + 48px);
    height: 610px;
    margin: -120px -24px 0;
  }
  .b-index-slider__slide,
  .b-index-slider__slide__text-wrapper {
    height: 500px;
  }
  .b-index-slider__img-wrapper { width: 400%; }
  .b-index-slider__slide { width: 100vw; }
  .b-index-slider__slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
  .b-index-slider__slide__text-wrapper {
    box-sizing: border-box;
    width: 100%;
    padding: 0 52px;
  }
  .b-index-slider__slide__text {
    width: min(640px, calc(100% - 104px));
    margin-bottom: 34px;
  }
  .b-index-slider__tabs {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: auto;
    padding: 0 48px;
  }
  .b-index-slider__tabs a {
    box-sizing: border-box;
    float: none;
    width: auto;
    height: 82px;
    padding: 18px 18px 10px;
    font-size: 20px;
    line-height: 26px;
  }
  .b-widgets {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    padding: 28px 24px 34px;
    box-sizing: border-box;
  }
  .b-widgets__title {
    margin-left: 0;
    font-size: 31px;
  }
  .b-gallery-wrapper {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100% !important;
    height: auto !important;
  }
  .b-gallery-wrapper a {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .b-gallery-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  .b-widgets__wrapper {
    width: 100%;
  }
  .b-widgets__item {
    float: none;
    width: 100% !important;
    max-width: 520px;
    margin: 0 auto 20px !important;
  }
  .b-widgets__inst iframe {
    width: 100% !important;
    margin-left: 0;
  }
  .b-contacts-map,
  .b-contacts__col_right {
    float: none;
    box-sizing: border-box;
    width: 100%;
    padding-right: 0;
  }
  .b-contacts-map #map,
  .b-contacts-map #map > ymaps,
  .b-contacts-map iframe {
    width: 100% !important;
    max-width: 100%;
  }
  .b-contacts__socials {
    width: auto;
    margin: 28px 0 36px;
  }
  .b-contacts__col_right h2 {
    font-size: 36px;
    line-height: 46px;
  }
  .b-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b-projects__item {
    height: 300px;
  }
  .b-projects__item_text {
    height: 220px;
    padding: 48px 24px 32px;
    font-size: 48px;
    line-height: 56px;
  }
  .b-footer-wrapper {
    height: 170px;
    background-size: auto 170px;
  }
  .b-footer {
    padding-top: 62px;
  }
}

@media (max-width: 640px) {
  .l-body-wrapper,
  .b-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .b-main-wrapper { padding-bottom: 190px; }
  .b-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "contacts"
      "nav";
    gap: 12px;
    padding: 16px 14px 14px;
    text-align: center;
  }
  .b-logo {
    justify-self: center;
  }
  .b-logo img {
    width: min(230px, 78vw);
  }
  .b-header__contacts {
    text-align: center;
  }
  .b-header__contacts-phone {
    font-size: 26px;
  }
  .b-header__contacts p {
    font-size: 13px;
    line-height: 16px;
  }
  .b-head-menu ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }
  .b-head-menu li {
    font-size: 26px;
    text-align: center;
  }
  .b-head-menu .socials {
    justify-content: center;
  }
  .g-page-title,
  .content h1 {
    padding: 28px 0 20px;
    font-size: 42px;
  }
  .content h2,
  .content h3 {
    line-height: 1.12;
  }
  .content h2 {
    font-size: 32px !important;
  }
  .content h3 {
    font-size: 30px !important;
  }
  .content p,
  .content li,
  .content span {
    max-width: 100%;
  }
  .content img[style*="float"] {
    float: none !important;
    display: block;
    margin: 12px auto 18px !important;
  }
  .b-left-menu {
    margin-top: 22px;
  }
  .b-left-menu ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .b-left-menu li {
    font-size: 20px;
  }
  .b-left-menu a,
  .b-left-menu span {
    box-sizing: border-box;
    width: 100%;
  }
  .b-index-slider {
    width: calc(100% + 28px);
    height: 540px;
    margin: -14px -14px 0;
  }
  .b-index-slider__slide,
  .b-index-slider__slide__text-wrapper {
    height: 360px;
  }
  .b-index-slider__slide__text-wrapper {
    padding: 0 24px;
  }
  .b-index-slider__slide__text {
    width: calc(100% - 48px);
    margin: 0 0 28px;
  }
  .b-index-slider__slide__text-title {
    font-size: 38px;
  }
  .b-index-slider__slide__text-desc {
    margin-top: 4px;
    font-size: 15px;
  }
  .b-index-slider__slide__nav {
    width: 42px;
    height: 76px;
  }
  .b-index-slider__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 42px;
  }
  .b-index-slider__tabs a {
    height: 68px;
    padding: 14px 12px 8px;
    font-size: 18px;
    line-height: 22px;
  }
  .b-widgets {
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    padding: 24px 14px 30px;
  }
  .b-widgets__title {
    font-size: 28px;
    white-space: normal;
  }
  .b-widgets__title span {
    margin: 0 10px;
  }
  .b-gallery-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .b-gallery-wrapper a {
    aspect-ratio: 1 / 1;
  }
  .b-contacts-map #map {
    height: 320px !important;
  }
  .b-contacts__socials a {
    transform: scale(.82);
    transform-origin: left top;
    margin-right: 10px;
  }
  .b-contacts__col_right h2 {
    font-size: 28px;
    line-height: 36px;
  }
  .b-contacts__col_right h2:first-of-type {
    padding-bottom: 28px;
  }
  .b-projects {
    grid-template-columns: 1fr;
  }
  .b-projects__item {
    height: 260px;
  }
  .b-projects__item_text {
    height: auto;
    min-height: 190px;
    padding: 34px 20px 28px;
    font-size: 36px;
    line-height: 42px;
  }
  .b-footer-wrapper {
    height: 180px;
  }
  .b-footer {
    padding-top: 56px;
    font-size: 13px;
    line-height: 18px;
  }
}
