/* ==========================================================================
   대전프로세스 V_003 — UI/UX Pro Max (인쇄·제판 물성 맞춤 디자인 시스템)
   - 서체: Pretendard (본문·UI) + JetBrains Mono (치수·평량·단가·전화번호)
   - 물성: 미색 인쇄용지(#F7F6F1) + 백상지(#FFFFFF) + 먹 K100(#141413) + 프러시안 네이비(#1B2A59)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@400;500;600;700&display=swap');

:root, [data-theme="hybrid"] {
    --font: 'IBM Plex Sans KR', 'Malgun Gothic', sans-serif;
    --mono: 'IBM Plex Sans KR', 'Malgun Gothic', sans-serif;

    --bg: #e6ebf1;
    --surface: #FFFFFF;
    --subtle: #f4f7fa;
    --ink: #1c1e21;
    --ink-2: #3a3f46;
    --muted: #5e6772;

    --navy: #1c1e21;
    --navy-hover: #000000;
    --navy-soft: #e7eef6;

    --line: #d5dbe3;
    --line-strong: #b7c0cb;
    --warn-bg: #fff6d8;
    --warn-ink: #6a4b00;
    --nav-bg: #1c1e21;

    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233D3C38' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

[data-theme="dark"] {
    --bg: #101217;
    --surface: #171A21;
    --subtle: #1F232D;
    --ink: #F4F3EE;
    --ink-2: #C9C7C0;
    --muted: #8E8C84;

    --navy: #5C7CFA;
    --navy-hover: #748FFC;
    --navy-soft: rgba(92, 124, 250, 0.14);

    --line: #282D3A;
    --line-strong: #3A4152;
    --warn-bg: rgba(234, 179, 8, 0.12);
    --warn-ink: #FDE047;
    --nav-bg: rgba(16, 18, 23, 0.94);

    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9C7C0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
    overflow-x: clip;
}


a { color: inherit; text-decoration: none; }
img, video, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; font-variant-numeric: tabular-nums; }
button { cursor: pointer; }

.mono, .num, .quote-hero-price, .kpi-mini-val, .webhard-info strong {
    font-family: var(--mono);
    letter-spacing: -0.02em;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* 상단 헤더 */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-container { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.08rem; letter-spacing: -0.025em; }
.nav-logo img { width: 28px; height: 28px; object-fit: contain; }
.nav-logo-sub { font-size: 0.78rem; font-weight: 500; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.nav-menu { display: flex; align-items: center; list-style: none; gap: 26px; }
.nav-sep { width: 1px; height: 13px; background: var(--line-strong); }
.nav-link { font-size: 0.9rem; font-weight: 550; color: var(--ink-2); position: relative; padding: 4px 0; transition: color 0.14s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); font-weight: 700; }
.nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px; background: var(--navy); }
.nav-link-accent { color: var(--navy); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 6px; }

/* 버튼 체계 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; min-height: 38px; border-radius: 3px;
    font-weight: 600; font-size: 0.86rem; border: 1px solid transparent;
    white-space: nowrap; transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 1px;
}
.btn-sm { padding: 5px 11px; min-height: 32px; font-size: 0.79rem; }
.btn-primary { background: var(--navy); color: #FFF; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: var(--subtle); }
.btn-hero-light { background: #F7F6F1; color: #141413; }
.btn-hero-light:hover { background: #E4E1D8; }
.btn-hero-outline { background: rgba(255,255,255,0.03); color: #E5E3DC; border-color: rgba(255,255,255,0.26); }
.btn-hero-outline:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.45); }

/* 히어로 스테이지 */
.hero-stage { position: relative; background: transparent; color: var(--ink); padding: 28px 0 8px; overflow: hidden; }
.hero-stage-compact { padding: 22px 0 4px; border-bottom: none; }
.hero-bg-video-wrap { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: saturate(0.68) contrast(1.05); }
.hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,21,27,0.96) 0%, rgba(19,21,27,0.84) 62%, rgba(19,21,27,0.75) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.38fr 0.62fr; gap: 52px; align-items: center; }
.hero-compact-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta-line { font-size: 0.82rem; color: #9DA1AC; margin-bottom: 10px; letter-spacing: 0.01em; }
.hero-title { font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 750; line-height: 1.22; letter-spacing: -0.035em; margin-bottom: 14px; }
.hero-compact-title { font-size: 1.38rem; font-weight: 750; letter-spacing: -0.025em; }
.hero-desc { font-size: 0.98rem; color: #CCCAC2; max-width: 540px; margin-bottom: 26px; line-height: 1.7; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.webhard-dock {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px;
    padding: 10px 14px; border-radius: 3px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16);
}
.webhard-info { font-size: 0.85rem; color: #E5E3DC; display: flex; align-items: center; gap: 10px; }
.webhard-label { font-weight: 700; color: #9DA1AC; padding-right: 10px; border-right: 1px solid rgba(255,255,255,0.16); }
.webhard-btns { display: flex; gap: 5px; }

.hero-emblem-card { background: #171A22; border: 1px solid rgba(255,255,255,0.13); border-radius: 4px; padding: 12px; }
.emblem-video-frame { aspect-ratio: 1 / 1; border-radius: 2px; overflow: hidden; background: #10131A; }
.emblem-video-frame video { width: 100%; height: 100%; object-fit: cover; }
.emblem-caption { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #9DA1AC; font-family: var(--mono); }

.hero-spec-strip {
    position: relative; z-index: 1; margin-top: 40px; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.13);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    font-size: 0.84rem; color: #C5C3BC;
}
.hero-spec-strip strong { display: block; font-size: 0.76rem; color: #8F94A0; font-weight: 600; margin-bottom: 2px; }

/* 스위스 에디토리얼 섹션 그리드 (좌측 210px 고정 표제부 + 우측 본문부) */
.section { padding: 68px 0; border-bottom: 1px solid var(--line); }
.section-tight { padding-top: 32px; }
.section-surface { background: var(--surface); }

.swiss-grid {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 44px;
    align-items: start;
}
.swiss-aside { position: sticky; top: 88px; padding-top: 4px; border-top: 2px solid var(--ink); }
.swiss-aside h2 { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.025em; margin-top: 10px; line-height: 1.3; }
.swiss-aside p { font-size: 0.83rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.swiss-aside .aside-link { display: inline-block; margin-top: 14px; font-size: 0.83rem; font-weight: 650; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 1px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-size: 1.38rem; font-weight: 750; letter-spacing: -0.025em; }
.section-note { font-size: 0.86rem; color: var(--muted); }

.editorial-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: start; }
.prose p { font-size: 0.96rem; color: var(--ink-2); line-height: 1.78; margin-bottom: 13px; word-break: keep-all; }
.prose strong { color: var(--ink); font-weight: 700; }

/* 인쇄 편람형 실선 목록 */
.hairline-list { border-top: 1.5px solid var(--ink); margin-top: 28px; }
.hairline-list-flush { margin-top: 0; }
.hairline-row {
    display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: baseline;
    padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: 0.92rem;
    transition: background-color 0.12s ease;
}
.hairline-row:hover { background: var(--subtle); }
.hairline-row h3 { font-size: 0.95rem; font-weight: 700; }
.hairline-row p { color: var(--ink-2); word-break: keep-all; }
.hairline-link { font-size: 0.83rem; font-weight: 650; color: var(--navy); white-space: nowrap; border-bottom: 1px solid transparent; }
.hairline-row:hover .hairline-link, .hairline-link:hover { border-bottom-color: var(--navy); }

/* 설비 사진 갤러리 */
.photo-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.photo-figure img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); filter: saturate(0.82) contrast(1.03); }
.photo-figure figcaption { margin-top: 9px; font-size: 0.84rem; color: var(--ink-2); line-height: 1.5; }
.photo-figure strong { color: var(--ink); display: block; font-size: 0.9rem; margin-bottom: 2px; }

/* 계산기 스튜디오 & 커스텀 폼 컨트롤 */
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.panel-sticky { position: sticky; top: 82px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 11px; margin-bottom: 15px; border-bottom: 1.5px solid var(--ink); }
.panel-head h3 { font-size: 0.98rem; font-weight: 750; }
.panel-sub { font-size: 0.78rem; color: var(--muted); }

.spec-parser-box { background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--navy); border-radius: 4px; padding: 14px 18px; margin-bottom: 18px; }
.spec-parser-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.spec-parser-title { font-weight: 700; font-size: 0.86rem; color: var(--ink); }
.preset-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.preset-chip { background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink-2); padding: 4px 10px; border-radius: 3px; font-size: 0.77rem; font-weight: 550; transition: all 0.12s ease; }
.preset-chip:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }
.spec-input-row { display: flex; gap: 8px; }
.spec-input { flex: 1; padding: 8px 12px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 0.89rem; }
.spec-input:focus { background: var(--surface); border-color: var(--navy); outline: none; }

.calc-main-tabs { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.calc-tab-btn { padding: 13px 15px; background: transparent; border: none; border-right: 1px solid var(--line); border-top: 3px solid transparent; text-align: left; transition: background-color 0.12s ease; }
.calc-tab-btn:last-child { border-right: none; }
.calc-tab-btn:hover { background: var(--bg); }
.calc-tab-btn.active { background: var(--navy-soft); border-top-color: var(--navy); }
.calc-tab-name { font-size: 0.9rem; font-weight: 750; display: block; }
.calc-tab-btn.active .calc-tab-name { color: var(--navy); }
.calc-tab-desc { font-size: 0.75rem; color: var(--muted); display: block; margin-top: 2px; }

.calc-workspace, .community-layout { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 22px; align-items: start; }
.quick-calc-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.step-group-title { font-size: 0.79rem; font-weight: 750; color: var(--navy); padding-bottom: 5px; border-bottom: 1px solid var(--line); margin: 18px 0 10px; display: flex; justify-content: space-between; letter-spacing: 0.01em; }
.step-group-title:first-child { margin-top: 0; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 0.77rem; font-weight: 650; color: var(--ink-2); }
.field > label { flex: 1; display: flex; align-items: flex-end; overflow-wrap: anywhere; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 38px; padding: 6px 10px; border-radius: 3px;
    border: 1px solid var(--line-strong); background: var(--bg); font-size: 0.88rem;
    transition: border-color 0.12s ease, background-color 0.12s ease;
}
.field select {
    appearance: none; -webkit-appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}
.field input[type="number"] { font-family: var(--mono); font-size: 0.86rem; }
.field textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--surface); border-color: var(--navy); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* 원장형(Ledger) 견적 요약 헤더 */
.quote-hero-box {
    background: var(--bg);
    border-top: 2.5px solid var(--ink);
    border-bottom: 1px solid var(--line-strong);
    padding: 16px 18px;
    margin-bottom: 16px;
}
.quote-hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.quote-hero-label { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.quote-hero-meta { font-size: 0.76rem; color: var(--muted); font-family: var(--mono); }
.quote-hero-price { font-size: 2rem; font-weight: 700; margin: 4px 0 8px; min-height: 2.5rem; display: flex; align-items: center; color: var(--ink); }
.quote-hero-sub { padding-top: 9px; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.83rem; color: var(--ink-2); }

.kpi-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.kpi-mini { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 9px 11px; }
.kpi-mini-lbl { font-size: 0.73rem; color: var(--muted); }
.kpi-mini-val { font-size: 0.88rem; font-weight: 700; margin-top: 2px; }

/* 정밀 데이터 테이블 */
.data-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.85rem; }
.data-table th, .data-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); text-align: left; word-break: keep-all; }
.data-table th { font-weight: 700; color: var(--ink-2); font-size: 0.76rem; background: var(--bg); border-top: 1.5px solid var(--ink); }
.data-table td.num, .data-table th.num { text-align: right; }
.data-table tr.row-strong td { font-weight: 750; color: var(--navy); background: var(--navy-soft); border-top: 1px solid var(--line-strong); }

.alert-note, .ok-note { padding: 8px 12px; border-radius: 3px; font-size: 0.82rem; margin-bottom: 10px; }
.alert-note { background: var(--warn-bg); color: var(--warn-ink); border-left: 3px solid #CA8A04; }
.ok-note { background: var(--navy-soft); color: var(--navy); border-left: 3px solid var(--navy); }

.svg-stage, .know-diagram-box { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 14px; margin-bottom: 14px; overflow-x: auto; }
.svg-stage { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.svg-toolbar { width: 100%; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sub-pill-group { display: inline-flex; gap: 2px; background: var(--surface); padding: 2px; border-radius: 3px; border: 1px solid var(--line-strong); }
.sub-pill { border: none; background: transparent; padding: 4px 10px; border-radius: 2px; font-size: 0.77rem; font-weight: 600; color: var(--ink-2); }
.sub-pill.active { background: var(--navy); color: #FFF; }

/* 편람 & 문답 */
.chapter-pills { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.chapter-pill { padding: 5px 11px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 0.79rem; font-weight: 600; color: var(--ink-2); }
.chapter-pill.active { background: var(--navy); border-color: var(--navy); color: #FFF; }
.search-mini { max-width: 195px; padding: 5px 10px; border-radius: 3px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 0.8rem; }

.post-list { display: flex; flex-direction: column; gap: 10px; }
.post-card { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; transition: border-color 0.12s ease; }
.post-card:hover { border-color: var(--line-strong); }
.post-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-bottom: 5px; }
.post-cat { color: var(--navy); font-weight: 700; }
.post-title { font-size: 0.93rem; font-weight: 750; margin-bottom: 4px; }
.post-body { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 9px; line-height: 1.62; }
.post-replies { padding: 7px 10px; background: var(--surface); font-size: 0.8rem; color: var(--ink-2); margin-bottom: 8px; border-left: 2px solid var(--navy); }
.post-actions { display: flex; gap: 6px; }
.post-act-btn { border: 1px solid var(--line-strong); background: var(--surface); padding: 3px 9px; border-radius: 2px; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.post-act-btn:hover { border-color: var(--navy); color: var(--navy); }

.faq-list { display: grid; gap: 8px; margin-top: 24px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 13px 16px; }
.faq-item summary { font-weight: 700; font-size: 0.91rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item p { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2); line-height: 1.65; }

/* 연락처 & 푸터 */
.contact-list { display: grid; gap: 8px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 3px; background: var(--bg); border: 1px solid var(--line); font-size: 0.87rem; }
.map-frame { width: 100%; height: 304px; border: 0; border-radius: 3px; }

.footer { background: #13151B; color: #9DA1AC; padding: 38px 0 82px; font-size: 0.83rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.cmyk-marks { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.cmyk-marks i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* 모달 & 모바일 바 */
.modal-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(15,18,25,0.68); display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal-backdrop.open { display: flex; }
.modal-sheet { background: #FFF; color: #141413; width: 100%; max-width: 780px; max-height: 90vh; overflow-y: auto; border-radius: 4px; padding: 28px; }
.modal-sheet-sm { max-width: 520px; }
.modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #E5E3DC; }
.doc-sheet-title { text-align: center; font-size: 1.45rem; font-weight: 800; letter-spacing: 0.22em; border-bottom: 2px solid #141413; padding-bottom: 10px; margin-bottom: 16px; }
.doc-meta-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; margin-bottom: 14px; font-size: 0.83rem; }
.doc-box { border: 1px solid #9CA3AF; padding: 11px; border-radius: 2px; position: relative; }
.doc-stamp { position: absolute; right: 10px; top: 9px; width: 48px; height: 48px; border: 2px solid #B91C1C; border-radius: 50%; color: #B91C1C; font-weight: 700; font-size: 0.66rem; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; margin-bottom: 12px; }
.doc-table th, .doc-table td { border: 1px solid #9CA3AF; padding: 7px 9px; }
.doc-table th { background: #F4F3EF; font-weight: 700; }
.doc-table td.num { text-align: right; font-family: var(--mono); }

.toast-msg { position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%) translateY(14px); background: #13151B; color: #F7F6F1; padding: 8px 16px; border-radius: 3px; font-size: 0.83rem; opacity: 0; pointer-events: none; transition: all 0.18s ease; z-index: 3000; }
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1150; background: var(--nav-bg); border-top: 1px solid var(--line-strong); grid-template-columns: repeat(5, 1fr); padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0px)); }
.mob-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; font-size: 0.72rem; font-weight: 600; color: var(--ink-2); border: none; background: transparent; }
.mob-nav-item.active { color: var(--navy); font-weight: 750; }

@media (max-width: 980px) {
    .swiss-grid, .hero-grid, .editorial-split, .calc-workspace, .quick-calc-grid, .community-layout, .contact-grid { grid-template-columns: 1fr; gap: 22px; }
    .swiss-aside { position: static; padding-bottom: 4px; }
    .panel-sticky { position: static; }
    .calc-main-tabs, .hero-spec-strip { grid-template-columns: repeat(2, 1fr); }
    .calc-tab-btn { border-bottom: 1px solid var(--line); }
    .hairline-row { grid-template-columns: 1fr; gap: 4px; }
    .photo-trio { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 48px 0; }
    .hero-stage { padding: 40px 0 36px; }
    .calc-main-tabs, .photo-trio, .form-row-3, .doc-meta-grid { grid-template-columns: 1fr; }
    .form-row-2, .kpi-strip, .hero-spec-strip { grid-template-columns: repeat(2, 1fr); }
    .spec-input-row { flex-direction: column; }
    .mobile-bottom-nav { display: grid; }
}
@media print {
    @page { size: A4 portrait; margin: 12mm; }
    body { margin: 0; padding: 0; background: #FFF; }
    body::before { display: none; }
    body > :not(.modal-backdrop.open) { display: none !important; }
    .modal-backdrop.open { position: static; background: #FFF; padding: 0; display: block; }
    .modal-sheet { max-width: 100%; max-height: none; padding: 0; overflow: visible; }
    .doc-table { font-size: 10pt; }
    .doc-table td, .doc-table th { padding: 4px 7px; }
    .doc-table tr { break-inside: avoid; }
    .no-print { display: none !important; }
}

.tool-bar {
    background: #1c1e21;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.tool-bar a { color: inherit; }
.tool-bar-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.tool-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}
.tool-nav { display: flex; gap: 20px; }
.tool-nav a { color: #c5ccd4; font-size: 0.95rem; }
.tool-nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.tool-home {
    margin-left: auto;
    border: 1px solid #6b7380;
    padding: 7px 12px;
    font-size: 0.92rem;
}
.quote-hero-box { min-height: 148px; }
.quote-hero-price { font-variant-numeric: tabular-nums; }
.plate-wrap { overflow-x: auto; }
.plate-table { table-layout: fixed; width: 100%; min-width: 760px; }
.plate-table th, .plate-table td { height: 52px; vertical-align: middle; }
@media (max-width: 720px) {
    .tool-bar-row { flex-wrap: wrap; gap: 12px 18px; padding-top: 12px; padding-bottom: 12px; }
    .tool-nav { order: 3; width: 100%; }
}

.calc-workspace > *, .quick-calc-grid > * { min-width: 0; }
#calcResultPane svg { max-width: 100%; height: auto; }
