/* Доп.стили ТОЛЬКО для контентных блоков прототипа (шапку/подвал/типографику стилизует
   тема rostech). Имена классов не пересекаются с темой. Следующая итерация — заменить
   эти блоки на «родную» разметку темы для полного 1:1. */

.page-title { font-size: 26px; color: #0d2b45; margin: 6px 0 20px; }
.page-title:empty { display: none; }
.hero { margin-bottom: 24px; font-size: 17px; }

/* сетка карточек */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid #e2e8ec; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; color: #22303a; }
.card:hover { box-shadow: 0 4px 16px rgba(13,43,69,.12); text-decoration: none; }
.card__img { aspect-ratio: 4/3; background: #eef2f5 center/contain no-repeat; }
.card__body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-weight: 600; color: #0d2b45; }
.card__more { margin-top: auto; color: #0a6ebd; font-size: 13px; }

/* плитки разделов */
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0 0 26px; }
.section-tile { background: #0a6ebd; color: #fff !important; padding: 14px 16px; border-radius: 6px; font-weight: 600; }
.section-tile:hover { background: #085a99; text-decoration: none; }

/* карточка товара */
.product { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; margin-bottom: 10px; }
.product__gallery img { width: 100%; border: 1px solid #e2e8ec; border-radius: 6px; background: #fff; }
.product__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product__thumbs img { width: 68px; height: 68px; object-fit: cover; border: 1px solid #e2e8ec; border-radius: 4px; }
.btn { display: inline-block; background: #f28c00; color: #fff !important; padding: 11px 20px; border-radius: 5px; font-weight: 700; border: 0; cursor: pointer; }
.btn:hover { background: #d97b00; text-decoration: none; }
.btn--ghost { background: #fff; color: #0a6ebd !important; border: 2px solid #0a6ebd; }
.price-note { color: #6b7a85; margin: 12px 0; }

/* вкладки */
.tabs { margin-top: 26px; }
.tabs__nav { display: flex; gap: 4px; border-bottom: 2px solid #e2e8ec; flex-wrap: wrap; }
.tabs__btn { background: #eef2f5; border: 0; padding: 9px 16px; cursor: pointer; font-weight: 600; color: #33454f; border-radius: 5px 5px 0 0; }
.tabs__btn.is-active { background: #0a6ebd; color: #fff; }
.tabs__panel { display: none; padding: 16px 2px; }
.tabs__panel.is-active { display: block; }
.tabs__panel table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.tabs__panel td, .tabs__panel th { border: 1px solid #dbe2e7; padding: 7px 11px; }

/* модальная форма */
.modal { position: fixed; inset: 0; background: rgba(13,43,69,.5); display: none; align-items: center; justify-content: center; z-index: 10000; }
.modal.is-open { display: flex; }
.modal__box { background: #fff; border-radius: 8px; padding: 24px; width: 100%; max-width: 400px; }
.modal__box h3 { margin: 0 0 14px; }
.modal input { width: 100%; padding: 10px 12px; margin-bottom: 9px; border: 1px solid #ccd5db; border-radius: 5px; }
.modal input.is-field-error { border-color: #d33; }
.b24-form__message { margin-top: 8px; font-size: 14px; }
.b24-form__message.is-success { color: #1a8a3b; }
.b24-form__message.is-error { color: #d33; }
.b24-hp { position: absolute; left: -9999px; }

.content-text { line-height: 1.6; }
.content-text img { max-width: 100%; height: auto; }

@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
