/* ==========================================================================
   ТехноШок — внутренние страницы: шапка страницы, меню раздела, текст,
   «О компании», «Контакты», «Наши награды»
   ========================================================================== */

/* ---------- Шапка страницы ---------- */
.page-head {
  padding-block: clamp(2rem, 1.2rem + 3vw, 3.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.page-head h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}
.page-head .lead { margin-top: 16px; }

/* меню раздела (бывшее левое меню старого сайта) */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: #fff;
  color: var(--c-text);
  font: 500 0.9375rem/1.2 var(--font-text);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.subnav a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.subnav a[aria-current="page"] { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }

.section--page { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

/* ---------- Текст ---------- */
.prose { max-width: 70ch; }
.prose p + p { margin-top: 1em; }
.prose strong { font-weight: 600; color: var(--c-text); }
.prose hr { height: 1px; margin: 2rem 0; border: 0; background: var(--c-border); }

/* ---------- О компании ---------- */
.about-page { display: grid; gap: 32px; }
.geo-map { margin: 0; }
.geo-map img {
  width: 100%;
  max-width: 521px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.geo-map figcaption { margin-bottom: 12px; font: 700 1.125rem/1.35 var(--font-head); }

@media (min-width: 1024px) {
  .about-page { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; row-gap: 0; }
  .about-page > .prose:first-child { grid-column: 1; grid-row: 1; }
  .about-page > .prose:last-child { grid-column: 1; grid-row: 2; margin-top: 1em; }
  .about-page > .geo-map { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

/* ---------- Контакты ---------- */
.contacts-page { display: grid; gap: 32px; }
.contacts-page__org { font: 700 1.25rem/1.35 var(--font-head); }
.contact-list { display: grid; gap: 20px; margin-top: 24px; }
.contact-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--c-accent-tint);
  color: var(--c-accent);
}
.contact-item__icon .icon { width: 22px; height: 22px; }
.contact-item__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.contact-item__value { margin-top: 2px; font-size: 1.0625rem; line-height: 1.5; }
.contact-item__value a { color: var(--c-text); }
.contact-item__value a:hover { color: var(--c-accent); }
.contact-item__phones a {
  display: block;
  padding: 2px 0;
  font: 700 1.25rem/1.4 var(--font-head);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.contacts-page__maps { margin-top: 24px; color: var(--c-text-muted); }
.contacts-page .btn-row { margin-top: 24px; }

.map-frame {
  width: 100%; /* без явной ширины min-height через aspect-ratio раздувает блок шире экрана телефона */
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  aspect-ratio: 5 / 4;
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 1024px) {
  .contacts-page { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .map-frame { aspect-ratio: auto; height: 520px; }
}

/* ---------- Наши награды ---------- */
.awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}
.award__link {
  display: grid;
  gap: 10px;
  color: var(--c-text);
  text-decoration: none;
}
.award__frame {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  aspect-ratio: 3 / 4;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.award__frame img { width: 100%; height: 100%; object-fit: contain; }
.award__caption { font-size: 0.9375rem; line-height: 1.4; color: var(--c-text-muted); }
.award__link:hover .award__frame { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.award__link:hover .award__caption { color: var(--c-accent); }

@media (min-width: 640px) {
  .awards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (min-width: 1024px) {
  .awards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Цены ---------- */
.prices { display: grid; gap: 12px; padding: 0; list-style: none; }
.price-row {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.price-row:hover { border-color: #d6c3b1; box-shadow: var(--shadow-sm); }
.price-row__title {
  font: 700 1.125rem/1.35 var(--font-head);
  color: var(--c-text);
  text-decoration: none;
  text-wrap: balance;
}
a.price-row__title:hover { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px; }
.price-row__desc { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--c-text-muted); }
.price-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-caramel-tint);
  color: var(--c-accent);
  font: 500 0.8125rem/1.3 var(--font-text);
}
.price-row__price {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-border);
}
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.price-line__model { font: 600 0.9375rem/1.3 var(--font-text); color: var(--c-text-muted); }
.price-line__amount { white-space: nowrap; }
.price-line__value {
  font: 800 1.375rem/1.2 var(--font-head);
  font-variant-numeric: tabular-nums;
  color: var(--c-text);
}
.price-line__extra { font: 500 0.9375rem/1.2 var(--font-text); color: var(--c-text-muted); }

@media (min-width: 768px) {
  .price-row {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 32px;
    padding: 22px 28px;
  }
  .price-row__price {
    padding: 0 0 0 28px;
    border-top: 0;
    border-left: 1px dashed var(--c-border);
    align-self: stretch;
    align-content: center;
  }
  .price-line { justify-content: flex-end; }
  .price-line__model { margin-right: auto; }
}

.info-cards { display: grid; gap: 16px; margin-top: 48px; }
.info-card {
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.info-card p + p { margin-top: 0.75em; }
.info-card__title { margin-bottom: 12px; font: 700 1.125rem/1.35 var(--font-head); }
ol.info-card__list { display: grid; gap: 10px; padding-left: 1.25em; list-style: decimal; }
ol.info-card__list li::marker { color: var(--c-accent); font-weight: 600; }
.pay-steps { display: grid; gap: 8px; margin-bottom: 14px; padding: 0; list-style: none; }
.pay-steps li { display: flex; align-items: baseline; gap: 12px; }
.pay-steps__value {
  min-width: 3.2em;
  font: 800 1.375rem/1.2 var(--font-head);
  font-variant-numeric: tabular-nums;
  color: var(--c-accent);
}

@media (min-width: 1024px) {
  .info-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Новости: список записей ---------- */
.news-list { display: grid; gap: 16px; padding: 0; list-style: none; }
.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-card:has(:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.news-card__thumb {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: var(--c-surface);
}
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card__thumb--empty { display: grid; place-items: center; color: var(--c-caramel); }
.news-card__thumb--empty .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.news-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-card__date {
  font: 600 0.75rem/1.3 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-caramel-text);
}
.news-card__title { font: 700 1.0625rem/1.35 var(--font-head); text-wrap: balance; }
.news-card__title a { color: var(--c-text); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card__title a:focus-visible { outline: none; }
.news-card:hover .news-card__title a { color: var(--c-accent); }
.news-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-accent);
}
.news-card__more .icon { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.news-card:hover .news-card__more .icon { transform: translateX(3px); }

@media (min-width: 640px) {
  .news-card { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 20px; }
  .news-card__thumb { aspect-ratio: 4 / 3; }
  .news-card__title { font-size: 1.1875rem; }
}
@media (min-width: 1024px) {
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Страница записи ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--c-text-subtle); }
.breadcrumbs a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); text-decoration: underline; }
.page-head--post h1 { max-width: 28ch; margin-top: 16px; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); text-wrap: balance; }
.post__date { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.9375rem; color: var(--c-text-muted); }
.post__date .icon { width: 18px; height: 18px; color: var(--c-caramel); }

.post { display: grid; gap: 28px; max-width: 760px; }
.post__media { display: flex; flex-wrap: wrap; gap: 12px; }
.post__media a { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-border); }
.post__media img { display: block; }
.post__content { font-size: 1.0625rem; line-height: 1.7; }

.post-nav { display: grid; gap: 12px; max-width: 760px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.post-nav__link {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  text-decoration: none;
}
.post-nav__link:hover { border-color: var(--c-accent); color: var(--c-accent); }
.post-nav__label { font: 600 0.75rem/1.3 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-subtle); }
.post-nav__title { font: 700 1rem/1.35 var(--font-head); }
.post__back { margin-top: 24px; }
.post__back .icon { transform: rotate(180deg); }
.post__back:hover .icon { transform: rotate(180deg) translateX(3px); }

@media (min-width: 640px) {
  .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-nav__link--next { grid-column: 2; text-align: right; }
}

/* ---------- Экономическая эффективность ---------- */
.econ-intro { display: grid; gap: 28px; }
.econ-intro__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }

.econ-compare { margin-top: 48px; }
.econ-compare__lead { max-width: 70ch; }
.compare-cards { display: grid; gap: 16px; margin-top: 24px; }
.compare-card {
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.compare-card--accent { border-color: var(--c-accent); background: #fff; }
.compare-card__title { margin-bottom: 10px; font: 700 1.125rem/1.35 var(--font-head); }
.compare-card--accent .compare-card__title { color: var(--c-accent); }

.econ-blocks { display: grid; gap: 40px; margin-top: 56px; }
.econ-block { max-width: 70ch; }
.econ-block__title { margin-bottom: 12px; font: 700 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1.3 var(--font-head); }
.econ-block p + p { margin-top: 0.85em; }
ul.econ-block__list { display: grid; gap: 10px; margin-top: 12px; padding-left: 1.25em; list-style: disc; }
ul.econ-block__list li::marker { color: var(--c-caramel); }

@media (min-width: 768px) {
  .compare-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1024px) {
  .econ-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .econ-intro__photo { position: sticky; top: calc(var(--header-h) + 24px); }
  .econ-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
}

/* ---------- Сравнительный анализ предложений ---------- */
.kinds { display: grid; gap: 16px; margin-top: 16px; padding: 0; list-style: none; }
.kind {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.kind strong { font-weight: 600; }
.kind__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  color: var(--c-accent);
  font: 700 0.9375rem/1 var(--font-head);
}

.cmp-wrap { margin-top: 48px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.cmp thead th {
  padding: 0 16px 12px 0;
  border-bottom: 2px solid var(--c-text);
  font: 600 0.75rem/1.35 var(--font-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  vertical-align: bottom;
  color: var(--c-text-muted);
}
.cmp tbody th,
.cmp tbody td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.cmp__model { min-width: 180px; font-weight: 400; }
.cmp__name { display: block; font: 700 1.0625rem/1.3 var(--font-head); color: var(--c-text); }
.cmp__name a { color: inherit; }
.cmp__maker { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--c-text-muted); }
.cmp__maker a { color: inherit; }
.cmp__model .tag { margin-top: 8px; }
.cmp__price { white-space: nowrap; font: 700 1rem/1.5 var(--font-head); font-variant-numeric: tabular-nums; }
.cmp tr.is-ours > * { background: var(--c-accent-tint); }
.cmp tr.is-ours > :first-child { box-shadow: inset 4px 0 0 var(--c-accent); padding-left: 16px; }
.cmp tr.is-ours .cmp__name,
.cmp tr.is-ours .cmp__price { color: var(--c-accent); }

/* таблица на узких экранах — карточка на каждую модель */
@media (max-width: 899px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp tr {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
  }
  .cmp tbody th,
  .cmp tbody td { padding: 0; border: 0; }
  .cmp tbody td { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; margin-top: 10px; }
  .cmp tbody td::before { content: attr(data-label); font-size: 0.8125rem; line-height: 1.5; color: var(--c-text-muted); }
  .cmp__price { white-space: normal; }
  .cmp tr.is-ours { border-color: var(--c-accent); }
  .cmp tr.is-ours > :first-child { box-shadow: none; padding-left: 0; }
  .cmp tr.is-ours > * { background: transparent; }
  .cmp tr.is-ours { background: var(--c-accent-tint); }
}
@media (max-width: 479px) {
  .cmp tbody td { grid-template-columns: 1fr; gap: 2px; }
}

.cmp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--c-text-muted);
}
.analysis-text { margin-top: 48px; }
.callout {
  max-width: 70ch;
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--c-surface);
}

@media (min-width: 1024px) {
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Оборудование (каталог) ---------- */
.eq-feature {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--c-accent);
  border-radius: var(--r-lg);
  background: #fff;
}
.eq-feature__media { display: grid; place-items: center; padding: 16px; background: var(--c-surface); }
.eq-feature__media img { width: 100%; max-width: 560px; mix-blend-mode: multiply; }
.eq-feature__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.eq-feature__title { font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.2 var(--font-head); text-wrap: balance; }
.eq-feature__sub { margin-top: -6px; font-size: 1rem; color: var(--c-text-muted); }
.eq-feature__text { max-width: 65ch; }
.eq-feature .specs { margin-top: 8px; }
.eq-feature .btn-row { margin-top: 12px; }

@media (min-width: 1024px) {
  .eq-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .eq-feature__media { padding: 32px; }
  .eq-feature__body { padding: 36px 40px; }
}

ul.eq-grid { display: grid; gap: 16px; margin-top: 32px; padding: 0; list-style: none; }
.eq-grid > li { display: flex; }
.eq-grid .card { flex: 1; }
@media (min-width: 640px) {
  ul.eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1024px) {
  ul.eq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.eq-others { display: grid; gap: 16px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--c-border); }
.eq-other {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.eq-other__img { width: 96px; height: auto; border-radius: var(--r-sm); background: #fff; mix-blend-mode: multiply; }
.eq-other__title { font: 700 1.1875rem/1.35 var(--font-head); text-wrap: balance; }
.eq-other__text { font-size: 0.9375rem; line-height: 1.6; color: var(--c-text-muted); }
.eq-other .specs { margin-top: 4px; }
.eq-other .specs__row { grid-template-columns: 1fr; gap: 2px; }
.eq-other .link-arrow { margin-top: auto; padding-top: 8px; }

@media (min-width: 1024px) {
  .eq-others { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Страница оборудования (линия АС 275 и др.) ---------- */
.page-head--product { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem); }
.product-hero { display: grid; gap: 28px; align-items: center; }
.product-hero h1 { margin-top: 14px; font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); text-wrap: balance; }
.product-hero .lead { margin-top: 8px; }
.product-hero__intro { margin-top: 20px; font-size: 1rem; }
.product-hero .btn-row { margin-top: 24px; }
.product-hero__media img { width: 100%; mix-blend-mode: multiply; }
.product-hero__media--tall img { max-height: 560px; object-fit: contain; }

@media (min-width: 1024px) {
  .product-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
}

/* навигация по разделам страницы */
.toc {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  border-bottom: 1px solid var(--c-border);
  backdrop-filter: blur(6px);
  transition: top var(--t) var(--ease);
}
.toc__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 8px;
}
.toc__inner::-webkit-scrollbar { display: none; }
.toc a {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--c-text-muted);
  font: 500 0.875rem/1.2 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
}
.toc a:hover { background: var(--c-surface); color: var(--c-accent); }
@media (min-width: 1024px) {
  .header.is-scrolled ~ main .toc { top: 60px; }
}
.toc ~ section[id], .toc ~ section [id] { scroll-margin-top: calc(var(--header-h) + 72px); }

.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.line-h2 { margin-bottom: 16px; font: 800 clamp(1.5rem, 1.25rem + 1vw, 2rem)/1.2 var(--font-head); text-wrap: balance; }

/* примеры продукции + достоинства */
.line-benefits { display: grid; gap: 32px; align-items: start; }
.line-benefits__media img { width: 100%; max-width: 420px; border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.line-benefits__media figcaption { margin-top: 10px; font: 700 1rem/1.35 var(--font-head); }
.line-benefits__lead { margin-bottom: 16px; font: 700 1.125rem/1.4 var(--font-head); }
ul.benefits { display: grid; gap: 12px; padding: 0; list-style: none; }
.benefit {
  padding: 18px 20px;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.benefit__title { margin-bottom: 4px; font: 700 1.0625rem/1.35 var(--font-head); }
@media (min-width: 768px) {
  ul.benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .line-benefits { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
}

/* галерея */
.line-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.line-gallery__item { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: #fff; }
.line-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t) var(--ease); }
.line-gallery__item:hover img { transform: scale(1.03); }
.line-composition { margin-top: 24px; max-width: 70ch; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .line-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* узлы линии: текст + фото */
.line-part { display: grid; gap: 28px; align-items: start; }
.line-part__lead { margin-bottom: 14px; font-weight: 600; }
.prose + .line-part__lead { margin-top: 20px; }
ol.parts { display: grid; gap: 12px; padding-left: 1.6em; list-style: decimal; }
ol.parts > li { padding-left: 4px; line-height: 1.6; }
ol.parts > li::marker { font-weight: 700; color: var(--c-accent); }
ol.parts strong, .line-part strong { font-weight: 600; }
ul.parts__sub, ul.prose-list { display: grid; gap: 8px; margin-top: 10px; padding-left: 1.25em; list-style: disc; }
ul.parts__sub li::marker, ul.prose-list li::marker { color: var(--c-caramel); }
.line-part .prose { margin-top: 20px; }
.line-part .prose:first-child, .line-part h2 + .prose { margin-top: 0; }
.note, .option {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--c-accent-tint);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.line-part__media { display: grid; gap: 12px; justify-items: start; }
.line-part__media figure { margin: 0; }
.line-part__media a { display: block; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff; }
.line-part__media img { display: block; max-width: 100%; height: auto; }
.line-part__media--row { grid-template-columns: repeat(2, auto); }
@media (min-width: 1024px) {
  .line-part { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; }
  .line-part__media { position: sticky; top: calc(var(--header-h) + 80px); }
  .line-part__media--row { grid-template-columns: 1fr; }
}

/* энергопотребление и производительность */
.line-numbers { display: grid; gap: 40px; }
.specs__row--total dt, .specs__row--total dd { font-weight: 700; color: var(--c-text); }
.line-output__lead { margin-bottom: 16px; }
ul.outputs { display: grid; gap: 12px; padding: 0; list-style: none; }
.output {
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.output__value { color: var(--c-accent); font: 800 1.0625rem/1.3 var(--font-head); white-space: nowrap; }
@media (min-width: 1024px) {
  .line-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
}
.line-notes { max-width: 820px; }

/* оглавление на десктопе — в несколько строк, без скрытой прокрутки */
@media (min-width: 1024px) {
  .toc__inner { flex-wrap: wrap; overflow: visible; }
  .toc a { padding: 6px 10px; }
}
.prose ul + p, .prose ol + p { margin-top: 1em; }

/* ---------- Темперирующая машина: зоны и таблица по моделям ---------- */
ol.zones { display: grid; gap: 10px; padding: 0; list-style: none; }
.zone {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
}
.zone strong { font-weight: 600; }
.zone__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font: 700 0.9375rem/1 var(--font-head);
}
@media (min-width: 640px) {
  ol.zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.models { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.models th, .models td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.models thead th {
  padding-top: 0;
  border-bottom: 2px solid var(--c-text);
  font: 800 1.125rem/1.3 var(--font-head);
  color: var(--c-accent);
}
.models tbody th { font-weight: 400; color: var(--c-text-muted); }
.models td { font-weight: 600; font-variant-numeric: tabular-nums; }
.power-total { margin-top: 14px; font-size: 1rem; }
.power-total strong { font: 800 1.25rem/1.2 var(--font-head); color: var(--c-accent); }

/* колонки в сетке: не распирать страницу широким содержимым */
.line-numbers > *, .line-part > * { min-width: 0; }

/* таблица по моделям на телефоне — карточка на каждый параметр */
@media (max-width: 639px) {
  .models thead { display: none; }
  .models, .models tbody, .models tr, .models th, .models td { display: block; }
  .models tr { padding: 12px 0; border-bottom: 1px solid var(--c-border); }
  .models th, .models td { padding: 0; border: 0; }
  .models tbody th { margin-bottom: 6px; color: var(--c-text-muted); }
  .models td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
  .models td::before { content: attr(data-label); font-weight: 700; color: var(--c-accent); }
}

/* галереи: 7 фото — по 4 в ряд, 5 вертикальных фото — в один ряд */
@media (min-width: 1024px) {
  .line-gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .line-gallery--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .line-gallery--5 .line-gallery__item { aspect-ratio: 3 / 4; }
}

/* вертикальные фото — миниатюры 3:4; --3 — три в ряд и на телефоне */
.line-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.line-gallery--portrait .line-gallery__item { aspect-ratio: 3 / 4; }

/* ---------- Котел, станция, насосы ---------- */
.product-hero__media--small { display: grid; place-items: center; }
.product-hero__media--small img {
  width: auto;
  max-width: 100%;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: #fff;
  mix-blend-mode: normal;
}
.specs--after { margin-top: 24px; }
.inline-figure { margin: 20px 0 0; }
.inline-figure a { display: inline-block; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.inline-figure img { display: block; }

.pump-tables { display: grid; gap: 24px; }
.pump-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.pump-table caption {
  padding: 0 0 10px;
  text-align: left;
  font: 800 1.25rem/1.3 var(--font-head);
  color: var(--c-accent);
}
.pump-table th, .pump-table td { padding: 10px 12px; border-top: 1px solid var(--c-border); text-align: center; }
.pump-table tr:first-child th, .pump-table tr:first-child td { border-top: 0; background: var(--c-surface-2); font-weight: 700; }
.pump-table th { width: 38%; font-weight: 400; text-align: left; color: var(--c-text-muted); }
.pump-table td { font-weight: 600; }
@media (min-width: 1024px) {
  .pump-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

/* ---------- Трехходовая линия и Cold-pressing ---------- */
.product-hero--text { grid-template-columns: minmax(0, 1fr); }
.product-hero--text .product-hero__text { max-width: 820px; }
.line-h2--next { margin-top: 36px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
ol.passes { display: grid; gap: 12px; padding: 0; list-style: none; }
.pass {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  line-height: 1.6;
}
.pass strong { font-weight: 600; }
.pass__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font: 700 0.9375rem/1 var(--font-head);
}
ul.benefits--single { grid-template-columns: 1fr !important; }
.output__value { white-space: normal; }

.stamp-layout { display: grid; gap: 28px; align-items: start; }
.stamp-layout__card {
  padding: 8px 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.stamp-fact { padding: 16px 0; }
.stamp-fact + .stamp-fact { border-top: 1px solid var(--c-border); }
.stamp-fact dt {
  margin-bottom: 6px;
  font: 600 0.75rem/1.3 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-caramel-text);
}
.stamp-fact dd { font-size: 0.9375rem; line-height: 1.6; }
.stamp-fact strong { color: var(--c-accent); }
.stamp-note { margin-top: 32px; }
@media (min-width: 1024px) {
  .stamp-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; }
}

/* ---------- Формы: объявление ---------- */
.alert {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  max-width: 860px;
  margin-bottom: 40px;
  padding: 20px 24px;
  border: 1px solid #e6c7a3;
  border-left: 4px solid var(--c-caramel);
  border-radius: var(--r-md);
  background: var(--c-caramel-tint);
}
.alert__icon { width: 28px; height: 28px; color: var(--c-caramel-text); }
.alert__title { margin-bottom: 6px; font: 800 1.25rem/1.3 var(--font-head); color: var(--c-accent); }
.alert p + p { margin-top: 0.6em; }

/* ---------- 3D-модели: видео ---------- */
.videos { display: grid; gap: 24px; }
.video { margin: 0; }
.video__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: var(--c-dark);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 10px; font: 600 0.9375rem/1.4 var(--font-text); }
.models-text { max-width: 70ch; }
.videos + .models-text { margin-top: 32px; }
@media (min-width: 768px) {
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.awards-contact { margin-bottom: 24px; }
.price-row__tags .tag { border-radius: var(--r-sm); }
