.showroom-block {
  margin-block: 0;
}

.showroom-block,
.showroom-block * {
  box-sizing: border-box;
}

.showroom-block__title {
  color: var(--white_text_black, #171a1c);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
  border-bottom: none;
}

.showroom-card {
  display: grid;
  grid-template-columns: minmax(0, 798fr) minmax(430px, 576fr);
  gap: 0;
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-inline: auto;
  padding: 0;
  border-radius: 20px;
  background: #f2f7fa;
}

.showroom-gallery {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #dfe8ed;
  outline: none;
}

.showroom-gallery:focus-visible {
  box-shadow: inset 0 0 0 3px var(--theme-base-color, #00a9e0);
}

.showroom-gallery__slides,
.showroom-gallery__slide {
  width: 100%;
  height: 100%;
}

.showroom-gallery__slide[hidden] {
  display: none;
}

.showroom-gallery__media-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.showroom-gallery__media-link--image {
  cursor: zoom-in;
}

.showroom-gallery__media-link--video {
  cursor: pointer;
}

.showroom-gallery__media-link:focus-visible {
  outline: 3px solid var(--theme-base-color, #00a9e0);
  outline-offset: -3px;
}

.showroom-gallery__image,
.showroom-gallery__video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.showroom-gallery__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--theme-base-color, #00a9e0);
  color: #fff;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease;
}

.showroom-gallery__play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  fill: currentColor;
}

.showroom-gallery__media-link--video:hover .showroom-gallery__play,
.showroom-gallery__media-link--video:focus-visible .showroom-gallery__play {
  background: var(--theme-base-color-hover, #0798cc);
  transform: translate(-50%, -50%) scale(1.08);
}

.showroom-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--theme-base-color, #00a9e0);
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.showroom-gallery__arrow:hover,
.showroom-gallery__arrow:focus-visible {
  box-shadow: 0 8px 24px rgba(23, 26, 28, .16);
  transform: translateY(-50%) scale(1.04);
}

.showroom-gallery__arrow svg {
  width: 9px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.showroom-gallery__arrow--prev {
  left: 18px;
}

.showroom-gallery__arrow--next {
  right: 18px;
}

.showroom-gallery__pagination {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 18px;
  background: rgba(57, 65, 69, .35);
  transform: translateX(-50%);
}

.showroom-gallery__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.showroom-gallery__dot.is-active {
  width: 18px;
  border-radius: 8px;
  background: #fff;
}

.showroom-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px 18px 14px 20px;
}

.showroom-benefits {
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
}

.showroom-benefit {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.showroom-benefit__illustration {
  display: grid;
  width: 64px;
  height: 56px;
  place-items: center;
}

.showroom-benefit__illustration :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.showroom-benefit__title {
  color: #171a1c;
  font-weight: 700;
  line-height: 1.25;
}

.showroom-benefit__text {
  margin-top: 3px;
  color: #6d7a83;
  line-height: 1.35;
}

.showroom-card__contacts {
  display: grid;
  gap: 12px;
  margin: 24px 0 12px;
}

.showroom-contact {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  color: #171a1c;
  line-height: 1.3;
}

.showroom-contact__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.showroom-contact a {
  color: inherit;
  text-decoration: none;
}

.showroom-card__actions {
  display: flex;
  grid-template-columns: minmax(115px, .8fr) minmax(170px, 1.2fr);
  gap: 10px;
  margin-top: auto;
}

.showroom-card__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 30px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.showroom-card__button:hover,
.showroom-card__button:focus-visible {
  transform: translateY(-1px);
}

.showroom-card__button--primary {
  background: var(--theme-base-color, #00a9e0);
  color: #fff !important;
}

.showroom-card__button--primary:hover,
.showroom-card__button--primary:focus-visible {
  background: var(--theme-base-color-hover, #0798cc);
}

.showroom-card__button--primary svg {
  width: 7px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.showroom-card__button--route {
  background: #fff;
  color: #397da4 !important;
}

.showroom-card__button--route:hover,
.showroom-card__button--route:focus-visible {
  background: #e9f3f8;
}

.showroom-card__route-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 1100px) {
  .showroom-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
    height: auto;
    max-height: none;
  }

  .showroom-gallery {
    min-height: auto;
    height: auto;
    aspect-ratio: 1.55 / 1;
  }

  .showroom-card__content {
    padding: 0;
  }

  .showroom-benefits {
    height: auto;
  }

  .showroom-card__contacts {
    margin-inline: 4px;
  }
}

@media (max-width: 767px) {
  .showroom-block__title {
    margin-bottom: 22px;
    font-size: 26px;
  }

  .showroom-card {
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    width: calc(100% + (2 * var(--theme-page-width-padding, 16px)));
    max-width: none;
    margin-inline: calc(-1 * var(--theme-page-width-padding, 16px));
  }

  .showroom-gallery {
    border-radius: 18px;
  }

  .showroom-gallery__arrow {
    width: 46px;
    height: 46px;
  }

  .showroom-gallery__arrow--prev {
    left: 16px;
  }

  .showroom-gallery__arrow--next {
    right: 16px;
  }

  .showroom-gallery__pagination {
    display: none;
  }

  .showroom-gallery__play {
    width: 60px;
    height: 60px;
  }

  .showroom-gallery__play svg {
    width: 26px;
    height: 26px;
  }

  .showroom-benefits {
    gap: 20px;
    padding: 24px;
  }

  .showroom-benefit {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
  }

  .showroom-benefit__illustration {
    width: 86px;
    height: 76px;
  }

  .showroom-benefit__title {
    font-size: 18px;
  }

  .showroom-benefit__text {
    font-size: 16px;
    line-height: 1.45;
  }

  .showroom-card__contacts {
    gap: 16px;
    margin-block: 24px;
  }
}

@media (max-width: 575px) {
  .showroom-card {
    gap: 20px;
    padding: 16px;
    border-radius: 0;
  }

  .showroom-gallery__arrow {
    width: 42px;
    height: 42px;
  }

  .showroom-gallery__arrow--prev {
    left: 12px;
  }

  .showroom-gallery__arrow--next {
    right: 12px;
  }

  .showroom-benefits {
    gap: 18px;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .showroom-benefit {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 13px;
  }

  .showroom-benefit__illustration {
    width: 72px;
    height: 64px;
  }

  .showroom-benefit__title {
    font-size: 16px;
  }

  .showroom-benefit__text {
    font-size: 14px;
  }

  .showroom-contact {
    gap: 10px;
    font-size: 15px;
  }

  .showroom-card__actions {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 8px;
  }

  .showroom-card__button {
    min-height: 44px;
    font-size: 15px;
    padding: 8px 15px;
  }
}

@media (max-width: 359px) {
  .showroom-card__actions {
    grid-template-columns: 1fr;
  }
}
