/* ==========================================================================
   carton.cnguoke.cn — Дачэн Пакаджинг (Сучжоу)
   Премиальная промышленная тема. Без внешних шрифтов и CDN.
   ========================================================================== */

:root {
    --ink: #0f1c2e;
    --ink-2: #17273d;
    --ink-3: #21354f;
    --accent: #c8862a;
    --accent-2: #e0a04a;
    --paper: #f7f5f1;
    --paper-2: #ffffff;
    --line: #e4e0d8;
    --text: #26313f;
    --text-soft: #5d6a79;
    --white: #ffffff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(15, 28, 46, .06);
    --shadow: 0 14px 40px rgba(15, 28, 46, .12);
    --container: 1180px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", "PT Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.62;
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 860px; }

.section { padding: clamp(42px, 6vw, 84px) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { max-width: 760px; color: var(--text-soft); font-size: 1.05rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .8em; }
.lead { font-size: 1.12rem; color: var(--text-soft); max-width: 720px; }

/* --- skip link ---------------------------------------------------------- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- header ------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 28, 46, .96);
    backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { border-radius: 10px; background: #fff; padding: 4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; color: #fff; }
.brand-text small { font-size: .74rem; color: #b9c4d3; letter-spacing: .04em; }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
    color: #dfe6ef; font-size: .95rem; font-weight: 600;
    padding: 9px 14px; border-radius: 999px; transition: background .18s, color .18s;
}
.primary-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.primary-nav a.is-active { background: var(--accent); color: #1a1409; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: rgba(255, 255, 255, .1); cursor: pointer; padding: 11px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 4px 0; }

/* --- buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .97rem;
    border: 2px solid transparent; cursor: pointer; transition: transform .16s, background .18s, color .18s, border-color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #1a1409; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); color: #1a1409; border-color: var(--accent-2); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* --- hero --------------------------------------------------------------- */
.hero { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 60%, #2c4670 100%); color: #fff; padding: clamp(48px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 134, 42, .28), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
.hero-text h1 { color: #fff; }
.hero-text .lead { color: #cfd8e5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.page-hero { background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); color: #fff; padding: clamp(34px, 5vw, 62px) 0; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lead { color: #cbd5e2; }
.breadcrumbs { font-size: .85rem; color: #a9b6c7; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.breadcrumbs a { color: #d7deea; }
.breadcrumbs a:hover { color: var(--accent-2); }

/* --- stats -------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-value { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--accent); }
.stat-label { display: block; font-size: .92rem; color: var(--text-soft); margin-top: 6px; }

/* --- generic cards ------------------------------------------------------ */
.card-grid, .culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.equip-media { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px; background: var(--paper); }
.equip-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.check-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.cert-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cert-list li { font-size: .9rem; color: var(--text-soft); padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }

.cta-inline { margin-top: 24px; }

/* --- products ----------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card a { display: block; color: inherit; }
.product-media { background: var(--paper); }
.product-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-body { padding: 18px 20px 22px; }
.product-body h3 { font-size: 1.02rem; margin-bottom: .35em; }
.product-body p { color: var(--text-soft); font-size: .92rem; margin-bottom: .7em; }
.link-more { font-weight: 700; color: var(--accent); font-size: .9rem; }

.detail-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.detail-media img { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); width: 100%; }
.spec-list { list-style: none; margin: 0 0 1.2em; padding: 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.spec-list span { color: var(--text-soft); }
.spec-list strong { color: var(--ink); text-align: right; }

/* --- timeline ----------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 58px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 24px; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 53px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
.tl-year { font-weight: 800; color: var(--ink); }
.tl-text { color: var(--text-soft); }

/* --- FAQ ---------------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 0; font-size: 1.02rem; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding-bottom: 16px; color: var(--text-soft); }
.faq-answer p { margin: 0; }

/* --- contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.contact-addr { font-weight: 600; color: var(--ink); }
.contact-form-wrap { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .96rem; color: var(--text); background: var(--paper); transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 134, 42, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.form-hint { font-size: .8rem; color: var(--text-soft); margin: 0; }
.form-status { margin: 0; font-size: .92rem; font-weight: 600; color: #b3261e; }
.form-success { border: 1px solid #bfe0c4; background: #f0faf2; border-radius: var(--radius-sm); padding: 22px; }
.form-success h3 { color: #1e6b35; margin-bottom: .4em; }
.form-success p { margin: 0; color: #2c5c3c; }

/* --- CTA band + footer -------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%); color: #fff; padding: clamp(34px, 5vw, 60px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #c9d3e1; margin: 0; max-width: 640px; }

.site-footer { background: #0b1626; color: #a7b3c3; padding: clamp(36px, 5vw, 60px) 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.footer-col p { margin: 0 0 .5em; font-size: .93rem; }
.footer-brand { color: #fff; font-weight: 700; }
.footer-note { color: #8b98a9; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a { color: #a7b3c3; font-size: .92rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 18px; font-size: .84rem; color: #7d8a9b; }
.footer-bottom p { margin: 0; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid, .card-grid, .culture-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .about-split, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .primary-nav {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
        background: var(--ink); padding: 14px 20px 22px; gap: 4px; display: none;
        border-bottom: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 13px 16px; border-radius: 10px; }
    .nav-toggle { display: block; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .product-grid, .card-grid, .culture-grid { grid-template-columns: 1fr; }
    .cert-list { grid-template-columns: 1fr; }
    .timeline::before { left: 8px; }
    .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
    .timeline li::before { left: 3px; }
}
@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .brand-text small { display: none; }
    .container { padding: 0 16px; }
}
@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .cta-band, .nav-toggle { display: none; }
    body { background: #fff; }
}