/* Joomla 6 compatibility layer for the legacy Premiks frontend markup. */

.premiks6-j6 .skip-link,
.premiks6-j6 .site-header,
.premiks6-j6 .site-footer,
.premiks6-j6 .content-band,
.premiks6-j6 .modal-shell {
  all: unset;
}

.premiks6-j6 .moduletable {
  margin: 0;
}

.premiks6-j6 .com-content-article,
.premiks6-j6 .item-page {
  width: min(100% - 32px, 1180px);
  margin: 20px auto 40px;
}

.premiks6-j6 .com-content-article img,
.premiks6-j6 .item-page img {
  max-width: 100%;
  height: auto;
}

.premiks6-j6 .blog,
.premiks6-j6 .com-content-category-blog {
  width: min(100% - 32px, 1180px);
  margin: 30px auto 60px;
}

.premiks6-j6 .blog-items,
.premiks6-j6 .com-content-category-blog__items {
  display: grid;
  gap: 22px;
}

.premiks6-j6 .blog-item,
.premiks6-j6 .com-content-category-blog__item {
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e5e5;
}

.premiks6-j6 .page-header h1,
.premiks6-j6 .page-header h2 {
  margin: 0;
}

.premiks6-j6 .com-content-article > .page-header {
  display: none;
}

.premiks6-j6 .com-content-category-blog > h1 {
  margin: 0 0 48px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
}

.premiks6-j6 .com-content-category-blog__items,
.premiks6-j6 .blog-items {
  display: block;
}

.premiks6-j6 .com-content-category-blog__item,
.premiks6-j6 .blog-item {
  display: grid;
  grid-template-columns: minmax(280px, 470px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.premiks6-j6 .com-content-category-blog__item::after,
.premiks6-j6 .blog-item::after {
  display: block;
  clear: both;
  content: "";
}

.premiks6-j6 .com-content-category-blog__item .item-image,
.premiks6-j6 .blog-item .item-image {
  float: none;
  width: 100%;
  max-width: 470px;
  margin: 0;
}

.premiks6-j6 .com-content-category-blog__item .item-image img,
.premiks6-j6 .blog-item .item-image img {
  display: block;
  width: 100%;
  height: 255px;
  object-fit: cover;
}

.premiks6-j6 .com-content-category-blog__item .item-content,
.premiks6-j6 .blog-item .item-content {
  min-width: 0;
}

.premiks6-j6 .com-content-category-blog__item .item-content > .page-header,
.premiks6-j6 .blog-item .item-content > .page-header,
.premiks6-j6 .com-content-category-blog__item .readmore,
.premiks6-j6 .blog-item .readmore {
  display: none;
}

.premiks6-j6 .com-content-category-blog__item .item-content h2,
.premiks6-j6 .blog-item .item-content h2,
.premiks6-j6 .com-content-category-blog__item .item-content h3,
.premiks6-j6 .blog-item .item-content h3 {
  margin: 0 0 20px;
  color: #000;
  font-size: 32px;
  line-height: 1.16;
  font-weight: 700;
  text-transform: none;
}

.premiks6-j6 .com-content-category-blog__item .item-content p,
.premiks6-j6 .blog-item .item-content p {
  margin: 0 0 14px;
  color: #000;
  font-size: 20px;
  line-height: 1.5;
}

.premiks6-j6 .alert {
  width: min(100% - 32px, 1180px);
  margin: 16px auto;
}

.premiks6-j6 .modal:not(.is-active) {
  display: none;
}

.premiks6-j6 .modal.is-active,
.premiks6-j6 .modal.modal_active {
  display: block;
  opacity: 1;
}

.premiks6-j6 .modal.is-active .modal__content,
.premiks6-j6 .modal.modal_active .modal__content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.premiks6-j6 iframe {
  max-width: 100%;
}

.premiks6-j6 .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.premiks-lightbox-open {
  overflow: hidden;
}

.premiks-lightbox[hidden] {
  display: none;
}

.premiks-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 72px;
  background: rgba(0, 0, 0, 0.86);
}

.premiks-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(100%, 1180px);
  max-height: 100%;
  margin: 0;
}

.premiks-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.premiks-lightbox__caption {
  max-width: 100%;
  margin-top: 16px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
}

.premiks-lightbox__close,
.premiks-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(63, 85, 193, 0.95);
  cursor: pointer;
  font-size: 0;
}

.premiks-lightbox__close {
  top: 20px;
  right: 20px;
}

.premiks-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.premiks-lightbox__close::before,
.premiks-lightbox__close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 31px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: 50% 50%;
}

.premiks-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.premiks-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.premiks-lightbox__nav::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border-top: 6px solid currentColor;
  border-right: 6px solid currentColor;
  content: "";
}

.premiks-lightbox__nav--prev::before {
  transform: translate(-38%, -50%) rotate(-135deg);
}

.premiks-lightbox__nav--next::before {
  transform: translate(-62%, -50%) rotate(45deg);
}

.premiks-lightbox__nav--prev {
  left: 20px;
}

.premiks-lightbox__nav--next {
  right: 20px;
}

.premiks-lightbox__close:hover,
.premiks-lightbox__nav:hover,
.premiks-lightbox__close:focus-visible,
.premiks-lightbox__nav:focus-visible {
  background: #2f43ad;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.premiks-lead-form {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  margin: 0 auto;
  color: #111;
}

.premiks-lead-form h2 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.15;
  text-align: center;
}

.premiks-lead-form label {
  display: grid;
  gap: 7px;
  font-size: 15px;
  line-height: 1.35;
}

.premiks-lead-form input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfd5e5;
  border-radius: 4px;
  color: #111;
  background: #fff;
  font: inherit;
}

.premiks-lead-form input[type="tel"]:focus {
  border-color: #3f55b7;
  outline: 2px solid rgba(63, 85, 183, 0.18);
  outline-offset: 0;
}

.premiks-lead-form__agreement {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
}

.premiks-lead-form__agreement input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.premiks-lead-form__agreement a,
.premiks-lead-form__links a {
  color: #3f55b7;
  text-decoration: underline;
}

.premiks-lead-form__links {
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.premiks-lead-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.premiks-lead-form button[type="submit"] {
  min-height: 50px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #3f55b7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.premiks-lead-form button[type="submit"]:hover,
.premiks-lead-form button[type="submit"]:focus-visible {
  background: #2f43ad;
}

.premiks-lead-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.65;
}

.premiks-lead-form__status {
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.premiks-lead-form__status.is-success {
  color: #184d22;
  background: #e7f7ea;
}

.premiks-lead-form__status.is-error {
  color: #7a1e1e;
  background: #fde8e8;
}

@media (max-width: 767px) {
  .premiks6-j6 .com-content-article,
  .premiks6-j6 .item-page,
  .premiks6-j6 .blog,
  .premiks6-j6 .com-content-category-blog {
    width: min(100% - 20px, 1180px);
  }

  .premiks-lightbox {
    padding: 56px 14px 28px;
  }

  .premiks-lightbox__image {
    max-height: calc(100vh - 145px);
  }

  .premiks-lightbox__caption {
    font-size: 15px;
  }

  .premiks-lightbox__close,
  .premiks-lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .premiks-lightbox__close {
    top: 8px;
    right: 8px;
  }

  .premiks-lightbox__nav {
    top: auto;
    bottom: 8px;
    transform: none;
  }

  .premiks-lightbox__close::before,
  .premiks-lightbox__close::after {
    width: 25px;
    height: 4px;
  }

  .premiks-lightbox__nav::before {
    width: 17px;
    height: 17px;
    border-top-width: 5px;
    border-right-width: 5px;
  }

  .premiks-lead-form h2 {
    font-size: 23px;
  }

  .premiks6-j6 .com-content-category-blog > h1 {
    margin-bottom: 28px;
    font-size: 36px;
  }

  .premiks6-j6 .com-content-category-blog__item,
  .premiks6-j6 .blog-item {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 26px;
  }

  .premiks6-j6 .com-content-category-blog__item .item-image,
  .premiks6-j6 .blog-item .item-image {
    max-width: none;
  }

  .premiks6-j6 .com-content-category-blog__item .item-image img,
  .premiks6-j6 .blog-item .item-image img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .premiks6-j6 .com-content-category-blog__item .item-content h2,
  .premiks6-j6 .blog-item .item-content h2,
  .premiks6-j6 .com-content-category-blog__item .item-content h3,
  .premiks6-j6 .blog-item .item-content h3 {
    margin-bottom: 12px;
    font-size: 25px;
  }

  .premiks6-j6 .com-content-category-blog__item .item-content p,
  .premiks6-j6 .blog-item .item-content p {
    font-size: 17px;
    line-height: 1.45;
  }
}
