/* =========================================================
   HORUNÉ — Atelier / Selvedge theme (v31)
   Display: Fraunces · UI/Body: Instrument Sans
   Signature: selvedge thread line (indigo / madder / cotton)
   ========================================================= */
:root{
  --bg:#FBFAF6;            /* porcelain paper */
  --soft:#F3F0E8;          /* undyed cotton */
  --ink:#17150F;           /* warm black */
  --ink2:#767165;          /* greige */
  --muted:#A39D8F;
  --line:#E6E2D6;          /* hairline */
  --frame:#EEEAE0;         /* image frame */
  --accent:#33509F;        /* ikat indigo */
  --accent-2:#A8452B;      /* madder thread (signature only) */
  --surface:#FFFFFF;
  --shadow:0 18px 50px rgba(23,21,15,.08);
  --on-dark-muted:#A7A193;
  --r:14px;                /* radius for imagery & cards */
  --serif:'Playfair Display', Georgia, serif;
  --sans:'Manrope', system-ui, sans-serif;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{ font-family:var(--sans); background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased; font-weight:400; line-height:1.6; }
a{ color:inherit; text-decoration:none; }
img{ display:block; }
.wrap{ max-width:1440px; margin:0 auto; padding:0 48px; }
.serif{ font-family:var(--serif); }
::selection{ background:rgba(51,80,159,.16); }
.label, .eyebrow{ font-family:var(--sans); font-size:11px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:var(--accent); }

/* ---------- signature: selvedge thread ---------- */
.hr::before{ content:none; }
.sec-h .label::after, .article-head .label::after{ content:none; }

/* ---------- buttons / links ---------- */
.btn, .btn-line, .btn-solid{ display:inline-flex; align-items:center; justify-content:center; gap:9px; font-family:var(--sans); font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; padding:15px 30px; cursor:pointer; border:1px solid transparent; border-radius:999px; transition:background .25s, color .25s, border-color .25s, transform .15s; text-decoration:none; }
.btn:active, .btn-line:active, .btn-solid:active{ transform:scale(.985); }
.btn{ border-color:var(--line); color:var(--ink); background:var(--surface); }
.btn:hover{ border-color:var(--ink); }
.btn-solid{ background:var(--ink); color:#fff; border-color:var(--ink); }
.btn-solid:hover{ background:var(--accent); border-color:var(--accent); }
.btn-line{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-line:hover{ background:var(--ink); color:#fff; }
.btn-sm{ padding:9px 18px; font-size:10.5px; letter-spacing:.1em; }
.link-u{ display:inline-block; font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); border-bottom:2px solid var(--accent); padding-bottom:5px; transition:color .25s, border-color .25s; }
.link-u:hover{ color:var(--accent); }

/* ---------- header ---------- */
.site-header{ position:sticky; top:0; z-index:50; background:rgba(251,250,246,.86); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--line); }
.nav{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; height:80px; }
.brand{ font-family:var(--serif); font-weight:600; font-size:27px; letter-spacing:.2em; }
.menu{ display:flex; gap:30px; justify-content:center; }
.menu a{ position:relative; font-size:12px; font-weight:500; letter-spacing:.13em; text-transform:uppercase; color:var(--ink); padding:6px 0; transition:color .25s; }
.menu a::after{ content:""; position:absolute; left:0; bottom:0; width:100%; height:2px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; }
.menu a:hover{ color:var(--accent); }
.menu a:hover::after{ transform:scaleX(1); }
.tools{ display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.t-icon{ color:var(--ink); opacity:.85; display:inline-flex; transition:opacity .25s, color .25s; }
.t-icon:hover{ opacity:1; color:var(--accent); }
.langs{ display:flex; gap:3px; align-items:center; font-size:11.5px; letter-spacing:.08em; }
.langs a{ color:var(--ink2); padding:3px 6px; border-radius:7px; transition:color .25s, background .25s; }
.langs a.on{ color:#fff; background:var(--ink); }
.langs span{ color:var(--line); }

/* mobile burger (markup added in site_header) */
.nav-burger{ display:none; width:42px; height:42px; border:1px solid var(--line); border-radius:12px; background:var(--surface); cursor:pointer; align-items:center; justify-content:center; flex-direction:column; gap:5px; padding:0; }
.nav-burger span{ display:block; width:18px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s, opacity .2s; }
.site-header.nav-open .nav-burger span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-burger span:nth-child(2){ opacity:0; }
.site-header.nav-open .nav-burger span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{ display:grid; grid-template-columns:.92fr 1.08fr; min-height:88vh; align-items:stretch; }
.hero-text{ display:flex; flex-direction:column; justify-content:center; padding:64px 64px 64px 48px; }
.hero-text .label{ margin-bottom:26px; }
.hero h1{ font-family:var(--serif); font-weight:520; font-size:clamp(40px,5.4vw,76px); line-height:1.02; letter-spacing:-.01em; }
.hero h1 em{ font-style:italic; color:var(--accent); }
.hero p{ font-size:17px; color:var(--ink2); max-width:46ch; margin-top:26px; line-height:1.7; }
.hero-cta{ display:flex; flex-wrap:wrap; align-items:center; gap:26px; margin-top:40px; }
.hero-img{ position:relative; overflow:hidden; background:var(--frame); border-radius:0 0 0 28px; }
.hero-ph{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  background:radial-gradient(120% 90% at 70% 25%, #F6F1E6, transparent 55%), linear-gradient(160deg,#ECE5D6,#D9CFBC); }
.hero-ph span{ font-family:var(--serif); font-weight:500; font-size:clamp(40px,6vw,82px); letter-spacing:.06em; color:rgba(47,43,35,.45); }
.hero-ph em{ font-family:var(--sans); font-style:normal; font-size:11px; letter-spacing:.24em; text-transform:uppercase; color:rgba(47,43,35,.42); }

/* ---------- sections ---------- */
.pad{ padding:110px 0; }
.soft{ background:var(--bg); }
.row-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:50px; }
.sec-h .label{ display:block; margin-bottom:18px; }
.sec-h h1, .sec-h h2{ font-family:var(--serif); font-weight:520; font-size:clamp(30px,4vw,52px); line-height:1.06; letter-spacing:-.005em; }

/* ---------- product grid ---------- */
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:56px 32px; }
.card{ cursor:pointer; display:block; }
.pim{ position:relative; aspect-ratio:3/4; overflow:hidden; background:var(--frame); border-radius:var(--r); }
.pim img, .detail-img img, .hero-img img, .imgwrap img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pim img{ transition:transform .9s cubic-bezier(.2,.7,.2,1); }
.card-wrap:hover .pim img, .card:hover .pim img{ transform:scale(1.05); }
.card-wrap{ transition:transform .35s cubic-bezier(.2,.7,.2,1); }
.card-wrap:hover{ transform:translateY(-5px); }
.phbox{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:var(--frame); padding:20px; }
.phbox span{ font-family:var(--serif); font-size:clamp(20px,2.2vw,30px); color:var(--muted); text-align:center; letter-spacing:.02em; line-height:1.2; }
.pm{ padding-top:18px; }
.pm h3{ font-family:var(--sans); font-weight:600; font-size:16.5px; letter-spacing:.005em; margin:0; }
.pm h3::after{ content:none; }
.pm .moq{ font-size:13.5px; color:var(--ink2); }
.empty{ grid-column:1/-1; padding:60px 0; text-align:center; color:var(--ink2); font-family:var(--serif); font-size:24px; }

/* ---------- services (homepage strip) ---------- */
.srv{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; border-top:0; }
.srv .col{ padding:30px 26px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); transition:transform .3s, box-shadow .3s, border-color .3s; }
.srv .col:last-child{ border-right:1px solid var(--line); padding-right:26px; }
.srv .col:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:transparent; }
.srv .n{ font-family:var(--serif); font-size:15px; font-style:italic; color:var(--accent); letter-spacing:.04em; }
.srv h4{ font-family:var(--serif); font-weight:560; font-size:23px; margin:14px 0 10px; line-height:1.16; }
.srv p{ font-size:14px; color:var(--ink2); line-height:1.66; }

/* ---------- services page ---------- */
.srv-list{ border-top:1px solid var(--line); }
.srv-item{ display:grid; grid-template-columns:120px 1fr; gap:30px; padding:38px 10px; border-bottom:1px solid var(--line); align-items:start; border-radius:var(--r); }
.srv-num{ font-family:var(--serif); font-style:italic; font-size:42px; line-height:1; color:var(--accent); }
.srv-body{ max-width:760px; }
.srv-body h3{ font-family:var(--serif); font-weight:560; font-size:27px; line-height:1.14; }
.srv-body p{ color:var(--ink2); margin-top:12px; font-size:15.5px; line-height:1.72; }
.srv-link{ transition:background .25s; }
.srv-link:hover{ background:var(--surface); }
.srv-link .srv-body h3{ transition:color .25s; }
.srv-link:hover .srv-body h3{ color:var(--accent); }
.srv-more{ display:inline-flex; align-items:center; gap:7px; margin-top:14px; font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); }
.srv-link:hover .srv-more, .news-card:hover .srv-more{ color:var(--accent); }

/* ---------- service article ---------- */
.article-head{ max-width:840px; }
.article-title{ font-family:var(--serif); font-weight:520; font-size:clamp(34px,5vw,62px); line-height:1.02; margin:16px 0 0; }
.article-lede{ font-family:var(--serif); font-size:clamp(20px,2.4vw,28px); color:var(--ink2); line-height:1.4; margin-top:20px; }
.article-grid{ display:grid; grid-template-columns:1.5fr 1fr; gap:60px; margin-top:52px; align-items:start; }
.article-body p{ font-size:16.5px; line-height:1.85; color:var(--ink); margin-bottom:20px; }
.article-side{ border:1px solid var(--line); border-radius:var(--r); background:var(--surface); padding:24px; }
.article-side h4{ font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--accent); margin-bottom:16px; }
.svc-points{ list-style:none; margin:0; padding:0; }
.svc-points li{ position:relative; padding:11px 0 11px 22px; border-bottom:1px solid var(--line); font-size:14.5px; color:var(--ink); }
.svc-points li:last-child{ border-bottom:0; }
.svc-points li:before{ content:""; position:absolute; left:0; top:19px; width:8px; height:3px; border-radius:2px; background:var(--accent); }
.article-nav{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:56px; padding-top:30px; border-top:1px solid var(--line); }
.article-nav a{ display:flex; flex-direction:column; gap:7px; }
.article-nav .an-k{ display:inline-flex; align-items:center; gap:7px; font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink2); }
.article-nav .an-t{ font-family:var(--serif); font-size:20px; color:var(--ink); transition:color .25s; }
.article-nav a:hover .an-t{ color:var(--accent); }

/* ---------- split (maison / detail inquiry) ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:66px; align-items:center; }
.imgwrap{ position:relative; aspect-ratio:4/5; overflow:hidden; background:var(--frame); border-radius:var(--r); }
.split .lede{ font-family:var(--serif); font-weight:460; font-size:clamp(23px,2.6vw,33px); line-height:1.36; margin-top:18px; max-width:560px; }
.split p.body{ color:var(--ink2); margin-top:20px; font-size:15.5px; line-height:1.75; max-width:480px; }
.split .more{ margin-top:28px; }

/* ---------- stats ---------- */
.stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:28px; border-top:1px solid var(--line); padding-top:48px; }
.st .n{ font-family:var(--serif); font-weight:480; font-size:clamp(36px,4.8vw,60px); line-height:1; }
.st .n::after{ content:none; }
.st .l{ font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink2); margin-top:12px; }

/* ---------- contact / forms ---------- */
.cta{ display:grid; grid-template-columns:1fr 1fr; gap:66px; align-items:center; }
.cta h2{ font-family:var(--serif); font-weight:520; font-size:clamp(30px,4vw,50px); line-height:1.06; }
.cta h2 em{ font-style:italic; color:var(--accent); }
.cta .sub{ color:var(--ink2); margin-top:20px; font-size:15.5px; line-height:1.7; max-width:42ch; }
.form{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:30px 28px 26px; box-shadow:0 1px 30px rgba(23,21,15,.04); }
.form .fr{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink2); margin-bottom:8px; }
.field input, .field textarea, .field select{ width:100%; background:var(--bg); border:1px solid var(--line); border-radius:11px; color:var(--ink); font-family:var(--sans); font-size:15px; padding:12px 14px; outline:none; transition:border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus, .field select:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(51,80,159,.12); }
.field textarea{ min-height:84px; resize:vertical; }

/* ---------- catalogue page ---------- */
.cat-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:20px 30px; flex-wrap:wrap; margin-top:38px; padding-bottom:30px; border-bottom:1px solid var(--line); }
.filter{ display:flex; flex-wrap:wrap; gap:10px; }
.filter a{ font-size:12px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--ink2); padding:8px 16px; border:1px solid var(--line); border-radius:999px; transition:color .2s, border-color .2s, background .2s; }
.filter a:hover{ color:var(--ink); border-color:var(--ink2); }
.filter a.active{ color:#fff; background:var(--ink); border-color:var(--ink); }
.searchbox{ position:relative; min-width:230px; max-width:320px; flex:1; }
.searchbox svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--ink2); }
.searchbox input{ width:100%; background:var(--surface); border:1px solid var(--line); border-radius:999px; color:var(--ink); font-family:var(--sans); font-size:14.5px; padding:10px 16px 10px 40px; outline:none; transition:border-color .25s, box-shadow .25s; }
.searchbox input:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(51,80,159,.12); }
.pager{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:64px; }
.pager a, .pager span{ min-width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; padding:0 12px; font-size:13px; color:var(--ink2); border:1px solid transparent; border-radius:999px; transition:.25s; }
.pager a:hover{ color:var(--ink); border-color:var(--line); }
.pager .cur{ color:#fff; background:var(--ink); }
.pager .pg-arrow{ font-size:11px; letter-spacing:.12em; text-transform:uppercase; }

/* ---------- product detail ---------- */
.detail{ display:grid; grid-template-columns:1fr 1.05fr; gap:60px; align-items:start; }
.detail-img{ position:relative; aspect-ratio:3/4; overflow:hidden; background:var(--frame); border-radius:var(--r); }
.detail-info{ padding-top:8px; }
.detail-info h1{ font-family:var(--serif); font-weight:520; font-size:clamp(30px,4vw,52px); line-height:1.04; margin:14px 0 12px; }
.detail-price{ font-size:14px; color:var(--ink2); letter-spacing:.04em; }
.detail-desc{ color:var(--ink2); margin:22px 0; font-size:15.5px; line-height:1.8; }
.spec-list{ border-top:1px solid var(--line); margin:6px 0 26px; }
.spec-row{ display:flex; justify-content:space-between; gap:20px; padding:13px 0; border-bottom:1px solid var(--line); font-size:14px; }
.spec-row .sk{ color:var(--ink2); }
.spec-row .sv{ color:var(--ink); text-align:right; }

/* ---------- note ---------- */
.note{ display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:10px; padding:14px 18px; font-size:14px; color:var(--ink); }

/* ---------- footer (dark) ---------- */
.site-footer{ background:var(--ink); color:#EFEBE0; border-top:0; padding:74px 0 32px; margin-top:40px; position:relative; }
.site-footer::before{ content:none; }
.ftop{ display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:44px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.12); }
.fbrand{ font-family:var(--serif); font-weight:560; font-size:27px; letter-spacing:.16em; color:#fff; }
.ftop p{ font-size:14px; line-height:1.7; margin-top:16px; max-width:34ch; color:var(--on-dark-muted); }
.fcol h4{ font-size:10.5px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--on-dark-muted); margin-bottom:17px; }
.fcol a, .fcol div{ display:block; font-size:14px; color:#EFEBE0; margin-bottom:11px; transition:color .25s; }
.fcol a:hover{ color:#fff; text-decoration:underline; text-underline-offset:4px; }
.fbot{ padding-top:25px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--on-dark-muted); }

/* ---------- reveal ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ transition-duration:.01ms !important; animation-duration:.01ms !important; scroll-behavior:auto !important; }
}
/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */
.adminbar{ background:var(--ink); color:#fff; }
.adminbar .row{ max-width:1200px; margin:0 auto; padding:0 28px; display:flex; align-items:center; gap:26px; height:62px; }
.atitle{ font-family:var(--serif); font-size:19px; letter-spacing:.05em; }
.tabs{ display:flex; gap:6px; }
.tab{ font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--on-dark-muted); padding:8px 14px; border-radius:6px; transition:.25s; }
.tab:hover{ color:#fff; }
.tab.active{ color:var(--ink); background:#fff; }
.container{ max-width:1200px; margin:0 auto; padding:0 28px; }
.admin-main{ padding:42px 28px 80px; }
.sec-head{ margin-bottom:30px; }
.sec-head .top{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.sec-head h2{ font-family:var(--serif); font-weight:500; line-height:1.1; }
.count{ font-size:13px; color:var(--muted); margin-top:6px; }

.atable{ border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
.arow{ display:grid; grid-template-columns:64px 1.6fr 1.1fr 1fr auto; gap:16px; align-items:center; padding:13px 18px; border-bottom:1px solid var(--line); }
.arow:last-child{ border-bottom:none; }
.arow.head{ background:var(--soft); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink2); padding:12px 18px; }
.athumb{ width:56px; height:70px; border-radius:6px; overflow:hidden; background:var(--frame); }
.athumb img{ width:100%; height:100%; object-fit:cover; }
.athumb.ph{ display:flex; align-items:center; justify-content:center; font-family:var(--serif); font-size:22px; color:var(--muted); }
.aname{ font-weight:500; font-size:14.5px; }
.acat{ font-size:13px; color:var(--ink2); }
.aprice{ font-size:13px; color:var(--ink2); }
.aacts{ display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.aacts a{ font-size:13px; color:var(--accent); }
.del{ background:none; border:none; cursor:pointer; font-family:var(--sans); font-size:13px; color:var(--muted); padding:0; }
.del:hover{ color:#b23b3b; }
.star{ color:var(--accent); }

.row2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.hint{ font-size:12px; color:var(--muted); margin-top:6px; line-height:1.5; }

.inq{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px 22px; margin-bottom:14px; }
.ih{ display:flex; align-items:baseline; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.iname{ font-weight:600; font-size:15px; }
.ico{ color:var(--ink2); font-size:14px; }
.idate{ font-size:12px; color:var(--muted); }
.imeta{ display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:10px; font-size:13.5px; color:var(--ink2); }
.imeta b{ color:var(--ink); font-weight:600; }
.imsg{ margin-top:12px; padding-top:12px; border-top:1px solid var(--line); font-size:14px; line-height:1.6; color:var(--ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1000px){
  .wrap{ padding:0 24px; }
  .hero{ grid-template-columns:1fr; min-height:auto; }
  .hero-text{ padding:54px 24px 44px; }
  .hero-img{ height:74vh; }
  .grid{ grid-template-columns:repeat(2,1fr); gap:36px 24px; }
  .split, .cta, .detail{ grid-template-columns:1fr; gap:38px; }
  .article-grid{ grid-template-columns:1fr; gap:34px; margin-top:38px; }
  .srv{ grid-template-columns:1fr 1fr; }
  .srv .col{ border-right:none; border-bottom:1px solid var(--line); padding:30px 0; }
  .stats{ grid-template-columns:1fr 1fr; gap:30px 20px; }
  .ftop{ grid-template-columns:1fr 1fr; }
  .menu{ display:none; }
  .brand{ font-size:27px; letter-spacing:.16em; }
  .pad{ padding:72px 0; }
}
@media (max-width:680px){
  .arow{ grid-template-columns:48px 1fr auto; }
  .head-cat, .arow .acat, .arow .aprice{ display:none; }
  .athumb{ width:48px; height:60px; }
  .srv-item{ grid-template-columns:1fr; gap:8px; padding:26px 0; }
  .srv-num{ font-size:30px; }
}
@media (max-width:560px){
  .grid, .form .fr, .row2{ grid-template-columns:1fr; }
  .stats{ grid-template-columns:1fr 1fr; }
  .ftop{ grid-template-columns:1fr; }
  .cat-toolbar{ flex-direction:column; align-items:flex-start; }
}

/* ===== Part 1 additions: search, gallery, admin quick actions ===== */
.hsearch{display:flex;align-items:center;gap:6px}
.hsearch-input{width:0;min-width:0;padding:0;border:0;border-bottom:1px solid transparent;background:none;font:inherit;font-size:14px;color:var(--ink);outline:none;opacity:0;transition:width .25s ease,opacity .2s ease,padding .2s ease}
.hsearch.open .hsearch-input{width:170px;opacity:1;padding:5px 2px;border-bottom-color:var(--line)}
@media (max-width:680px){.hsearch.open .hsearch-input{width:120px}}

.detail-img.has-gallery{aspect-ratio:auto;overflow:visible;background:none}
.dg-main{aspect-ratio:3/4;overflow:hidden;border-radius:10px;border:1px solid var(--line);background:var(--frame)}
.dg-main img{width:100%;height:100%;object-fit:cover;display:block}
.dg-thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.dg-thumb{padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;cursor:pointer;background:none;width:74px;height:74px;transition:border-color .15s}
.dg-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.dg-thumb:hover{border-color:var(--ink2)}
.dg-thumb.on{border-color:var(--ink)}

.prod-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.asearch{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;color:var(--ink2);background:#fff}
.asearch input[type=text]{border:0;outline:0;font:inherit;min-width:190px;background:none;color:var(--ink)}
.aacts{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.lbtn{background:none;border:0;padding:0;margin:0;font:inherit;font-size:13px;color:var(--ink2);cursor:pointer}
.lbtn:hover{color:var(--ink);text-decoration:underline}
.lbtn.star{font-size:15px;color:#C9C3B6;text-decoration:none}
.lbtn.star.on{color:#C9A34E}
.lbtn.star:hover{text-decoration:none;color:#C9A34E}

.gthumbs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.gthumb{position:relative}
.gthumb img{height:72px;width:72px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.gthumb .gdel{position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:50%;border:0;background:var(--ink);color:#fff;cursor:pointer;font-size:13px;line-height:18px;text-align:center;padding:0}

/* ===== Part 2: product selection -> PDF ===== */
.card-wrap{position:relative}
.card-sel{position:absolute;top:10px;right:10px;z-index:3;margin:0}
.selbtn{font:inherit;font-size:12px;letter-spacing:.02em;border:1px solid var(--line);background:rgba(255,255,255,.92);color:var(--ink);padding:7px 12px;border-radius:999px;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.selbtn:hover{background:#fff;border-color:var(--ink2)}
.selbtn.on{background:var(--ink);color:#fff;border-color:var(--ink)}

.sel-ic{position:relative}
.sel-badge{position:absolute;top:-6px;right:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--ink);color:#fff;font-size:10px;line-height:16px;text-align:center;font-weight:600}

.detail-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px;align-items:center}
.sel-inline{display:inline-flex;margin:0}
.sel-detail{cursor:pointer}
.sel-detail.on{background:var(--frame);color:var(--ink);border-color:var(--line)}

.sel-grid{display:grid;grid-template-columns:1fr 360px;gap:48px;align-items:start}
.sel-head-row{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line);color:var(--ink2);font-size:14px}
.sel-item{display:grid;grid-template-columns:96px 1fr auto;gap:20px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.sel-thumb{width:96px;aspect-ratio:3/4;overflow:hidden;background:var(--frame);border-radius:6px}
.sel-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.sel-thumb .phbox{position:static;width:100%;height:100%}
.sel-meta h3{font-family:var(--sans);font-weight:500;font-size:16px;margin:0 0 4px}
.sel-cat{font-size:12px;color:var(--ink2);letter-spacing:.04em;text-transform:uppercase}
.sel-desc{font-size:13.5px;color:var(--ink2);margin:8px 0 0;line-height:1.5}
.sel-remove{font-size:13px;color:var(--ink2);white-space:nowrap}
.sel-remove:hover{color:#b3402f}
.sel-side{background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:26px}
.sel-side-h{font-family:var(--sans);font-weight:600;font-size:16px;margin:0 0 16px}
.sel-err{background:#fbeae7;border:1px solid #e7c3bc;color:#a23b2a;padding:10px 12px;border-radius:8px;font-size:13.5px;margin-bottom:14px}
@media(max-width:900px){.sel-grid{grid-template-columns:1fr;gap:30px}}
@media(max-width:560px){.sel-item{grid-template-columns:72px 1fr;gap:14px}.sel-thumb{width:72px}.sel-remove{grid-column:2;justify-self:start;margin-top:6px}}

/* ===== product card photo carousel ===== */
.pm{ display:block; text-decoration:none; color:inherit; }
.pim-link{ position:absolute; inset:0; z-index:1; }
.pim-nav{ position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:34px; height:34px; border-radius:50%; border:0; background:rgba(255,255,255,.92); color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:0; transition:opacity .2s ease, background .15s; box-shadow:0 1px 6px rgba(0,0,0,.08); padding:0; }
.pim-nav.prev{ left:12px; }
.pim-nav.next{ right:12px; }
.pim-nav:hover{ background:#fff; }
.card-wrap:hover .pim-nav{ opacity:1; }
.pim-dots{ position:absolute; bottom:12px; left:0; right:0; z-index:2; display:flex; gap:6px; justify-content:center; pointer-events:none; }
.pim-dots i{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); box-shadow:0 0 2px rgba(0,0,0,.25); }
.pim-dots i.on{ background:#fff; }
@media (hover:none){ .pim-nav{ opacity:1; background:rgba(255,255,255,.85); } }

/* ===== product detail: full photo fits screen + readable text width ===== */
.detail-info{ max-width:540px; }
.detail-desc{ max-width:62ch; }

.detail-img{ aspect-ratio:auto; overflow:visible; background:none; border:0; }
.detail-img > img{ position:static; display:block; margin:0 auto; width:auto; max-width:100%; height:auto; max-height:min(76vh,760px); border:1px solid var(--line); border-radius:10px; background:var(--frame); }
.detail-img .phbox{ position:relative; inset:auto; width:100%; aspect-ratio:3/4; }
.detail-img.has-gallery .dg-main{ aspect-ratio:auto; overflow:visible; border:0; background:none; }
.detail-img.has-gallery .dg-main img{ position:static; display:block; margin:0 auto; width:auto; max-width:100%; height:auto; max-height:min(70vh,700px); border:1px solid var(--line); border-radius:10px; background:var(--frame); }
.detail-img.has-gallery .dg-thumbs{ justify-content:center; }

/* ===== CRM (admin) ===== */
.crm-nav{ display:flex; align-items:center; gap:18px; border-bottom:1px solid var(--line,#EAE7E1); margin-bottom:22px; }
.crm-nav a{ padding:10px 0; font-size:14px; color:var(--ink2,#8C887F); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; }
.crm-nav a.on{ color:var(--ink,#1C1A17); border-bottom-color:var(--ink,#1C1A17); }
.crm-nav a:hover{ color:var(--ink,#1C1A17); }
.crm-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:30px; }
.crm-card{ border:1px solid var(--line,#EAE7E1); border-radius:14px; padding:20px; background:var(--soft,#FAF9F6); }
.cc-n{ font-size:30px; font-weight:600; color:var(--ink,#1C1A17); line-height:1.12; }
.cc-money{ font-size:18px; }
.cc-l{ font-size:13px; color:var(--ink2,#8C887F); margin-top:6px; }
.crm-h{ font-size:16px; font-weight:600; margin:26px 0 12px; color:var(--ink,#1C1A17); }
.crm-empty{ color:var(--ink2,#8C887F); font-size:14px; }
.crm-empty-box{ border:1px dashed var(--line,#EAE7E1); border-radius:14px; padding:44px 20px; text-align:center; color:var(--ink2,#8C887F); }
.crm-saved{ background:#eef6ef; border:1px solid #cfe3d4; color:#3c7d4f; padding:10px 14px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.crm-list{ border-top:1px solid var(--line,#EAE7E1); }
.crm-row{ display:flex; align-items:center; gap:16px; padding:12px 4px; border-bottom:1px solid var(--line,#EAE7E1); text-decoration:none; color:var(--ink,#1C1A17); }
.crm-row:hover{ background:var(--soft,#FAF9F6); }
.cr-date{ font-size:12.5px; color:var(--ink2,#8C887F); width:54px; flex:none; }
.cr-date.over{ color:#b3402f; font-weight:600; }
.cr-name{ flex:1; font-size:14.5px; }
.cr-amt{ font-size:13.5px; color:var(--ink2,#8C887F); }
.cr-stage{ font-size:12px; text-transform:uppercase; letter-spacing:.05em; flex:none; }
.crm-filters{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.chip{ font-size:13px; padding:7px 14px; border:1px solid var(--line,#EAE7E1); border-radius:999px; color:var(--ink2,#8C887F); text-decoration:none; }
.chip.on{ border-color:var(--ink,#1C1A17); color:var(--ink,#1C1A17); }
.chip:hover{ color:var(--ink,#1C1A17); }
.crm-table{ border-top:1px solid var(--line,#EAE7E1); }
.ct-row{ display:grid; grid-template-columns:2fr 110px 1fr 1fr 70px 80px; gap:14px; align-items:center; padding:13px 6px; border-bottom:1px solid var(--line,#EAE7E1); text-decoration:none; color:var(--ink,#1C1A17); font-size:14px; }
.ct-row.ct-head{ color:var(--ink2,#8C887F); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
a.ct-row:hover{ background:var(--soft,#FAF9F6); }
.ct-name{ display:flex; flex-direction:column; gap:2px; }
.ct-name b{ font-weight:400; color:var(--ink2,#8C887F); font-size:12.5px; }
.ct-src{ font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink2,#8C887F); }
.stbadge{ display:inline-block; color:#fff; font-size:11px; padding:3px 10px; border-radius:999px; letter-spacing:.03em; }
.crm-table.staff .ct-row{ grid-template-columns:1fr 1fr 100px; }
.lead-grid{ display:grid; grid-template-columns:1fr 320px; gap:36px; align-items:start; }
.lead-side{ background:var(--soft,#FAF9F6); border:1px solid var(--line,#EAE7E1); border-radius:14px; padding:20px; }
.lead-side .field{ margin-bottom:14px; }
.lead-src{ margin-top:14px; font-size:12px; color:var(--ink2,#8C887F); }
.note-add{ margin-bottom:18px; }
.note-add textarea{ width:100%; min-height:70px; margin-bottom:10px; }
.notes{ display:flex; flex-direction:column; gap:12px; }
.note{ border:1px solid var(--line,#EAE7E1); border-radius:10px; padding:13px 15px; background:#fff; }
.note-meta{ font-size:12px; color:var(--ink2,#8C887F); margin-bottom:6px; }
.note-meta b{ color:var(--ink,#1C1A17); font-weight:600; }
.note-body{ font-size:14px; color:var(--ink,#1C1A17); line-height:1.55; }
@media (max-width:860px){ .crm-cards{ grid-template-columns:repeat(2,1fr); } .lead-grid{ grid-template-columns:1fr; gap:22px; } .ct-row{ grid-template-columns:1.6fr 90px 1fr; } .ct-row span:nth-child(4),.ct-row span:nth-child(5),.ct-row span:nth-child(6){ display:none; } }

/* ---- social icons (footer) + floating messenger buttons ---- */
.socials{ display:flex; gap:13px; margin-top:18px; }
.socials a{ color:var(--ink2); display:inline-flex; transition:color .2s ease, transform .2s ease; }
.socials a:hover{ color:var(--accent); transform:translateY(-2px); }
.fab-wrap{ position:fixed; right:18px; bottom:18px; z-index:60; display:flex; flex-direction:column; gap:12px; }
.fab{ width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 6px 20px rgba(0,0,0,.18); transition:transform .18s ease, box-shadow .18s ease; }
.fab:hover{ transform:scale(1.08); box-shadow:0 10px 26px rgba(0,0,0,.24); }
.fab-wa{ background:#25D366; }
.fab-tg{ background:#229ED9; }
@media (max-width:640px){ .fab-wrap{ right:14px; bottom:14px; } .fab{ width:48px; height:48px; } }

/* ---- news & exhibitions ---- */
.link-back{ display:inline-flex; align-items:center; gap:7px; color:var(--ink2); font-size:14px; margin-bottom:26px; }
.link-back:hover{ color:var(--accent); }
.news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.news-card{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--bg); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.news-card:hover{ transform:translateY(-4px); box-shadow:0 14px 34px rgba(28,26,23,.08); border-color:var(--frame); }
.news-thumb{ aspect-ratio:4/3; background:var(--soft); overflow:hidden; }
.news-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.news-thumb-empty{ display:flex; align-items:center; justify-content:center; background:var(--frame); }
.news-thumb-empty span{ font-family:var(--serif); font-size:24px; color:var(--ink2); letter-spacing:.04em; }
.news-card-body{ padding:20px 22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.news-meta{ font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink2); }
.news-card-body h3{ font-family:var(--serif); font-size:23px; line-height:1.2; color:var(--ink); margin:0; }
.news-card-body p{ font-size:14.5px; color:var(--ink2); line-height:1.55; margin:0; flex:1; }
.news-card .srv-more{ margin-top:6px; }
.news-article h1{ font-family:var(--serif); font-weight:500; font-size:clamp(30px,5vw,46px); line-height:1.1; margin:10px 0 0; color:var(--ink); }
.news-article .news-meta{ margin-bottom:6px; }
.news-hero{ margin:28px 0 6px; border-radius:14px; overflow:hidden; border:1px solid var(--line); }
.news-hero img{ width:100%; height:auto; display:block; }
.news-body{ margin-top:22px; }
.news-body p{ font-size:17px; line-height:1.7; color:var(--ink); margin:0 0 18px; max-width:64ch; }
/* ---- faq ---- */
.faq-list{ border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 4px; font-family:var(--serif); font-size:22px; color:var(--ink); }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-ic{ position:relative; width:16px; height:16px; flex:none; }
.faq-ic::before,.faq-ic::after{ content:''; position:absolute; background:var(--ink2); transition:transform .2s ease, opacity .2s ease; }
.faq-ic::before{ top:7px; left:0; width:16px; height:2px; }
.faq-ic::after{ left:7px; top:0; width:2px; height:16px; }
.faq-item[open] .faq-ic::after{ transform:scaleY(0); opacity:0; }
.faq-item[open] summary{ color:var(--accent); }
.faq-a{ padding:0 4px 24px; font-size:15.5px; line-height:1.7; color:var(--ink2); max-width:68ch; }
@media (max-width:860px){ .news-grid{ grid-template-columns:1fr; gap:22px; } }
@media (max-width:600px){ .faq-item summary{ font-size:19px; } }

/* ---- CRM tasks & tags ---- */
.task-list{ border:1px solid var(--line); border-radius:12px; overflow:hidden; max-width:860px; }
.task-row{ display:flex; align-items:center; gap:12px; padding:11px 14px; border-bottom:1px solid var(--line); }
.task-row:last-child{ border-bottom:0; }
.task-row.is-done .task-title{ text-decoration:line-through; color:var(--ink2); }
.task-check{ width:20px; height:20px; flex:none; border:1.6px solid var(--ink2); border-radius:50%; background:transparent; cursor:pointer; padding:0; transition:all .15s ease; }
.task-check:hover{ border-color:var(--accent); }
.task-check.on{ background:#3c7d4f; border-color:#3c7d4f; position:relative; }
.task-check.on::after{ content:'\2713'; color:#fff; font-size:12px; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }
.task-title{ flex:1; font-size:14.5px; color:var(--ink); }
.task-lead{ color:var(--accent); font-size:13px; }
.task-due{ font-size:12.5px; color:var(--ink2); white-space:nowrap; }
.task-due.over{ color:#b3402f; font-weight:600; }
.task-del{ border:0; background:transparent; color:var(--ink2); font-size:18px; line-height:1; cursor:pointer; padding:0 2px; }
.task-del:hover{ color:#b3402f; }
.task-add-inline{ display:flex; gap:10px; align-items:center; max-width:760px; flex-wrap:wrap; }
.task-add-inline input{ padding:9px 11px; border:1px solid var(--line); border-radius:9px; font:inherit; background:var(--surface,#fff); }
.task-add-inline input[name="title"]{ flex:1; min-width:200px; }
.ct-tags{ display:inline-flex; gap:5px; flex-wrap:wrap; margin-left:2px; }
.tagchip{ display:inline-block; font-size:11px; padding:2px 8px; border-radius:20px; background:var(--frame); color:var(--ink2); letter-spacing:.02em; }

/* ---- quote / proposal builder ---- */
.row3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }
.qitems{ border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.qrow{ display:grid; grid-template-columns:1fr 90px 140px 36px; }
.qrow{ border-bottom:1px solid var(--line); }
.qrow:last-child{ border-bottom:0; }
.qrow-head{ background:var(--soft); font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); }
.qrow-head span{ padding:9px 11px; }
.qrow input{ border:0; border-right:1px solid var(--line); padding:10px 11px; font:inherit; background:transparent; width:100%; }
.qrow .qdel{ border:0; background:transparent; color:var(--ink2); cursor:pointer; font-size:17px; }
.qrow .qdel:hover{ color:#b3402f; }
@media (max-width:700px){ .row3{ grid-template-columns:1fr; } .qrow{ grid-template-columns:1fr 64px 100px 30px; } }

/* ---- CRM reports ---- */
.rep-2col{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:8px; }
.rep-box{ border:1px solid var(--line); border-radius:12px; padding:16px 18px; }
.rep-box-h{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink2); margin-bottom:8px; }
.rep-line{ display:flex; justify-content:space-between; align-items:baseline; padding:4px 0; font-family:var(--serif); font-size:22px; color:var(--ink); }
.rep-sub{ font-family:var(--sans); font-size:12.5px; color:var(--ink2); }
.rep-empty{ font-size:13.5px; color:var(--ink2); padding:4px 0; }
.rep-chart{ display:flex; align-items:flex-end; gap:14px; min-height:200px; padding:14px 10px; border:1px solid var(--line); border-radius:12px; }
.rep-col{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; }
.rep-colnum{ font-size:13px; color:var(--ink); font-weight:600; }
.rep-fill{ width:100%; max-width:54px; background:var(--accent); border-radius:6px 6px 0 0; }
.rep-mlabel{ font-size:12px; color:var(--ink2); }
.rep-stages{ display:flex; flex-direction:column; gap:8px; max-width:760px; }
.rep-stage{ display:grid; grid-template-columns:140px 1fr 50px; align-items:center; gap:14px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; }
.rep-stage:hover{ border-color:var(--frame); background:var(--soft); }
.rep-stage-bar{ height:10px; background:var(--frame); border-radius:6px; overflow:hidden; }
.rep-stage-bar span{ display:block; height:100%; border-radius:6px; }
.rep-stage-n{ text-align:right; font-weight:600; color:var(--ink); }
@media (max-width:760px){ .rep-2col{ grid-template-columns:1fr; } .rep-stage{ grid-template-columns:110px 1fr 40px; gap:10px; } }

/* ---- product variant attributes ---- */
.detail-attrs{ margin:18px 0 4px; display:flex; flex-direction:column; gap:9px; }
.attr-row{ display:flex; gap:14px; align-items:baseline; }
.attr-k{ flex:0 0 92px; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); padding-top:3px; }
.attr-v{ display:flex; gap:6px; flex-wrap:wrap; font-size:15px; color:var(--ink); }
.vchip{ display:inline-block; font-size:13px; padding:3px 11px; border:1px solid var(--line); border-radius:20px; color:var(--ink); }
/* ---- catalogue secondary filters ---- */
.cat-filters2{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:14px; }
.cat-filters2 select{ padding:9px 12px; border:1px solid var(--line); border-radius:9px; font:inherit; background:var(--bg); color:var(--ink); }
.cat-filters2 .ff-clear{ font-size:13px; color:var(--ink2); }
.cat-filters2 .ff-clear:hover{ color:var(--accent); }
.cat-filters2 .ff-pdf{ margin-left:auto; }
/* ---- footer email capture ---- */
.foot-sub{ display:flex; gap:24px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:26px 0; margin-top:14px; border-top:1px solid var(--line); }
.foot-sub-txt p{ font-size:13.5px; color:var(--ink2); margin-top:4px; max-width:46ch; }
.sub-flash{ margin-top:8px; font-size:13.5px; color:#3c7d4f; }
.sub-form{ display:flex; gap:10px; align-items:center; }
.sub-form input[type="email"]{ padding:11px 14px; border:1px solid var(--line); border-radius:10px; font:inherit; min-width:240px; background:var(--bg); }
@media (max-width:640px){ .sub-form{ width:100%; } .sub-form input[type="email"]{ flex:1; min-width:0; } .cat-filters2 .ff-pdf{ margin-left:0; } }

/* ===== header client login ===== */
.t-login{ font-size:13px; letter-spacing:.02em; color:var(--ink); padding:7px 14px; border:1px solid var(--line); border-radius:20px; white-space:nowrap; }
.t-login:hover{ border-color:var(--ink); }
/* ===== customer portal ===== */
.portal-err{ background:#fbeaea; color:#9a3b3b; border:1px solid #f0d2d2; padding:11px 16px; border-radius:9px; font-size:14px; max-width:560px; margin-bottom:20px; }
.auth-cards{ display:grid; grid-template-columns:1fr 1fr; gap:24px; max-width:880px; }
.auth-card{ border:1px solid var(--line); border-radius:14px; padding:26px 24px; background:var(--bg); }
.auth-card h3{ font-size:21px; margin:0 0 16px; }
.acct-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:26px; }
.acct-grid{ display:grid; grid-template-columns:1.7fr 1fr; gap:30px; align-items:start; }
.acct-main h3,.acct-side h3{ font-size:16px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); margin:0 0 14px; }
.acct-empty{ border:1px dashed var(--line); border-radius:12px; padding:24px; color:var(--ink2); font-size:14.5px; }
.ord-list{ display:flex; flex-direction:column; gap:10px; }
.ord-item{ display:flex; justify-content:space-between; align-items:center; gap:14px; border:1px solid var(--line); border-radius:12px; padding:16px 18px; transition:border-color .15s; }
.ord-item:hover{ border-color:var(--ink); }
.ord-item .oi-ref{ font-size:12px; color:var(--ink2); letter-spacing:.04em; }
.ord-item .oi-title{ display:block; font-size:16px; color:var(--ink); margin-top:2px; }
.ord-item .oi-eta{ display:block; font-size:12.5px; color:var(--ink2); margin-top:3px; }
.ord-badge{ display:inline-block; color:#fff; font-size:12px; font-weight:600; padding:5px 13px; border-radius:20px; white-space:nowrap; }
.ord-badge.sm{ font-size:11px; padding:3px 10px; }
.mgr-card{ border:1px solid var(--line); border-radius:14px; padding:22px; background:var(--soft); margin-bottom:22px; }
.mgr-card h3{ margin-bottom:10px; }
.mgr-name{ font-size:18px; font-weight:600; color:var(--ink); margin:0 0 8px; }
.mgr-line{ display:block; font-size:14.5px; color:var(--accent); margin-top:4px; }
.prof-card{ border:1px solid var(--line); border-radius:14px; padding:22px; }
.prof-saved{ color:#3c7d4f; font-size:13.5px; margin:0 0 12px; }
.prof-email{ font-size:13px; color:var(--ink2); margin:6px 0 14px; }
.ord-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin:14px 0 6px; }
.ord-steps{ display:flex; justify-content:space-between; gap:4px; margin:30px 0 10px; }
.ord-step{ flex:1; text-align:center; position:relative; font-size:12px; }
.ord-step .dot{ display:block; width:16px; height:16px; border-radius:50%; background:var(--line); margin:0 auto 9px; position:relative; z-index:2; border:3px solid var(--bg); }
.ord-step::before{ content:""; position:absolute; top:6px; left:-50%; width:100%; height:2px; background:var(--line); z-index:1; }
.ord-step:first-child::before{ display:none; }
.ord-step .slabel{ color:var(--ink2); }
.ord-step.done .dot{ background:var(--accent); }
.ord-step.done::before{ background:var(--accent); }
.ord-step.done .slabel{ color:var(--ink); }
.ord-step.now .slabel{ color:var(--ink); font-weight:700; }
.ord-grid{ display:grid; grid-template-columns:1.5fr 1fr; gap:26px; align-items:start; margin-top:26px; }
.ord-details{ border:1px solid var(--line); border-radius:14px; padding:22px; }
.ord-details h3,.ord-log + h3,.ord-grid h3{ font-size:16px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); margin:0 0 14px; }
.ord-details .dl{ display:flex; flex-direction:column; gap:11px; }
.ord-details .dl div{ display:flex; justify-content:space-between; gap:14px; font-size:14.5px; border-bottom:1px solid var(--frame); padding-bottom:9px; }
.ord-details .dl div:last-child{ border-bottom:0; padding-bottom:0; }
.ord-details .dl span{ color:var(--ink2); }
.ord-log{ display:flex; flex-direction:column; gap:14px; }
.ord-log .logrow{ display:flex; gap:16px; border-left:2px solid var(--line); padding:2px 0 2px 16px; }
.ord-log .logdate{ font-size:12.5px; color:var(--ink2); flex:0 0 116px; }
.ord-log .logrow p{ margin:6px 0 0; font-size:14.5px; }
/* ===== admin: customers / orders ===== */
.crm-cols{ display:grid; grid-template-columns:1.6fr 1fr; gap:28px; align-items:start; }
.crm-form{ max-width:620px; }
.crm-card{ border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:18px; }
.crm-card h4{ font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); margin:0 0 12px; }
.mini-list{ display:flex; flex-direction:column; gap:8px; }
.mini-row{ display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:13.5px; padding:9px 12px; border:1px solid var(--line); border-radius:9px; }
.mini-row:hover{ border-color:var(--ink); }
.uprow{ font-size:13.5px; padding:9px 0; border-bottom:1px solid var(--frame); }
.uprow:last-child{ border-bottom:0; }
@media (max-width:820px){
  .auth-cards,.acct-grid,.ord-grid,.crm-cols{ grid-template-columns:1fr; }
  .ord-step .slabel{ font-size:10.5px; }
}

/* ===== place order + chat ===== */
.place-order{ border:1px solid var(--line); border-radius:14px; padding:24px; }
.place-order h3{ margin-bottom:14px; }
.po-form textarea{ min-height:70px; }
.chat-box{ border:1px solid var(--line); border-radius:14px; padding:22px; margin-top:30px; }
.chat-box h3{ font-size:16px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); margin:0 0 14px; }
.chat-msgs{ display:flex; flex-direction:column; gap:10px; max-height:420px; overflow-y:auto; padding:6px 2px; }
.chat-msgs.adm{ max-height:300px; margin-bottom:4px; }
.chat-empty{ color:var(--ink2); font-size:14px; }
.msg{ max-width:78%; padding:10px 14px; border-radius:14px; font-size:14.5px; }
.msg .msg-b{ line-height:1.5; word-wrap:break-word; }
.msg .msg-meta{ display:block; font-size:11px; color:var(--ink2); margin-top:5px; }
.msg.them{ align-self:flex-start; background:var(--soft); border:1px solid var(--line); border-bottom-left-radius:4px; }
.msg.me{ align-self:flex-end; background:var(--accent); color:#fff; border-bottom-right-radius:4px; }
.msg.me .msg-meta{ color:rgba(255,255,255,.82); }
.chat-form{ display:flex; gap:10px; margin-top:14px; }
.chat-form input[type="text"]{ flex:1; padding:11px 14px; border:1px solid var(--line); border-radius:10px; font:inherit; background:var(--bg); }

/* ===== add-to-order buttons ===== */
.addcart-form{ display:flex; gap:8px; margin-top:8px; align-items:center; }
.addcart-qty{ width:66px; padding:8px; border:1px solid var(--line); border-radius:8px; font:inherit; text-align:center; background:var(--bg); }
.addcart-btn{ flex:1; }
.detail-addcart{ display:flex; align-items:center; gap:10px; margin-top:14px; flex-wrap:wrap; }
.detail-addcart label{ font-size:13px; color:var(--ink2); }
/* ===== order cart ===== */
.cart-grid{ display:grid; grid-template-columns:1.6fr 1fr; gap:30px; align-items:start; }
.cart-items{ display:flex; flex-direction:column; gap:12px; }
.cart-row{ display:grid; grid-template-columns:64px 1fr auto auto; gap:14px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.cart-thumb{ width:64px; height:64px; border-radius:8px; overflow:hidden; background:var(--soft); display:flex; align-items:center; justify-content:center; flex:0 0 64px; }
.cart-thumb img{ width:100%; height:100%; object-fit:cover; }
.cart-thumb span{ font-size:10px; color:var(--ink2); text-align:center; padding:4px; }
.cart-info a{ font-size:15.5px; color:var(--ink); }
.cart-qtyf{ display:flex; gap:8px; align-items:center; }
.cart-rm{ display:flex; }
.cart-x{ background:none; border:0; font-size:22px; line-height:1; color:var(--ink2); cursor:pointer; padding:0 4px; }
.cart-x:hover{ color:#b04a4a; }
.cart-actions{ display:flex; gap:16px; align-items:center; margin-top:8px; }
.cart-checkout{ border:1px solid var(--line); border-radius:14px; padding:24px; background:var(--soft); }
.cart-checkout h3{ font-size:18px; margin:0 0 16px; }
.saved-addr{ background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:14px 16px; margin-bottom:14px; }
.saved-addr .sa-h{ font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); margin-bottom:6px; }
.saved-addr p{ font-size:14.5px; margin:0 0 8px; }
/* ===== order line items ===== */
.oi-lines{ display:flex; flex-direction:column; gap:10px; }
.oi-line{ display:grid; grid-template-columns:56px 1fr auto; gap:14px; align-items:center; border:1px solid var(--line); border-radius:10px; padding:8px 12px; }
.oi-thumb{ width:56px; height:56px; border-radius:8px; overflow:hidden; background:var(--soft); display:flex; align-items:center; justify-content:center; }
.oi-thumb img{ width:100%; height:100%; object-fit:cover; }
.oi-thumb span{ font-size:9px; color:var(--ink2); text-align:center; padding:3px; line-height:1.2; }
.oi-name{ font-size:15px; color:var(--ink); }
.oi-qty{ font-size:14px; font-weight:600; color:var(--accent); white-space:nowrap; }
.oi-lines.adm .oi-line{ padding:6px 10px; }
.oi-lines.adm .oi-thumb{ width:42px; height:42px; }
.oi-lines.adm .oi-name{ font-size:13.5px; }
.oi-lines.adm .oi-qty{ font-size:12.5px; }
@media (max-width:820px){
  .cart-grid{ grid-template-columns:1fr; }
  .cart-row{ grid-template-columns:56px 1fr; row-gap:10px; }
  .cart-thumb{ width:56px; height:56px; flex-basis:56px; }
  .cart-qtyf{ grid-column:1 / -1; }
}

/* ===== per-item pricing ===== */
.price-tbl{ width:100%; border-collapse:collapse; margin-top:4px; }
.price-tbl th{ text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink2); font-weight:500; padding:4px 0; }
.price-tbl td{ padding:6px 0; border-top:1px solid var(--frame); font-size:13.5px; vertical-align:middle; }
.price-tbl td:last-child{ text-align:right; width:130px; }
.pt-qty{ color:var(--ink2); font-size:12px; }
.pt-price{ width:118px; padding:7px 9px; border:1px solid var(--line); border-radius:8px; font:inherit; text-align:right; }
.oi-line{ grid-template-columns:56px 1fr auto auto; }
.oi-sum{ font-size:14px; font-weight:600; color:var(--ink); white-space:nowrap; padding-left:6px; }
.oi-total{ display:flex; justify-content:space-between; align-items:baseline; border-top:2px solid var(--line); margin-top:10px; padding-top:12px; }
.oi-total span{ font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); }
.oi-total b{ font-size:20px; color:var(--ink); }
.oi-lines.adm .oi-line{ grid-template-columns:42px 1fr auto; }
@media (max-width:820px){ .oi-line{ grid-template-columns:56px 1fr; } .oi-qty,.oi-sum{ grid-column:auto; } }

/* ===== order list amount ===== */
.oi-right{ display:flex; align-items:center; gap:12px; }
.oi-amt{ font-size:14.5px; font-weight:600; color:var(--ink); white-space:nowrap; }
.oi-na{ font-size:12px; font-weight:400; color:var(--ink2); font-style:italic; }
@media (max-width:640px){ .oi-right{ flex-direction:column; align-items:flex-end; gap:6px; } }

/* ===== compact chat + clean profile (v23) ===== */
.chat-box{ padding:20px; margin-top:24px; }
.chat-box h3{ margin:0 0 12px; }
.chat-msgs{ gap:6px; max-height:300px; padding:4px 2px; }
.msg{ max-width:74%; padding:8px 12px; font-size:14px; border-radius:13px; }
.msg .msg-b{ line-height:1.45; }
.msg .msg-meta{ font-size:10.5px; margin-top:3px; }
.prof-view{ display:flex; flex-direction:column; }
.pv-row{ display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid var(--frame); font-size:14px; }
.pv-row:last-of-type{ border-bottom:0; }
.pv-row span{ color:var(--ink2); }
.pv-row b{ color:var(--ink); font-weight:600; text-align:right; word-break:break-word; }
.prof-edit-btn{ margin-top:14px; }

/* ===== nav badges + status sums + order pdf (v24) ===== */
.navbadge{ display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; margin-left:7px; border-radius:9px; background:#b04a4a; color:#fff; font-size:11px; font-weight:600; vertical-align:middle; line-height:1; }
.ord-status-list{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.oss-row{ display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; border:1px solid var(--line); border-radius:10px; padding:10px 14px; }
.oss-row:hover{ border-color:var(--ink); }
.oss-c{ font-size:13.5px; color:var(--ink2); }
.oss-s{ font-size:14px; font-weight:600; color:var(--ink); white-space:nowrap; text-align:right; }
.oss-na{ font-weight:400; color:var(--ink2); font-style:italic; }
.ord-head-r{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.ord-pdf{ white-space:nowrap; }
@media (max-width:640px){ .ord-head-r{ width:100%; } .oss-row{ grid-template-columns:auto 1fr; } .oss-s{ grid-column:1 / -1; text-align:left; } }

/* ===== portal login: tabs + register toggle + staff link (v25) ===== */
.auth-wrap{ max-width:440px; }
.auth-tabs{ display:flex; border-bottom:1px solid var(--line); margin-bottom:26px; }
.auth-tab{ appearance:none; background:none; border:0; border-bottom:2px solid transparent; padding:11px 2px; margin-right:26px; font-family:inherit; font-size:15px; color:var(--ink2); cursor:pointer; letter-spacing:.02em; }
.auth-tab.on{ color:var(--ink); border-bottom-color:var(--ink); font-weight:600; }
.auth-pane{ display:none; }
.auth-pane.on{ display:block; }
.auth-form .field{ margin-bottom:15px; }
.btn-block{ width:100%; justify-content:center; margin-top:4px; }
.auth-alt{ margin-top:18px; font-size:14px; color:var(--ink2); }
.auth-link{ background:none; border:0; padding:0; margin:0; cursor:pointer; font-family:inherit; font-size:14px; color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.auth-link:hover{ color:var(--ink); }
.staff-login{ margin-top:30px; padding-top:18px; border-top:1px solid var(--frame); font-size:13px; }
.staff-login a{ color:var(--ink2); text-decoration:underline; text-underline-offset:3px; }
.staff-login a:hover{ color:var(--ink); }
button.link-u{ background:none; border:0; border-bottom:1px solid var(--ink); padding:0 0 5px; cursor:pointer; font-family:inherit; }

/* ===== centered login card (v26) ===== */
.portal-auth{ display:flex; justify-content:center; padding:6px 0 24px; }
.auth-box{ width:100%; max-width:440px; }
.auth-head{ text-align:center; margin-bottom:24px; }
.auth-head h2{ margin-top:10px; }
.auth-head p{ color:var(--ink2); margin-top:12px; max-width:42ch; margin-left:auto; margin-right:auto; }
.auth-card2{ border:1px solid var(--line); border-radius:16px; background:var(--bg); padding:30px 30px 26px; box-shadow:0 1px 40px rgba(28,26,23,.05); }
.auth-card2 .auth-tabs{ justify-content:center; gap:30px; }
.auth-card2 .auth-tab{ margin-right:0; }
.auth-card2 .auth-alt{ text-align:center; }
.auth-box .staff-login{ text-align:center; margin-top:22px; border-top:0; padding-top:0; }
@media (max-width:520px){ .auth-card2{ padding:24px 20px 22px; } }

/* ===== centered text-only hero (no banner image) v27 ===== */
.hero-center{ grid-template-columns:1fr; min-height:72vh; }
.hero-center .hero-text{ align-items:center; text-align:center; max-width:780px; margin:0 auto; padding:64px 24px; }
.hero-center .hero p{ margin-left:auto; margin-right:auto; }
.hero-center .hero-cta{ justify-content:center; }

/* ===== centered "what we do" services block v28 ===== */
.srv-center .sec-h{ text-align:center; }
.srv-center .srv .col{ text-align:center; padding:38px 22px 0; }
.srv-center .srv .col:last-child{ padding:38px 22px 0; }
.srv-center .srv p{ max-width:32ch; margin-left:auto; margin-right:auto; }
.srv-center .svc-all{ text-align:center; }
@media (max-width:820px){ .srv-center .srv .col, .srv-center .srv .col:last-child{ padding:28px 16px 0; } }

/* ===== MOQ hint + add-to-order confirmation (v29) ===== */
.moq-min{ font-size:11px; color:var(--ink2); letter-spacing:.04em; margin-left:6px; text-transform:none; font-weight:400; }
.btn.added{ background:transparent; border-color:#3c7d4f; color:#3c7d4f; }

/* keep the enlarged wordmark from crowding the header icons on small phones (v30) */
@media (max-width:400px){ .brand{ font-size:24px; letter-spacing:.14em; } }


/* =========================================================
   v31 REDESIGN OVERRIDES (cascade-final)
   ========================================================= */

/* dark footer: subscribe block + socials + sub-form on ink */
.foot-sub{ border-top:1px solid rgba(255,255,255,.12); }
.foot-sub .fbrand{ color:#fff; }
.foot-sub-txt p{ color:var(--on-dark-muted); }
.sub-flash{ color:#8FD2A0; }
.sub-form input[type="email"]{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.2); border-radius:999px; color:#fff; padding:13px 18px; }
.sub-form input[type="email"]::placeholder{ color:rgba(255,255,255,.45); }
.sub-form input[type="email"]:focus{ outline:none; border-color:rgba(255,255,255,.55); }
.sub-form .btn-solid{ background:#fff; color:var(--ink); border-color:#fff; }
.sub-form .btn-solid:hover{ background:var(--accent); color:#fff; border-color:var(--accent); }
.site-footer .socials a{ color:var(--on-dark-muted); }
.site-footer .socials a:hover{ color:#fff; transform:translateY(-2px); }

/* header search pill */
.hsearch.open .hsearch-input{ border-bottom-color:var(--accent); }
.t-login{ border-radius:999px; font-weight:500; }
.t-login:hover{ border-color:var(--accent); color:var(--accent); }
.sel-badge{ background:var(--accent); }
.navbadge{ background:var(--accent-2); }

/* selection / chips / misc accents */
.selbtn{ font-weight:500; }
.selbtn.on{ background:var(--accent); border-color:var(--accent); }
.chip.on{ background:var(--ink); color:#fff; border-color:var(--ink); }
.tagchip{ background:var(--soft); }
.msg.me{ background:var(--accent); }
.faq-item summary{ font-family:var(--serif); font-weight:520; }
.faq-item[open] summary{ color:var(--accent); }
.news-card{ border-radius:var(--r); }
.news-card-body h3{ font-family:var(--serif); }
.news-thumb-empty span{ font-family:var(--serif); }
.news-article h1{ font-family:var(--serif); }
.rep-line{ font-family:var(--serif); }
.rep-sub{ font-family:var(--sans); }
.dg-main{ border-radius:var(--r); }
.detail-img > img, .detail-img.has-gallery .dg-main img{ border-radius:var(--r); }
.sel-side, .cart-checkout, .mgr-card, .lead-side{ background:var(--surface); }
.auth-card2{ border-radius:18px; box-shadow:0 1px 40px rgba(23,21,15,.06); }
.ord-step.done .dot, .ord-step.done::before{ background:var(--accent); }
.btn.added{ border-color:#3c7d4f; color:#3c7d4f; background:transparent; }

/* admin bar */
.adminbar{ background:var(--ink); }
.tab.active{ color:var(--ink); background:#fff; }

/* ---------- mobile navigation (burger) ---------- */
@media (max-width:1000px){
  .nav{ grid-template-columns:auto 1fr auto; height:68px; }
  .nav-burger{ display:inline-flex; order:-1; margin-right:14px; }
  .menu{ position:fixed; top:68px; left:0; right:0; display:none; flex-direction:column; gap:0; background:var(--bg); border-bottom:1px solid var(--line); padding:10px 24px 18px; z-index:49; box-shadow:0 24px 40px rgba(23,21,15,.08); }
  .site-header.nav-open .menu{ display:flex; }
  .menu a{ padding:14px 2px; font-size:13px; border-bottom:1px solid var(--line); }
  .menu a:last-child{ border-bottom:0; }
  .menu a::after{ display:none; }
  .hero-img{ border-radius:0; }
}

/* ---------- responsive polish ---------- */
@media (max-width:1000px){
  .wrap{ padding:0 24px; }
  .pad{ padding:72px 0; }
  .srv{ grid-template-columns:1fr 1fr; }
}
@media (max-width:680px){
  .srv{ grid-template-columns:1fr; }
  .hero-text{ padding:52px 24px 44px; }
  .hero h1{ font-size:clamp(34px,9vw,46px); }
  .stats{ gap:34px 18px; }
  .filter{ gap:8px; }
  .filter a{ padding:7px 13px; font-size:11px; }
  .tools{ gap:10px; }
}
@media (max-width:560px){
  .form{ padding:22px 18px 18px; }
  .foot-sub{ flex-direction:column; align-items:flex-start; }
}
@media (max-width:400px){ .brand{ font-size:22px; letter-spacing:.12em; } }

/* visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible{
  outline:2px solid var(--accent); outline-offset:3px; border-radius:6px;
}

/* keep card-style services on mobile & centered variant (overrides legacy rules) */
@media (max-width:1000px){
  .srv .col, .srv-center .srv .col{ border:1px solid var(--line); border-radius:var(--r); padding:26px 22px; }
}
.srv-center .srv .col, .srv-center .srv .col:last-child{ padding:30px 26px; }

/* ============================================================
   PREMIUM 3D LAYER (v32) — depth, tilt, sheen
   ============================================================ */

/* deeper, layered shadows = perceived depth */
:root{
  --shadow-3d: 0 2px 6px rgba(23,21,15,.05), 0 14px 34px rgba(23,21,15,.10), 0 34px 80px rgba(23,21,15,.10);
  --shadow-3d-soft: 0 1px 3px rgba(23,21,15,.05), 0 10px 26px rgba(23,21,15,.08);
}

/* 3D tilt on product cards (JS sets --rx/--ry per cursor) */
.card-wrap{ perspective:900px; }
.card-wrap .card, .card-wrap > a.card{ display:block; transform-style:preserve-3d;
  transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0);
  transition:transform .25s ease, box-shadow .3s ease; will-change:transform; }
.card-wrap:hover .card{ transition:transform .06s linear; }
.card-wrap:hover{ transform:none; }                 /* tilt replaces plain lift */
.card-wrap:hover .imgwrap{ box-shadow:var(--shadow-3d); }
.imgwrap{ transition:box-shadow .3s ease; }

/* glossy sheen sweeping across imagery on hover */
.imgwrap::after, .hero-img::after{
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(115deg, transparent 38%, rgba(255,255,255,.34) 50%, transparent 62%);
  transform:translateX(-130%); transition:transform .8s ease;
}
.card-wrap:hover .imgwrap::after, .card:hover .imgwrap::after, .hero-img:hover::after{ transform:translateX(130%); }

/* buttons with tactile depth */
.btn-solid{ box-shadow:0 2px 0 rgba(23,21,15,.22), 0 12px 26px rgba(23,21,15,.16); }
.btn-solid:hover{ transform:translateY(-2px); box-shadow:0 4px 0 rgba(23,21,15,.2), 0 18px 34px rgba(23,21,15,.2); }
.btn-solid:active{ transform:translateY(0) scale(.985); box-shadow:0 1px 0 rgba(23,21,15,.22), 0 8px 18px rgba(23,21,15,.14); }
.btn-line{ box-shadow:var(--shadow-3d-soft); }
.btn-line:hover{ transform:translateY(-2px); }

/* services columns float higher with depth */
.srv .col{ transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.srv .col:hover{ transform:translateY(-7px); box-shadow:var(--shadow-3d); }

/* hero: gentle parallax (JS sets --par) + floating depth on image block */
.hero-img{ box-shadow:var(--shadow-3d); transform:translateY(var(--par,0px)); transition:transform .12s linear; }

/* logo: subtle metallic sheen on hover */
.brand{ position:relative; }
.brand:hover{ background:linear-gradient(100deg, var(--ink) 30%, var(--accent) 50%, var(--ink) 70%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

/* reduce motion = no tilt/parallax for sensitive users */
@media (prefers-reduced-motion: reduce){
  .card-wrap .card{ transform:none !important; }
  .hero-img{ transform:none !important; }
  .imgwrap::after, .hero-img::after{ display:none; }
}
/* touch devices: skip tilt (no cursor) */
@media (hover:none){
  .imgwrap::after, .hero-img::after{ display:none; }
}

/* ============================================================
   HERO BACKDROP (v35) — flat porcelain #FBFAF6, same as the
   rest of the site (uniform background everywhere)
   ============================================================ */
.hero-center{
  position:relative;
  background:var(--bg);
}
.hero-center .hero-text{ position:relative; z-index:1; }

/* ===== justified article text with hyphenation (v36) ===== */
.article-body p{ text-align:justify; hyphens:auto; -webkit-hyphens:auto; }

/* ===== news article: justified text + bold styling (v37) ===== */
.news-body p{ text-align:justify; hyphens:auto; -webkit-hyphens:auto; }
.news-body strong, .article-body strong{ font-weight:650; color:var(--ink); }

/* ===== contact details block (#contact) v42 ===== */
.contact-info{ margin-top:32px; background:var(--soft); border:1px solid var(--line); border-radius:16px; padding:26px 28px; box-shadow:var(--shadow-3d-soft); max-width:440px; }
.ci-row{ display:flex; align-items:flex-start; gap:14px; padding:11px 0; border-bottom:1px solid var(--line); }
.ci-row:last-of-type{ border-bottom:0; }
.ci-ic{ flex:0 0 38px; width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:var(--bg); border:1px solid var(--line); color:var(--accent); }
.ci-ic svg{ width:18px; height:18px; }
.ci-t{ display:flex; flex-direction:column; gap:2px; padding-top:2px; }
.ci-k{ font-size:10.5px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--ink2); }
.ci-v{ font-size:15.5px; line-height:1.5; color:var(--ink); }
.ci-v a{ color:var(--ink); text-decoration:none; }
.ci-v a:hover{ color:var(--accent); }
.ci-btns{ display:flex; gap:12px; flex-wrap:wrap; margin-top:20px; }
.ci-msg{ display:inline-flex; align-items:center; gap:8px; padding:11px 20px; border-radius:999px; font-size:13px; font-weight:600; letter-spacing:.03em; text-decoration:none; color:#fff; transition:transform .15s, box-shadow .2s, filter .2s; box-shadow:var(--shadow-3d-soft); }
.ci-msg svg{ width:17px; height:17px; }
.ci-wa{ background:#25D366; }
.ci-tg{ background:#2AABEE; }
.ci-msg:hover{ transform:translateY(-2px); filter:brightness(1.05); box-shadow:var(--shadow-3d); }
@media (max-width:560px){ .contact-info{ max-width:none; padding:22px 20px; } }

/* ===== Тёмная тема: авто вечером (19:00–07:00) + переключатель ☀/🌙 ===== */
html.dark{
  --bg:#14120D;          /* тёплый чёрный */
  --soft:#1E1B14;        /* тёмная поверхность */
  --ink:#F0EBE1;         /* тёплый светлый текст */
  --ink2:#B6AE9E;        /* приглушённый светлый */
  --muted:#897F6E;
  --line:#322E25;        /* тонкая граница */
  --frame:#262218;       /* рамка изображений */
  --accent:#8AA0E6;      /* индиго светлее для контраста */
  --accent-2:#D2785A;    /* маддер светлее */
  --surface:#1B1812;     /* карточки */
  --shadow:0 18px 50px rgba(0,0,0,.55);
  color-scheme:dark;
}
/* фоны, заданные напрямую (не переменной) — переключаем вручную */
html.dark .site-header{ background:rgba(20,18,13,.86); }
html.dark .tab.active{ background:var(--surface); }
html.dark .note{ background:var(--soft); }
html.dark input, html.dark select, html.dark textarea{ background:var(--soft); color:var(--ink); border-color:var(--line); }

/* переключатель темы */
.theme-toggle{ background:none; border:none; cursor:pointer; color:var(--ink2); padding:4px; display:inline-flex; align-items:center; line-height:0; }
.theme-toggle:hover{ color:var(--ink); }
.theme-toggle .ic-sun{ display:none; }
html.dark .theme-toggle .ic-sun{ display:block; }
html.dark .theme-toggle .ic-moon{ display:none; }

/* ===== ИИ чат-консультант ===== */
#hr-chat-launch{ position:fixed; left:18px; bottom:18px; z-index:60; width:56px; height:56px; border-radius:50%; border:none; cursor:pointer; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.22); transition:transform .18s ease, box-shadow .18s ease; }
#hr-chat-launch:hover{ transform:scale(1.07); box-shadow:0 12px 30px rgba(0,0,0,.28); }
#hr-chat.open #hr-chat-launch{ display:none; }
#hr-chat-panel{ position:fixed; left:18px; bottom:18px; z-index:61; width:370px; max-width:calc(100vw - 36px); height:560px; max-height:calc(100vh - 96px); background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:0 22px 60px rgba(0,0,0,.30); display:none; flex-direction:column; overflow:hidden; }
#hr-chat.open #hr-chat-panel{ display:flex; }
#hr-chat-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px; background:var(--accent); color:#fff; }
#hr-chat-title{ font-weight:700; font-size:15px; line-height:1.2; }
#hr-chat-sub{ font-size:12px; opacity:.85; margin-top:2px; }
#hr-chat-close{ background:none; border:none; color:#fff; font-size:24px; line-height:1; cursor:pointer; opacity:.85; padding:0 2px; }
#hr-chat-close:hover{ opacity:1; }
#hr-chat-msgs{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--bg); }
.hr-msg{ max-width:82%; padding:10px 13px; border-radius:13px; font-size:14px; line-height:1.5; white-space:pre-wrap; word-wrap:break-word; }
.hr-user{ align-self:flex-end; background:var(--accent); color:#fff; border-bottom-right-radius:4px; }
.hr-bot{ align-self:flex-start; background:var(--soft); color:var(--ink); border:1px solid var(--line); border-bottom-left-radius:4px; }
#hr-chat-input{ display:flex; align-items:flex-end; gap:8px; padding:10px 12px; border-top:1px solid var(--line); background:var(--surface); }
#hr-chat-text{ flex:1; resize:none; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font:inherit; font-size:14px; background:var(--bg); color:var(--ink); outline:none; max-height:120px; }
#hr-chat-text:focus{ border-color:var(--accent); }
#hr-chat-send{ flex:none; width:40px; height:40px; border-radius:10px; border:none; cursor:pointer; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; }
#hr-chat-send:disabled{ opacity:.5; cursor:default; }
@media (max-width:640px){ #hr-chat-launch{ left:14px; bottom:14px; } #hr-chat-panel{ left:0; right:0; bottom:0; width:100%; max-width:100%; height:80vh; max-height:80vh; border-radius:16px 16px 0 0; } }