:root {
    --bg: #2b0d12;
    --bg-soft: #4a171f;
    --surface: #ffffff;
    --surface-soft: #fff6f7;
    --text: #2d1216;
    --muted: #7b4b52;
    --line: #f0d7dc;
    --primary: #d72638;
    --primary-dark: #b91c1c;
    --accent: #f59e0b;
    --accent-soft: #fff7e6;
    --radius: 22px;
    --shadow: 0 20px 50px rgba(60, 16, 24, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(860px, 100%); }
.center { text-align: center; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(226,232,240,.8); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 86px; }
.brand { display: flex; align-items: center; gap: .9rem; }
.brand img { width: 52px; height: 52px; }
.brand strong { display: block; font-size: 1.1rem; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); max-width: 420px; }
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 600; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .95rem 1.35rem; font-weight: 700; transition: .2s ease; border: none; cursor: pointer; }
.button.primary, .nav-cta { background: var(--primary); color: #fff; box-shadow: 0 15px 30px rgba(215, 38, 56, .18); }
.button.primary:hover, .nav-cta:hover { transform: translateY(-1px); background: var(--primary-dark); }
.button.secondary { background: #fff; color: var(--text); border: 1px solid var(--line); }
.button.secondary:hover { border-color: #cbd5e1; }
.button.danger { background: #fee2e2; color: #991b1b; }
.button.full { width: 100%; }
.hero { position: relative; overflow: hidden; padding: 6.5rem 0 4rem; text-align: center; background: radial-gradient(ellipse 80% 55% at 50% -8%, rgba(215,38,56,.045), transparent), radial-gradient(ellipse 55% 45% at 82% 85%, rgba(245,158,11,.06), transparent), linear-gradient(180deg, #fefcfd 0%, #fff 100%); }
.hero-inner { max-width: 780px; margin: 0 auto; display: grid; gap: 1.4rem; justify-items: center; }
.hero h1 { max-width: 20ch; font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; margin: 0; }
.hero-lead { max-width: 58ch; font-size: 1.15rem; color: #475569; margin: 0; }
.hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.hero-pill { display: inline-flex; align-items: center; gap: .48rem; padding: .48rem .95rem; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,.045); font-size: .88rem; font-weight: 600; color: #334155; }
.hero-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.hero-actions { justify-content: center; margin-top: .15rem; }
.hero-trust-line { justify-content: center; padding-top: .15rem; }
.badge, .eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .75rem; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid rgba(215,38,56,.18); color: var(--primary); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; }
.actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-top: .25rem; }
.hero-trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; color: #5b3037; font-size: .94rem; font-weight: 600; }
.hero-trust-line::before { content: '•'; color: var(--primary); font-size: 1.1rem; line-height: 1; }
.hero-trust-line a { color: var(--primary-dark); font-weight: 900; }
.lead { color: #334155; font-size: 1.12rem; max-width: 70ch; }
.surface, .feature-card, .category-card, .product-card, .cert-card, .rich-card, .stat-card { background: var(--surface); border: 1px solid rgba(226,232,240,.75); border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list, .mini-list { padding: 0; margin: 1rem 0 0; list-style: none; }
.check-list li, .mini-list li { display: flex; gap: .75rem; margin-bottom: .8rem; color: #334155; }
.check-list li::before, .mini-list li::before { content: '•'; color: var(--primary); font-weight: 900; }
.stats { padding: 0 0 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { padding: 1.3rem; text-align: center; }
.stat-card strong { display: block; font-size: 2rem; color: var(--primary); }
.stat-card span { color: var(--muted); }
.section { padding: 4.5rem 0; }
.section.alt { background: linear-gradient(180deg, #fff, var(--surface-soft)); }
.section-head { margin-bottom: 1.6rem; }
.section-head h2 { margin: .6rem 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid.compact { grid-template-columns: repeat(3, 1fr); }
.feature-card, .category-card, .product-card { padding: 1.5rem; }
.feature-card h3, .category-card h3, .product-card h2 { margin-top: 0; }
.feature-card a, .category-card a, .product-card a, .cert-card a { color: var(--primary); font-weight: 700; }
.service-list-card { padding: 0; display: grid; grid-template-columns: 1fr 1fr; counter-reset: sr; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(226,232,240,.75); box-shadow: var(--shadow); overflow: hidden; }
.service-row { position: relative; padding: 1.1rem 1.25rem 1.1rem 2.5rem; border-bottom: 1px solid rgba(215,38,56,.06); border-right: 1px solid rgba(215,38,56,.06); transition: background .18s; }
.service-row:nth-child(even) { border-right: none; }
.service-row:last-child,
.service-row:nth-last-child(2):nth-child(even) { border-bottom: none; }
.service-row:hover { background: rgba(215,38,56,.02); }
.service-row::before { counter-increment: sr; content: "0" counter(sr); position: absolute; left: .9rem; top: 1.1rem; font-size: .68rem; font-weight: 800; color: var(--primary); opacity: .45; letter-spacing: .04em; line-height: 1; }
.service-row h3 { margin: 0 0 .2rem; font-size: 1rem; font-weight: 700; }
.service-row p { margin: 0 0 .45rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.service-row a { color: var(--primary); font-weight: 700; font-size: .84rem; transition: opacity .15s; }
.service-row a:hover { opacity: .65; }
.split { grid-template-columns: 1fr 1fr; }
.split.top { align-items: start; }
.split.middle { align-items: center; }
.surface, .rich-card { padding: 1.65rem; }
.cta-band { background: linear-gradient(135deg, var(--bg), #243449 55%, #3b4b61); color: #fff; }
.cta-band .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.cta-stack { display: grid; gap: .8rem; }
.page-hero { padding: 4rem 0 1.4rem; background: linear-gradient(180deg, #fff, var(--surface-soft)); }
.page-hero-soft { background: radial-gradient(circle at top left, rgba(215,38,56,.07), transparent 30%), linear-gradient(180deg, #fff, var(--surface-soft)); }
.split.image-left > :first-child { order: 2; }
.split.image-left > :last-child { order: 1; }
.home-block-image { width: 100%; border-radius: 18px; margin-bottom: 1rem; object-fit: cover; }
.back-link { color: var(--primary); font-weight: 700; }
.product-media { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, rgba(215,38,56,.08), rgba(245,158,11,.08)); display: grid; place-items: center; margin-bottom: 1rem; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media.placeholder span { font-size: 2.4rem; font-weight: 900; letter-spacing: .1em; color: var(--primary); }
.product-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(215,38,56,.08); color: var(--primary-dark); }
.product-badge-top { position: absolute; top: .85rem; right: .85rem; background: rgba(255,255,255,.92); }
.product-card-enhanced { display: flex; flex-direction: column; }
.product-card-footer { display: flex; gap: .75rem; justify-content: space-between; align-items: center; margin-top: auto; flex-wrap: wrap; }
.cert-card { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; padding: 1rem; align-items: start; }
.cert-card img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.muted { color: var(--muted); }
.detail-image { width: 100%; border-radius: 20px; margin-bottom: 1rem; border: 1px solid var(--line); }
.product-layout { align-items: start; }
.product-gallery-card { overflow: hidden; }
.gallery-stage-button, .gallery-thumb { appearance: none; border: none; background: transparent; padding: 0; cursor: pointer; }
.gallery-stage-button { display: block; width: 100%; }
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.gallery-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.tech-sheet-box, .gallery-meta, .stack-tight { display: grid; gap: .45rem; }
.stack-tight h2 { margin: 0; }
.small-kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.product-sidebar { position: sticky; top: 105px; display: grid; gap: 1rem; }
.gallery-dialog { width: min(92vw, 1080px); padding: 0; border: none; border-radius: 28px; background: #0f172a; }
.gallery-dialog::backdrop { background: rgba(15, 23, 42, .7); }
.gallery-dialog-shell { display: grid; gap: 1rem; padding: 1rem; color: #fff; }
.gallery-dialog-shell img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 18px; background: rgba(255,255,255,.04); }
.gallery-dialog-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gallery-close { justify-self: end; border: none; border-radius: 999px; padding: .7rem 1rem; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.spec-box { margin-top: 1rem; padding: 1rem; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--line); }
.spec-box pre { white-space: pre-wrap; font-family: inherit; margin: 0; }
.contact-layout { grid-template-columns: .95fr 1.05fr; }
.contact-form, .stack-form { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; font-weight: 600; }
input, textarea, select { width: 100%; padding: .9rem 1rem; border-radius: 16px; border: 1px solid #cbd5e1; background: #fff; color: var(--text); font: inherit; }
textarea { resize: vertical; }
.flash { padding: 1rem 1.1rem; border-radius: 18px; margin-bottom: 1rem; font-weight: 700; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.site-footer { background: var(--bg); color: #fff; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; }
.footer-grid h3, .footer-grid h4 { margin-top: 0; }
.footer-grid p, .footer-grid li, .footer-grid a { color: rgba(255,255,255,.8); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.admin-body { background: var(--bg); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.admin-login .surface { width: min(560px, 100%); }
.admin-shell { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.admin-sidebar { padding: 2rem 1.4rem; background: linear-gradient(180deg, var(--bg), #2f3d52); color: #fff; border-right: 1px solid rgba(255,255,255,.08); }
.admin-sidebar img { width: 72px; margin-bottom: 1rem; }
.admin-sidebar p { color: rgba(255,255,255,.78); }
.admin-main { padding: 1.4rem; background: var(--surface-soft); overflow: auto; }
.admin-section { margin-bottom: 1.4rem; }
.admin-section h2 { margin-top: 0; }
.admin-stats-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
.admin-stat-card { display: grid; gap: .35rem; }
.admin-stat-card strong { font-size: 2rem; color: var(--primary); }
.admin-stat-card span { color: var(--muted); font-weight: 600; }
.admin-quick-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.quick-link-card { display: grid; gap: .45rem; }
.quick-link-card strong { color: var(--text); }
.quick-link-card span { color: var(--muted); }
.sidebar-brand { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.sidebar-nav { display: grid; gap: 1rem; }
.nav-group { display: grid; gap: .25rem; }
.nav-group-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.55); font-weight: 800; padding: 0 .85rem; }
.nav-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem .9rem; border-radius: 16px; color: rgba(255,255,255,.84); font-weight: 700; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nav-badge { min-width: 1.9rem; height: 1.9rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-size: .78rem; }
.sidebar-footer { margin-top: auto; padding-top: 1.25rem; }
.home-layout-list { display: grid; gap: .8rem; }
.home-layout-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 140px 190px; gap: 1rem; align-items: end; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.home-subgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.admin-card-list { display: grid; gap: 1rem; }
.admin-card-item { gap: .9rem; }
.section-toolbar.compact { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-toolbar.compact h3 { margin: 0; }
.nested-card { border: 1px solid var(--line); }
.check-inline { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; }
.top-gap { margin-top: .75rem; }
.admin-cards { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.admin-cards.wide { grid-template-columns: repeat(2, 1fr); }
.admin-record { display: grid; gap: .65rem; }
.inline-delete { margin-top: .35rem; }
.form-grid { display: grid; gap: .8rem; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
.small-note { color: var(--muted); font-size: .92rem; }
.admin-collapsible { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.admin-collapsible summary { cursor: pointer; list-style: none; padding: 1rem 1.1rem; font-weight: 800; color: var(--text); background: var(--surface-soft); }
.admin-collapsible summary::-webkit-details-marker { display: none; }
.admin-collapsible summary::after { content: '+'; float: right; color: var(--primary); font-size: 1.1rem; }
.admin-collapsible[open] summary::after { content: '–'; }
.admin-collapsible-body { padding: 1rem 1.1rem 1.1rem; }
.admin-tip-box { display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: 18px; background: linear-gradient(180deg, #fff7f8, #fff1f3); border: 1px solid rgba(215,38,56,.14); }
.admin-tip-box strong { color: var(--primary-dark); }
.admin-tip-box p { margin: 0; color: #5b3037; }
.gallery-editor { display: grid; gap: .85rem; padding: 1rem; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--line); }
.gallery-checklist { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.gallery-check { align-items: start; gap: .55rem; padding: .75rem; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.gallery-check input { width: auto; }
.gallery-check img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
@media (max-width: 980px) {
  .split, .contact-layout, .admin-shell, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid.compact, .stat-grid, .admin-cards, .admin-cards.wide, .form-grid.two, .form-grid.three, .form-grid.four, .admin-stats-grid, .admin-quick-grid, .home-subgrid, .home-layout-row { grid-template-columns: 1fr; }
  .hero-trust-line { align-items: flex-start; }
  .nav { display: none; }
  .topbar { min-height: 74px; }
  .hero { padding: 3.5rem 0 2.25rem; }
  .cert-card { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
  .gallery-dialog-nav { flex-direction: column; }
}
