.banner {
  background-color: #F0F0F0;
  background-image: url(../pic/banner.png);
  background-repeat: no-repeat;
  background-position: right bottom;
  height: 715px;
  display: flex;
  align-items: center;
}

.banner__image {
  display: none;
}

.banner__text {
  max-width: 572px;
}

.banner__title {
  margin-bottom: 32px;
}

.banner__description {
  margin-bottom: 64px;
}

.banner__btn {
  width: 100%;
  max-width: 513px;
}

/* numbers */

.numbers {
  display: flex;
  justify-content: space-between;
}

.numbers-item {
  width: 375px;
}

.numbers-item__title {
  font-weight: 700;
  font-size: 64px;
  line-height: 100%;
  color: var(--amega-primary-color, #DB1F35);
  margin-bottom: 24px;
}

.numbers-item__title > span {
  font-size: 48px;
}

.numbers-liner {
  margin: 0 20px;
  width: 1px;
  background: #E3E4E5;
}

/* cards */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.cards-item {
  background: #FCFCFC;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: 0.1s background-color;
}

.cards-item:hover {
  color: #F5F5F5;
  background: var(--amega-primary-color, #DB1F35);
}

.cards-item:nth-child(4),
.cards-item:nth-child(8) {
  color: #FCFCFC;
  background: var(--amega-primary-color, #DB1F35);
}

.cards-item:nth-child(4) a,
.cards-item:nth-child(8) a {
  color: #FCFCFC;
}

.cards-item:hover a {
  color: #FCFCFC;
}

.cards-item__title {
  font-size: 18px;
  line-height: 150%;
}

.cards-item__link {
  font-size: 16px;
}

/* partners */

.partners-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.partners-item {
  background: #F0F0F0;
  padding: 54px 74px;
  text-align: center;
}

.partners-item:nth-child(4) {
  background-image: url(../pic/partner.png);
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
}

.partners-item__image {
  margin-bottom: 16px;
}

.partners-item__title {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #C5C5C5;
}

/* showroom */

.showroom {
  display: grid;
  grid-template-columns: auto 512px;
  gap: 40px;
}

.showroom-slider {
  max-width: 1067px;
}

.showroom-nav {
  z-index: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 24px;
  right: 24px;
  width: calc(100% - 48px);
  display: flex;
  justify-content: space-between;
}

.showroom-pagination.swiper-pagination-bullets {
  bottom: 24px;
  z-index: 1;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showroom-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: 1;
  background: #D7D8D8;
}

.showroom-pagination.swiper-pagination-bullets .swiper-pagination-bullet-active {
  width: 10px;
  height: 10px;
}

.showroom-info {
  display: flex;
  flex-direction: column;
}

.showroom-info__address {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #C5C5C5;
}

.showroom-info__text {
  flex: 1;
}

.showroom-info__btn {
  max-width: 324px;
}

/* news */

.news-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.news-tabs__button {
  padding: 12px 24px;
  display: block;
  border: 1px solid #E3E4E5;
  background: #FCFCFC;
  border-radius: 4px;
}

.news-tabs__button.active {
  background: #C5C5C5;
  border: 1px solid #E3E4E5;
}

.tab-body {
  display: none;
}

.tab-body.active {
  display: block;
}

.news {
  display: flex;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid #E3E4E5;
}

.news:not(:last-child) {
  margin-bottom: 24px;
}

.news-date {
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-right: 50px;
}

.news-date > svg {
  flex: 0 0 24px;
}

.news-date__time {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-image {
  margin-right: 40px;
}

.news-image__date {
  display: none;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.news-image__date > span {
  display: block;
  margin-left: 8px;
}

.news-image {
  max-width: 514px;
}

.news-image img {
  max-width: 100%;
}

.news-preview {
  max-width: 651px;
  margin-right: 20px;
}

.news-preview__title {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E3E4E5;
}

.news-link {
  margin-left: auto;
  font-size: 16px;
}

.news-show {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.news-show > a {
  width: 237px;
}

/* project */

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.project-image img {
  max-width: 100%
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-info__title {
  margin-bottom: 24px;
}

.project-info__text {
  flex: 1;
}

.project-info__btn a {
  width: 237px;
}

@media (max-width: 1684px) {
  .banner__btn {
    max-width: 413px;
  }

  .numbers-item__title {
    font-size: 48px;
  }

  .numbers-item {
    width: 305px;
  }

  .numbers-item__title > span {
    font-size: 32px;
  }

  .numbers-liner {
    margin: 0 10px;
  }

  .cards, .partners-list {
    gap: 40px 20px;
  }

  .partners-item {
    padding: 24px;
  }

  .showroom {
    grid-template-columns: auto 413px;
    gap: 20px;
  }

  .news-date {
    margin-right: 20px;
  }

  .news-image {
    margin-right: 20px;
    max-width: 414px;
  }

  .news-preview {
    max-width: 521px;
  }

  .social-links {
    gap: 20px;
  }

  .social-links a {
    height: 244px;
  }

  .project {
    gap: 20px;
    grid-template-columns: 522px auto;
  }

  .project-info__btn {
    justify-content: flex-start;
  }


  .project-info__btn a {
    width: 305px;
  }
}

@media (max-width: 1344px) {
  .primary-section_gray {
    padding: 40px 0;
  }

  .banner {
    height: 389px;
    background-image: url(../pic/banner-tablet.png);
  }

  .banner__text {
    max-width: 442px;
  }

  .banner__title {
    margin-bottom: 20px;
  }

  .banner__title br {
    display: none;
  }

  .banner__description {
    margin-bottom: 56px;
  }

  .banner__btn {
    max-width: 349px;
  }

  .numbers-item {
    width: 225px;
  }

  .numbers-item__title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .numbers-item__title > span {
    font-size: 24px;
  }

  .cards {
    gap: 20px;
  }

  .cards-item {
    padding: 16px;
    min-height: 162px;
  }

  .cards-item__title {
    font-size: 16px;
  }

  .cards-item__link {
    font-size: 14px;
  }

  .partners-section .primary-section-title br {
    display: none;
  }

  .partners-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .partners-item {
    min-height: 276px;
    padding: 45px 71px;
  }

  .partners-item__title {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .partners-item:nth-child(1) {
    order: 1;
  }

  .partners-item:nth-child(2) {
    order: 2;
  }

  .partners-item:nth-child(4) {
    order: 3;
  }

  .partners-item:nth-child(3) {
    order: 4;
  }

  .partners-item:nth-child(5) {
    order: 4;
  }

  .partners-item:nth-child(6) {
    order: 4;
  }

  .showroom {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }

  .showroom-info__address {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .showroom-info__text {
    margin-bottom: 32px;
  }

  .showroom-info__btn {
    height: 48px;
    width: 280px;
  }

  .news-tabs__button {
    line-height: 21px;
    padding: 27px 16px;
  }

  .news-date {
    display: none;
  }

  .news-image {
    max-width: 225px;
  }

  .news-image__date {
    display: flex;
  }

  .news-preview {
    max-width: 470px;
  }

  .news-preview__title {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .news-tabs {
    gap: 20px;
  }

  .news-tabs__button {
    padding: 12px 16px;
  }

  .news-show {
    justify-content: flex-start;
  }

  .news-link {
    font-size: 14px;
  }

  .social-text {
    margin-bottom: 20px;
  }

  .social-links {
    grid-template-columns: 1fr 1fr;
  }

  .social-links a {
    height: 276px;
  }

  .social-links a:nth-child(3) {
    grid-column: 1 / 3;
  }

  .project {
    grid-template-columns: 1fr 1fr;
  }

  .project-info__title {
    margin-bottom: 20px;
  }
}

@media (max-width: 1023px) {
  .banner {
    height: 400px;
  }

  .banner__text {
    max-width: 369px;
  }

  .banner__description {
    margin-bottom: 40px;
  }

  .banner__btn {
    max-width: 309px;
  }

  .numbers-item {
    width: 169px;
  }

  .numbers-item__title {
    font-size: 24px;
  }

  .numbers-item__title > span {
    font-size: 20px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .partners-item {
    min-height: 258px;
    padding: 16px 44px;
  }

  .partners-item:nth-child(4) {
    background-image: url(../pic/partner-min.png);
  }

  .partners-item:nth-child(6) br {
    display: none;
  }

  .showroom {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .news-image {
    max-width: 189px;
  }

  .news-preview {
    max-width: 358px;
  }

  .news-preview__text {
    line-clamp: 3;
    -webkit-line-clamp: 3;
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .social-links a {
    height: 212px;
    gap: 20px;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-info__text {
    margin-bottom: 32px;
  }

  .project-info__btn a {
    width: 225px;
  }
}

@media (max-width: 767px) {
  .banner {
    height: auto;
    align-items: flex-start;
    padding: 32px 0;
    background-image: none;
  }

  .banner__text {
    max-width: 100%;
  }

  .banner__description {
    margin-bottom: 32px;
  }

  .banner__image {
    display: block;
    margin: 0 auto 32px;
  }

  .banner__btn {
    max-width: 100%;
  }

  .numbers {
    display: block;
  }

  .numbers-liner {
    display: none;
  }

  .numbers-item {
    width: auto;
  }

  .numbers-item:not(:last-child) {
    margin-bottom: 24px;
  }

  .numbers-item__title {
    margin-bottom: 8px;
  }

  .numbers-item__text br {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cards-item {
    min-height: 140px;
  }

  .cards-item__title {
    font-size: 14px;
  }

  .partners-list {
    grid-template-columns: 1fr;
  }

  .partners-item {
    min-height: 242px;
  }

  .partners-item:nth-child(4) {
    order: 1;
  }

  .partners-item:nth-child(1) {
    order: 2;
  }

  .partners-item:nth-child(2) {
    order: 3;
  }

  .partners-item__title {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .showroom-nav {
    display: none;
  }

  .showroom-pagination.swiper-pagination-bullets {
    bottom: 16px;
  }

  .showroom-info__address {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .showroom-info__btn {
    max-width: 100%;
    width: 100%;
  }

  .news-tabs {
    display: grid;
    gap: 8px;
  }

  .news-tabs__button {
    line-height: 22px;
    font-size: 14px;
    text-align: left;
  }

  .news {
    display: block;
    padding-bottom: 16px;
  }

  .news:not(:last-child) {
    margin-bottom: 20px;
  }

  .news-image, .news-preview {
    max-width: 100%;
    margin-bottom: 16px;
    margin-right: 0;
  }

  .news-preview__title {
    padding-bottom: 0;
    margin-bottom: 16px;
    border-bottom: none;
  }

  .news-show > a {
    width: 100%;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .social-links a {
    height: 188px;
    gap: 16px;
  }

  .social-links a:nth-child(3) {
    grid-column: 1 / 2;
  }

  .project {
    gap: 16px;
  }

  .project-info__title {
    margin-bottom: 8px;
  }

  .project-info__btn a {
    width: 100%;
  }

  .base-slider-nav {
    gap: 8px;
  }
}