/* =====================================================================
   oborudovanie.html — «Оборудование: параметры станков».
   Подключается ПОСЛЕ about.css и about-v2.css: шапка, подвал, кнопки,
   секции .ab-* и форма заявки берутся оттуда. Здесь только блоки .ob-*.
   ===================================================================== */

/* ---------- Первый экран (компактный, без фото команды) ---------- */
.ob-hero { min-height: 0 !important; height: auto !important; padding: 150px 0 46px !important; align-items: flex-end; }
.ob-hero .ab-hero-media img { filter: blur(3px) brightness(.75); }
.ob-hero h1 { font-size: clamp(30px, 4.4vw, 58px) !important; max-width: 20ch !important; }
.ob-hero .ab-lead { max-width: 640px; }
@media (max-width: 860px) {
    .ob-hero { padding: 110px 0 40px !important; }
    .ob-hero .ab-hero-inner { margin-top: 0; }
}

/* ---------- Навигация по станкам ---------- */
.ob-jump {
    position: sticky; top: 85px; z-index: 50;
    background: rgba(9, 9, 9, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ab-line);
}
.ob-jump .container { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.ob-jump .container::-webkit-scrollbar { display: none; }
.ob-jump a {
    flex: 0 0 auto; padding: 7px 16px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18); color: #ddd; font-size: 14px; font-weight: 600;
    transition: border-color .2s, color .2s;
}
.ob-jump a:hover { border-color: var(--ab-orange); color: var(--ab-orange); }
@media (max-width: 991px) { .ob-jump { top: 72px; } }

/* Якоря не прячутся под шапкой и плашкой навигации */
.ob-machine, #summary { scroll-margin-top: 150px; }

/* ---------- Карточка станка ---------- */
.ob-machine { padding: 64px 0; border-top: 1px solid var(--ab-line); }
.ob-machine:nth-of-type(even) { background: #0e0e0e; }
.ob-machine-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: start; }
.ob-kicker {
    display: inline-block; margin-bottom: 14px;
    color: var(--ab-orange); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.ob-machine h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.ob-model { color: #8d8d8d; font-size: 15px; margin-bottom: 22px; }
.ob-model strong { color: #fff; }
.ob-text > p { color: #cfcfcf; font-size: 17px; line-height: 1.8; margin-bottom: 16px; max-width: 60ch; }
.ob-text .ab-ticks { margin-top: 18px; }
.ob-photo { margin-top: 26px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ab-line); }
.ob-photo img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.ob-cta-inline { margin-top: 24px; }

/* Паспортная таблица характеристик */
.ob-passport {
    border: 2px solid rgba(255, 138, 0, .55); border-radius: 4px;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 24px 24px,
        var(--ab-panel);
}
.ob-passport-title {
    padding: 13px 22px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ab-orange); border-bottom: 2px solid rgba(255, 138, 0, .55);
}
.ob-passport > div {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    padding: 13px 22px; border-bottom: 1px solid var(--ab-line);
}
.ob-passport > div:last-child { border-bottom: 0; }
.ob-passport dt { color: var(--ab-muted); line-height: 1.5; }
.ob-passport dd { color: #fff; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ob-passport + .ob-passport { margin-top: 20px; }

/* ---------- Таблицы (режимы резки, матрицы) ---------- */
.ob-table-wrap { overflow-x: auto; border: 1px solid var(--ab-line); border-radius: 8px; background: var(--ab-panel); }
.ob-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ob-table th, .ob-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--ab-line); white-space: nowrap; }
.ob-table th {
    font-size: 13px; font-weight: 700; color: var(--ab-orange);
    border-bottom: 2px solid rgba(255, 138, 0, .55); background: rgba(255, 138, 0, .04);
}
.ob-table tbody tr:last-child td { border-bottom: 0; }
.ob-table tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.ob-table td:first-child { font-weight: 700; color: #fff; }
.ob-table td { color: #d6d6d6; }
.ob-gas { display: inline-block; min-width: 34px; padding: 1px 8px; border-radius: 4px; font-size: 13px; font-weight: 700; text-align: center; }
.ob-gas-n { background: rgba(120, 180, 255, .14); color: #a9cdff; }
.ob-gas-o { background: rgba(255, 138, 0, .16); color: #ffb35c; }

.ob-sub { margin-top: 46px; }
.ob-sub h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.ob-sub > p { color: var(--ab-muted); margin-bottom: 20px; max-width: 75ch; }
.ob-note { margin-top: 16px; color: var(--ab-muted); font-size: 15px; max-width: 80ch; }
.ob-note a, .ob-text a { color: var(--ab-orange); font-weight: 700; border-bottom: 1px solid rgba(255,138,0,.4); }

/* Переключатель материалов */
.ob-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ob-tab {
    padding: 9px 18px; border-radius: 8px; cursor: pointer;
    background: transparent; border: 1.5px solid rgba(255, 255, 255, .2);
    color: #ddd; font-family: inherit; font-size: 15px; font-weight: 700;
    transition: border-color .2s, background .2s, color .2s;
}
.ob-tab:hover { border-color: var(--ab-orange); }
.ob-tab[aria-selected="true"] { background: var(--ab-orange); border-color: var(--ab-orange); color: #111; }
.ob-tab small { font-weight: 600; opacity: .75; margin-left: 4px; }
.ob-panel[hidden] { display: none; }

/* Типы замков фальцепроката */
.ob-locks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.ob-locks > div { padding: 16px 18px; border: 1px solid var(--ab-line); border-radius: 8px; background: var(--ab-panel); }
.ob-locks b { display: block; color: #fff; margin-bottom: 2px; }
.ob-locks span { color: var(--ab-muted); font-size: 14px; }
.ob-locks em { display: block; color: var(--ab-orange); font-style: normal; font-weight: 700; font-size: 14px; margin-top: 6px; }

/* Сводная таблица */
.ob-summary .ob-table td:nth-child(2) { white-space: normal; min-width: 260px; }
.ob-summary .ob-table a { color: #fff; border-bottom: 1px solid rgba(255,138,0,.5); }
.ob-summary .ob-table a:hover { color: var(--ab-orange); }

/* Прочее оборудование — короткие карточки */
.ob-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ob-mini > div { padding: 26px; border: 1px solid var(--ab-line); border-radius: 10px; background: var(--ab-panel); border-top: 3px solid var(--ab-orange); }
.ob-mini h3 { font-size: 20px; margin-bottom: 8px; }
.ob-mini p { color: var(--ab-muted); font-size: 15px; }
.ob-mini dl { margin-top: 14px; border-top: 1px solid var(--ab-line); }
.ob-mini dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ab-line); font-size: 15px; }
.ob-mini dt { color: var(--ab-muted); }
.ob-mini dd { color: #fff; font-weight: 700; text-align: right; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .ob-machine-grid { grid-template-columns: 1fr; gap: 34px; }
    .ob-mini { grid-template-columns: 1fr; }
    .ob-locks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .ob-machine { padding: 48px 0; }
}
@media (max-width: 560px) {
    .ob-passport > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
    .ob-passport-title { padding: 12px 16px; }
    .ob-locks { grid-template-columns: 1fr; }
    .ob-table th, .ob-table td { padding: 10px 12px; }
    .ob-tab { flex: 1 1 auto; }
}
