/* ===================== ТехноКварц — каталог / категории: вёрстка по макету (PSD 1920, контейнер 1190) ===================== */


.ct { font-family: "Wix Madefor Text", Arial, sans-serif; color: #000; }
.ct *, .ct *::before, .ct *::after { box-sizing: border-box; }
:where(.ct) h1, :where(.ct) h2, :where(.ct) h3, :where(.ct) p { margin: 0; }
:where(.ct) img { display: block; max-width: none; }
:where(.ct) a { text-decoration: none; color: inherit; }

/* ---------- ХЛЕБНЫЕ КРОШКИ + ЗАГОЛОВОК ---------- */
.ct-head { position: relative; height: 143px; background: linear-gradient(180deg, #f7f7f7 0, #fff 52px); }
.ct-bc { position: absolute; left: 0; top: 26px; font: 400 15px/18px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; color: #6e6e6e; white-space: nowrap; }
.ct-bc a { color: #000; }
.ct-bc__sep { display: inline-block; margin: 0 13.5px; color: #bdbdbd; }
.ct-head .hp-wrap { position: relative; height: 100%; }
.ct-title { position: absolute; left: 0; top: 66px; }
.ct-h2 { font-size: 45px; line-height: 50px; margin-left: -2px; }
.ct-title { margin-left: -2px; }
.ct-nb { white-space: nowrap; }

/* ---------- КАРТОЧКИ ТОВАРОВ ---------- */
.ct-products { margin-top: 0; }
.ct-products__grid { display: grid; grid-template-columns: repeat(4, 284px); gap: 18px; justify-content: space-between; }
.ct-pcard { position: relative; height: 421px; }
.ct-pcard__img { display: block; width: 100%; height: 213px; border-radius: 12px; overflow: hidden; background: #f3f3f3; }
.ct-pcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.ct-pcard__title { position: absolute; left: 0; top: 226px; width: 100%; font: 400 18px/24px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; color: #000; }
.ct-pcard__stock { position: absolute; left: 0; top: 281px; height: 16px; display: flex; align-items: center; font: 700 15px/16px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; color: #ff9f0f; }
.ct-pcard__stock i { width: 20px; height: 16px; margin-right: 10px; background: #ff9f0f; -webkit-mask: url("../img/ct-check.svg") center / contain no-repeat; mask: url("../img/ct-check.svg") center / contain no-repeat; }
.ct-pcard__stock--out { color: #9a9a9a; }
.ct-pcard__price { position: absolute; left: 1px; top: 313px; width: 100%; }
.ct-pcard__price .price-list { display: block; }
.ct-pcard__price .price-item { display: flex; align-items: baseline; height: 27px; white-space: nowrap; }
.ct-pcard__price .price-value { font: 700 18px/26px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; color: #000; }
.ct-pcard__price .price-label { margin-left: 12px; font: 400 15px/26px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; color: #000; }
.ct-pcard__price .woocommerce-Price-amount, .ct-pcard__price bdi { font: inherit; color: inherit; }
.ct-pcard__actions { position: absolute; left: 0; top: 374px; width: 100%; display: flex; gap: 7px; }
.ct-btn { flex: 1 1 0; height: 47px; display: flex; align-items: center; justify-content: center; border-radius: 24px; font: 400 15px/1 "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; background: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ct-btn--order { border: 1px solid #ff9f0f; color: #ff9f0f; font-weight: 500; }
.ct-btn--order:hover { background: #ff9f0f; color: #fff; }
.ct-btn--more { border: 1px solid #d4d4d4; color: #393938; }
.ct-btn--more:hover { border-color: #ff9f0f; color: #ff9f0f; }

/* ---------- ГДЕ ИСПОЛЬЗУЕТСЯ ---------- */
.ct-uses { margin-top: 65px; }
.ct-uses__grid { margin-top: 24px; row-gap: 20px; }
.ct-uses .hp-ccard__img { height: 144px; }
.ct-uses .hp-ccard__title { font-size: 17px; letter-spacing: 0.01em; line-height: 24px; margin: 20px 18px 5px; min-height: 0; }
.ct-uses .hp-ccard .hp-btn { width: 128px; height: 40px; font-size: 13px; margin: auto 0 0 17px; }
.ct-uses .hp-ccard { padding-bottom: 18px; }
.ct-uses .hp-ccard .hp-btn { border-width: 1px; border-color: #ffb54d; font-weight: 500; }
.ct-uses .hp-ccard .hp-arr { width: 10px; height: 10px; }

/* ---------- SEO-ТЕКСТ ---------- */
.ct-seo { margin-top: 52px; }
.ct-seo__h { font: 700 26px/32px "Wix Madefor Text", Arial, sans-serif; color: #000; }
.ct-seo__t { margin-top: 9px; font: 400 18px/26px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.015em; color: #1c1c1c; }
.ct-seo__t p { margin: 0; }
.ct-seo__block + .ct-seo__block { margin-top: 46px; }
.ct-seo__block--clamp .ct-seo__t { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.js-ct-expand.is-expanded .ct-seo__block--clamp .ct-seo__t { display: block; overflow: visible; }
.ct-seo__toggle { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 0 0 2px; font: 600 20px/26px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; color: #ff9f0f; background: none; border: 0; border-bottom: 2px solid #ff9f0f; cursor: pointer; }
.ct-seo__toggle i { width: 9px; height: 9px; border: solid #ff9f0f; border-width: 0 3px 3px 0; transform: rotate(45deg); margin: -4px 0 0 6px; }
.js-ct-expand.is-expanded .ct-seo__toggle i { transform: rotate(-135deg); margin-top: 4px; }

/* ---------- ТОП 350 ---------- */
.ct-top { margin-top: 57px; }
.ct-top__box { position: relative; height: 431px; border-radius: 28px; background: #ff9f0f; overflow: hidden; }
.ct-top__docs { position: absolute; left: 0; top: 0; width: 600px; height: 100%; }
.ct-top__doc { position: absolute; }
.ct-top__doc--l { left: 38px; top: 73px; opacity: .5; }
.ct-top__doc--r { left: 165px; top: 79px; opacity: .5; }
.ct-top__doc--c { left: 99px; top: 46px; }
.ct-top__text { position: absolute; left: 504px; top: 0; width: 640px; }
.ct-top__text h2 { position: absolute; left: 0; top: 52px; width: 640px; height: 100px; font-family: "Roboto Condensed", Arial, sans-serif; font-weight: 900; color: #fff; text-transform: none; line-height: 1; }
.ct-top__big { position: absolute; left: 0; top: 0; font-size: 75px; letter-spacing: 0.01em; white-space: nowrap; }
.ct-top__small { position: absolute; left: 291px; top: 0; font-size: 36px; white-space: nowrap; }
.ct-top__text p { position: absolute; left: 3px; top: 174px; width: 600px; font: 400 24px/34px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.014em; color: #fff; }
.ct-top__text::before { content: ""; position: absolute; left: 0; top: 148px; width: 646px; height: 1px; background: rgba(255,255,255,.45); }
.ct-top__btn { position: absolute; left: -1px; top: 302px; width: 291px; height: 66px; display: flex; align-items: center; justify-content: center; gap: 20px; border-radius: 35px; background: #fff; color: #ff9f0f; font: 700 20px/1 "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; }
.ct-top__btn .hp-arr { width: 19px; height: 19px; }

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.ct-adv { margin-top: 84px; }
.ct-adv .ct-h2 { font-size: 44px; }
.ct-adv__list { margin-top: 38px; }
.ct-adv__row { position: relative; height: 166px; border-top: 1px solid #e7e7e7; }
.ct-adv__icon { position: absolute; left: 3px; top: 33px; }
.ct-adv__row > div { position: absolute; left: 125px; top: 29px; right: 25px; }
.ct-adv__row h3 { font: 400 26px/32px "Wix Madefor Text", Arial, sans-serif; color: #000; }
.ct-adv__row p { margin-top: 14px; font: 400 18px/26px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.015em; color: #6f6f6f; }

/* ---------- ЭТАПЫ ---------- */
.ct-steps { position: relative; height: 502px; margin-top: 78px; overflow: hidden; background: #3a3836; }
.ct-steps__bg { position: absolute; left: 50%; top: 0; width: 1922px; height: 502px; transform: translateX(-50%); max-width: none; filter: brightness(.9); }
.ct-steps__in { position: relative; height: 100%; }
.ct-steps .ct-h2 { position: absolute; left: 0; top: 52px; color: #fff; }
.ct-steps__grid { position: absolute; left: 0; top: 145px; width: 100%; display: grid; grid-template-columns: repeat(4, 284px); gap: 18px; justify-content: space-between; }
.ct-step { height: 277px; border: 1px solid rgba(255,255,255,.4); border-radius: 30px; padding: 5px; background: rgba(0,0,0,.08); }
.ct-step__in { position: relative; height: 100%; border-radius: 26px; background: rgba(255,255,255,.02); box-shadow: inset 0 0 16px rgba(0,0,0,.45); padding: 20px 0 0 27px; }
.ct-step__num { font: 400 32px/40px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.1em; color: #ff9f0f; }
.ct-step p { margin-top: 21px; font: 400 22px/30px "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; color: #fff; }
.ct-step__btn { position: absolute; left: 27px; top: 165px; width: 216px; height: 59px; border: 1px solid #ff9f0f; border-radius: 32px; background: transparent; color: #ff9f0f; font: 400 18px/1 "Wix Madefor Text", Arial, sans-serif; letter-spacing: 0.01em; cursor: pointer; transition: background .2s, color .2s; }
.ct-step__btn:hover { background: #ff9f0f; color: #fff; }

/* ---------- ФОТОГРАФИИ ---------- */
.ct-gal { margin-top: 68px; padding-bottom: 21px; }
.ct-gal .ct-h2 { font-size: 45px; line-height: 38px; }
.ct-gal .hp-title { }
.ct-gal__slider { position: relative; width: 1253px; margin: 19px 0 0 -47px; height: 360px; overflow: hidden; }
.ct-gal__track { position: absolute; inset: 0; }
.ct-gal__img { position: absolute; top: 56px; width: 325px; height: 208px; object-fit: cover; border-radius: 14px; opacity: 0; left: 50%; transition: all .5s ease; }
.ct-gal__img.is-c { width: 406px; height: 260px; top: 30px; margin-left: -203px; opacity: 1; z-index: 2; }
.ct-gal__img.is-l { margin-left: -571px; opacity: 1; }
.ct-gal__img.is-r { margin-left: 246px; opacity: 1; }
.ct-gal__arrow { position: absolute; top: 134px; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; box-shadow: 0 2px 10px rgba(0,0,0,.15); padding: 0; }
.ct-gal__arrow svg { width: 12px; height: 19px; }
.ct-gal__arrow--prev { left: 28px; }
.ct-gal__arrow--next { right: 28px; }

/* ---------- ФОРМА / FAQ — как на главной ---------- */
.ct-gal + .hp-order { margin-top: 0; }
.ct-faq { margin-top: 55px; padding-bottom: 52px; }
.ct-faq__after { height: 55px; }

/* ===================== АДАПТИВ ===================== */
@media (max-width: 1230px) {
  .ct-head { height: auto; padding: 24px 0 20px; }
  .ct-head .hp-wrap { height: auto; }
  .ct-bc, .ct-title { position: static; }
  .ct-bc { white-space: normal; }
  .ct-title { margin: 14px 0 0; font-size: clamp(30px, 5.5vw, 58px); }
  .ct-products__grid, .ct-steps__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 18px; }
  .ct-pcard { height: auto; display: flex; flex-direction: column; gap: 10px; }
  .ct-pcard__title, .ct-pcard__stock, .ct-pcard__price, .ct-pcard__actions { position: static; }
  .ct-pcard__price .price-item { height: auto; flex-wrap: wrap; }
  .ct-pcard__actions { margin-top: 6px; }
  .ct-h2 { font-size: clamp(28px, 4.6vw, 45px); }
  .ct-uses { margin-top: 44px; }
  .ct-seo, .ct-adv, .ct-gal { margin-top: 44px; }
  .ct-top__box { height: auto; padding: 30px 20px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; overflow: hidden; }
  .ct-top__docs { position: relative; width: 340px; height: 380px; flex: 0 0 340px; }
  .ct-top__text { position: static; width: auto; flex: 1 1 320px; }
  .ct-top__text::before { display: none; }
  .ct-top__text h2, .ct-top__text p, .ct-top__btn, .ct-top__big, .ct-top__small { position: static; width: auto; height: auto; }
  .ct-top__big { font-size: 56px; }
  .ct-top__small { font-size: 28px; margin-left: 10px; }
  .ct-top__text p { margin: 20px 0; font-size: 18px; line-height: 28px; }
  .ct-adv__row { height: auto; padding: 26px 0; display: flex; gap: 20px; }
  .ct-adv__icon, .ct-adv__row > div { position: static; }
  .ct-adv__icon { flex: 0 0 auto; width: 56px; height: auto; }
  .ct-adv__row h3 { font-size: 20px; line-height: 26px; }
  .ct-steps { height: auto; margin-top: 44px; }
  .ct-steps__bg { height: 100%; }
  .ct-steps__in { height: auto; padding: 40px 0; }
  .ct-steps .ct-h2, .ct-steps__grid { position: static; }
  .ct-steps__grid { margin-top: 24px; }
  .ct-step { height: auto; min-height: 200px; }
  .ct-step__in { padding-bottom: 24px; }
  .ct-step__btn { position: static; margin-top: 18px; width: 100%; max-width: 216px; }
  .ct-gal { padding-bottom: 30px; }
  .ct-gal__slider { width: 100%; margin: 20px 0 0; height: 240px; }
  .ct-gal__img { width: 60%; height: 180px; top: 30px; margin-left: -30%; }
  .ct-gal__img.is-c { width: 60%; height: 200px; top: 20px; margin-left: -30%; }
  .ct-gal__img.is-l, .ct-gal__img.is-r { opacity: 0; }
  .ct-gal__arrow { top: 94px; }
  .ct-gal__arrow--prev { left: 0; } .ct-gal__arrow--next { right: 0; }
  .ct-faq { margin-top: 44px; padding-bottom: 30px; }
}

@media (max-width: 1230px) {
  .ct-top__docs { height: 470px; }
  .ct-top__btn { height: 66px; width: 100%; max-width: 291px; }
  .ct-top__box { padding: 30px 20px 36px; }
}
@media (max-width: 768px) {
  .ct-head { padding-top: 81px; }
  .ct-top__docs { width: 100%; flex-basis: 100%; height: 330px; overflow: hidden; }
  .ct-top__doc--l, .ct-top__doc--r { display: none; }
  .ct-top__doc--c { left: 50%; top: 0; margin-left: -146px; }
  .ct-top__big { font-size: 48px; }
  .ct-top__small { font-size: 24px; }
}


/* ===================== Карточки товаров: hover ===================== */
.ct-pcard { transition: transform .3s ease; }
.ct-pcard__img { transition: box-shadow .3s ease; }
.ct-pcard__img img { transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
.ct-pcard:hover { transform: translateY(-6px); }
.ct-pcard:hover .ct-pcard__img { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14); }
.ct-pcard:hover .ct-pcard__img img { transform: scale(1.05); }
.ct-pcard__title a { transition: color .2s ease; }
.ct-pcard:hover .ct-pcard__title a { color: #ff9f0f; }
.ct-btn { transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.ct-btn--order:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255, 159, 15, 0.3); }
.ct-btn--more:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1); }
.ct-pcard__stock i { transition: transform .3s ease; }
.ct-pcard:hover .ct-pcard__stock i { transform: scale(1.2); }
@media (hover: none) { .ct-pcard:hover { transform: none; } }

/* Надпись на фото товара читается целиком: фото показываем полностью, без обрезки */
.ct-pcard__img { background: #fff; border: 1px solid #eee; }
.ct-pcard__img img { object-fit: contain; object-position: 50% 50%; }
.ct-pcard:hover .ct-pcard__img img { transform: scale(1.04); }


/* Длинные заголовки категорий переносятся на 2 строки и не наезжают на карточки */
@media (min-width: 1231px) {
  .ct-head { height: auto; min-height: 143px; }
  .ct-head .hp-wrap { height: auto; padding: 66px 0 17px; }
  .ct-title { position: static; margin: 0; }
}


/* Галерея: перетаскивание */
.ct-gal__slider { touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.ct-gal__slider.is-grab { cursor: grabbing; }
.ct-gal__img { -webkit-user-drag: none; user-select: none; }
.ct-gal__slider.is-grab .ct-gal__img { transition-duration: .35s; }


/* Flexible cards: long product names must push stock, prices and actions down. */
.ct-products__grid { align-items: stretch; }
.ct-pcard {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 421px;
  gap: 0;
}
.ct-pcard__img {
  position: relative;
  flex: 0 0 213px;
}
.ct-pcard__title {
  position: static;
  width: auto;
  margin-top: 13px;
  line-height: 24px;
  overflow-wrap: anywhere;
}
.ct-pcard__stock {
  position: static;
  flex: 0 0 auto;
  height: auto;
  min-height: 16px;
  margin-top: 9px;
}
.ct-pcard__price {
  position: static;
  width: auto;
  margin-top: 12px;
}
.ct-pcard__price .price-item {
  height: auto;
  min-height: 27px;
  white-space: normal;
  flex-wrap: wrap;
}
.ct-pcard__price .price-label { white-space: normal; }
.ct-pcard__actions {
  position: static;
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
}
