/* ==========================================================================
   grease-card.css: страницы смазок (/grease-nsk/...) и каталог
   Подключается ПОСЛЕ share.css (хедер, футер, бургер, .btn, переменные :root).
   Структура страницы: каждый блок (hero, секции, «похожие») полноширинный,
   а внутри у него свой .container, как на главной.
   Блок «Заголовки и текст» (h1-h4, .lead...) общий, без привязки к странице:
   значения те же, что в style_main.css.
   ========================================================================== */


/* ---------- Каркас страницы ---------- */
.grease-page{ padding-bottom:90px; }     /* отступ перед футером */

/* Первый блок (крошки + заголовок): градиент на всю ширину, как .hero на главной */
.grease-hero{
  background:linear-gradient(to top, var(--bg) 0%, #ffffff 60%, #ffffff 100%);
  padding:72px 0 95px;
}
.grease-header{
  margin-bottom:0;
  text-align:center;
}
.grease-header h1{
  max-width:none;
}
.grease-header .lead{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.grease-header .grease-cta{
  justify-content:center;
}


/* ---------- Заголовки и текст: как на главной ---------- */
h1,h2,h3,p{margin-top:0; }
h1{
  font-weight:700;
  word-spacing:0.1em;

  margin-bottom:24px;
  font-size:clamp(38px,4.8vw,60px);
  line-height:1.02;
  letter-spacing:-.055em;
}
h2{
  font-weight:600;
  margin-bottom:20px;
  font-size:clamp(32px,4vw,48px);
  line-height:1.06;
  letter-spacing:-.045em;
}

.h2_copy{
  display: block; /* Чтобы элемент вел себя как заголовок и переносил строку */
  font-weight:600;
  margin-bottom:20px;
  font-size:clamp(36px,4vw,52px);
  line-height:1.06;
  letter-spacing:-.045em;
}

h3{
  font-weight:500;
  margin-bottom:16px;
  font-size:clamp(30px,3vw,44px);
  line-height:1.06;
  letter-spacing:-.045em;
  color: var(--text);
}

h4{
  font-weight:500;
  margin-top:1px;
  margin-bottom:16px;
  font-size:clamp(24px,2.1vw,34px);
  line-height:1.06;
  letter-spacing:-.045em;
  color: var(--text);
}

h3.purple{color:var(--purple)}

.lead {
  font-weight: 400;
  color: var(--purple);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.6;

}
.lead2 {
  font-weight: 400;
  color: var(--purple);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 18px;
}
.lead3 {
  font-weight: 400;
  color: var(--purple);
  font-size: clamp(16px, 1.33vw, 19px);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 15px;
}
.lead4 {
  font-weight: 500;
  color: var(--purple-soft);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 10px;
}


/* ---------- Хлебные крошки ---------- */
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 10px;
  margin-bottom:34px;
  font-size:14px;
  font-weight:600;
  color:var(--purple-soft);
}
.breadcrumbs a{
  color:var(--purple-soft);
  transition:.18s ease;
}
.breadcrumbs a:hover{ color:var(--text); }
.breadcrumbs .sep{ color:#94a0b2; }
.breadcrumbs [aria-current="page"]{
  color:var(--purple);
  font-weight:700;
}


/* ---------- Кнопки призыва (сами .btn берутся из share.css) ---------- */
.grease-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 36px;
  margin-top:31px;
}
.grease-header .grease-cta {
  margin-top: 60px;   /* расстояние от .lead до кнопок; подставь своё */
}


/* ---------- Секции ---------- */
.grease-section{ margin-bottom:64px; }

/* Обычный текст секций: как .lead3 на главной */
.grease-section p{
  font-weight:400;
  color:var(--purple);
  font-size:clamp(16px,1.33vw,19px);
  line-height:1.5;
  max-width:80ch;
  margin-bottom:15px;
}
.grease-section p:last-child{ margin-bottom:0; }


/* ---------- Таблицы: шрифты как у основного текста (.lead3) ---------- */
.specs-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  background:#fff;
  border:1px solid var(--line);
  border-radius:7px;
}

.specs{
  width:100%;
  border-collapse:collapse;
  border-spacing:0;
  font-size:clamp(16px,1.33vw,19px);
  line-height:1.5;
  color:var(--purple);
}

.specs th,
.specs td{
  padding:.6em .8em;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  vertical-align:top;
  text-align:left;
  overflow-wrap:anywhere;
  background:#fff;
}
.specs th:last-child,
.specs td:last-child{ border-right:none; }
.specs tr:last-child th,
.specs tr:last-child td{ border-bottom:none; }

.specs th{
  font-weight:600;
  color:var(--purple);
}
.specs td{
  font-weight:400;
  color:var(--purple);
}
.specs tbody th{
  width:46%;
  vertical-align:middle;
}

/* ---------- Похожие смазки: карточки как .solution на главной ---------- */
.related{ margin-bottom:56px; }

.related-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
}

.related-list a{
  display:block;
  height:100%;
  padding:26px 20px;
  background:var(--lilac-soft);
  border-radius:15px;
  font-size:16px;
  font-weight:400;
  line-height:1.5;
  color:var(--text);
  transition:transform .18s ease, box-shadow .18s ease;
}
.related-list a:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 25px rgba(15,23,42,.08);
}
.related-list strong{
  display:block;
  margin-bottom:8px;
  font-size:22px;
  font-weight:600;
  color:var(--purple);
}


/* ---------- Ссылка «Все смазки» ---------- */
.back-to-catalog{
  display:inline-block;
  font-size:16px;
  font-weight:600;
  color:var(--accent);
  transition:.18s ease;
}
.back-to-catalog:hover{
  color:var(--accent-dark);
  transform:translateY(-1px);
}


/* Каталог: таблица со строкой-шапкой */
.catalog-table{ min-width:640px; }
.catalog-table thead th{
  white-space:nowrap;
  vertical-align:middle;
}
.catalog-table tbody td{
  padding:0;                          /* паддинг уйдёт в <a> */
}
.catalog-table tbody td a{
  display:block;                      /* вся ячейка — кликабельна */
  padding:.6em .8em;
  color:var(--purple);
  transition:.18s ease;
}
.catalog-table tbody td a strong{ font-weight:700; }
.catalog-table tbody tr:hover td{ background:var(--accent-soft); }
.catalog-table tbody tr:hover td a{ color:var(--accent-dark); }



/* ==========================================================================
   Мобильный ≤650px: значения те же, что в style_main.css
   ========================================================================== */
@media (max-width:650px){
  h1{ font-size:43px; }
  h2{ font-size:36px; }

  .grease-page{ padding-bottom:60px; }
  .grease-hero{ padding:45px 0 65px; }
  .grease-section,
  .related{ margin-bottom:45px; }

  .specs tbody th{ width:50%; }
}