/* ==========================================================
   custom.css — правки без пересборки assets
   Подключается после application.css и перекрывает его
   ========================================================== */

/* Корзина: оплата — колонка без float (иначе блок юрлица наезжает на radio и ловит клики) */
#x-cart-content .cart_payment_radio {
  display: block !important;
  overflow: hidden;
}

#x-cart-content .cart_payment_radio::after {
  content: "";
  display: block;
  clear: both;
}

#x-cart-content .cart_payment_radio > * {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  position: relative !important;
  z-index: auto;
}

#x-cart-content .cart_payment_radio_item {
  display: block !important;
}

#x-cart-content .cart_payment_radio_item[data-office-payment="1"] {
  display: none !important;
}

/* Поля «Физ./Юр. лицо» — только для безнала */
#x-cart-content .cart_payment_radio:not(.payment-show-buyer-fields) > div:not(.cart_payment_radio_item),
#x-cart-content .cart_payment_radio:not(.payment-show-buyer-fields) .usertype-select,
#x-cart-content .cart_payment_radio:not(.payment-show-buyer-fields) .user-form-type-fields,
#x-cart-content .cart_payment_radio:not(.payment-show-buyer-fields) .cart-payment-buyer-fields {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#x-cart-content .cart_payment_radio.payment-show-buyer-fields > div:not(.cart_payment_radio_item),
#x-cart-content .cart_payment_radio.payment-show-buyer-fields .usertype-select,
#x-cart-content .cart_payment_radio.payment-show-buyer-fields .user-form-type-fields,
#x-cart-content .cart_payment_radio.payment-show-buyer-fields .cart-payment-buyer-fields {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

#x-cart-content .cart_payment_radio_item {
  position: relative !important;
  z-index: 2 !important;
}

#x-cart-content .cart_payment_radio_item label,
#x-cart-content .cart_payment_radio_item input[type="radio"] {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* ============================================================
   ШАПКА
   ============================================================ */

.top_header ul { width: 28%; }

@media screen and (max-width: 1150px) {
  .top_header ul { width: 30%; }
}

@media screen and (max-width: 1000px) {
  .top_header ul { width: 44%; }
}

/* ============================================================
   ФУТЕР — полная grid-раскладка
   ============================================================ */

/* Обёртка футера */
.footer-wrap {
  height: auto !important;
  padding-bottom: 50px;
}

/* Базовая сетка футера > 1150px */
.footer-wrap footer {
  display: grid !important;
  grid-template-columns: 25% 25% 50% !important;
  grid-template-rows: auto 1fr !important;
  grid-template-areas:
    "copyright contact links"
    "pay       .       links" !important;
  float: none !important;
}

/* grid-area для каждого блока */
.footer-wrap footer .footer-copyright { grid-area: copyright; float: none !important; width: auto !important; }
.footer-wrap footer .footer-contact   { grid-area: contact;   float: none !important; width: auto !important; }
.footer-wrap footer .footer-pay       { grid-area: pay;       float: none !important; width: auto !important; display: block !important; padding-top: 30px !important; }
.footer-wrap footer .obertka_footera  { grid-area: links; }

/* Колонки ссылок — grid 2×2 */
.footer-wrap footer .obertka_footera {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px 10px !important;
  align-content: start !important;
  float: none !important;
  width: auto !important;
  margin-top: 0 !important;
}

/* Каталог — 3-я позиция визуально */
.footer-wrap footer .obertka_footera .footer-link:nth-child(1) { order: 3; }
.footer-wrap footer .obertka_footera .footer-link:nth-child(2) { order: 1; }
.footer-wrap footer .obertka_footera .footer-link:nth-child(3) { order: 2; }
.footer-wrap footer .obertka_footera .footer-link:nth-child(4) { order: 4; }

/* Сброс старых float/width на footer-link внутри obertka */
.footer-wrap footer .footer-link {
  float: none !important;
  width: auto !important;
  display: block !important;
}

/* Онлайн-сервисы — убираем старый margin-left */
.footer-wrap footer .footer-service { margin-left: 0 !important; display: block !important; }

/* Clearfix больше не нужен */
.footer-wrap footer .cb { display: none !important; }

.footer-wrap footer .footer-link ul {
    padding: 0;
    max-width: 200px;
}

.footer-wrap footer .footer-link ul li a {
    padding: 0;
}

/* ≤ 1000px: 2 колонки сверху + ссылки на всю ширину */
@media screen and (max-width: 1000px) {
  .footer-wrap {
    height: auto !important;
  }
  .footer-wrap footer {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "copyright contact"
      "links     links"
      "pay       ." !important;
    padding: 40px 20px 30px !important;
  }
  .footer-wrap footer .footer-contact { text-align: left !important; }
  .footer-wrap footer .footer-link    { display: block !important; }
  .footer-wrap footer .footer-pay     { display: block !important; }
  .footer-wrap footer .footer-service { display: block !important; }
}

/* ≤ 767px: 1 колонка, копирайт скрыт */
@media screen and (max-width: 767px) {
  .footer-wrap footer {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "contact"
      "links"
      "pay" !important;
    padding: 30px 20px 20px !important;
  }
  .footer-wrap footer .footer-copyright { display: none !important; }
  .footer-wrap footer .footer-contact   { width: 100% !important; text-align: center !important; margin: 0 !important; }
  .footer-wrap footer .footer-link      { display: block !important; }
  .footer-wrap footer .footer-pay       { display: block !important; }
  .footer-wrap footer .footer-service   { display: block !important; }
  .footer-wrap { height: auto !important; padding-bottom: 10px; }
  /* Центрирование текста и элементов на мобилке */
  .footer-link p, .footer-pay p        { text-align: center !important; }
  .footer-wrap footer                  { justify-items: center !important; }
}

/* ≤ 470px: ссылки в 1 колонку, сброс order */
@media screen and (max-width: 470px) {
  .footer-wrap footer .obertka_footera {
    grid-template-columns: 1fr !important;
  }
  .footer-wrap footer .obertka_footera .footer-link {
    order: unset !important;
    text-align: center;
    margin: 10px 0;
  }
}

.production-additional-description .dve_tseni .solo-price {
    font-size: 26px;
    margin-top: 0;
    text-decoration: none;
    float: right;
}

/* Блок похожих услуг */
.production-additional-description .catalog-tovar {
    width: 220px!important;
    padding: 0 17px!important;
    vertical-align: top!important;
    position: relative!important;
    height: 345px!important;
    border: 1px solid #dadada;
}

.production-additional-description .catalog-tovar img {
    width: 180px;
    height: 135px;
    margin-bottom: 10px;
}

.production-additional-description .catalog-tovar-text {
    display: block;
    font-size: 14px;
    color: #000;
    line-height: 1;
    overflow: hidden;
    margin: 0 0 10px 0;
    width: 180px;
    text-decoration: none;
}

.production-additional-description .dve_tseni .solo-price {
    font-size: 26px;
    margin-top: 0;
    text-decoration: none;
    float: right;
}

.production-additional-description .dve_tseni .novaya_tsena {
    color: #b30005;
    float: right;
    margin-right: 0;
    font-size: 26px;
}

.production-additional-description .catalog-tovar .catalog-tovar-button {
    position: absolute;
    bottom: 0!important;
    left: 0!important;
    margin-bottom: 0;
    height: 43px;
    text-align: center;
    line-height: 35px;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 500;
    width: 100%;
}

.production-additional-description .catalog-tovar:hover .catalog-tovar-button {
    background: #35357F;
    float: left;
    padding: 3px 10px 5px;
    color: #fff;
    display: block!important;
    text-decoration: none;
    position: relative!important;
    top: 0!important;
    width: 100%!important;
}

.production-additional-description .catalog-tovar:hover .catalog-tovar-button:hover,.production-additional-description .catalog-tovar:hover .catalog-tovar-button:focus {
    text-decoration: none;
    background: #e91f87;
    color: #fff !important;
}

/* FAQ аккордеон */
.production-additional-description .faq-block {
    margin: 40px 0;
}

.production-additional-description .faq-item {
    border-bottom: 1px solid #ebebeb;
    margin-bottom: 0;
}

.production-additional-description .faq-item[open] {
    border-bottom: 1px solid #e91f87;
}

.production-additional-description .faq-question {
    font-family: Arial;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    padding: 18px 40px 18px 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.production-additional-description .faq-question::-webkit-details-marker {
    display: none;
}

.production-additional-description .faq-question::after {
    content: '+';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #e91f87;
    font-weight: 300;
    line-height: 1;
}

.production-additional-description .faq-item[open] .faq-question::after {
    content: '−';
}

.production-additional-description .faq-answer {
    padding: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

/* fix после изменения faq на Вопрос-Ответ */
.top_header ul {
    width: 33%;
}

@media screen and (max-width: 1150px) {
    .top_header ul {
        width: 36%;
    }
}

@media screen and (max-width: 1150px) {
    .top_header .top_header-search {
        margin-left: 0px;
    }
}

@media screen and (max-width: 1150px) {
    .top_header .top_header-login {
        width: 9%;
    }
}

.top_header .top_header-map_wrapper {
    margin: 8px 5px 0 0;
}

@media (max-width: 1000px) {
.top_header {
    height: 60px !important;
}
.header
 {
    margin: 60px 0 0 0;
}
}

@media (max-width: 640px) {
.top_header {
    height: auto !important;
}
}


/* ===== Кнопка "Наверх" ===== */
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #35357f;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 9999;
  border: 1px solid #fff;
}

#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  background: #4a4aaa;
}

#scroll-to-top svg {
  width: 36px;
  height: 36px;
}

@media (max-width: 768px) {
  #scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }

  #scroll-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* Фикс кнопки "Купить в один клик" в карточке товара и списке товаров, чтобы не перекрывалась кнопкой "В корзину" и не ловила клики на неё. Появляется при наведении на товар, а на мобильных устройствах отображается всегда. */
.fast-buy-link-list {
  text-align: center;
  margin-top: 55px;
  display: none;
}
.fast-buy-link-list a {
  display:block;
}

.catalog-tovar:hover .fast-buy-link-list {
  display:block;
}

.hit-prodaj-na-glavnoj .catalog-tovar, .production-additional-description .catalog-tovar {
    height: 385px !important;
}

@media (max-width: 639px) {
    .production-additional-description {
        display: block;
    }
}

.production_calculator #count_button {
    height: auto;
    padding: 8px 30px;
}

@media screen and (max-width: 639px) {
    .hit-prodaj-na-glavnoj .catalog-tovar, .production-additional-description .catalog-tovar {
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
    }
  .fast-buy-link-list {
  display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  margin-top: 0px;
    height: 35px;
    padding: 0 20px;
}
}

@media screen and (max-width: 400px) {
  .fast-buy-link-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    margin-top: 50px;
    height: 55px;
    padding: 0 0px;
  }
}

@media screen and (max-width: 639px) {
    .cart_wrap .right_cart_wrap .fast-buy-link {
        display: block !important;
    }
}


/* === Tag Tiles Block (rulonnye-etiketki и др.) === */
.tag-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none;
}
.tag-tiles__item {
  flex: 0 0 calc(20% - 13px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tag-tiles__img-wrap {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.tag-tiles__img-wrap img {
  max-width: 90px;
  max-height: 90px;
  width: auto;
  height: auto;
  display: block;
}
.tag-tiles__name {
  font-size: 13px;
  line-height: 1.3;
  color: #333;
  text-decoration: none;
}
.tag-tiles__name:hover {
  color: #e91f87;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .tag-tiles__item {
    flex: 0 0 100%;
  }
}
/* === /Tag Tiles Block === */



@media (max-width: 639px) {
    .store-main-productions .filters li {
        height: 55px;
    }
}

#modal-login .modal-dialog, #modal-registration .modal-dialog {
    margin: 150px auto 2%;
}

@media (max-width: 639px) {
  #modal-login .modal-dialog .modal-body .modal-login-right, #modal-registration .modal-dialog .modal-body .modal-login-right
  {
      float: left !important;
      margin-top: 30px;
  }
}

@media screen and (max-width: 600px) {
    .modal-register-btn-open, .modal-login-btn-open {
        float: unset !important;
    }
}

.form_search_result input {
  height: 40px !important;
}

@media (max-width: 639px) {
    .select {
        width: calc(100% - 20px) !important;
    }
}

@media (min-width: 1151px) {
    .select-options li {
        height: auto !important;
    }
}

@media screen and (max-width: 639px) {
    .nav {
        display: none;
    }
}




/* Portfolio page */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portfolio-filter-btn {
  padding: 8px 18px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
  transition: all 0.2s;
}
.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: #e91f87;
  color: #fff;
  border-color: #e91f87;
}
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.portfolio-item {
  width: calc(25% - 12px);
  position: relative;
  overflow: hidden;
  border: 1px solid #eee;
}
.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.portfolio-item-caption {
  padding: 8px 10px;
  font-size: 13px;
  color: #333;
  background: #fff;
}
.portfolio-item a {
  display: block;
  position: relative;
}
.portfolio-cases {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (max-width: 768px) {
  .portfolio-item { width: calc(50% - 8px); }
}
@media (max-width: 480px) {
  .portfolio-item { width: 100%; }
}


/* Cookie banner */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 60px;
  max-width: 360px;
  background: #fff;
  color: #000;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  z-index: 999999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.cookie-banner-text {
  margin-bottom: 12px;
}
.cookie-banner-text a {
  color: #35357F;
  text-decoration: underline;
}
.cookie-banner-btn {
  background: #35357F;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
}
.cookie-banner-btn:hover {
  background: #c91a73;
}
@media (max-width: 480px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}

@media screen and (max-width: 639px) {
    .content.width_1150px > div {
      float: none !important;
      width: auto !important;
      padding-top: 30px;
    }

  .production-additional-description > div,  .production-additional-description > div > div{
    float: none !important;
    width: auto !important;
    padding-top: 30px;
  }
  .production-additional-description > div ul{
    padding-inline-start: 0;
  }
}

/* Конструктор CardCraft: одинаковая высота карточек, ссылка «Применить как шаблон» внизу */
.cc-vizitki-catalog .cc-viz-grid,
.cc-listovki-catalog .cc-viz-grid {
  align-items: stretch;
}

.cc-vizitki-catalog .cc-viz-card:not(.cc-viz-card-create),
.cc-listovki-catalog .cc-viz-card:not(.cc-viz-card-create) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 0 0 10px;
  box-sizing: border-box;
}

.cc-vizitki-catalog .cc-viz-card:not(.cc-viz-card-create) > img {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: contain;
  object-position: center;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  display: block;
}

.cc-listovki-catalog .cc-viz-card:not(.cc-viz-card-create) > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  display: block;
}

.cc-vizitki-catalog .cc-viz-card .cc-viz-prof,
.cc-listovki-catalog .cc-viz-card .cc-viz-prof {
  flex: 1 1 auto;
  min-height: 40px;
  margin: 8px 8px 0;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.cc-vizitki-catalog .cc-viz-card:not(.cc-viz-card-create) > a.cc-cardcraft-open,
.cc-listovki-catalog .cc-viz-card:not(.cc-viz-card-create) > a.cc-cardcraft-open {
  margin-top: auto;
  padding: 8px 8px 0;
}

/* ===== Плитка тегов конструктора визиток ===== */
.constructor-tags-wrap {
  margin: 40px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px 40px;
}

.constructor-tags-block {
  flex: 1 1 260px;
  min-width: 220px;
}

.constructor-tags-title {
  font-size: 18px;
  font-weight: bold;
  font-family: Arial;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e91f87;
  color: #000;
}

.constructor-tags-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.constructor-tags-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.constructor-tags-list li a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.constructor-tags-list li a:hover {
  color: #e91f87;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .constructor-tags-wrap {
    flex-direction: column;
    gap: 24px;
  }
  .constructor-tags-block {
    flex: 1 1 100%;
  }
}

/* ===== Portfolio page ===== */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.pf-btn {
  padding: 9px 20px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  border-radius: 30px;
  transition: all 0.2s;
  font-family: Arial, sans-serif;
  color: #333;
}
.pf-btn:hover { border-color: #e91f87; color: #e91f87; }
.pf-btn.active { background: #e91f87; color: #fff; border-color: #e91f87; }

.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.pf-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: box-shadow 0.2s; }
.pf-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.pf-card-link { display: block; text-decoration: none; color: inherit; }
.pf-card-link:hover { text-decoration: none; color: inherit; }
.pf-card-img { position: relative; overflow: hidden; height: 190px; background: #f5f5f5; }
.pf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.pf-card:hover .pf-card-img img { transform: scale(1.05); }
.pf-card-overlay { position: absolute; inset: 0; background: rgba(233,31,135,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.pf-card:hover .pf-card-overlay { opacity: 1; }
.pf-card-overlay .fa { font-size: 36px; color: #fff; }
.pf-card-placeholder { display: flex; align-items: center; justify-content: center; }
.pf-card-placeholder .fa { font-size: 48px; color: #ccc; }
.pf-card-caption { padding: 12px 14px; font-size: 14px; color: #333; font-family: Arial, sans-serif; line-height: 1.4; }

.pf-cases { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.pf-case { display: flex; align-items: flex-start; gap: 20px; background: #f9f9f9; border-left: 3px solid #e91f87; padding: 22px 24px; border-radius: 0 4px 4px 0; }
.pf-case-icon { flex-shrink: 0; width: 44px; height: 44px; background: #e91f87; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pf-case-icon .fa { font-size: 20px; color: #fff; }
.pf-case-body strong { font-size: 17px; display: block; margin-bottom: 8px; font-family: Arial; }
.pf-case-body p { margin: 0; color: #555; font-size: 15px; line-height: 1.6; }

@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .pf-grid { grid-template-columns: 1fr; } }



/* ===== Technologies page ===== */
.tech-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.tech-card { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tech-card-head { padding: 20px 22px; color: #fff; display: flex; align-items: center; gap: 12px; }
.tech-card-head .fa { font-size: 24px; }
.tech-card-head strong { font-size: 16px; font-family: Arial; }
.tech-card-body { padding: 20px 22px; background: #fff; }
.tech-best { color: #e91f87; font-weight: bold; font-size: 14px; margin: 0 0 12px; }
.tech-card-body ul { margin: 0 0 12px 18px; padding: 0; }
.tech-card-body ul li { font-size: 14px; margin-bottom: 6px; color: #444; }
.tech-products { font-size: 13px; color: #777; margin: 0; border-top: 1px solid #eee; padding-top: 12px; }

.tech-table { width: 100%; border-collapse: collapse; font-size: 14px; font-family: Arial; }
.tech-table th, .tech-table td { padding: 12px 16px; border: 1px solid #e8e8e8; text-align: left; }
.tech-table thead tr { background: #f5f5f5; }
.tech-table th { font-weight: bold; font-size: 15px; }
.tech-table tbody tr:nth-child(even) { background: #fafafa; }
.tech-table td:first-child { font-weight: 500; color: #333; }

.equip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 20px; }
.equip-grid--4 { grid-template-columns: repeat(4, 1fr); }
.equip-card { display: flex; gap: 20px; background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.equip-card .equip-img { flex-shrink: 0; width: 140px; display: flex; align-items: center; }
.equip-card .equip-img img { width: 100%; height: auto; object-fit: contain; }
.equip-body strong { display: block; font-size: 16px; font-family: Arial; margin-bottom: 8px; color: #222; }
.equip-body p { font-size: 14px; color: #555; margin: 0 0 10px; }
.equip-body ul { margin: 0 0 0 16px; padding: 0; }
.equip-body ul li { font-size: 13px; color: #444; margin-bottom: 4px; }
.equip-card-sm { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 16px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.equip-card-sm img { width: 100%; height: 100px; object-fit: contain; margin-bottom: 10px; }
.equip-card-sm strong { display: block; font-size: 13px; font-family: Arial; margin-bottom: 6px; color: #222; }
.equip-card-sm p { font-size: 12px; color: #666; margin: 0; }

.quality-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.quality-step { display: flex; gap: 20px; align-items: flex-start; }
.quality-step-num { flex-shrink: 0; width: 44px; height: 44px; background: #e91f87; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; font-family: Arial; }
.quality-step-body strong { display: block; font-size: 16px; font-family: Arial; margin-bottom: 6px; }
.quality-step-body p { margin: 0; color: #555; font-size: 15px; line-height: 1.6; }
.tech-materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
@media (max-width: 768px) { .tech-materials-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .tech-compare { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: 1fr; }
  .equip-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .equip-card { flex-direction: column; }
}
/* Tech page mobile fixes */
@media (max-width: 768px) {
  .tech-compare { grid-template-columns: 1fr; }
  .tech-table { font-size: 12px; }
  .tech-table th, .tech-table td { padding: 8px; }
  .equip-grid { grid-template-columns: 1fr; }
  .equip-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .equip-card { flex-direction: column; }
  .equip-card .equip-img { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .equip-grid--4 { grid-template-columns: 1fr; }
}

/* Materials grid mobile fix */
@media (max-width: 768px) {
  .width_1150px div[style*="grid-template-columns: repeat(3, 1fr)"] {
    display: flex !important;
    flex-direction: column !important;
  }
}



/* ===== B2B page ===== */
.b2b-advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.b2b-adv-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 20px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.b2b-adv-icon { flex-shrink: 0; width: 44px; height: 44px; background: #e91f87; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.b2b-adv-icon .fa { font-size: 20px; color: #fff; }
.b2b-adv-body strong { display: block; font-size: 15px; font-family: Arial; margin-bottom: 6px; }
.b2b-adv-body p { margin: 0; font-size: 13px; color: #555; line-height: 1.5; }

.b2b-solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.b2b-solution { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.b2b-solution-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.b2b-solution-head strong { font-size: 16px; font-family: Arial; color: #222; }
.b2b-solution p { font-size: 14px; color: #555; line-height: 1.6; margin: 0 0 10px; }

.b2b-conditions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 50px; }
.b2b-contacts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .b2b-advantages { grid-template-columns: repeat(2, 1fr); }
  .b2b-solutions { grid-template-columns: 1fr; }
  .b2b-adv-item { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .b2b-advantages { grid-template-columns: 1fr; }
  .b2b-solution-head { flex-direction: column; gap: 8px; }
}

@media (max-width: 768px) {
  .b2b-conditions-grid { grid-template-columns: 1fr; }
  .b2b-contacts-grid { grid-template-columns: 1fr; }
}