* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --ink: #0a0a0a;
    --silver: #c8ccd2;
    --paper: #ffffff;
    --gray: #55555a;
    --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(10,10,10,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,10,10,0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    line-height: 1.7;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.alt-panel { background: rgba(200,204,210,0.12); }

/* 线条导航 */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--ink); transition: all 0.3s; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-size: 24px; font-weight: 800; text-decoration: none; letter-spacing: 4px; color: transparent; -webkit-text-stroke: 1.2px var(--ink); transition: 0.3s; }
.logo:hover { color: var(--ink); -webkit-text-stroke: 0; }
.logo img { display: inline-block; vertical-align: middle; margin-right: 6px; }
.nav-menu { display: flex; list-style: none; gap: 34px; }
.nav-menu a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 2px; padding: 6px 0; border-bottom: 1px solid transparent; transition: 0.3s; }
.nav-menu a:hover, .nav-menu a.active { border-bottom-color: var(--ink); }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 4px; }
.hamburger span { width: 26px; height: 1px; background: var(--ink); transition: 0.3s; }

/* 线条按钮 */
.btn { display: inline-block; padding: 13px 34px; text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 2px; transition: 0.3s; cursor: pointer; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.btn:hover { background: var(--ink); color: #fff; }
.btn-thin { border-width: 1px; }

/* 线条标题 */
.section-header { padding: 70px 0 44px; }
.section-header.center { text-align: center; }
.line-title { display: flex; align-items: center; gap: 18px; font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; letter-spacing: 2px; color: var(--ink); }
.line-title::before, .line-title::after { content: ''; height: 1px; flex: 1; background: var(--ink); }
.line-title.center { justify-content: center; }
.line-title.center::before, .line-title.center::after { max-width: 120px; }
.section-sub { color: var(--gray); font-size: 15px; margin-top: 12px; letter-spacing: 1px; }
.section-sub.center { text-align: center; }
.sec-num { font-family: Georgia, serif; color: var(--silver); font-size: 14px; letter-spacing: 3px; }

/* Hero */
.hero { min-height: 100vh; padding-top: 72px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; position: relative; }
.hero::after { content: ''; position: absolute; right: 4%; top: 16%; width: 120px; height: 120px; border: 1px solid var(--silver); border-radius: 50%; z-index: 0; }
.hero-left { padding: 60px; position: relative; z-index: 1; }
.hero-badge { display: inline-block; border: 1px solid var(--ink); padding: 8px 22px; font-size: 13px; letter-spacing: 3px; margin-bottom: 28px; }
.hero-left h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.2; font-weight: 900; letter-spacing: 2px; margin-bottom: 24px; }
.hero-left h1 .out { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-left p { font-size: 17px; color: var(--gray); margin-bottom: 36px; max-width: 460px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; }
.hero-stats div { flex: 1; padding: 0 26px; position: relative; }
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div + div { border-left: 1px solid var(--ink); }
.hero-stats span { display: block; font-size: 30px; font-weight: 800; font-family: Georgia, serif; }
.hero-stats small { font-size: 12px; color: var(--gray); letter-spacing: 2px; }

.hero-right { display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; z-index: 1; }
.house-box { position: relative; width: 420px; max-width: 100%; }
.house-box .frame { position: absolute; inset: -40px; border: 1px solid var(--silver); }
.house-box .frame2 { position: absolute; inset: -70px; border: 1px dashed rgba(200,204,210,0.7); }
.house-svg { width: 100%; height: auto; display: block; }
.ln { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.8s ease forwards; }
.ln:nth-child(1) { animation-delay: 0.1s; }
.ln:nth-child(2) { animation-delay: 0.5s; }
.ln:nth-child(3) { animation-delay: 0.8s; }
.ln:nth-child(4) { animation-delay: 1.1s; }
.ln:nth-child(5) { animation-delay: 1.4s; }
.ln:nth-child(6) { animation-delay: 1.6s; }
.ln:nth-child(7) { animation-delay: 1.8s; }
.ln:nth-child(8) { animation-delay: 2.0s; }
.ln:nth-child(9) { animation-delay: 2.2s; }
.ln:nth-child(10) { animation-delay: 2.4s; }
.ln:nth-child(11) { animation-delay: 2.6s; }
.ln:nth-child(12) { animation-delay: 2.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.caption-line { text-align: center; font-size: 12px; letter-spacing: 4px; color: var(--gray); margin-top: 20px; }
.caption-line::before, .caption-line::after { content: '—'; margin: 0 12px; color: var(--silver); }

/* 线条哲学 */
.philosophy { padding-bottom: 70px; }
.phil-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.phil-text p { color: var(--gray); margin-bottom: 26px; font-size: 16px; }
.manifesto { border-left: 1px solid var(--ink); padding-left: 28px; }
.manifesto h3 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.manifesto small { color: var(--silver); font-size: 12px; letter-spacing: 3px; }
.manifesto .mt-line { height: 1px; background: var(--silver); margin: 14px 0; }
.phil-art { position: relative; }
.phil-art svg { width: 100%; height: auto; display: block; }
.phil-art::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--silver); }

/* 设计流程 */
.process { padding-bottom: 70px; }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proc-card { position: relative; border: 1px solid var(--silver); padding: 34px 24px; text-align: center; transition: 0.3s; background: var(--paper); }
.proc-card:hover { border-color: var(--ink); }
.proc-no { font-family: Georgia, serif; color: var(--silver); font-size: 14px; letter-spacing: 3px; display: block; margin-bottom: 12px; }
.proc-ic { font-size: 30px; margin-bottom: 12px; }
.proc-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: 1px; }
.proc-card p { font-size: 13px; color: var(--gray); line-height: 1.8; }

/* 服务 */
.services { padding-bottom: 70px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-card { position: relative; border: 1px solid var(--ink); padding: 30px 24px; background: transparent; transition: 0.3s; }
.svc-card::before { content: '+'; position: absolute; top: -11px; left: 18px; background: var(--paper); padding: 0 8px; font-size: 14px; color: var(--ink); }
.svc-card:hover { background: var(--ink); color: #fff; }
.svc-card:hover .svc-no, .svc-card:hover p { color: #c8ccd2; }
.svc-no { font-family: Georgia, serif; font-size: 15px; color: var(--silver); display: block; margin-bottom: 18px; }
.svc-card .s-ic { font-size: 26px; margin-bottom: 14px; display: block; }
.svc-card h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: 1px; }
.svc-card p { font-size: 13px; color: var(--gray); line-height: 1.8; }
.svc-card .svc-more { display: inline-block; margin-top: 16px; font-size: 12px; letter-spacing: 2px; text-decoration: none; color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* 作品 */
.works { padding-bottom: 70px; }
.work-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.work-card { position: relative; }
.work-card::before, .work-card::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1px solid var(--ink); }
.work-card::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.work-card::after { bottom: -6px; right: -6px; border-left: none; border-top: none; }
.work-media { border: 1px solid var(--ink); padding: 8px; background: #fff; }
.work-media img { width: 100%; height: 240px; object-fit: cover; display: block; filter: grayscale(1); transition: 0.5s; }
.work-card:hover .work-media img { filter: grayscale(0); }
.work-info { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; }
.work-info h3 { font-size: 16px; letter-spacing: 1px; }
.work-info span { font-size: 13px; color: var(--gray); font-family: Georgia, serif; }

/* 主创团队 */
.team-lines { padding: 70px 0; }
.team-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-cell { text-align: center; }
.team-cell .t-photo { width: 150px; height: 150px; margin: 0 auto 16px; border: 1px solid var(--ink); padding: 6px; border-radius: 50%; overflow: hidden; background: #fff; }
.team-cell .t-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.team-cell h3 { font-size: 16px; letter-spacing: 2px; }
.team-cell span { font-size: 12px; color: var(--gray); letter-spacing: 1px; }
.team-cell .t-bio { margin-top: 8px; font-size: 12px; color: var(--gray); line-height: 1.7; max-width: 220px; margin-left: auto; margin-right: auto; }

/* 事务所纪事 */
.timeline-lines { max-width: 760px; margin: 0 auto; padding: 70px 0; }
.tl-line { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 18px 0; border-bottom: 1px solid var(--silver); position: relative; }
.tl-line:first-child { border-top: 1px solid var(--silver); }
.tl-line .yr { font-family: Georgia, serif; color: var(--silver); }
.tl-line h3 { font-size: 16px; margin-bottom: 4px; }
.tl-line p { font-size: 14px; color: var(--gray); }

/* 关于：引言 */
.manifesto-lg { padding: 70px 0; border-bottom: 1px solid var(--ink); }
.manifesto-lg blockquote { font-size: clamp(22px, 3vw, 34px); font-weight: 700; line-height: 1.6; border-left: 2px solid var(--ink); padding-left: 30px; }
.manifesto-lg blockquote small { display: block; margin-top: 16px; font-size: 13px; color: var(--gray); font-weight: 400; letter-spacing: 2px; }
.manifesto-lg .ml-side p { color: var(--gray); margin-bottom: 16px; }
.about-line-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* 数字统计 */
.stats-lines { padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-cell { border: 1px solid var(--ink); padding: 30px 20px; background: var(--paper); }
.stat-num { font-family: Georgia, serif; font-size: 38px; font-weight: 800; display: block; line-height: 1.1; }
.stat-cell > span { display: block; margin-top: 8px; font-size: 14px; letter-spacing: 2px; font-weight: 600; }
.stat-cell small { display: block; margin-top: 6px; font-size: 12px; color: var(--gray); letter-spacing: 1px; }

/* 企业文化 */
.culture-lines { padding: 0 0 70px; }
.culture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.culture-card { border: 1px solid var(--ink); padding: 30px 24px; text-align: center; transition: 0.3s; background: var(--paper); }
.culture-card:hover { background: var(--ink); color: #fff; }
.culture-card .c-icon { font-size: 30px; margin-bottom: 12px; }
.culture-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: 1px; }
.culture-card p { font-size: 13px; color: var(--gray); line-height: 1.8; }
.culture-card:hover p { color: #c8ccd2; }

/* 荣誉资质 */
.honor-lines { padding-bottom: 70px; }
.honor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.honor-card { border: 1px solid var(--ink); background: var(--paper); }
.honor-media { border-bottom: 1px solid var(--ink); padding: 8px; background: #fff; }
.honor-media img { width: 100%; height: 220px; object-fit: cover; display: block; filter: grayscale(1); transition: 0.5s; }
.honor-card:hover .honor-media img { filter: grayscale(0); }
.honor-body { padding: 22px 24px; }
.honor-body h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: 1px; }
.honor-body p { font-size: 13px; color: var(--gray); line-height: 1.8; margin-bottom: 10px; }
.honor-date { font-family: Georgia, serif; font-size: 13px; color: var(--silver); letter-spacing: 2px; }

/* 联系区块 */
.contact-strip { padding-bottom: 70px; }
.contact-strip-wrap { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.cs-left { padding: 40px; border-right: 1px solid var(--ink); }
.cs-left h3 { font-size: 22px; margin-bottom: 10px; }
.cs-left p { color: var(--gray); font-size: 15px; margin-bottom: 24px; }
.cs-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--silver); font-size: 14px; }
.cs-item span:first-child { color: var(--gray); letter-spacing: 2px; }
.cs-right { padding: 40px; }
.mini-form .form-line { margin-bottom: 20px; }
.mini-form label { display: block; font-size: 12px; color: var(--gray); letter-spacing: 2px; margin-bottom: 6px; }
.mini-form input, .mini-form textarea, .mini-form select { width: 100%; border: none; border-bottom: 1px solid var(--ink); background: transparent; padding: 8px 0; font-size: 15px; outline: none; font-family: inherit; }
.mini-form input:focus, .mini-form textarea:focus, .mini-form select:focus { border-bottom: 2px solid var(--ink); }
.mini-form textarea { min-height: 70px; resize: vertical; }
.mini-form input.error, .mini-form textarea.error { border-bottom: 1px solid #d93a3a; }

/* 页面页头 */
.page-hero { padding: 72px 0 0; border-bottom: 1px solid var(--ink); }
.page-hero-inner { padding: 70px 0; text-align: center; position: relative; }
.page-hero-inner::before { content: ''; position: absolute; left: 50%; top: 30px; width: 120px; height: 1px; transform: translateX(-50%); background: var(--ink); }
.page-hero-inner h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 900; letter-spacing: 4px; }
.page-hero-inner p { color: var(--gray); margin-top: 10px; letter-spacing: 2px; font-size: 15px; }
.crumbs { margin-top: 12px; font-size: 13px; color: var(--gray); letter-spacing: 1px; }
.crumbs a { color: var(--ink); }

/* 作品页 */
.work-gallery { padding: 60px 0; }
.filter-row { display: flex; justify-content: center; gap: 0; margin-bottom: 50px; border: 1px solid var(--ink); width: fit-content; margin-left: auto; margin-right: auto; }
.filter-btn { padding: 10px 28px; background: transparent; border: none; border-right: 1px solid var(--ink); font-size: 13px; letter-spacing: 2px; cursor: pointer; color: var(--ink); font-family: inherit; transition: 0.3s; }
.filter-btn:last-child { border-right: none; }
.filter-btn:hover, .filter-btn.active { background: var(--ink); color: #fff; }

/* 服务项目（产品）页 */
.cat-tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 50px; border: 1px solid var(--ink); width: fit-content; margin-left: auto; margin-right: auto; flex-wrap: wrap; }
.cat-tab { padding: 10px 28px; background: transparent; border: none; border-right: 1px solid var(--ink); font-size: 13px; letter-spacing: 2px; cursor: pointer; color: var(--ink); font-family: inherit; transition: 0.3s; }
.cat-tab:last-child { border-right: none; }
.cat-tab:hover, .cat-tab.active { background: var(--ink); color: #fff; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.prod-card { position: relative; border: 1px solid var(--ink); background: var(--paper); }
.prod-card::before, .prod-card::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1px solid var(--ink); }
.prod-card::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.prod-card::after { bottom: -6px; right: -6px; border-left: none; border-top: none; }
.prod-media { display: block; border-bottom: 1px solid var(--ink); padding: 8px; background: #fff; }
.prod-media img { width: 100%; height: 220px; object-fit: cover; display: block; filter: grayscale(1); transition: 0.5s; }
.prod-card:hover .prod-media img { filter: grayscale(0); }
.prod-info { padding: 18px 20px 22px; }
.prod-tag { display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--gray); border: 1px solid var(--silver); padding: 4px 12px; margin-bottom: 10px; }
.prod-info h3 { font-size: 16px; letter-spacing: 1px; margin-bottom: 8px; }
.prod-info h3 a { color: inherit; text-decoration: none; }
.prod-info h3 a:hover { border-bottom: 1px solid var(--ink); }
.prod-info p { font-size: 13px; color: var(--gray); line-height: 1.8; margin-bottom: 10px; }
.prod-params { border-top: 1px dashed var(--silver); padding-top: 10px; font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.prod-params b { color: var(--ink); }
.prod-foot { display: flex; justify-content: space-between; align-items: baseline; }
.prod-price { font-family: Georgia, serif; font-size: 18px; font-weight: 800; letter-spacing: 1px; color: var(--ink); }
.prod-price-lg { display: inline-block; font-size: 22px; margin: 0 0 12px; }
.prod-more { font-size: 13px; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* 新闻页 */
.news-editorial { padding: 60px 0; }
.news-row { display: grid; grid-template-columns: 120px 200px 1fr 140px; gap: 30px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--ink); transition: 0.3s; }
.news-row:hover { background: rgba(200,204,210,0.1); padding-left: 16px; }
.news-row .n-date { font-family: Georgia, serif; color: var(--silver); font-size: 14px; }
.news-row .n-thumb { border: 1px solid var(--silver); padding: 4px; }
.news-row .n-thumb img { width: 100%; height: 90px; object-fit: cover; display: block; filter: grayscale(1); }
.news-row .n-title h3 { font-size: 17px; margin-bottom: 4px; }
.news-row .n-title h3 a { color: inherit; text-decoration: none; }
.news-row .n-title h3 a:hover { text-decoration: underline; }
.news-row .n-title p { font-size: 13px; color: var(--gray); }
.news-row .n-tag { text-align: right; font-size: 12px; letter-spacing: 2px; color: var(--gray); border: 1px solid var(--silver); padding: 6px 14px; width: fit-content; justify-self: end; }

/* 联系页 */
.contact-page { padding: 60px 0; }
.contact-block { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); }
.cb-info { border-right: 1px solid var(--ink); }
.cb-head { padding: 34px 40px; border-bottom: 1px solid var(--silver); }
.cb-head h2 { font-size: 24px; }
.cb-head p { color: var(--gray); font-size: 14px; margin-top: 6px; }
.cb-row { display: flex; justify-content: space-between; padding: 22px 40px; border-bottom: 1px solid var(--silver); }
.cb-row:last-child { border-bottom: none; }
.cb-row .k { color: var(--gray); font-size: 13px; letter-spacing: 2px; }
.cb-row .v { font-size: 15px; text-align: right; }
.cb-form { padding: 40px; }
.cb-form .form-line { margin-bottom: 22px; }
.cb-form label { display: block; font-size: 12px; color: var(--gray); letter-spacing: 2px; margin-bottom: 6px; }
.cb-form input, .cb-form textarea, .cb-form select { width: 100%; border: none; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 0; font-size: 15px; outline: none; font-family: inherit; }
.cb-form select { cursor: pointer; }
.cb-form input:focus, .cb-form textarea:focus { border-bottom: 2px solid var(--ink); }
.cb-form textarea { min-height: 100px; resize: vertical; }
.cb-form input.error, .cb-form textarea.error { border-bottom: 1px solid #d93a3a; }

/* 页脚 */
.footer { border-top: 2px solid var(--ink); padding: 50px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 34px; }
.footer-brand h3 { font-size: 22px; letter-spacing: 4px; color: transparent; -webkit-text-stroke: 1px var(--ink); margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--gray); }
.footer-links h4, .footer-contact h4 { font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.footer-links a { display: block; color: var(--gray); text-decoration: none; font-size: 13px; padding: 4px 0; border-bottom: 1px solid transparent; transition: 0.3s; }
.footer-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.footer-contact p { font-size: 13px; padding: 4px 0; color: var(--gray); }
.footer-bottom { border-top: 1px solid var(--ink); padding: 20px 0; text-align: center; font-size: 12px; letter-spacing: 2px; color: var(--gray); }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.7s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- CMS 适配 ---------- */
.cms-section { padding: 80px 24px; }
.cms-detail { max-width: 900px; margin: 0 auto; }
.cms-detail > img { border: 1px solid var(--silver); margin: 0 auto 12px; max-width: 100%; }
.cms-detail h1 { font-size: 2rem; margin: 18px 0; color: var(--ink); }
.cms-detail .lead { color: var(--gray); margin-bottom: 20px; font-size: 1.05rem; }
.cms-detail .news-date-label { display: inline-block; border: 1px solid var(--ink); font-size: .82rem; letter-spacing: 2px; padding: 4px 14px; color: var(--ink); }
.cms-content h2 { font-size: 1.5rem; margin: 24px 0 12px; color: var(--ink); }
.cms-content h3 { font-size: 1.25rem; margin: 20px 0 10px; color: var(--ink); }
.cms-content p, .cms-content ul, .cms-content li { color: var(--gray); margin-bottom: 15px; line-height: 1.9; }
.cms-content ul { padding-left: 18px; list-style: disc; }
.cms-content img { max-width: 100%; }
.cms-back { display: inline-block; color: var(--ink); font-size: .9rem; font-weight: 700; margin-bottom: 20px; text-decoration: none; }
.cms-back:hover { text-decoration: underline; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { color: var(--gray); padding: 10px 0; border-bottom: 1px dashed var(--silver); font-size: .9rem; }
.spec-list li b { color: var(--ink); }
.cms-pager { padding: 30px 0; text-align: center; }
.cms-pager .pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.cms-pager .page-link { padding: 10px 16px; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: 14px; transition: .3s; display: inline-block; }
.cms-pager .page-link:hover { background: var(--ink); color: #fff; }
.cms-pager .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.cms-pager .page-item.disabled .page-link { opacity: .5; pointer-events: none; }
.cms-grid { display: grid; gap: 20px; }
.cms-card { display: block; border: 1px solid var(--silver); padding: 22px 24px; text-decoration: none; color: inherit; transition: .3s; background: var(--paper); }
.cms-card:hover { border-color: var(--ink); }
.cms-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cms-card p { font-size: .88rem; color: var(--gray); }
.form-success { display: none; background: #e8f7ee; border: 1px solid #a5e0bd; color: #1e7a44; padding: 14px 18px; margin-bottom: 18px; font-size: .9rem; }
.form-success.show { display: block; }
.form-alert-err { background: #fdecea; border: 1px solid #f3c6c0; color: #b23b35; padding: 14px 18px; margin-bottom: 18px; }
.form-alert-err li { color: #b23b35; }
.error-text { display: none; color: var(--ink); font-size: .8rem; margin-top: 6px; }

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-left { padding: 60px 24px; text-align: center; }
    .hero-left p { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-right { order: -1; }
    .phil-grid { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .proc-grid { grid-template-columns: 1fr 1fr; }
    .work-list { grid-template-columns: 1fr 1fr; }
    .contact-strip-wrap { grid-template-columns: 1fr; }
    .cs-left { border-right: none; border-bottom: 1px solid var(--ink); }
    .manifesto-lg { grid-template-columns: 1fr; }
    .about-line-grid { grid-template-columns: 1fr; }
    .team-row { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .culture-grid { grid-template-columns: 1fr 1fr; }
    .honor-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .prod-grid { grid-template-columns: 1fr 1fr; }
    .news-row { grid-template-columns: 90px 140px 1fr; }
    .news-row .n-tag { display: none; }
    .contact-block { grid-template-columns: 1fr; }
    .cb-info { border-right: none; border-bottom: 1px solid var(--ink); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 72px; left: -100%; width: 78%; height: calc(100vh - 72px); background: var(--paper); flex-direction: column; padding: 32px; gap: 20px; transition: 0.3s; box-shadow: 4px 0 24px rgba(0,0,0,0.06); z-index: 999; }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .svc-grid, .work-list, .gallery-grid, .team-row, .prod-grid, .proc-grid, .stats-grid, .culture-grid, .honor-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stats div { padding: 0; }
    .hero-stats div + div { border-left: none; }
    .news-row { grid-template-columns: 1fr; gap: 10px; }
    .news-row .n-thumb img { height: 160px; }
    .tl-line { grid-template-columns: 1fr; gap: 4px; }
    .about-line-grid { gap: 30px; }
    .cat-tabs { width: 100%; }
    .cat-tab { flex: 1; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== CMS global link-color reset (fixes default blue/underline) ===== */
a:has(h1), a:has(h2), a:has(h3), a:has(h4), a:has(img),
a.logo, a.logo *, .logo, .logo *,
a.news-thumb, a.news-thumb *, a.prod-thumb, a.prod-thumb *,
a.img-wrap, a.img-wrap *, a.thumb, a.thumb *, a.cover, a.cover *,
a[style*='background-image'], a[style*='background'],
a.card, a.card *, a.work-card, a.work-card *, a.product-card, a.product-card *,
a.news-card, a.news-card *, a.news-item, a.news-item *, a.case-card, a.case-card *,
a.service-card, a.service-card *, a.svc-card, a.svc-card *, a.item-card, a.item-card * {
  color: inherit !important;
  text-decoration: none !important;
}
a:has(h1):hover, a:has(h2):hover, a:has(h3):hover, a:has(h4):hover,
a.logo:hover, .logo:hover, a.card:hover, a.card *:hover,
a.news-thumb:hover, a.prod-thumb:hover, a.work-card:hover, a.product-card:hover,
a.news-card:hover, a.news-item:hover, a.case-card:hover, a.service-card:hover { color: inherit !important; }
a.prod-img-link, a.prod-img-link *,
a.img-link, a.img-link *, a.thumb-link, a.thumb-link *,
a.cover-link, a.cover-link *, a.media-link, a.media-link *,
a[class*='-thumb'], a[class*='-img'], a[class*='-cover'],
a[class*='thumb-'], a[class*='img-'],
a.img-side, a.img-side *, a.pic, a.pic *, a.pic-link, a.pic-link * {
  color: inherit !important;
  text-decoration: none !important;
}
/* ===== CMS heading-link reset (anchor inside heading) ===== */
h1 a, h2 a, h3 a, h4 a, h5 a {
  color: inherit !important;
  text-decoration: none !important;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover { color: inherit !important; }
