:root {
  --bs-primary-rgb: 196, 30, 34;
  --bs-link-color-rgb: 196, 30, 34;
  --bs-link-hover-color-rgb: 153, 27, 30;
  --bs-link-decoration: none;
  --bs-link-hover-color: #c41e22;
}

body {
  font-size: 16px;
  background: #F4F4F5;
  color: #09090B;
}

.modal-dialog {
  width: max-content;
}

@media(min-width: 768px) {
  #modal.modal.show {
    display: flex !important;
    align-items: center;
  }
}

[data-url] {
  cursor: pointer;
}

body, button, a, p, pre, code, textarea {
  font-family: 'Poppins', sans-serif;
}

@media (min-width: 1200px) {
  .container,
  .container-xl {
    max-width: 1680px;
  }
}

.pre-content {
  padding-top: 100px;
}

a {
  text-decoration: none;
}

h1 {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-size: 3rem;
  line-height: 3.5rem;
}

@media(max-width: 767px) {
  h1 {
    font-size: 2.25rem;
    line-height: 3rem;
  }
}

h2 {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 2.75rem;
}

@media(max-width: 767px) {
  h2 {
    font-size: 2rem;
    line-height: 2.75rem;
  }
}

h2 big {
  font-weight: 700;
  font-size: 3rem;
  line-height: 3.5rem;
}

h3 {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
}

h5 {
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.5rem;
}

footer {
  background-color: #1a1a1a;
  color: #FAFAFA;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
}

footer a {
  color: #FAFAFA;
}

footer ul {
  margin-top: 1.6rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  flex-direction: column;
}

footer .icons {
  margin-top: 1.6rem;
}

footer .logo {
  height: 38px;
}

footer .columns-grid {
  display: grid;
  grid-template-columns: auto auto auto auto max-content;
  grid-gap: 2rem;
  width: 100%;
}

footer li a:hover {
  text-decoration: underline;
}

.font-weight-bold, .text-bold {
  font-weight: bold;
}

.text-underline {
  text-decoration: underline;
}

.accordion-header {
  line-height: unset;
}

@media(max-width: 767px) {
  .text-center-mobile {
    text-align: center; 
  }

  .mb-md-0 {
    margin-bottom: 0 !important;
  }

  .btn-mobile-block {
    display: block;
    width: 100%;
  }
}

.blank {
  position: relative;
  width: 100%;
  height: 256px;
  background: #FFFCC2;
  border: 1px solid #EFBF04;
  border-radius: 24px;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 2rem;
  text-align: center;
  color: #432205;
  padding: 2rem;
  display: flex;
  align-items: center;
}

.blank img {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
}

.photo {
  object-fit: cover;
  max-width: 100%;
  height: 100%;
}

@media(max-width: 1024px) {
  footer .columns-grid {
    grid-template-columns: auto auto;
  }
}

@media(max-width: 640px) {
  footer .columns-grid {
    grid-template-columns: auto;
    text-align: center;
  }
  footer .columns-grid .d-flex {
    justify-content: center;
  }
}

.cn-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: white;
}

nav#main {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5rem;
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  grid-gap: 0.8rem;
  align-items: center;
  padding: 1.4rem 0;
}

@media (max-width: 992px) {
  .container-md, .container-sm, .container {
    max-width: 850px;
  }
}

@media(max-width: 1200px) {
  nav#main > ul:nth-child(1) {
    display: none;
  }

  nav#main {
    grid-template-columns: max-content 1fr;
  }
}

nav#main .logo-mobile {
  display: block;
}

nav#main .logo {
  display: none;
}

@media(min-width: 1024px) {
  nav#main .logo {
    display: block;
  }
  
  nav#main .logo-mobile {
    display: none;
  }
}

nav#main ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  padding-left: 1rem;
}

nav#main ul a {
  color: #09090B;
}

nav#main ul a:hover {
  text-decoration: underline;
}

nav#main .buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.categories-popup {
  position: absolute;
  z-index: 99;
  width: 500px;
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 16px;

  @media(max-width: 786px) {
    left: 30px !important;
    width: calc(100% - 60px);
  }

  input {
    background: none;
    outline: none;
    width: 100%;
    border: none;
  }

  .group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.4rem;
    border-top: 1px solid #E4E4E7;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow: hidden;
    padding-top: 10px;

    li {
      list-style-type: none;
    }
  }
}

nav#main .buttons .btn {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}

@media(max-width: 640px) {
  nav#main .buttons .btn {
    display: none;
  }
  nav#main .buttons .btn:last-child {
    display: block;
  }
}

.btn, .pagination .prev.disabled {
  flex-direction: row;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #D4D4D8;
  border-radius: 80px;
  color: #09090B;
  font-weight: 500;
  line-height: 1.5rem;
  font-size: 1rem;
}

.btn:hover {
  background: #e4e4e7;
  border-color: #b4b4bc;
}

.btn.btn-icon .icon {
  padding-right: 4.5px;
}

.btn.btn-red, .btn.btn-file {
  background: #C41E22;
  border-color: #C41E22;
  border-radius: 80px;
  color: #FAFAFA;
}

.btn.btn-red:hover, .btn.btn-file:hover {
  background: #991b1e;
  border-color: #991b1e;
}

.btn.btn-yellow {
  background: #EFBF04;
  border-color: #EFBF04;
  border-radius: 80px;
}

.btn.btn-yellow:hover {
  background: #d6ac04;
  border-color: #d6ac04;
}

.btn.btn-block {
  width: 100%;
}

.collapsable .collapsable-body {
  display: none;
}

.collapsable.show .collapsable-opener {
  rotate: 180deg;
}

.collapsable.show .collapsable-body {
  display: block;
}

.collapsable .collapsable-opener {
  cursor: pointer;
}

.card {
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 1.4rem;
}

.card .card-body {
  padding: 0;
}

.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes slideInFromRight {
  from {
    right: -500px;
  }
  to {
    right: 0px;
  }
}

.sub-menu-collapsing {
  position: fixed;
  display: none;
  top: 0;
  right: 0;
  height: 100%;
  background: white;
  max-width: 500px;
  width: 100%;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5rem;
  padding: 2rem 5rem;
  z-index: 1000;
}

.sub-menu-collapsing .shadow {
  position: absolute;
  left: -100vw;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.432);
  z-index: 999;
}

.sub-menu-collapsing .btn {
  display: block;
  margin: 24px auto;
  width: 100%;
}

.sub-menu-collapsing .btn.close-menu {
  width: max-content;
  margin: 2rem 0 2rem auto;
}

.sub-menu-collapsing ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  margin: 0;
  padding-left: 1rem;
  text-align: center;
}

.sub-menu-collapsing ul a {
  color: #09090B;
}

.sub-menu-collapsing ul a:hover {
  text-decoration: underline;
}

.sub-menu-collapsing.active {
  display: block;
  right: 0px;
  width: 500px;
  animation: slideInFromRight 0.5s ease-out forwards;
}

@media(max-width: 640px) {
  .sub-menu-collapsing.active {
    width: 100%;
    padding: 1rem 2rem;
  }
}

.custom-loader-wrapper {
  position: relative;
  width: 100%;
}

.custom-loader {
  display: none;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid transparent;
  border-top: 5px solid red;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body .modal-content {
  padding: 48px 32px;
  background: #FAFAFA;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 24px;
  position: relative;
  max-width: 550px;
}

@media(max-width: 600px) {
body .modal-content {
  max-width: calc(100vw - 16px);
}
}

body .modal-header .btn-close {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 0;
  margin: 0;
}

body .modal-content .modal-body {
  padding: 0;
}

body .modal-content .modal-header {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(100% - 20px);
  border-bottom: none;
}

@media(min-width: 992px) {
  .lg-border-radius > div:first-child {
    border-top-left-radius: 1.75rem;
    border-bottom-left-radius: 1.75rem;
  }

  .lg-border-radius > div:last-child {
    border-top-right-radius: 1.75rem;
    border-bottom-right-radius: 1.75rem;
  }
}

body .accordion-item {
  padding: 12px 16px;
  border-radius: 24px !important;
  margin: 1rem 0;
  border: none !important;
}

body .bg-white .accordion-item {
  background: #F4F4F5;
}

body .accordion-item .accordion-button {
  background-color: transparent !important;
  padding: 0;
  height: 30px;
}

.header-margin {
  margin-top: 32px;
}

@media(max-width: 786px) {
  .header-margin {
    margin-top: 16px;
  }
}

.half-header-margin {
  margin-top: 16px;
}

@media(max-width: 786px) {
  .half-header-margin {
    margin-top: 8px;
  }
  .cards-contacts-tabs {
    margin-top: -8px !important;
    padding: 0 16px !important;
  }
  .cards-contacts-tabs .accordion-header button {
    height: unset;
  }
}


body .accordion-item .accordion-button:not(.collapsed) {
  background-color: transparent !important;
  color: #09090B !important;
}

body .accordion-item .accordion-body {
  padding: 1rem 0 0 0;
}

.flashes {
  position: fixed;
  left: 50%;
  top: 14%;
  transform: translate(-50%, -10%);
  max-width: 100%;
  z-index: 1000;
}

.flashes .item {
  position: relative;
  font-size: 20px;
  background: #FAFAFA;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 24px;
  max-width: 550px;
  width: 100%;
}

.flashes .item .body {
  padding: 48px 32px;
  text-align: center;
}

.flashes .item .close-alert {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  transition: all 1s;
  background: none;
  outline: none;
  border: none;
  padding: 0;
  font-size: 28px;
  line-height: 20px;
}

.flashes .item .close-alert:hover {
  color:#C41E22;
}

.flashes .item h2 {
  color:#C41E22 !important;
}

.flashes .item img {
  position: absolute;
  top: -10%;
  left: 50%;
  background: white;
  padding: 20px;
  border-radius: 50px;
  transform: translate(-50%, -20px);
}

.site-company .header-company {
  display: block;
  min-height: 210px;
  overflow: hidden;
}

.site-company .header-company .background {
  position: absolute;
  left: 0;
  min-width: 100%;
  width: auto;
  height: 300px;
  z-index: -1;
  max-width: 100%;
}

.site-company .content-company .title {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 24px;
  gap: 24px;
  background: #FAFAFA;
  border-radius: 24px;
  min-width: 43%;
  max-width: 50vw;
  width: max-content;
}

.site-company .content-company {
  display: grid;
  grid-template-columns: auto 400px;
  grid-gap: 1rem;
}

.site-company .content-company .title .logo img {
  width: 128px;
  height: 128px;
  border-radius: 16px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.site-company .content-company .title .opinions {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0.35rem 0px;
  gap: 4px;
  color: #C41E22;
}

.site-company .content-company .title span {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #71717A;
}

.site-company .content-company .description {
  padding: 32px 24px;
  background: #FAFAFA;
  border-radius: 24px;
  margin: 1rem 0;
}

.site-company .content-company .description .offer-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  padding: 0px;
  margin: 2rem 0;
  grid-gap: 12px;
}

@media(max-width: 1240px) {
  .site-company .content-company .description .offer-blocks {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media(max-width: 640px) {
  .site-company .content-company .description .offer-blocks {
    grid-template-columns: 1fr;
  }
}

.site-company .content-company .description .offer-blocks > div {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0px 16px;
  min-height: 128px;
  background: #F4F4F5;
  border-radius: 6px;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #27272A;
}

.site-company .content-company .description .gallery-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0px;
  margin: 2rem 0;
  grid-gap: 12px;
}

@media(max-width: 1240px) {
  .site-company .content-company .description .gallery-blocks {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 640px) {
  .site-company .content-company .description .gallery-blocks {
    grid-template-columns: 1fr;
  }
}

.site-company .content-company .description .gallery-blocks > div {
  background: #FEFEFE;
  border: 1px solid #D4D4D8;
  border-radius: 16px;
  height: 250px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.site-company .content-company .description .gallery-blocks > div.center {
  grid-column: 2;
}

@media(max-width: 1240px) {
  .site-company .content-company .description .gallery-blocks > div.center {
    grid-column: unset;
  }
}

.site-company .content-company .description .gallery-blocks > div img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
}

.site-company .content-company .description .seo {
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1rem;
  color: #71717A;
  margin: 3rem 0 0 0;
}

.site-company .map-sider {
  padding: 1.5rem;
  background: #FAFAFA;
  border-radius: 1.5rem;
  position: sticky;
  top: 20px; 
  align-self: flex-start;
  max-height: 100%; 
}

.site-company .map-sider .text-icon {
  display: grid;
  grid-template-columns: 30px max-content auto;
  align-items: center;
  padding: 2px 4px 2px 0px;
  grid-gap: 6px;
  margin: 6px 0;
}

.site-company .map-sider #map, .site-company .map-sider #map-mobile {
  display: block;
  height: 250px;
  margin-bottom: 1.5rem;
}

.site-company .map-sider .collapsable-body {
  grid-column: 3 span;
}

.site-company .map-sider .text-icon a {
  color: #09090B;
  font-weight: 500;
  max-width: 300px;
}

.site-company .map-sider.mobile {
  display: none;
}

@media(max-width: 1024px) {
  .site-company .content-company {
    grid-template-columns: auto;
  }
  
  .site-company .map-sider {
    display: none;
    position: relative;
    margin-bottom: 2.5rem;
  }

  .site-company .map-sider.mobile {
    display: block;
  }

  .site-company .content-company .title {
    max-width: calc(100vw - 28px);
    width: calc(100vw - 28px);
  }
  
  .site-company .content-company .title .logo img {
    width: 80px;
    height: 80px;
  }

  .site-company .header-company {
    display: block;
    min-height: 50px;
    overflow: hidden;
  }

  .site-company .header-company .background {
    height: 200px;
  }
}


@media(max-width: 1024px) {
  .site-company .content-company .title > div:last-of-type {
    display: block;
    width: 60%;
  }

  .site-company .content-company .title > div:last-of-type span {
    width: 100%;
    display: block;
    overflow-wrap: anywhere;
  }
}

.letters-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 3px;
}

.letters-list button {
  display: block;
  box-sizing: border-box;
  margin: 0 auto;
  width: 42px;
  height: 42px;
  background: #F4F4F5;
  border: 1px solid #D4D4D8;
  border-radius: 80px;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.letters-list button.active {
  background: #c41e22;
  color: white;
}

.category-list a {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color:#09090B;
  margin: 0.5rem 0;
  display: block;
  width: 100%;
}

.category-list a.active {
  color: #C41E22;
}

.seo-category {
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1rem;
  color: #71717A;
  margin: 3rem 0 0 0;
}

.company-list p {
  margin: 0;
}

.company-list .seo-category {
  margin: 0;
}

.company-list {
  font-size: 14px;
  line-height: 20px;
}

.company-list h5 {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.company-list .company-box {
  margin-bottom: 2rem;
}

.pagination {
  display: flex;
  flex-wrap: nowrap !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 3px;
}

.pagination a {
  display: block;
  box-sizing: border-box;
  text-align: center;
  width: 42px;
  height: 42px;
  background: #F4F4F5;
  border: 1px solid #D4D4D8;
  border-radius: 80px;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 40px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pagination a.active {
  background: #c41e22;
  color: white;
}


.news-card {
  position: relative;
  background: #FAFAFA;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  height: 100%;
}

.news-card:hover {
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.09);
}

.news-card figure {
  position: relative;
  width: 100%;
  margin: 0;
  height: 225px;
  overflow: hidden;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

@media(max-width: 786px) {
  .news-card figure {
    height: 150px;
  }
}

.news-card figure img {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: 140%;
}

.news-card .news-body {
  padding: 16px 16px 32px 16px;
  font-size: 16px;
}

.news-card .news-body .desc-top p {
  margin: 0;
}

.news-card .news-body .desc-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  color: #71717A;
}

.news-card .news-body .card-text {
  margin-bottom: 16px;
}

.news-card .news-body .card-title {
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 16px;
}

.news-card .news-body .bottom-link {
  position: absolute;
  left: 16px;
  bottom: 16px;
}
