/* Monad Electronics — site stylesheet */
:root {
  --red: #e01b24;
  --red-600: #c3141c;
  --red-50: #fdecec;
  --ink: #0b1220;
  --navy: #0f1b2d;
  --navy-2: #16253b;
  --steel: #1e293b;
  --text: #1f2937;
  --muted: #5b6575;
  --line: #e4e7ec;
  --soft: #f4f6f9;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08);
  --shadow: 0 10px 30px -12px rgba(15, 27, 45, .22);
  --wrap: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-600); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(224, 27, 36, .45); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.soft { background: var(--soft); }
.section.tight { padding: 56px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head.split > div { max-width: 680px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .97rem; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; line-height: 1.2; font-family: var(--font); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(224, 27, 36, .6); }
.btn-primary:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Top bar */
.topbar { background: var(--ink); color: #c8d0dc; font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #e8edf4; }
.topbar a:hover { color: #fff; }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--red); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.scrolled { box-shadow: 0 6px 24px -14px rgba(15, 27, 45, .35); border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .02em; color: var(--ink); }
.brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button { font: 500 .95rem/1 var(--font); color: var(--text); padding: 10px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav .dd > button:hover { color: var(--red); background: var(--soft); }
.nav > a.active, .nav .dd.active > button { color: var(--red); }
.nav .dd { position: relative; }
.nav .dd > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav .dd.open > button svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); width: 640px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.nav .dd.open .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
@media (hover: hover) and (min-width: 1025px) {
  .nav .dd:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .nav .dd:hover > button svg { transform: rotate(180deg); }
}
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-sm); color: var(--text); }
.mega a:hover { background: var(--soft); color: var(--text); }
.mega .mi { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--red-50); color: var(--red); display: grid; place-items: center; }
.mega .mi svg { width: 20px; height: 20px; }
.mega strong { display: block; font-size: .93rem; color: var(--ink); }
.mega small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.mega .mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: .88rem; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; background: var(--navy); color: #d4dbe6; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -200px; top: -260px; background: radial-gradient(circle, rgba(224, 27, 36, .35), transparent 62%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ff5a5f; }
.hero .lead { color: #b9c3d2; max-width: 560px; font-size: 1.18rem; }
.hero .eyebrow { color: #ff6b70; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-trust { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: #9eabbd; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; max-width: 560px; }
.hero-trust .stars { color: #fbbf24; letter-spacing: 2px; white-space: nowrap; }
.hero-trust strong { color: #fff; }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mosaic .tile { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); position: relative; transition: transform .3s; }
.mosaic .tile:hover { transform: translateY(-4px); }
.mosaic .tile:nth-child(2) { transform: translateY(34px); }
.mosaic .tile:nth-child(2):hover { transform: translateY(30px); }
.mosaic .tile:nth-child(4) { transform: translateY(34px); }
.mosaic .tile:nth-child(4):hover { transform: translateY(30px); }
.mosaic img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; border-radius: 10px; }
.mosaic .tag { position: absolute; left: 14px; bottom: 14px; background: rgba(11, 18, 32, .86); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }

/* Stats */
.stats { position: relative; margin-top: -46px; z-index: 2; }
.stats .grid { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 26px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.stat b span { color: var(--red); }
.stat small { color: var(--muted); font-size: .88rem; }

/* Cards */
.fam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fam-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.fam-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.fam-card .img { background: linear-gradient(180deg, #f7f8fa, #eef1f5); padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fam-card .img img { aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; mix-blend-mode: multiply; }
.fam-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.fam-card h3 { margin-bottom: 8px; }
.fam-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.fam-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; font-weight: 600; color: var(--red); }
.fam-card .count { color: var(--muted); font-weight: 500; }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .25s, box-shadow .25s; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.prod-card .img { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); padding: 14px; }
.prod-card .img img { width: 100%; height: 100%; object-fit: contain; }
.prod-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prod-card .cat { font-size: .72rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.prod-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.prod-card p { font-size: .87rem; color: var(--muted); margin: 0 0 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card .more { font-size: .87rem; font-weight: 600; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }
.prod-card .more svg { width: 15px; height: 15px; }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e01b24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check-list.cols { grid-template-columns: 1fr 1fr; }

.panel { background: var(--navy); color: #c7d0dd; border-radius: 20px; padding: 40px; position: relative; overflow: hidden; }
.panel::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(224, 27, 36, .35), transparent 65%); }
.panel h3 { color: #fff; font-size: 1.5rem; }
.panel .kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; margin: 22px 0 0; font-size: .94rem; position: relative; z-index: 1; }
.panel .kv dt { color: #8d9bb0; }
.panel .kv dd { margin: 0; color: #fff; font-weight: 500; }

/* Industries + clients */
.chips-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-static { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink); }
.chip-static::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .client { flex: none; padding: 16px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; color: var(--steel); font-size: .95rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } html { scroll-behavior: auto; } }
.client-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.client-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.client-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.client-group h3 .n { margin-left: auto; font-family: var(--font); font-size: .8rem; color: var(--muted); font-weight: 500; }
.client-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .93rem; }
.client-group li { padding-left: 16px; position: relative; }
.client-group li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 2px; background: var(--red); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red-600), var(--red) 55%, #ff4d4f); color: #fff; border-radius: 22px; padding: 48px 52px; display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 600px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-white { background: #fff; color: var(--red-600); }
.cta-band .btn-white:hover { background: var(--ink); color: #fff; }

/* Page hero */
.page-hero { background: var(--navy); color: #b9c3d2; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -240px; background: radial-gradient(circle, rgba(224, 27, 36, .3), transparent 62%); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 60px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p { max-width: 720px; font-size: 1.1rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; margin-bottom: 18px; color: #8d9bb0; list-style: none; padding: 0; }
.crumbs a { color: #c7d0dd; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #56657b; }

/* Toolbar: search + chips */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 13px 16px 13px 46px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: .95rem; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 27, 36, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 500 .86rem/1.2 var(--font); color: var(--text); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { opacity: .6; margin-left: 4px; }
.result-count { font-size: .9rem; color: var(--muted); margin: -12px 0 22px; }
.empty { display: none; text-align: center; padding: 60px 20px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty.show { display: block; }
[hidden] { display: none !important; }

/* Catalog */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: transparent; box-shadow: var(--shadow); }
.doc .pdf { flex: none; width: 48px; height: 58px; border-radius: 8px; background: var(--red-50); color: var(--red); display: grid; place-items: center; position: relative; }
.doc .pdf svg { width: 26px; height: 26px; }
.doc .pdf::after { content: "PDF"; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: .6rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; letter-spacing: .05em; }
.doc .info { flex: 1; min-width: 0; }
.doc h3 { font-size: 1rem; margin: 0 0 4px; font-family: var(--font); font-weight: 600; }
.doc small { color: var(--muted); font-size: .8rem; }
.doc .acts { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: #fff; transition: all .15s; }
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.icon-btn svg { width: 17px; height: 17px; }
.doc-group { margin-bottom: 48px; }
.doc-group > h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.doc-group > h2 .n { font: 500 .85rem var(--font); color: var(--muted); background: var(--soft); border-radius: 999px; padding: 3px 10px; }

/* Product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gallery .main { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 26px; display: grid; place-items: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button { width: 78px; height: 78px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; cursor: pointer; transition: border-color .15s; }
.gallery .thumbs button.on, .gallery .thumbs button:hover { border-color: var(--red); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info .cat-link { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 10px; }
.pd-info h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.pd-info .summary { color: var(--muted); font-size: 1.05rem; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 44%; font-weight: 500; color: var(--muted); background: var(--soft); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-title { font-size: 1.1rem; margin: 0 0 12px; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.assure div { display: flex; gap: 10px; align-items: center; font-size: .84rem; font-weight: 500; background: var(--soft); border-radius: 10px; padding: 12px; }
.assure svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.prose { max-width: 820px; }
.prose p, .prose li { color: #374151; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.prose li p { margin: 0; }
.prose b, .prose strong { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: .92rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }
.pd-body { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; position: sticky; top: 100px; }
.side-card h3 { font-size: 1.1rem; }
.side-card ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.side-card li a { display: flex; gap: 10px; align-items: center; font-size: .9rem; font-weight: 500; color: var(--text); }
.side-card li a:hover { color: var(--red); }
.side-card li svg { width: 18px; height: 18px; color: var(--red); flex: none; }
.side-card + .side-card { margin-top: 20px; }

/* About */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 38px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline b { display: block; font-family: var(--font-head); color: var(--red); font-size: .95rem; letter-spacing: .04em; }
.timeline span { color: var(--ink); font-weight: 500; }
.mentor { display: flex; gap: 22px; align-items: center; margin-bottom: 26px; }
.mentor .avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 1.6rem var(--font-head); flex: none; }
.mentor h3 { margin: 0 0 2px; }
.mentor small { color: var(--muted); }

/* Steps (services) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 2.4rem var(--font-head); color: var(--red-50); -webkit-text-stroke: 1.5px var(--red); display: block; margin-bottom: 12px; line-height: 1; }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.c-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.c-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; flex: none; }
.c-card .ic svg { width: 22px; height: 22px; }
.c-card h3 { font-size: 1.02rem; margin-bottom: 4px; font-family: var(--font); font-weight: 600; }
.c-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.c-card a { color: var(--ink); font-weight: 500; }
.c-card a:hover { color: var(--red); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-sm); }
.form h2 { font-size: 1.6rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 27, 36, .12); }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.form-ok { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #ecfdf3; color: #065f46; font-size: .9rem; }
.form-ok.show { display: block; }
.map { margin-top: 40px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.footer { background: var(--ink); color: #9aa6b8; font-size: .93rem; margin-top: 0; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.footer img.flogo { height: 46px; width: auto; margin-bottom: 18px; }
.footer h4 { color: #fff; font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #c7d0dd; }
.footer a:hover { color: #fff; }
.footer .contact-line { display: flex; gap: 10px; margin-bottom: 12px; }
.footer .contact-line svg { width: 17px; height: 17px; color: var(--red); flex: none; margin-top: 3px; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(224, 27, 36, .6); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 40; border: 0; cursor: pointer; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* 404 */
.nf { text-align: center; padding: 120px 0; }
.nf b { font: 700 6rem/1 var(--font-head); color: var(--red); display: block; }

/* Responsive */
@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats .grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .menu-btn { display: inline-flex; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header-cta .btn { display: none; }
  .nav { position: fixed; left: 0; right: 0; top: var(--hh, 118px); bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; border-top: 1px solid var(--line); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav .dd > button { padding: 15px 6px; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; font-size: 1.02rem; }
  .nav > a:hover, .nav .dd > button:hover { background: none; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 4px 0 10px; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; }
  .nav .dd.open .mega { display: grid; transform: none; }
  .nav .nav-cta { margin-top: 20px; }
  .mega .mega-foot span { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-top: 60px; }
  .split, .pd, .pd-body, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .side-card { position: static; }
  .fam-grid { grid-template-columns: repeat(2, 1fr); }
  .client-groups { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (min-width: 1025px) { .nav .nav-cta { display: none; } }
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .topbar .tb-right { display: none; }
  .topbar .tb-left .hide-sm { display: none; }
  .header .wrap { height: 68px; }
  .brand img { height: 36px; }
  .brand-text span { display: none; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .prod-card .body { padding: 12px 14px 14px; }
  .prod-card h3 { font-size: .96rem; }
  .prod-card p { display: none; }
  .fam-grid, .features, .steps, .doc-grid, .client-groups { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-right: 0; }
  .form .row, .check-list.cols, .assure { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .footer .top { grid-template-columns: 1fr; gap: 32px; }
  .mosaic .tile:nth-child(2), .mosaic .tile:nth-child(4) { transform: translateY(18px); }
  .panel { padding: 28px; }
  .doc .acts .icon-btn:first-child { display: none; }
}
@media print {
  .topbar, .header, .footer, .to-top, .cta-band, .pd-actions { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
}
.crumbs.light { color: var(--muted); margin-bottom: 26px; }
.crumbs.light a { color: var(--text); }
.crumbs.light a:hover { color: var(--red); }
.crumbs.light li + li::before { color: #c2c8d1; }
.doc-group > h2 svg { width: 24px; height: 24px; color: var(--red); }
.client-group h3 svg { width: 22px; height: 22px; color: var(--red); }
