html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

.wrapper {
  overflow-x: hidden;
}

nav {
  position: relative;
  justify-content: center;
}

@media (min-width: 769px) {
  nav {
    /* Header vertical position: increase/decrease this value to move logo and menu. */
    transform: translateY(26px);
  }
}

.nav__header {
  position: absolute;
  left: 0;
  flex: 0 0 auto;
}

.nav__logo img,
.footer__logo img {
  display: block;
}

.nav__links {
  margin-inline: auto;
  justify-content: center;
}

.nav__menu__btn {
  cursor: pointer;
  user-select: none;
}

.ri-menu-line::before {
  content: "\2630";
  font-style: normal;
  font-size: 28px;
  line-height: 1;
}

.ri-close-line::before {
  content: "\00d7";
  font-style: normal;
  font-size: 34px;
  line-height: 1;
}

.header__container .btn,
.download__links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header__container {
  text-align: center;
}

.header__container h1 {
  /* Hero title size: original WP value is 2.5rem; this is about 12% smaller. */
  font-size: 2.2rem;
}

.header__container .btn {
  /* Hero button centering. */
  margin-inline: auto;
}

.header__container img {
  /* Hero machine size/position. */
  max-width: min(950px, 96vw);
  height: auto;
}

.service__card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.service__card h4 {
  margin: 0;
}

.catalog__body {
  align-items: stretch;
}

.catalog__item {
  height: 100%;
  min-width: 0;
  border: 1px solid rgba(36, 82, 204, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog__item:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 82, 204, .24);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.catalog__item > .catalog__top {
  flex: 0 0 auto;
}

.catalog__item .catalog__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.catalog__item .catalog__content > .catalog__top {
  flex: 1 1 auto;
}

.catalog__name {
  line-height: 1.25;
}

.catalog__image img,
.catalog__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog__bottom {
  margin-top: auto;
  gap: 10px;
  align-items: center;
}

.catalog__price {
  white-space: nowrap;
  color: #252b33;
  font-weight: 700;
}

.catalog__button._btn {
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid #2452cc;
  border-radius: 999px;
  background: #2452cc;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  box-shadow: none;
}

.catalog__button._btn:hover {
  border-color: #1a3f9e;
  background: #1a3f9e;
  color: #fff;
}

.skay-empty {
  width: 100%;
  margin: 0;
  padding: 42px 15px;
  text-align: center;
}

.contacts.section__container {
  width: 100%;
  padding-inline: 15px;
}

.contacts__info .section__header {
  margin-bottom: 30px;
}

.contacts__map-placeholder {
  position: relative;
  display: flex;
  width: 100%;
  height: 400px;
  max-width: 100%;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 204, 0, .22), rgba(36, 82, 204, .08)),
    #f6f7fb;
  overflow: hidden;
}

.contacts__map-placeholder.is-loaded {
  display: block;
}

.contacts__map-placeholder > ymaps,
.contacts__map-placeholder.is-loaded > ymaps {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.contacts__map-fallback {
  display: flex;
  max-width: min(92%, 360px);
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  color: #42494f;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.contacts__map-fallback a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #1f3f95;
  color: #fff;
  text-decoration: none;
}

.product__slider {
  position: relative;
  overflow: hidden;
}

.product__wrapper {
  display: block;
  overflow: hidden;
  padding-bottom: 0;
}

.product__slide {
  display: none;
}

.product__slide.is-active {
  display: block;
}

.product__slide img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  display: block;
  margin-inline: auto;
}

.product__gallery-arrow {
  position: absolute;
  top: calc(50% - 42px);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: background .18s ease, transform .18s ease;
}

.product__gallery-arrow:hover {
  background: #2452cc;
  transform: translateY(-1px);
}

.product__gallery-arrow--prev {
  left: 16px;
}

.product__gallery-arrow--next {
  right: 16px;
}

.product__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.product__thumb {
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f5f7fb;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}

.product__thumb:hover,
.product__thumb.is-active {
  border-color: #2452cc;
}

.product__thumb:hover {
  transform: translateY(-1px);
}

.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product__sidebar-wrapper ._btn {
  text-decoration: none;
}

.product__description img,
.news-block__body img {
  max-width: 100%;
  height: auto;
}

.news-block__body figure {
  margin: 24px 0;
}

.news-block__body table {
  width: 100%;
  border-collapse: collapse;
}

.news-block__body th,
.news-block__body td {
  border: 1px solid rgba(66, 73, 79, .18);
  padding: 10px 12px;
  vertical-align: top;
}

.skay-back-link,
.skay-views {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 8px;
}

.skay-views svg {
  width: 16px;
  height: 16px;
}

.news-card__thumb {
  display: block;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 34px 0 10px;
}

.pagination a {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(66, 73, 79, .22);
  color: inherit;
  text-decoration: none;
}

.pagination a.active,
.pagination a:hover {
  background: #ffcc00;
  border-color: #ffcc00;
}

.footer__bottom {
  justify-content: center;
}

@media (max-width: 768px) {
  nav {
    justify-content: space-between;
    padding-inline: 16px;
  }

  .nav__header {
    position: static;
  }

  .header__container h1 {
    font-size: 1.44rem;
    line-height: 1.2;
  }

  .nav__links {
    margin-left: 0;
  }

  .header__container img {
    max-width: min(96vw, 100%);
  }

  .catalog__price {
    white-space: normal;
  }

  .contacts__map-placeholder {
    height: 320px;
    min-height: 320px;
  }

  .contacts__map-placeholder.is-fallback {
    height: auto;
    min-height: 0;
    padding: 20px 0;
    background: transparent;
  }

  .contacts__map-placeholder.is-fallback .contacts__map-fallback {
    width: min(100%, 360px);
    max-width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .contacts__map-placeholder.is-fallback .contacts__map-fallback a {
    width: 100%;
    min-height: 50px;
  }

  .catalog__item .catalog__content {
    padding: 18px;
  }

  .catalog__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog__button._btn {
    width: 100%;
  }

  .product__top {
    gap: 24px;
  }

  .product__gallery-arrow {
    top: calc(50% - 56px);
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .product__gallery-arrow--prev {
    left: 10px;
  }

  .product__gallery-arrow--next {
    right: 10px;
  }

  .product__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  }

  .product__thumb {
    height: 60px;
  }

  .download__container {
    gap: 20px;
  }

  .gtt-float-widget {
    bottom: 78px;
  }
}

@media (max-width: 480px) {
  .contacts__map-placeholder {
    height: 300px;
    min-height: 300px;
  }
}
