:root {
  color-scheme: light;
  --ink: #161719;
  --muted: #555a62;
  --line: #dcdfe2;
  --paper: #fff;
  --pale: #f2f3f4;
  --accent: #c62626;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #dd6a29; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 64px, 1280px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 10; padding: 10px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.utility { background: #141517; color: #dbdde0; }
.utility-inner { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 700 11px/1.4 var(--mono); letter-spacing: .08em; }
.utility a { color: white; text-decoration: none; }
.utility b, .hero-label b { color: #ff6b60; }
.site-header { border-bottom: 1px solid var(--line); background: white; position: relative; z-index: 2; }
.header-inner { display: flex; min-height: 84px; align-items: center; gap: clamp(12px, 2vw, 29px); }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; }
.wordmark img { display: block; width: clamp(168px, 17vw, 218px); height: auto; }
.header-inner .wordmark img { width: clamp(265px, 24vw, 320px); }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); }
.site-header nav a { padding: 10px 0; white-space: nowrap; color: #313438; text-decoration: none; font-size: 14px; font-weight: 650; }
.site-header nav a:hover, .site-header nav [aria-current] { color: var(--accent); }
.search-toggle, .menu-toggle, .search-head button, #search-retry { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.search-toggle svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.action { display: inline-flex; min-height: 49px; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 750; line-height: 1.25; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: #a51c1c; }
.outline { border-color: #b8bdc2; background: transparent; }
.outline:hover { border-color: currentColor; }
.header-inner > .action { min-height: 44px; font-size: 14px; }
.hero { color: white; background: #17191c linear-gradient(105deg, #151619 18%, #2e3033 100%); background-image: linear-gradient(90deg, #151619 0%, #151619 18%, #151619ed 30%, #15161944 60%, transparent 80%), url("hero.webp"); background-size: auto, cover; background-position: center, center 54%; }
.hero-inner { position: relative; display: grid; align-items: center; min-height: clamp(490px, 47vw, 690px); padding-block: 72px 83px; }
.hero-copy { max-width: 720px; }
.kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font: 750 12px/1.45 var(--mono); letter-spacing: .09em; }
.kicker span { width: 9px; height: 9px; background: #e6473f; flex: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.04em; }
h1 { font-size: clamp(43px, 6.1vw, 93px); margin: 0 0 20px; font-weight: 900; }
.hero h1 em { font-style: normal; color: #ff665a; }
.hero-copy > p:not(.kicker) { margin: 0 0 25px; color: #e0e2e5; max-width: 510px; font-size: clamp(16px, 1.55vw, 21px); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .outline { border-color: #9b9da1; background: #151619b5; }
.file-types { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 24px; color: #d4d7dc; font: 11px/1.1 var(--mono); letter-spacing: .05em; }
.file-types b { border: 1px solid #686b71; border-radius: 3px; padding: 5px 7px; }
.file-types span { margin-left: 5px; }
.hero-label { position: absolute; right: 0; bottom: 17px; margin: 0; color: #e1e2e4; background: #111317b8; padding: 7px 9px; font: 700 10px/1.1 var(--mono); letter-spacing: .09em; }
.quick-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.quick-steps div { display: flex; gap: 13px; align-items: center; min-height: 74px; padding: 10px 17px; font-weight: 750; }
.quick-steps div + div { border-left: 1px solid var(--line); }
.quick-steps b, .card-meta, .result-count { color: var(--muted); font: 700 12px/1.4 var(--mono); }
.quick-steps b { color: var(--accent); }
.section { padding-block: clamp(46px, 6vw, 83px); }
.section-head h2, .cta h2, .detail-layout h2 { margin: 0; font-size: clamp(31px, 4vw, 57px); font-weight: 850; }
.section-head > p:last-child:not(.kicker) { color: var(--muted); max-width: 620px; margin: 10px 0 0; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 27px; }
.split-head .action { flex: none; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.catalog-card { border: 1px solid var(--line); background: white; border-radius: 5px; overflow: hidden; }
.catalog-card { position: relative; }
.catalog-card:focus-within, .catalog-card:hover { border-color: #9da2a7; }
.card-copy { padding: 19px; }
.card-art { height: 142px; background: #e2e6e9; overflow: hidden; }
.card-art svg { display: block; width: 100%; height: 100%; }
.tone-1 { background: #dce0e4; }
.tone-2 { background: #d7e0e2; }
.tone-3 { background: #dedbd7; }
.tone-4 { background: #dfe3ea; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; }
.card-copy :is(h2, h3) { margin: 8px 0; font-size: clamp(21px, 2.2vw, 29px); }
.card-copy :is(h2, h3) a { text-decoration: none; }
.card-copy :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.card-copy :is(h2, h3) span { color: var(--accent); font-size: .66em; }
.card-copy p, .detail-layout p { margin: 0; color: var(--muted); }
.pale { background: var(--pale); }
.example-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.example-card { position: relative; display: flex; flex-direction: column; border: 1px solid transparent; border-radius: 16px; background: #e9eaec; }
.example-card:hover, .example-card:focus-within { border-color: #a6a8ad; }
.example-image { display: grid; place-items: center; min-height: 140px; padding: 7px 9px 0; }
.example-image img { display: block; width: 100%; height: auto; max-width: 290px; filter: drop-shadow(0 7px 5px #18263126); }
.service-image { min-height: 200px; padding: 16px 12px; background: #e9eaec; }
.service-image img { max-width: 330px; }
.service-photo { background: #e9eaec; }
.service-photo img { object-fit: contain; }
.example-copy { display: flex; flex: 1; flex-direction: column; padding: 5px 19px 16px; }
.example-copy :is(h2, h3) { margin: 6px 0 9px; font-size: clamp(19px, 1.75vw, 24px); }
.example-copy :is(h2, h3) a { text-decoration: none; }
.example-copy :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.example-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.example-copy .example-tag { color: #a72020; font: 700 11px/1.45 var(--mono); }
.example-arrow { margin-top: auto; padding-top: 11px; color: #a72020; font-size: 22px; line-height: 1; }
.part-hero { color: white; background: #15171a radial-gradient(ellipse at 80% 50%, #6b747c, #282d32 32%, #141619 63%); }
.part-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(14px, 4vw, 54px); padding-block: clamp(38px, 7vw, 105px); }
.part-hero h1 { font-size: clamp(34px, 5vw, 70px); overflow-wrap: anywhere; }
.part-back { display: inline-block; color: #e2e4e7; margin-bottom: 22px; text-underline-offset: 4px; }
.part-lead { max-width: 590px; color: #e4e6e8; font-size: clamp(16px, 1.7vw, 21px); }
.part-facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #ffffff45; border-radius: 12px; margin: 24px 0; padding: 12px; gap: 3px 14px; }
.part-facts dt { grid-row: 1; font: 700 11px/1.5 var(--mono); color: #d3d7dc; text-transform: uppercase; }
.part-facts dd { grid-row: 2; margin: 0; font-weight: 750; }
.part-hero .outline { color: white; }
.part-hero-art { margin: 0; text-align: center; min-width: 0; }
.part-hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 18px #0008); }
.part-hero-art figcaption { color: #eef0f2; font: 700 11px/1.5 var(--mono); }
.part-jump { position: sticky; top: 0; z-index: 1; background: white; border-bottom: 1px solid var(--line); }
.part-jump .wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding-block: 6px; }
.part-jump a { display: grid; place-items: center; min-height: 44px; padding: 4px 9px; border-radius: 4px; color: #a72020; text-align: center; text-decoration: none; font-weight: 750; font-size: 14px; }
.part-jump a:hover, .part-jump a[aria-current] { background: #fcebea; text-decoration: underline; }
.part-section { scroll-margin-top: 74px; }
.part-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 24px 0 18px; padding: 0; }
.part-feature-grid li { border: 1px solid var(--line); border-radius: 12px; padding: 19px; background: var(--pale); }
.part-feature-grid span { color: #a72020; font: 750 13px/1 var(--mono); }
.part-feature-grid p { margin: 8px 0 0; }
.part-faq { margin-top: 20px; }
.example-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.example-drawing .split-head { align-items: center; margin-bottom: 16px; }
.drawing-preview { display: block; padding: clamp(8px, 2vw, 23px); border: 1px solid var(--line); border-radius: 12px; background: var(--pale); }
.drawing-preview img { display: block; width: 100%; max-width: 1020px; height: auto; margin-inline: auto; }
.text-link, .back { font-weight: 750; color: #a72020; text-underline-offset: 4px; }
.home-guides, .faq-layout, .detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 35px; }
.guide-list a { display: flex; justify-content: space-between; gap: 8px; padding: 15px 0; border-bottom: 1px solid #c8cdd1; font-weight: 750; text-decoration: none; }
.guide-list a:hover { color: var(--accent); }
.faq-list { max-width: 900px; }
.faq-list details { padding: 15px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 750; }
.faq-list details p { margin: 8px 0 0; color: var(--muted); }
.faq-list > a { display: inline-block; margin-top: 15px; }
.cta, .subhero { background: #1c1e21; color: white; }
.cta .wrap { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding-block: 45px; }
.cta h2 { font-size: clamp(30px, 3.5vw, 48px); }
.cta p:last-child, .subhero p:last-child { color: #dbdfe4; margin: 10px 0 0; max-width: 670px; }
.cta .action { flex: none; }
.subhero .wrap { padding-block: clamp(38px, 6vw, 76px); }
.subhero h1 { font-size: clamp(38px, 5.5vw, 77px); max-width: 1010px; }
.filter-controls { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { min-height: 40px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; padding: 7px 12px; }
.filters [aria-pressed="true"] { color: white; background: #222427; border-color: #222427; }
.filter-search, #search-dialog label { font-size: 13px; font-weight: 650; }
input[type="search"] { display: block; min-width: 0; min-height: 41px; width: 100%; border: 1px solid #a5aab0; border-radius: 4px; padding: 7px 10px; background: white; color: var(--ink); }
.filter-search { flex: 0 1 228px; }
.result-count { margin: 13px 0; }
.detail-layout { grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); }
.detail-layout h2 { margin: 12px 0; font-size: clamp(25px, 3vw, 40px); }
.detail-layout article > p + p { margin-top: 12px; }
.detail-layout aside { border: 1px solid var(--line); padding: 23px; border-radius: 5px; align-self: start; background: var(--pale); }
.detail-layout aside .action { margin-top: 15px; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.contacts dt { font-weight: 750; }
.contacts dd { margin: 0; color: var(--muted); }
.material-data { margin-top: 28px; }
.material-data h2 { margin-top: 26px; }
.material-data dl { display: grid; grid-template-columns: 1fr 1.45fr; gap: 0 12px; margin: 0; }
.material-data dt, .material-data dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.material-data dt { font-weight: 750; }
.material-data dd { margin: 0; color: var(--muted); }
.material-operations { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.material-operations li { border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; }
.material-operations a { color: #a72020; font-weight: 750; text-underline-offset: 3px; }
.material-checklist { padding-left: 22px; }
.material-checklist li + li { margin-top: 5px; }
.site-footer { color: #f3f4f5; background: #111214; padding-block: 36px 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 25px; }
.footer-grid p { max-width: 300px; margin: 7px 0 0; color: #c2c5ca; }
.footer-grid nav, .footer-grid > div:last-child { display: grid; align-content: start; gap: 6px; }
.footer-grid a:not(.wordmark) { color: #dddfe2; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-line { display: flex; justify-content: space-between; margin-top: 25px; border-top: 1px solid #45484c; padding-top: 14px; color: #b8bdc4; font: 700 11px/1.4 var(--mono); }
#search-dialog { width: min(600px, calc(100% - 28px)); max-height: 84vh; border: 1px solid var(--line); border-radius: 5px; padding: 22px; }
#search-dialog::backdrop { background: #151619ba; }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 0 0 11px; }
.search-head h2 { margin: 0; }
.search-head button { font-size: 24px; }
#search-results { margin: 0; padding: 0; list-style: none; }
#search-results a { display: block; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
#search-count { margin: 8px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 1070px) {
  .example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wrap { width: min(100% - 36px, 1280px); }
}
@media (max-width: 1180px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; padding-block: 8px; min-height: 64px; }
  .header-inner .wordmark img { width: min(100%, 265px); }
  .menu-toggle { display: inline-grid; padding-inline: 10px; }
  .site-header nav { grid-column: 1 / -1; flex-wrap: wrap; margin: 0; }
  .menu-ready nav { display: none; }
  .menu-ready nav.open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: white; box-shadow: 0 8px 10px #17181927; gap: 0; padding: 4px 18px 9px; max-height: 70vh; overflow: auto; }
  .site-header nav a { display: flex; align-items: center; min-height: 44px; }
  .site-header nav.open a + a { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .example-drawing .split-head { align-items: start; }
  .hero { background-position: center, 60% 52%; background-image: linear-gradient(90deg, #151619f5, #15161970), url("hero.webp"); }
  .hero-inner { min-height: 455px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .part-hero-grid, .part-feature-grid, .home-guides, .faq-layout, .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .part-hero-art { max-width: 460px; width: 100%; margin-inline: auto; }
  .filter-controls, .split-head, .cta .wrap { align-items: start; flex-direction: column; }
  .filter-search { flex: auto; width: min(100%, 260px); }
  .part-jump { position: static; }
  .part-section { scroll-margin-top: 12px; }
}
@media (max-width: 620px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .header-inner > .action { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 480px) {
  .header-inner { gap: 6px; }
  .part-jump .wrap, .example-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .example-actions { grid-template-columns: minmax(0, 1fr); }
  .example-drawing .example-actions { align-self: stretch; }
  .example-actions .action, .part-jump a { overflow-wrap: anywhere; }
  .quick-steps { grid-template-columns: 1fr; padding-block: 8px; }
  .quick-steps div { min-height: 38px; padding: 4px 0; }
  .quick-steps div + div { border-left: 0; }
  .catalog-grid, .example-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .action { justify-content: space-between; }
}
.guide-article section { margin-top: 26px; }
.guide-article ul { padding-left: 22px; }
.guide-article li + li { margin-top: 9px; }
.guide-article .guide-example { padding: 16px 20px; border-left: 3px solid #a72020; border-radius: 5px; background: var(--pale); }
.guide-example h2 { margin-top: 0; font-size: 23px; }
.guide-related ul { padding-left: 19px; margin-bottom: 17px; }
.guide-related li + li { margin-top: 8px; }
.guide-related li a { text-underline-offset: 3px; }
.catalog-photo { height:180px; overflow:hidden; background:var(--pale); }
.catalog-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.detail-photo { margin:20px 0 24px; }
.detail-photo img { width:100%; max-height:390px; object-fit:contain; background:var(--pale); display:block; border-radius:8px; }
.detail-photo figcaption { color:var(--muted); font-size:13px; margin-top:7px; }
