

/* Start:/local/templates/.default/styles/personalization.css?178757836126850*/
/* ========== ОСНОВНЫЕ СТИЛИ ========== */
.materials-base {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

.header-note {
  padding-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 40px;
}

/* ========== ОГЛАВЛЕНИЕ ========== */
.base-title {
  font-size: 38px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.toc-section {
  margin-bottom: 60px;
}

/* Меню-оглавление вкладок */
.toc-group {
  margin-bottom: 50px;
  display: none;
}

.toc-group--visible {
  display: block;
}

.toc-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #ff4b4b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toc-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: #fff;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.toc-item:hover {
  background: #ff4b4b;
  color: white;
  box-shadow: 0 6px 24px rgba(255, 75, 75, 0.6);
  transform: translateY(-2px);
}

/* ========== ЗАГОЛОВКИ ========== */
.category-title {
  background: #ff4b4b;
  width: fit-content;
  border-radius: 10px;
  padding: 10px 30px;
  font-size: 28px;
  color: #fff;
  text-transform: uppercase;
  margin: 40px 0 30px 0;
}

.section-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #ff4b4b;
}

.section-title {
  font-size: 28px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

.red-title {
  color: #ff4b4b;
}

.subheading {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 30px 0 15px 0;
}

/* ========== БЛОКИ ========== */
.material-section {
  margin-bottom: 50px;
  scroll-margin-top: 90px;
}

/* ========== ЦИТАТЫ ========== */
blockquote {
  text-align: justify;
  font-style: italic;
  background: #f8f9fa;
  padding: 20px 25px;
  border-left: 4px solid #ff4b4b;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  position: relative;
}

blockquote::before,
blockquote::after {
  display: none !important;
  content: none !important;
}

.info-blockquote {
  margin: 20px 0;
}

/* ========== НУМЕРОВАННЫЕ СПИСКИ ========== */
.numbered-list {
  counter-reset: num;
  list-style: none;
  padding-left: 48px;
  margin: 20px 0;
}

.numbered-list > li {
  position: relative;
  margin-bottom: 16px;
  line-height: 1.6;
  color: #555;
  padding-left: 10px;
}

.numbered-list > li:before {
  content: counter(num);
  counter-increment: num;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: -38px;
  width: 28px;
  height: 28px;
  background: #ff4b4b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
}


/* Вложенные списки внутри пунктов */
.numbered-list ul {
  list-style: disc;
  margin: 10px 0;
  padding-left: 20px;
}

.numbered-list ul ul {
  list-style: circle;
  margin: 5px 0;
}

.numbered-list ul li {
  margin-bottom: 6px;
  padding-left: 0;
  color: #555;
}

/* Убираем красные кружки у вложенных li */
.numbered-list ul li:before,
.numbered-list ul ul li:before {
  display: none;
}

/* ========== ОБЫЧНЫЕ СПИСКИ ========== */
.simple-list {
  margin: 15px 0;
  padding-left: 20px;
}

.simple-list li {
  margin-bottom: 8px;
}

/* ========== ТЕКСТ ========== */
.bold {
  font-weight: 700;
  color: #333;
}

.bolder {
  font-weight: 500;
  color: #333;
}

.red {
  color: #ff4b4b;
  font-weight: 600;
}

/* ========== ИЗОБРАЖЕНИЯ ========== */
.image-center {
  text-align: center;
  margin: 30px 0;
}

.image-center img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ========== ИНФОРМАЦИОННЫЕ БЛОКИ ========== */
.info-content {
  padding: 0;
}

.info-list {
  margin: 0;
  padding-left: 20px;
}

.info-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #555;
}

.info-list li:last-child {
  margin-bottom: 0;
}

.requirements-box {
  background: #f8f9fa;
  padding: 20px 30px;
  border-radius: 12px;
  margin: 20px 0;
}

/* ========== ПРЕДУПРЕЖДЕНИЯ ========== */
.warning-blockquote {
  margin: 25px 0;
}

.warning-blockquote blockquote {
  background: #f8f9fa;
}

.warning-blockquote blockquote .red-badge {
  background: #ff4b4b;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  max-width: 100%;
  font-weight: 700;
  font-style: normal;
  margin-right: 8px;
  margin-bottom: 5px;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.4;
}

.warning-blockquote blockquote .red-text {
  color: #ff4b4b;
  font-weight: 600;
  font-style: italic;
  background: none;
  padding: 0;
  display: inline;
}

.warning-blockquote blockquote .indent {
  display: inline-block;
  margin-top: 5px;
  font-style: italic;
  color: #555;
}

.warning-blockquote+.two-columns,
.warning-blockquote+.image-center {
  margin-top: 20px;
}

/* ========== ДВЕ КОЛОНКИ ========== */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.column {
  text-align: center;
}

.caption-gray {
  background: #e9ecef;
  padding: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  border-radius: 8px;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.advantages-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 30px;
  border-radius: 12px;
  margin: 20px 0;
}

.advantages-list {
  margin: 0;
  padding: 0;
}

.advantage-item {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
  color: #555;
}

.advantage-item:before {
  content: "✓";
  color: #ff4b4b;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* ========== ГАЛЕРЕЯ ========== */
.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.gallery-container {
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  flex: 1;
  scrollbar-width: none; /* Скрываем скроллбар в Firefox */
  -webkit-overflow-scrolling: touch;
}

.gallery-container::-webkit-scrollbar {
  display: none; /* Скрываем скроллбар в Chrome/Safari/Edge */
}

.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  align-items: flex-start;
}

.gallery-item {
  display: block;
  flex-shrink: 0;
  width: calc((100vw - 140px) / 5 - 16px);
  min-width: 200px;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  background: #f5f5f5;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.scroll-btn {
  background: #ff4b4b;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.scroll-btn:hover {
  background: #e63946;
  transform: scale(1.05);
}

/* ========== АДАПТИВ ГАЛЕРЕИ ========== */
@media (max-width: 1200px) {
  .gallery-item {
    width: calc((100vw - 120px) / 4 - 15px);
    min-width: 180px;
  }
}

@media (max-width: 992px) {
  .gallery-item {
    width: calc((100vw - 100px) / 3 - 14px);
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .gallery-wrapper {
    gap: 10px;
  }
  
  .gallery-track {
    gap: 12px;
  }
  
  .gallery-item {
    width: calc((100vw - 80px) / 2 - 10px);
    min-width: 140px;
  }
  
  .gallery-item img {
    height: auto;
    max-height: none;
  }
  
  .scroll-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .gallery-wrapper {
    gap: 8px;
  }
  
  .gallery-track {
    gap: 10px;
  }
  
  .gallery-item {
    width: calc(100vw - 90px);
    min-width: 200px;
  }
  
  .gallery-item img {
    height: auto;
    max-height: none;
  }
  
  .scroll-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  cursor: pointer;
  -webkit-overflow-scrolling: touch;
}

.modal-content {
  position: relative;
  z-index: 1000000;
  width: 90%;
  max-width: 90%;
  height: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding: 15px;
  background: transparent;
  cursor: default;
}

.modal-image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: opacity 0.2s ease;
}

.modal-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  flex-shrink: 1;
  min-height: 200px; /* Минимальная высота для контейнера */
}

.modal-caption {
  margin-top: 15px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
  line-height: 1.4;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1000001;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #ff4b4b;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 75, 75, 0.9);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000001;
}

.modal-prev:hover,
.modal-next:hover {
  background: #ff4b4b;
  transform: translateY(-50%) scale(1.05);
}

.modal-prev {
  left: 10px;
}

.modal-next {
  right: 10px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
  .gallery-item {
    width: calc((100vw - 120px) / 4 - 15px);
  }
}

@media (max-width: 992px) {
  .two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item {
    width: calc((100vw - 100px) / 3 - 14px);
  }
}

@media (max-width: 768px){
	.section-header {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0;
  }

  .materials-base {
    padding: 0 16px;
  }

  .base-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .toc-item {
    padding: 10px 16px;
    font-size: 14px;
  }

  .category-title {
    font-size: 22px;
    padding: 8px 20px;
  }

  .section-title {
    font-size: 22px;
  }

  .gallery-item img {
    height: 150px;
  }

  .numbered-list {
    padding-left: 38px;
  }

  .numbered-list li:before {
    width: 24px;
    height: 24px;
    line-height: 23px;
    font-size: 12px;
    left: -32px;
  }

  .gallery-item {
    width: calc((100vw - 80px) / 2 - 10px);
    min-width: 180px;
  }

  .modal-content {
    width: 95%;
    max-width: 95%;
    padding: 10px;
  }

  .modal-image {
    max-height: 60vh;
  }

  .modal-caption {
    font-size: 12px;
    padding: 8px 12px;
    margin-top: 10px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .modal-prev,
  .modal-next {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .modal-prev {
    left: 5px;
  }

  .modal-next {
    right: 5px;
  }

  .warning-blockquote blockquote .red-badge {
    padding: 4px 10px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .gallery-item {
    width: calc(100vw - 100px);
    min-width: 250px;
  }

  .gallery-item img {
    height: auto;
    max-height: none;
  }

  .scroll-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .gallery-wrapper {
    gap: 8px;
  }

  .modal-image {
    max-height: 50vh;
  }

  .modal-caption {
    font-size: 11px;
    padding: 6px 10px;
  }

  .modal-close {
    width: 32px;
    height: 32px;
    font-size: 24px;
    top: 8px;
    right: 8px;
  }

  .modal-prev,
  .modal-next {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .warning-blockquote blockquote .red-badge {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
    padding: 6px 12px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .toc-list {
    flex-direction: column;
    align-items: stretch;
  }

  .toc-item {
    justify-content: center;
  }
}

/* Навигация по вкладкам */
.tab-panel {
  position: sticky;
  top: 88px;
  z-index: 1000;
  background: #fff;
  padding: 15px 0;
}

.tab-panel__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.tab-panel__label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  padding: 10px 20px;
  background: #fff;
  border-radius: 25px;
  border: 0px solid #ccc;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: linear-gradient(135deg, #ff4b4b, #e63946);
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 75, 75, 0.6);
  transform: translateY(-2px);
}

.tab-btn.active-btn {
  background: #ff4b4b;
  color: #fff;
  border-radius: 25px;
}

/* Блоки вкладок */
.tab-block {
  display: none;
}

.tab-block--visible {
  display: block;
}

/* Адаптивность панели */
@media (max-width: 768px) {
  .tab-panel {
    top: 52px;
  }

  .tab-panel__label {
    display: none;
  }

  .tab-panel__inner {
    padding: 0 16px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

/* ========== КАРТОЧКИ ТОВАРОВ ========== */
.product-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.product-home-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-home-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-home-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.product-home-item .text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-home-item .title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.product-home-item .desc ul {
  margin: 0 0 15px 0;
  text-align: left;
}

.product-home-item .desc li {
  padding: 4px 0;
  color: #666;
  font-size: 0.9rem;
  margin: 0;           /* ← ВОТ СЮДА */
}

.product-home-item .button {
  margin-top: auto;
}

.product-home-item .button a {
  display: inline-block;
  padding: 8px 24px;
  background: #ff4b4b;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.product-home-item .button a:hover {
  background: #e63946;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* ========== АДАПТИВНОСТЬ КАРТОЧЕК ========== */
@media (max-width: 992px) {
  .product-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .product-home {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-home-item {
    padding: 16px;
  }
}

/* ========== АДАПТИВНОСТЬ КАРТОЧЕК ========== */
@media (max-width: 992px) {
  .product-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .product-home {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-home-item {
    padding: 16px;
  }
}

/* ========== ГАЛЕРЕЯ ИЗОБРАЖЕНИЙ С ОБЩЕЙ ПОДПИСЬЮ ========== */
.gallery_img {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.gallery-item-static {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-static:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item-static img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery_img + .gallery-caption {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ff4b4b;
  margin-top: 15px;
  line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 992px) {
  .gallery_img {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery_img {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Выпадающий список для мобильных */
.tab-panel-mobile {
    display: none;
    margin-bottom: 20px;
}

.tab-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ff4b4b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    transition: all 0.3s ease;
}

.tab-select:focus {
    outline: none;
    border-color: #ff4b4b;
    box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.1);
}

/* Скрываем кнопки на мобильных, показываем select */
@media (max-width: 768px) {
    .tab-panel {
        display: none;
    }
    .tab-panel-mobile {
        display: block;
    }
}

/* Планшеты - показываем кнопки, но уменьшаем */
@media (min-width: 769px) and (max-width: 1200px) {
    .tab-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

.corp-packaging__layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    margin-top: 30px;
}

.corp-packaging__visual {
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    background: rgb(248, 249, 250);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.corp-packaging__title {
    font-size: 28px;
    font-weight: 500;
    color: rgb(51, 51, 51);
    margin: 0px 0px 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgb(255, 75, 75);
    display: inline-block;
}

.advantages-box {
    background: linear-gradient(135deg, rgb(248, 249, 250) 0%, rgb(233, 236, 239) 100%);
    padding: 20px 30px;
    border-radius: 12px;
    margin: 20px 0px;
}

.advantages-list {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.advantage-item {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
    color: rgb(85, 85, 85);
}

.materials-base .advantage-item::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgb(255, 75, 75);
    box-shadow: rgba(255, 75, 75, 0.1) 0px 0px 0px 5px;
    transform: none;
    font-weight: normal;
    font-size: inherit;
    color: transparent;
}

/* ========== ГАЛЕРЕЯ ШАБЛОНОВ (НОВАЯ ВЁРСТКА) ========== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 15px 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-logo {
    height: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-logo img {
    max-height: 40px;
    width: auto;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    min-height: 40px;
    line-height: 1.3;
}

.card-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    width: 100%;
}

.card-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-desc li {
    padding: 3px 0;
    list-style: none;
}

.btn-download {
    display: inline-block;
    background: #f04e4e;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.btn-download:hover {
    background: #d63b3b;
    color: #fff;
    transform: scale(1.04);
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .card {
        padding: 20px 15px;
    }
}

/* ==========================================================
   COMMON GALLERY LIGHTBOX
   Used by:
   - /delivery/ gallery
   - pages/components that use .materials-lightbox*
   Markup expected:
   .materials-lightbox
     .materials-lightbox__inner
       .materials-lightbox__close
       .materials-lightbox__prev
       .materials-lightbox__next
       .materials-lightbox__img
       .materials-lightbox__caption
   ========================================================== */

.materials-lightbox[hidden] {
    display: none !important;
}

.materials-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;

    display: none;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    padding: 16px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, .78);
    overflow: hidden;
}

.materials-lightbox.is-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/*
    width: min(585px, 100%) !important;
*/
.materials-lightbox__inner {
    position: relative;

    width: auto !important;
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.materials-lightbox__img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);

    object-fit: contain;

    border-radius: 12px;
    background: #fff;
}

.materials-lightbox__caption {
    width: 100%;
    margin-top: 12px;
    padding: 14px 18px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, .45);
    border-radius: 14px;

    color: #fff;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}

.materials-lightbox__caption:empty {
    display: none;
}

.materials-lightbox__caption .materials-color-main,
.materials-lightbox__caption .materials-color-article {
    display: block;
    color: #fff;
    font-size: 1.2rem;
}

.materials-lightbox__close,
.materials-lightbox__prev,
.materials-lightbox__next {
    position: absolute;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;

    background: rgba(34, 34, 34, .92);
    color: #fff;

    font-family: Arial, sans-serif;
    font-weight: 400;
    text-align: center;

    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.materials-lightbox__close {
    top: 8px;
    right: 8px;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    font-size: 32px;
    line-height: 44px;
}

.materials-lightbox__prev,
.materials-lightbox__next {
    top: 50%;

    width: 50px;
    height: 50px;

    border-radius: 50%;
    font-size: 46px;
    line-height: 50px;

    transform: translateY(-50%);
}

.materials-lightbox__prev {
    left: 12px;
    padding-right: 4px;
    padding-bottom: 5px;
}

.materials-lightbox__next {
    right: 12px;
    padding-left: 4px;
    padding-bottom: 5px;
}

@media (max-width: 768px) {
    .materials-lightbox {
        padding: 12px;
    }

    .materials-lightbox__inner {
        width: 100% !important;
        max-width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .materials-lightbox__img {
        max-width: 100%;
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
    }

    .materials-lightbox__caption {
        padding: 12px 14px 5px;
        font-size: 14px;
    }

    .materials-lightbox__prev,
    .materials-lightbox__next {
        width: 50px;
        height: 50px;
        font-size: 36px;
        line-height: 50px;
    }

    .materials-lightbox__close {
        width: 42px;
        height: 42px;
        font-size: 30px;
        line-height: 42px;
    }
}

/* End */
/* /local/templates/.default/styles/personalization.css?178757836126850 */
