/* Переопределения поверх CSS образца: логотип, WhatsApp-формы, блоки, которых нет у образца. */

/* логотип: в образце задан CSS-фоном */
.header__logo, .header__logo-repeat { background: url(/assets/site/logo-sq.svg) 50% 50% / contain no-repeat !important; }
.footer__logo { background: url(/assets/site/logo-footer.svg) 0 0 / contain no-repeat !important; }
.new-year, .new-year-mini, .header__logo-head, .header__logo-tail { display: none !important; }

/* город без выпадашки */
.header-town-current { cursor: default; text-decoration: none !important; border: 0 !important; }
.header-town-current__text { border: 0 !important; text-decoration: none !important; }
.header-town-current:after, .header-town-current__text:after { display: none !important; }

/* хлебные крошки на WP-страницах */
.qp-crumbs { font: 400 13px/18px "Roboto", Arial, sans-serif; color: #8a8f99; margin: 0 0 14px; }
.qp-crumbs a { color: #8a8f99; text-decoration: none; }
.qp-crumbs a:hover { color: #ff0102; }
.qp-crumbs i { font-style: normal; margin: 0 4px; color: #c5c9d0; }

/* кнопка WhatsApp в блоках, где у образца была ссылка/форма */
.qp-wa-btn, a.qp-wa-btn { display: inline-block; background: #25d366 !important; color: #fff !important; border-radius: 6px; padding: 12px 22px; font: 500 15px/20px "Roboto", Arial, sans-serif; text-decoration: none !important; border: 0; cursor: pointer; }
.qp-wa-btn:hover { background: #1ebe5a !important; color: #fff !important; }

/* формы -> WhatsApp */
.qp-wa-form { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 460px; }
.qp-wa-form input, .qp-wa-form textarea { width: 100%; box-sizing: border-box; font: 400 15px/20px "Roboto", Arial, sans-serif; color: #222 !important; }
.qp-wa-form textarea { border: none; border-bottom: 1px solid #c4c4c4; padding: 8px 3px 9px; resize: vertical; outline: none; background: transparent; }
.qp-wa-form .qp-input { border: 1px solid #d2d8de; border-radius: 6px; padding: 10px 12px; background: #fff; }
.qp-wa-form button { margin-top: 6px; cursor: pointer; }
.qp-form-note { font: 400 12px/16px "Roboto", Arial, sans-serif; color: #8a8f99; margin: 0; }
.form-section-right { flex: 1; }

/* карта образца (Яндекс) -> статичная плашка с городом */
.qp-map { position: relative; min-height: 420px; background: #eef1f4 repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 2px, transparent 2px 28px); overflow: hidden; }
.qp-map__city { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); text-align: right; color: #c9ced6; font: 900 72px/1 "Roboto", Arial, sans-serif; letter-spacing: 2px; }
.qp-map__city small { display: block; font: 500 15px/20px "Roboto", Arial, sans-serif; color: #8a8f99; letter-spacing: 0; margin-top: 10px; }
#map-block .map-contact { margin-top: 12px; }
#map-block .map-contact a { color: inherit; }
@media (max-width: 767px) {
  .qp-map { min-height: 180px; }
  .qp-map__city { font-size: 40px; right: 16px; }
}

/* посадочная: картинка-заглушка товара и текст в два столбца */
.qp-intro-img { display: block; width: 100%; max-width: 515px; height: auto; object-fit: contain; border-radius: 24px; }
.qp-text-land .qp-h2 { text-align: left !important; font-size: 26px !important; line-height: 32px !important; margin: 28px 0 14px !important; }
.qp-text-land .reasons-column > .qp-h2:first-child { margin-top: 0 !important; }
.qp-text-land .cases-box-text a, .qp-text-land li a { color: #ff0102; }
.qp-text-land .qp-list { margin: 0 0 16px; padding-left: 20px; font: 400 16px/24px "Roboto", Arial, sans-serif; color: #333; }
.qp-text-land .qp-list li { margin-bottom: 6px; list-style: inherit; }
.qp-text-land ul.qp-list li { list-style: disc; }
.qp-text-land ol.qp-list li { list-style: decimal; }
.qp-text-land .reasons-column { vertical-align: top; }
@media (max-width: 1023px) { .qp-text-land .reasons-column { display: block; width: 100%; padding: 0; } }
.qp-rel { background-size: cover !important; background-position: 50% 50% !important; }
.qp-rel h3, .qp-rel p { background: rgba(255,255,255,.88); display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 4px; }
.qp-production .production-time + .production-time { margin-top: 40px; }

/* страницы поиска и 404 */
.qp-search-page { margin: 10px 0 40px; }
.qp-search-page .qp-search { display: flex; gap: 10px; max-width: 640px; margin: 16px 0 24px; }
.qp-search-page .qp-search input { flex: 1; border: 1px solid #d2d8de; border-radius: 6px; padding: 10px 12px; font: 400 15px/20px "Roboto", Arial, sans-serif; }
.qp-search-list { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; }
.qp-search-list li { margin: 0 0 10px; break-inside: avoid; }
.qp-search-list a { color: #222; font: 500 16px/22px "Roboto", Arial, sans-serif; }
.qp-search-list span { display: block; color: #8a8f99; font-size: 13px; }
@media (max-width: 767px) { .qp-search-list { columns: 1; } }

/* о компании */
.about-page .mission-block img { max-width: 160px; }
.about-page .about-page-inner p { font: 400 16px/24px "Roboto", Arial, sans-serif; color: #333; }
.about-page .service-img img { object-fit: contain; }

/* плитки главной: у нас «Цена по запросу» вместо короткой цены */
.mh-card__title { max-height: none !important; }
.mh-card__cost { font-size: 15px !important; line-height: 20px !important; color: #555 !important; }
.mh-card__img { object-fit: contain; }

/* блок текста на посадочной: у образца там фон-картинка конкретного товара */
.qp-text-land { background-image: none !important; }
.qp-text-land::before, .qp-text-land::after { display: none !important; }

/* первый экран посадочной: у образца там PNG без фона шириной 895px позади текста.
   Наши временные фото квадратные на белом: ставим справа в своей колонке, текст не перекрывается. */
.qp-intro .section-container { position: relative; }
.qp-intro .qp-intro-img { mix-blend-mode: multiply; border-radius: 0; max-height: 460px; width: auto; max-width: 100%; margin: 0 auto; }
@media screen and (min-width: 1125px) {
  .qp-intro .section-container > *:not(.intro-img-container) { max-width: 56%; position: relative; z-index: 1; }
  .qp-intro .intro-img-container { position: absolute !important; top: 10px !important; right: 0 !important; left: auto !important; width: 40% !important; max-width: 520px; z-index: auto !important; }
}
@media screen and (max-width: 1124px) {
  .qp-intro .intro-img-container { position: relative !important; top: auto !important; right: auto !important; width: 100% !important; z-index: auto !important; margin: 10px 0 20px; }
  .qp-intro .qp-intro-img { max-height: 340px; }
}

/* подвал WP: колонка контактов у образца 160px, длинные строки переносим (иначе страница шире окна на 1024-1280) */
.footer-column--contacts { overflow-wrap: anywhere; }
.footer-column--contacts .footer-link__link, .footer-column--contacts .footer-mail__link { white-space: normal !important; display: inline-block; max-width: 160px; }

/* ---- свои иконки и стоковые фото (вместо графики образца) */
.pm-item__ico.qp-ico::before { width: 32px; height: 32px; margin: -16px 0 0 -16px; background: var(--qp-ico) 50% 50% / contain no-repeat; }
.qp-ico-bg { background-size: contain !important; background-repeat: no-repeat !important; background-position: 50% 50% !important; }
.qp-hero-photo { background-size: cover !important; background-position: 50% 50% !important; position: relative; }

.qp-hero-photo > * { position: relative; z-index: 1; }
.qp-intro .qp-intro-img { mix-blend-mode: normal; border-radius: 20px; width: 100%; height: auto; max-width: 515px; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.qp-delivery-img { display: block; width: 100%; height: auto; border-radius: 16px; }
.qp-contacts-photo { margin: 24px 0; }
.qp-contacts-photo img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 16px; }
.mh-card__img, .about-page .service-img img { object-fit: cover; border-radius: 12px; }
@media (max-width: 767px) { .qp-intro .qp-intro-img { max-height: none; } }

/* ---- UX-проверка 2026-10-29 */
/* плитки главной: название до трёх строк не наезжает на «Цена по запросу» (у образца было 2 строки с обрезкой) */
.mh-card__title { line-height: 1.25 !important; display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.mh-card-left { padding-right: 6px !important; }
/* свёрнутая сетка плиток: обрезанный ряд полностью уходит под затухание; «Показать все» раскрывает все плитки */
.mh-cards:before { height: 150px !important; }
.mh-cards._all { max-height: none !important; }
.mh-cards._all:before { height: 0 !important; }
/* кнопка «наверх» — прозрачное кольцо поверх текста: даём подложку */
.go-up { background-color: rgba(255, 255, 255, .92) !important; border-radius: 50%; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
/* рамка фокуса только при навигации с клавиатуры */
a:focus:not(:focus-visible), button:focus:not(:focus-visible), [tabindex]:focus:not(:focus-visible), input:focus:not(:focus-visible) { outline: none !important; }
/* баннер главной: кнопка не прилипает к подзаголовку, точки слайдера ниже кнопки */
.qp-hero-photo .button--promo { margin-top: 14px !important; }
@media (max-width: 767px) { .qp-hero-photo .mh-slider-content { padding-bottom: 22px; } }
/* длинные слова в плитках («термокружки») не уходят под фото */
.mh-card__title { overflow-wrap: break-word; hyphens: auto; }
@media screen and (min-width: 768px) { .mh-card__title { font-size: 17px !important; } }

/* Логотип QAZPROMO горизонтальный (знак Q + надпись), а не квадрат образца: колонка логотипа шире, соседние уже на столько же */
.header__logo, .header__logo-repeat { width: 88px !important; height: 34px !important; margin: 3px 0 !important; }
.header-left { width: 88px; }
.header-middle { width: calc(100% - 208px); }
@media screen and (min-width: 480px) { .header-middle { width: calc(100% - 288px); } }
@media screen and (min-width: 768px) {
  .header__logo, .header__logo-repeat { width: 124px !important; height: 48px !important; margin: 0 !important; }
  .header-left { width: 124px; }
  .header-middle { width: calc(100% - 414px); }
}
@media screen and (min-width: 944px) { .header-left { width: 124px; } .header-middle { width: calc(100% - 565px); } }
@media screen and (min-width: 1204px) { .header-left { width: 124px; } .header-middle { width: 218px; } .header-right { width: calc(100% - 342px); } }
@media screen and (min-width: 1448px) { .header-left { width: 124px; } .header-middle { width: 268px; } .header-right { width: calc(100% - 392px); } }
.footer__logo { width: 124px !important; height: 48px !important; }
.img-logo { width: auto; height: 48px; }
