/* Внутренние страницы (каталог, товары, политики, 404, поиск) в стиле макета v42. Подключается после v42.css. */

/* Верх страницы и хлебные крошки (разметка плагина kama_breadcrumbs из mini-top) */
.inner-head { background: var(--paper); border-bottom: 1px solid #e9ece9; padding-bottom: 36px; }
.kama_breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 11px; padding-top: 23px; color: var(--body); font-size: 13px; line-height: 1.6; }
.kama_breadcrumbs a:hover { color: var(--accent-dark); text-decoration: underline; }
.kama_breadcrumbs .kb_sep { color: #9aa4a8; }
.kama_breadcrumbs .kb_title { color: var(--muted); }
.inner-title { margin-top: 22px; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
.inner-excerpt { margin-top: 16px; max-width: 860px; }
.inner-head:has(.container:empty) { padding-bottom: 0; }

/* Текст страниц */
.inner-content { padding-block: 56px 80px; }
.inner-main { max-width: 900px; min-width: 0; }
.inner-with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.inner-with-aside .inner-main { max-width: none; }
.page-content h2 { margin: 40px 0 16px; font-size: clamp(24px, 2.4vw, 30px); }
.page-content h3 { margin: 28px 0 12px; font-size: 21px; }
.page-content h2:first-child, .page-content h3:first-child { margin-top: 0; }
.page-content p { margin-top: 0; margin-bottom: 16px; }
.page-content ol { margin: 16px 0; padding-left: 24px; list-style: decimal; }
.page-content a, .category__text a, .k-product-info a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
.page-content th, .page-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.page-content img { height: auto; }

/* Оглавление LuckyWP Table of Contents */
.lwptoc { margin: 0 0 32px !important; }
.lwptoc_i { padding: 22px 26px !important; border: 1px solid var(--line) !important; border-radius: 8px !important; background: var(--paper) !important; color: var(--ink) !important; }
.lwptoc_title { font-weight: 750 !important; }
.lwptoc_item a { color: var(--ink) !important; text-decoration: none !important; }
.lwptoc_item a:hover { color: var(--accent-dark) !important; }

/* Боковая форма заявки на обычной странице */
.inner-order { position: sticky; top: 120px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 12px 35px #192a320d; }
.inner-order h3 { font-size: 22px; margin-bottom: 18px; }
.inner-order .offer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.inner-order .offer-price { padding: 12px 14px; border-radius: 6px; background: var(--paper); }
.inner-order .offer-price span { display: block; font-size: 13px; color: var(--muted); }
.inner-order .offer-price strong { font-size: 19px; }
.inner-order .offer-price.old strong { color: var(--muted); text-decoration: line-through; }
.inner-order .offer-price.new strong { color: var(--accent-dark); }
.inner-order-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Карточки каталога */
.inner-catalog { padding-block: 48px 64px; }
.k-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.k-cards-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.k-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px #192a3210; }
.k-card-image { display: flex; align-items: center; justify-content: center; height: 230px; padding: 18px; background: #fff; border-bottom: 1px solid #eef0ec; overflow: hidden; }
.k-cards-sections .k-card-image { height: 260px; }
.k-card-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .25s; }
.k-card:hover .k-card-image img { transform: scale(1.03); }
.k-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 22px 22px; }
.k-card-title { font-size: 18px; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.k-cards-sections .k-card-title { font-size: 22px; padding-right: 30px; }
.k-card-info { color: var(--body); font-size: 14px; line-height: 1.6; }
.k-card-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: auto; padding-top: 6px; }
.k-price { color: var(--accent-dark); font-size: 19px; font-weight: 800; }
.k-price-old { color: var(--muted); font-size: 15px; text-decoration: line-through; }
.k-card-arrow { position: absolute; right: 20px; bottom: 24px; width: 22px; height: 22px; color: var(--accent); }
.k-more { display: flex; justify-content: center; margin-top: 40px; }

/* «Наши услуги» на внутренних страницах */
.inner-terms { background: var(--paper); }
.inner-terms-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inner-terms .service-tile-copy strong { font-size: 18px; font-weight: 700; }
.inner-terms .service-tile-copy > .icon { position: absolute; right: 20px; bottom: 24px; width: 20px; height: 20px; color: var(--accent); }

/* Текст под каталогом */
.inner-text { padding-block: 56px 80px; }
.category__text { max-width: 980px; }
.category__text h2 { margin: 36px 0 14px; font-size: clamp(24px, 2.4vw, 30px); }
.category__text h2:first-child { margin-top: 0; }

/* Карточка товара */
.k-product-page { padding-block: 40px 80px; }
.k-product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.k-product-image { position: sticky; top: 120px; display: flex; align-items: center; justify-content: center; height: 520px; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.k-product-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.k-product-body .inner-title { margin-top: 0; font-size: clamp(28px, 3vw, 40px); }
.k-achievement { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 750; }
.k-achievement img { width: 36px; height: 36px; object-fit: contain; }
.k-product-prices { margin-top: 18px; }
.k-product-prices .k-price { font-size: 26px; }
.k-product-info { margin-top: 22px; }
.k-specs { margin: 28px 0 0; border-top: 1px solid var(--line); }
.k-specs div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.k-specs dt { color: var(--muted); }
.k-specs dd { margin: 0; text-align: right; font-weight: 700; color: var(--ink); }
.k-product-actions { margin-top: 28px; }

/* Списки, поиск, 404 */
.k-list { display: grid; gap: 14px; }
.k-list li { padding: 18px 22px; border: 1px solid var(--line); border-radius: 7px; }
.k-list a { font-weight: 750; font-size: 18px; }
.k-list a:hover { color: var(--accent-dark); }
.k-list p { margin-top: 6px; color: var(--body); font-size: 15px; }
.k-empty h2 { font-size: 26px; margin-bottom: 10px; }
.k-empty a { color: var(--accent-dark); text-decoration: underline; }
.search-form { display: flex; gap: 10px; margin-bottom: 28px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cdd5d3; border-radius: 6px; }
.search-form .search-submit { min-height: 48px; padding: 10px 20px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 750; cursor: pointer; }
.k-404 { padding-block: 100px 120px; text-align: center; }
.k-404 .inner-title { margin: 0 0 28px; font-size: clamp(40px, 6vw, 72px); }

@media (max-width: 1199px) {
  .k-cards, .inner-terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inner-with-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
}
@media (max-width: 959px) {
  .k-cards, .k-cards-sections, .inner-terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .inner-with-aside { grid-template-columns: 1fr; }
  .inner-order { position: static; }
  .k-product-grid { grid-template-columns: 1fr; gap: 28px; }
  .k-product-image { position: static; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 767px) {
  .inner-head { padding-bottom: 26px; }
  .inner-content, .inner-text { padding-block: 36px 56px; }
  .inner-catalog { padding-block: 32px 48px; }
  .k-card-body { padding: 16px; }
  .k-card-image { height: 180px; }
  .k-cards-sections .k-card-image { height: 200px; }
  .k-product-image { height: 340px; }
  .k-card-title { font-size: 16px; }
  .k-cards-sections .k-card-title { font-size: 19px; }
  .k-specs div { font-size: 14px; }
}
@media (max-width: 479px) {
  .k-cards, .k-cards-sections, .inner-terms-grid { grid-template-columns: 1fr; }
  .inner-order { padding: 20px; }
  .inner-order .offer { grid-template-columns: 1fr 1fr; }
  .search-form { flex-direction: column; }
}

/* длинные адреса и слова в текстах политик не растягивают страницу на телефоне */
.page-content { overflow-wrap: anywhere; }
