/* ============================================================================
   koiper-pages.css — слой новых разделов поверх app.css
   Отрасли · Документы · О компании · Новости · Поставщики · Подбор · Правовые
   Использует ту же ДНК: инженерный синий, оранжевый акцент, PT Sans, скругления 8px.
   ========================================================================== */

/* arrow link — корпоративный паттерн (из editorial-слоя, без override радиусов) */
.ed-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--brand); cursor: pointer; transition: gap var(--dur) var(--ease), color var(--dur) var(--ease); }
.ed-arrow svg { transition: transform var(--dur) var(--ease); }
.ed-arrow:hover { gap: 14px; color: var(--blue-700); text-decoration: none; }

/* =============================================================== HEADER NAV DROPDOWN */
.has-mega { position: relative; }
.navlink { display: inline-flex; align-items: center; gap: 5px; }
.navlink .chev { transition: transform var(--dur) var(--ease); }
.has-mega:hover .navlink .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-4); padding: 12px; min-width: 300px; z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mega--wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 11px 13px; border-radius: var(--r-md);
  cursor: pointer; transition: background var(--dur) var(--ease);
}
.mega-item:hover { background: var(--gray-50); text-decoration: none; }
.mega-item .mi-ic { flex: none; width: 34px; height: 34px; border-radius: var(--r-md); background: var(--blue-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.mega-item .mi-t { display: block; font-size: 14px; font-weight: 700; color: var(--gray-900); line-height: 1.25; }
.mega-item .mi-d { display: block; font-size: 12px; color: var(--gray-500); margin-top: 3px; line-height: 1.35; }
.mega-item:hover .mi-t { color: var(--brand); }
.mega-foot { grid-column: 1 / -1; margin-top: 4px; padding: 12px 13px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.mega-foot .ed-arrow { font-size: 13.5px; }

/* mobile menu */
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; cursor: pointer; color: var(--gray-700); align-items: center; justify-content: center; }
.mnav { position: fixed; inset: 0; z-index: 95; background: rgba(6,34,74,0.5); animation: fade var(--dur) var(--ease); }
.mnav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 340px; max-width: 88vw; background: #fff; overflow-y: auto; padding: 18px; box-shadow: var(--shadow-4); animation: slidein var(--dur-slow) var(--ease); }
.mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mnav-grp { border-top: 1px solid var(--gray-100); padding: 8px 0; }
.mnav-grp > .gt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); padding: 10px 6px 6px; }
.mnav a { display: block; padding: 10px 6px; font-size: 15px; font-weight: 700; color: var(--gray-800); cursor: pointer; }
.mnav a.sub { font-weight: 400; font-size: 14px; color: var(--gray-600); padding-left: 6px; }
.mnav a:hover { color: var(--brand); text-decoration: none; }

/* =============================================================== PAGE HERO (interior) */
.phero { background: var(--blue-900); color: #fff; position: relative; overflow: hidden; }
.phero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 95%); mask-image: linear-gradient(100deg, transparent 35%, #000 95%);
}
.phero--photo .phero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.phero--photo .phero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,34,74,0.95) 0%, rgba(6,34,74,0.74) 42%, rgba(6,34,74,0.4) 100%); }
.phero .wrap { position: relative; z-index: 2; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(44px, 5vw, 72px); }
.phero .crumbs { padding-top: 0; padding-bottom: 22px; color: rgba(255,255,255,0.6); }
.phero .crumbs a { color: rgba(255,255,255,0.6); }
.phero .crumbs a:hover { color: #fff; }
.phero .crumbs .sep { color: rgba(255,255,255,0.3); }
.phero .crumbs .cur { color: rgba(255,255,255,0.92); }
.phero .eyebrow { color: var(--orange-300); }
.phero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -0.025em; margin: 0; color: #fff; max-width: 20ch; text-wrap: balance; }
.phero .phero-lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.82); margin: 22px 0 0; max-width: 64ch; }
.phero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.phero-meta { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.16); display: grid; grid-template-columns: repeat(4, 1fr); }
.phero-meta .m { padding: 22px 0; padding-right: 26px; }
.phero-meta .m + .m { padding-left: 26px; border-left: 1px solid rgba(255,255,255,0.12); }
.phero-meta .mk { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-300); }
.phero-meta .mv { font-size: 14px; color: rgba(255,255,255,0.84); margin-top: 8px; line-height: 1.4; }

/* =============================================================== SECTION SUBNAV (tabs) */
.subnav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: var(--header-h, 84px); z-index: 30; }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { padding: 16px 14px; font-size: 14px; font-weight: 700; color: var(--gray-600); white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.subnav a:hover { color: var(--brand); text-decoration: none; }
.subnav a.active { color: var(--brand); border-bottom-color: var(--accent-dyn); }

/* =============================================================== INDUSTRY CARDS (overview A — bento) */
.indcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.indcard {
  position: relative; overflow: hidden; border-radius: var(--r-xl); cursor: pointer; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 28px;
  background: linear-gradient(155deg, var(--blue-600) 0%, var(--blue-900) 100%); color: #fff;
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.indcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(6,34,74,0.25); }
.indcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 30px 30px; opacity: 0.6; }
.indcard .ic { position: absolute; top: 26px; right: 26px; opacity: 0.4; transition: opacity var(--dur-slow) var(--ease); }
.indcard:hover .ic { opacity: 0.72; }
.indcard .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-300); margin-bottom: 10px; }
.indcard h2, .indcard h3 { font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.indcard p { font-size: 14px; color: rgba(255,255,255,0.78); margin: 10px 0 0; line-height: 1.5; }
.indcard .arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 700; color: #fff; font-family: var(--font-mono); letter-spacing: 0.04em; }
.indcard .arrow svg { transition: transform var(--dur) var(--ease); }
.indcard:hover .arrow svg { transform: translateX(4px); }

/* overview B — editorial stacked list */
.indlist { border-top: 1px solid var(--border); }
.indrow {
  display: grid; grid-template-columns: 88px 1.1fr 1.4fr auto; gap: 32px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--dur) var(--ease);
}
.indrow:hover { background: var(--gray-50); }
.indrow .ix { font-family: var(--font-mono); font-size: 15px; color: var(--accent-dyn); }
.indrow .ix .ic2 { width: 52px; height: 52px; border-radius: var(--r-lg); background: var(--blue-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-top: 12px; }
.indrow h2, .indrow h3 { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--gray-900); line-height: 1.1; }
.indrow .cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 8px; }
.indrow p { font-size: 15px; color: var(--gray-600); line-height: 1.55; margin: 0; }
.indrow .go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--brand); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.indrow:hover .go { background: var(--brand); border-color: var(--brand); color: #fff; }
.indrow:hover .go svg { stroke: #fff; }

/* =============================================================== INDUSTRY DETAIL */
.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.task-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 30px; }
.task-card .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dyn); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.task-card .lbl .ic { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--blue-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.task-card h2, .task-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--gray-900); line-height: 1.18; }
.task-card p { font-size: 15px; line-height: 1.6; color: var(--gray-600); margin: 0; }
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { position: relative; padding: 12px 0 12px 32px; font-size: 15.5px; line-height: 1.45; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.req-list li:last-child { border-bottom: none; }
.req-list li::before { content: "\2713"; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-dyn); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* =============================================================== DOC TABLE */
.docsearch { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 4px 4px 4px 16px; max-width: 640px; }
.docsearch input { flex: 1; border: 0; outline: none; font-family: var(--font-sans); font-size: 15px; padding: 11px 0; color: var(--gray-900); background: transparent; }
.docsearch svg { color: var(--gray-400); flex: none; }
.doctable { border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: #fff; }
.doctable .dthead { display: grid; grid-template-columns: 1fr 200px 150px 130px; gap: 16px; padding: 14px 20px; background: var(--gray-50); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.doctable .dtrow { display: grid; grid-template-columns: 1fr 200px 150px 130px; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); align-items: center; transition: background var(--dur) var(--ease); }
.doctable .dtrow:last-child { border-bottom: none; }
.doctable .dtrow:hover { background: var(--gray-50); }
.doctable .dt-name { font-size: 14.5px; font-weight: 700; color: var(--brand); line-height: 1.35; }
.doctable .dt-spec { font-family: var(--font-mono); font-size: 12.5px; color: var(--gray-600); }
.doctable .dt-type { font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); }
.dt-dl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand); cursor: pointer; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md); transition: all var(--dur) var(--ease); white-space: nowrap; }
.dt-dl:hover { background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none; }
.dt-dl:hover svg { stroke: #fff; }
.dt-size { font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); margin-top: 5px; }

/* doc category cards */
.doccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doccard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; cursor: pointer; transition: border-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); display: flex; flex-direction: column; }
.doccard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-3); transform: translateY(-2px); }
.doccard .ic { width: 48px; height: 48px; border-radius: var(--r-lg); background: var(--blue-50); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.doccard h2, .doccard h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin: 0 0 9px; line-height: 1.3; }
.doccard p { font-size: 14px; color: var(--gray-600); line-height: 1.55; margin: 0 0 16px; flex: 1; }
.doccard .cnt { font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); }
.doccard .go { margin-top: 4px; }

/* =============================================================== ABOUT */
.about-lede { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-lede .stmt { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.02em; color: var(--gray-900); margin: 0; text-wrap: balance; }
.about-lede .stmt em { font-style: normal; color: var(--brand); }
.about-lede .body p { font-size: 16.5px; line-height: 1.7; color: var(--gray-600); margin: 0 0 18px; }
.about-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3.2; box-shadow: var(--shadow-3); background: var(--blue-900); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo .cap { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(6,34,74,0.86); color: #fff; padding: 10px 14px; border-radius: var(--r-md); font-family: var(--font-mono); font-size: 11.5px; line-height: 1.4; }
.about-photo--tall { aspect-ratio: 3/4; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.value { background: #fff; padding: 34px 30px; transition: background var(--dur) var(--ease); }
.value:hover { background: var(--gray-50); }
.value .ix { font-family: var(--font-mono); font-size: 13px; color: var(--accent-dyn); margin-bottom: 18px; }
.value h4, .value .value-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--gray-900); }
.value p { font-size: 14.5px; line-height: 1.6; color: var(--gray-600); margin: 0; }

/* team */
.teamband { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/8.4; background: var(--blue-900); box-shadow: var(--shadow-3); }
.teamband img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; display: block; }
.teamband .overlay-t { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 56px); background: linear-gradient(0deg, rgba(6,34,74,0.94) 0%, rgba(6,34,74,0.6) 38%, rgba(6,34,74,0.08) 72%); color: #fff; text-shadow: 0 1px 12px rgba(6,34,74,0.45); }
.teamband .overlay-t h2, .teamband .overlay-t h3 { color: #fff; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; max-width: 22ch; }
.teamband .overlay-t p { font-size: 15.5px; color: rgba(255,255,255,0.84); margin: 0; max-width: 56ch; line-height: 1.55; }

/* =============================================================== NEWS */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ncard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.ncard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-3); transform: translateY(-2px); }
.ncard--feat { grid-column: span 2; flex-direction: row; }
.ncard-media { position: relative; aspect-ratio: 16/10; background: var(--gray-100); overflow: hidden; }
.ncard--feat .ncard-media { aspect-ratio: auto; width: 52%; flex: none; }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 480ms var(--ease); }
.ncard:hover .ncard-media img { transform: scale(1.04); }
.ncard-tag { position: absolute; top: 14px; left: 14px; background: var(--accent-dyn); color: #fff; font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; padding: 5px 10px; border-radius: var(--r-sm); }
.ncard-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.ncard--feat .ncard-body { padding: clamp(24px, 3vw, 44px); justify-content: center; }
.ncard-date { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); letter-spacing: 0.03em; margin-bottom: 12px; }
.ncard h2, .ncard h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--gray-900); margin: 0 0 10px; }
.ncard--feat h2, .ncard--feat h3 { font-size: clamp(24px, 2.4vw, 34px); }
.ncard p { font-size: 14.5px; color: var(--gray-600); line-height: 1.55; margin: 0 0 16px; flex: 1; }
.ncard .ed-arrow { margin-top: auto; }

/* article */
.article { max-width: 760px; margin: 0 auto; }
.article p { font-size: 17px; line-height: 1.75; color: var(--gray-700); margin: 0 0 22px; }
.article h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 18px; color: var(--gray-900); }
.article .lead-p { font-size: 20px; line-height: 1.6; color: var(--gray-800); font-weight: 400; }
.article-fig { margin: 36px 0; }
.article-fig img { width: 100%; border-radius: var(--r-xl); border: 1px solid var(--border); display: block; }
.article-fig figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); margin-top: 12px; text-align: center; line-height: 1.5; }
.article-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 36px 0; }
.article-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--border); }

/* =============================================================== FORMS — supplier / analog */
.form-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); padding: 28px; text-align: center; color: var(--gray-500); font-size: 14px; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); background: var(--gray-50); }
.dropzone:hover { border-color: var(--brand); background: var(--blue-50); color: var(--brand); }
.dropzone svg { margin: 0 auto 10px; }

/* =============================================================== FINDER */
.finder { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.finder-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); padding: 24px; position: sticky; top: calc(var(--header-h, 84px) + 20px); }
.finder-grp { padding: 16px 0; border-bottom: 1px solid var(--gray-100); }
.finder-grp:first-child { padding-top: 0; }
.finder-grp:last-child { border-bottom: none; padding-bottom: 0; }
.finder-grp .gt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { padding: 8px 13px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--gray-700); background: #fff; cursor: pointer; transition: all var(--dur) var(--ease); }
.fchip:hover { border-color: var(--border-strong); }
.fchip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* =============================================================== LEGAL PROSE */
.legal { max-width: 800px; }
.legal h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 40px 0 14px; color: var(--gray-900); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; color: var(--gray-900); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--gray-700); }
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal .toc { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 22px 26px; margin-bottom: 36px; }
.legal .toc .tt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 12px; }
.legal .toc a, .legal .toc .toc-item { display: block; padding: 6px 0; font-size: 14.5px; color: var(--brand); cursor: pointer; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); margin-bottom: 28px; }

/* sitemap */
.smap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.smap-col h4, .smap-col .smap-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.smap-col a { display: block; padding: 8px 0; font-size: 14.5px; color: var(--gray-700); cursor: pointer; }
.smap-col a:hover { color: var(--brand); text-decoration: none; }

/* =============================================================== SHARED: related products row, mini cards */
.relhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.prose-note { background: var(--success-bg); border-radius: var(--r-lg); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--gray-700); line-height: 1.55; }
.prose-note svg { color: var(--success); flex: none; margin-top: 2px; }

/* =============================================================== PORTAL (BASF-style) HOME */
/* full-bleed rotating hero */
.portal-hero { position: relative; min-height: clamp(540px, 76vh, 800px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--blue-900); }
.portal-hero .ph-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.portal-hero .ph-slide.on { opacity: 1; }
.portal-hero .ph-slide img { width: 100%; height: 100%; object-fit: cover; }
.portal-hero .ph-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(8deg, rgba(6,34,74,0.94) 4%, rgba(6,34,74,0.62) 36%, rgba(6,34,74,0.18) 70%, rgba(6,34,74,0.28) 100%); }
.portal-hero .wrap { position: relative; z-index: 3; padding-top: clamp(72px, 9vw, 132px); padding-bottom: clamp(28px, 3vw, 44px); }
.portal-hero .ph-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-300); margin-bottom: 18px; }
.portal-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 68px); line-height: 1.03; letter-spacing: -0.03em; color: #fff; margin: 0; max-width: 17ch; text-wrap: balance; }
.portal-hero .ph-lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(255,255,255,0.84); margin: 22px 0 0; max-width: 56ch; }
.portal-hero .ph-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer; padding-bottom: 6px; border-bottom: 2px solid var(--accent-dyn); width: fit-content; transition: gap var(--dur) var(--ease); }
.portal-hero .ph-link:hover { gap: 18px; text-decoration: none; }
.portal-hero .ph-link svg { transition: transform var(--dur) var(--ease); }
.portal-hero .ph-link:hover svg { transform: translateX(3px); }
/* story switcher tabs */
.ph-tabs { position: relative; z-index: 3; border-top: 1px solid rgba(255,255,255,0.18); }
.ph-tabs .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; }
.ph-tab { text-align: left; background: none; border: none; cursor: pointer; padding: 22px 26px 24px; position: relative; transition: background var(--dur) var(--ease); border-left: 1px solid rgba(255,255,255,0.12); }
.ph-tab:first-child { border-left: none; }
.ph-tab:hover { background: rgba(255,255,255,0.05); }
.ph-tab .pt-n { font-family: var(--font-mono); font-size: 12px; color: var(--orange-300); }
.ph-tab .pt-t { font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,0.7); margin-top: 7px; line-height: 1.3; transition: color var(--dur) var(--ease); }
.ph-tab.on .pt-t { color: #fff; }
.ph-tab .pt-bar { position: absolute; top: -1px; left: 0; height: 2px; background: var(--accent-dyn); width: 0; }
.ph-tab.on .pt-bar { width: 100%; transition: width 6500ms linear; }

/* stories magazine grid */
.stories { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 20px; }
.story-feat { grid-column: 1 / span 2; grid-row: 1 / span 2; position: relative; min-height: 460px; border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 3vw, 40px); color: #fff; cursor: pointer; isolation: isolate; }
.story-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 600ms var(--ease); }
.story-feat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,34,74,0.92) 2%, rgba(6,34,74,0.5) 42%, rgba(6,34,74,0.12) 100%); }
.story-feat:hover img { transform: scale(1.04); }
.story-feat .s-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-300); margin-bottom: 14px; }
.story-feat h3 { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; max-width: 18ch; text-wrap: balance; }
.story-feat p { font-size: 15.5px; color: rgba(255,255,255,0.82); line-height: 1.55; margin: 14px 0 0; max-width: 46ch; }
.story-feat .ed-arrow { margin-top: 22px; color: #fff; }
.story-feat .ed-arrow:hover { color: #fff; }

.story-sm { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.story-sm:hover { border-color: var(--border-strong); box-shadow: var(--shadow-3); transform: translateY(-2px); }
.story-sm .s-media { aspect-ratio: 16/10; overflow: hidden; background: var(--gray-100); }
.story-sm .s-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--ease); }
.story-sm:hover .s-media img { transform: scale(1.05); }
.story-sm .s-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.story-sm .s-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 9px; }
.story-sm h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--gray-900); margin: 0; }
.story-sm .s-arrow { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--brand); }
.story-sm:hover h4 { color: var(--brand); }

/* topic quick-access row */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); cursor: pointer; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.topic:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); text-decoration: none; }
.topic .t-ic { flex: none; width: 46px; height: 46px; border-radius: var(--r-lg); background: var(--blue-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.topic .t-name { font-size: 16px; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.topic .t-cnt { font-family: var(--font-mono); font-size: 11.5px; color: var(--gray-500); margin-top: 4px; }
.topic .t-go { margin-left: auto; color: var(--gray-400); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.topic:hover .t-go { color: var(--brand); transform: translateX(3px); }
.topic:hover .t-name { color: var(--brand); }

@media (max-width: 1100px) {
  .stories { grid-template-columns: repeat(2, 1fr); }
  .story-feat { grid-column: 1 / span 2; grid-row: auto; min-height: 380px; }
  .topics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ph-tabs .wrap { grid-template-columns: 1fr; }
  .ph-tab { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 22px; }
  .ph-tab:first-child { border-top: none; }
  .ph-tab.on .pt-bar { transition: none; }
}
@media (max-width: 600px) {
  .stories { grid-template-columns: 1fr; }
  .story-feat { grid-column: 1; }
  .topics { grid-template-columns: 1fr; }
}

/* =============================================================== RESPONSIVE */
@media (max-width: 1100px) {
  .indcards, .doccards, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .ncard--feat { grid-column: span 2; }
  .smap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1199px) {
  .mainnav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 900px) {
  .about-lede, .form-split, .finder { grid-template-columns: 1fr; gap: 32px; }
  .finder-panel { position: static; }
  .values { grid-template-columns: 1fr; }
  .task-grid { grid-template-columns: 1fr; }
  .doctable .dthead { display: none; }
  .doctable .dtrow { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .doctable .dt-spec, .doctable .dt-type { grid-column: 1; }
  .doctable .dt-dl { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .phero-meta { grid-template-columns: repeat(2, 1fr); }
  .phero-meta .m:nth-child(odd) { padding-left: 0; border-left: none; }
  .phero-meta .m:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.12); }
  .indrow { grid-template-columns: 1fr auto; gap: 10px 20px; padding: 26px 0; }
  .indrow .ix { display: none; }
  .indrow p { grid-column: 1 / -1; }
  .ncard--feat { flex-direction: column; }
  .ncard--feat .ncard-media { width: 100%; aspect-ratio: 16/10; }
}
@media (max-width: 640px) {
  .burger { width: 40px; height: 40px; flex: 0 0 40px; }
  .indcards, .doccards, .news-grid, .article-gallery, .article-fig + .smap, .smap { grid-template-columns: 1fr; }
  .ncard--feat { grid-column: span 1; }
  .form-grid2 { grid-template-columns: 1fr; }
  .teamband { aspect-ratio: 4/3; }
}
@media (max-width: 360px) {
  .burger { width: 38px; height: 38px; flex-basis: 38px; }
}
