/* =====================================================================
 * HOUZE MATERIALS — design system
 * Industrial / export-brochure aesthetic: cool neutrals, deep graphite
 * panels, a single brass accent, condensed display type.
 * ===================================================================== */

/* ---------- 1. tokens ------------------------------------------------ */
:root {
  --ink: #10171D;
  --ink-2: #1A232B;
  --ink-3: #26313A;
  --steel: #566672;
  --steel-2: #7C8A94;
  --line: #DDE1E4;
  --line-2: #EDEFF1;
  --paper: #FFFFFF;
  --paper-2: #F5F6F7;
  --paper-3: #E8EAEC;
  --accent: #C8842E;
  --accent-dk: #A96C1F;
  --accent-soft: #F7EEDF;
  --ok: #2E7D5B;
  --err: #C0392B;

  --ff-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --wrap: 1240px;
  --gut: 24px;
  --r: 4px;
  --r-2: 8px;
  --shadow-1: 0 1px 2px rgba(16, 23, 29, .06), 0 8px 24px -12px rgba(16, 23, 29, .18);
  --shadow-2: 0 24px 60px -28px rgba(16, 23, 29, .38);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-3);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--accent); color: #fff; }

/* ---------- 3. layout ------------------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section--tight { padding: clamp(44px, 5vw, 72px) 0; }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #C3CCD3; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev .split__media { order: 2; }
.stack > * + * { margin-top: 1.2rem; }

/* ---------- 4. type helpers ----------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-display);
  font-size: .875rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.section--dark .eyebrow { color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--steel); line-height: 1.72; }
.section--dark .lede { color: #A9B5BE; }
.muted { color: var(--steel); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.measure { max-width: 62ch; }
.measure--sm { max-width: 46ch; }

/* ---------- 5. buttons ---------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--ff-display);
  font-size: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r);
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-dk); --btn-bd: var(--accent-dk); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgba(255,255,255,.08); }
.btn--wa { --btn-bg: #1FA855; --btn-bd: #1FA855; }
.btn--wa:hover { --btn-bg: #178f47; --btn-bd: #178f47; }
.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn--full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. header ----------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; border-radius: 7px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.brand__sub { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel-2); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: var(--r);
  font-family: var(--ff-display); font-size: 1rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
  transition: color .16s, background .16s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.is-active { color: var(--accent); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent);
}

.header__tools { display: flex; align-items: center; gap: 10px; }
.langswitch {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.langswitch button {
  padding: 7px 12px; background: transparent; border: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--ff-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--steel);
  transition: background .16s, color .16s;
}
.langswitch button.is-on { background: var(--ink); color: #fff; }
.langswitch button:not(.is-on):hover { background: var(--paper-2); color: var(--ink); }

.usermenu { position: relative; }
.usermenu__trigger {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
  font-size: .875rem; color: var(--ink-3);
}
.usermenu__trigger:hover { border-color: var(--steel-2); }
.usermenu__avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; letter-spacing: 0;
  font-family: var(--ff-body);
}
.usermenu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-2);
  box-shadow: var(--shadow-2); padding: 8px; display: none;
}
.usermenu.is-open .usermenu__panel { display: block; }
.usermenu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.usermenu__mail { font-size: .82rem; color: var(--steel); word-break: break-all; }
.usermenu__panel a, .usermenu__panel button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: transparent;
  border-radius: var(--r); cursor: pointer; font-size: .9rem; color: var(--ink-3);
}
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--paper-2); color: var(--ink); }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r);
  background: transparent; cursor: pointer; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: "";
  transition: transform .2s var(--ease), opacity .2s;
}
.burger span { top: 20px; }
.burger span::before { top: -6px; left: 0; }
.burger span::after { top: 6px; left: 0; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 72px 0 auto; z-index: 55; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
  padding: 12px var(--gut) 28px; display: none;
}
.drawer.is-open { display: block; animation: drop .22s var(--ease); }
.drawer a {
  display: block; padding: 14px 2px; border-bottom: 1px solid var(--line-2);
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 7. hero -------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: #E6EBEF; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .66; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,17,22,.93) 0%, rgba(11,17,22,.72) 46%, rgba(11,17,22,.22) 100%);
}
.hero__inner { position: relative; padding: clamp(80px, 11vw, 148px) 0 clamp(56px, 7vw, 92px); }
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { max-width: 58ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #B4C0C9; }
.hero__cta { margin-top: 34px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 7px 14px; border: 1px solid rgba(200,132,46,.5); border-radius: 100px;
  background: rgba(200,132,46,.12);
  font-family: var(--ff-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #E9B978;
}
.hero__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.statbar { position: relative; border-top: 1px solid rgba(255,255,255,.14); background: rgba(9,14,18,.6); }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat__n {
  font-family: var(--ff-display); font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700; color: #fff; line-height: 1; letter-spacing: .01em;
}
.stat__n span { color: var(--accent); }
.stat__l { margin-top: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8E9BA5; }

/* ---------- 8. cards ------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-2);
  overflow: hidden; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--steel-2); transform: translateY(-4px); box-shadow: var(--shadow-1); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 1.22rem; margin-bottom: 8px; letter-spacing: .01em; }
.card__body p { font-size: .92rem; color: var(--steel); margin: 0; }
.card__foot { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.card__link {
  font-family: var(--ff-display); font-size: .88rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.card:hover .card__link { gap: 13px; }
.card__link::after { content: "→"; transition: transform .2s; }

/* category tile */
.cat {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden;
  background: #fff; cursor: pointer; text-align: left; padding: 0; width: 100%;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--steel-2); }
.cat__media { display: block; aspect-ratio: 5 / 4; overflow: hidden; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.06); }
.cat__label { padding: 18px 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat__label strong {
  display: block; font-family: var(--ff-display); font-size: 1.12rem; font-weight: 600;
  letter-spacing: .03em; color: var(--ink); text-transform: uppercase;
}
.cat__label small { display: block; font-size: .78rem; color: var(--steel-2); letter-spacing: .06em; }
.cat__count {
  font-family: var(--ff-display); font-size: .8rem; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent-soft); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 100px; white-space: nowrap;
}
/* Text-only category tile (no image) */
.cat--text .cat__label { padding: 22px 22px; }

/* feature list */
.feature { display: flex; gap: 16px; }
.feature__ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: var(--r);
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dk);
  font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700;
}
.section--dark .feature__ico { background: rgba(200,132,46,.16); color: #E0A459; }
.feature h4 { margin-bottom: 6px; }
.feature p { font-size: .92rem; color: var(--steel); }
.section--dark .feature p { color: #98A5AE; }

/* process */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 62px; padding-bottom: 34px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--ff-display); font-size: 1.05rem; font-weight: 700; color: var(--accent);
  width: 40px; height: 40px; border: 1px solid var(--accent-soft); border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft);
}
.step::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 6px; width: 1px; background: var(--line); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: .93rem; color: var(--steel); margin: 0; }

/* quote band */
.quote-band { background: var(--ink-2); color: #C6D0D7; }
.quote-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wa-card {
  border: 1px solid rgba(255,255,255,.13); border-radius: var(--r-2);
  padding: 22px 24px; background: rgba(255,255,255,.03);
  display: flex; flex-direction: column; gap: 6px;
}
.wa-card__k { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: #8E9BA5; }
.wa-card__v { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 600; color: #fff; letter-spacing: .02em; }

/* ---------- 9. product page ----------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 100px; background: #fff;
  cursor: pointer; font-size: .86rem; color: var(--steel); white-space: nowrap;
  transition: border-color .16s, background .16s, color .16s;
}
.chip:hover { border-color: var(--steel-2); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.searchbox { position: relative; margin-left: auto; min-width: 260px; }
.searchbox input { padding-left: 40px; }
.searchbox svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--steel-2); }

.prodgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.prod { text-align: left; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--r-2); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); border-color: var(--steel-2); }
.prod__media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.prod:hover .prod__media img { transform: scale(1.05); }
.prod__tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 100px; background: var(--accent); color: #fff;
  font-family: var(--ff-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.prod__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.prod__cat { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-2); }
.prod__name { display: block; font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 6px 0 8px; line-height: 1.2; }
.prod__tag-line { display: block; font-size: .88rem; color: var(--steel); margin: 0; }
.prod__specs { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 6px; }
.prod__spec { font-size: .74rem; color: var(--steel); background: var(--paper-2); border-radius: 3px; padding: 3px 8px; }
/* Name-only product card (no image) */
.prod--text { padding: 0; }
.prod--text .prod__body { padding: 18px 20px; }
.prod--text .prod__name { font-size: 1.02rem; margin: 0; }
.prod--text .card__foot { margin-top: 12px; }

/* spec table */
.spectable { width: 100%; border-collapse: collapse; }
.spectable tr { border-bottom: 1px solid var(--line-2); }
.spectable tr:last-child { border-bottom: 0; }
.spectable th {
  text-align: left; font-weight: 500; font-size: .84rem; color: var(--steel);
  padding: 11px 16px 11px 0; vertical-align: top; width: 42%;
}
.spectable td { padding: 11px 0; font-size: .9rem; color: var(--ink-3); }

/* scenes */
.scene-list { display: flex; flex-wrap: wrap; gap: 8px; }
.scene-tag {
  padding: 7px 13px; border-radius: 3px; background: var(--paper-2); border: 1px solid var(--line);
  font-size: .84rem; color: var(--ink-3);
}

/* ---------- 10. forms ----------------------------------------------- */
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 7px;
  font-family: var(--ff-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--steel);
}
.field .req { color: var(--accent); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink-3);
  transition: border-color .16s, box-shadow .16s; font-size: .95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(86,102,114,.12);
}
textarea { min-height: 128px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.field__err { display: none; margin-top: 6px; font-size: .8rem; color: var(--err); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--err); }
.field.is-invalid .field__err { display: block; }
.formnote { font-size: .8rem; color: var(--steel-2); }
.checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: .88rem;
  transition: border-color .16s, background .16s;
}
.check:hover { border-color: var(--steel-2); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.alert {
  display: none; padding: 13px 16px; border-radius: var(--r); font-size: .9rem; margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert.is-on { display: block; }
.alert--ok { background: #EDF7F1; border-color: #BFDFCE; color: #215C42; }
.alert--err { background: #FDEEEC; border-color: #F2C7C2; color: #8E2E23; }
.alert--info { background: var(--paper-2); border-color: var(--line); color: var(--steel); }

/* ---------- 11. contact page ---------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.info-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row__ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: var(--r);
  display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-3);
}
.info-row h4 { margin: 0 0 4px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.info-row p { margin: 0; font-size: .95rem; color: var(--ink-3); }
.info-row a { color: var(--ink); }
.info-row a:hover { color: var(--accent); }

.wa-panel { background: var(--ink); border-radius: var(--r-2); padding: 30px 32px; color: #C3CCD3; }
.wa-panel h3 { color: #fff; }
.wa-list { display: grid; gap: 14px; margin-top: 20px; }
.wa-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); background: rgba(255,255,255,.04);
  transition: background .18s, border-color .18s;
}
.wa-item:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); }
.wa-item__ico {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #1FA855; color: #fff;
}
.wa-item__num { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 600; color: #fff; letter-spacing: .03em; line-height: 1.2; }
.wa-item__hint { font-size: .78rem; color: #8E9BA5; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-2); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-1); }

/* ---------- 12. auth / account -------------------------------------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.auth-aside { position: relative; background: var(--ink); color: #B4C0C9; overflow: hidden; }
.auth-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.auth-aside__inner { position: relative; padding: clamp(40px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; height: 100%; }
.auth-aside h2 { color: #fff; }
.auth-main { display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) var(--gut); }
.auth-card { width: 100%; max-width: 430px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button {
  padding: 11px 16px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--ff-display); font-size: .95rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.tabpane { display: none; }
.tabpane.is-on { display: block; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-2); overflow: hidden; }
.panel__head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.panel__head h3 { margin: 0; font-size: 1.1rem; }
.panel__body { padding: 24px; }
.panel__empty { padding: 48px 24px; text-align: center; color: var(--steel); }

.iq-list { display: grid; gap: 12px; }
.iq {
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: #fff;
}
.iq__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.iq__id { font-family: var(--ff-display); font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.iq__date { font-size: .8rem; color: var(--steel-2); margin-left: auto; }
.iq__chip { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; background: var(--accent-soft); color: var(--accent-dk); }
.iq__meta { font-size: .86rem; color: var(--steel); }
.iq__msg { font-size: .9rem; color: var(--ink-3); margin-top: 8px; white-space: pre-wrap; }

.filerow { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.filerow:last-child { border-bottom: 0; }
.filerow__ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--steel); letter-spacing: .04em; }
.filerow__name { font-size: .9rem; color: var(--ink-3); word-break: break-all; }
.filerow__meta { font-size: .76rem; color: var(--steel-2); }
.filerow__act { margin-left: auto; white-space: nowrap; }

.drop {
  border: 1.5px dashed var(--line); border-radius: var(--r-2); padding: 28px 24px; text-align: center;
  background: var(--paper-2); cursor: pointer; transition: border-color .18s, background .18s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { display: block; font-family: var(--ff-display); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.drop span { font-size: .84rem; color: var(--steel); }

/* ---------- 13. modal / drawer -------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(11,17,22,.62); backdrop-filter: blur(3px);
}
.modal.is-open { display: block; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(760px, 100%);
  background: #fff; overflow-y: auto; box-shadow: var(--shadow-2);
  animation: slide .3s var(--ease);
}
@keyframes slide { from { transform: translateX(40px); opacity: .4 } to { transform: none; opacity: 1 } }
.modal__close {
  position: absolute; right: 18px; top: 18px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.25rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-1);
}
.modal__close:hover { background: #fff; }
.modal__hero { aspect-ratio: 16 / 9; background: var(--paper-3); }
.modal__hero img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs { display: flex; gap: 10px; padding: 12px clamp(24px, 3.4vw, 42px) 0; overflow-x: auto; }
.gal__thumb {
  flex: 0 0 auto; width: 92px; aspect-ratio: 4 / 3; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--paper-3);
  opacity: .72; transition: opacity .15s ease, border-color .15s ease;
}
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__thumb:hover { opacity: 1; }
.gal__thumb.is-on { border-color: var(--accent); opacity: 1; }
.modal__body { padding: clamp(24px, 3.4vw, 42px); }
.modal__body h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 10px; }
.spec-block { margin-top: 30px; }
.spec-block h4 {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
body.is-locked { overflow: hidden; }

/* ---------- 14. footer ---------------------------------------------- */
.footer { background: var(--ink); color: #93A0AA; padding: clamp(52px, 6vw, 76px) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: #93A0AA; font-size: .91rem; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer__wc { display: block; color: #93A0AA; font-size: .91rem; padding: 5px 0; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: #6E7B85; }
.footer p { font-size: .91rem; }
.footer__bottom {
  margin-top: 48px; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 28px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: #6E7B85;
}
.footer__bottom .right { margin-left: auto; display: flex; gap: 18px; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; flex-direction: column; gap: 10px;
}
.wa-float a {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  background: #1FA855; color: #fff; border-radius: 100px; box-shadow: var(--shadow-2);
  font-family: var(--ff-display); font-size: .95rem; font-weight: 600; letter-spacing: .06em;
  transition: transform .2s var(--ease), background .18s;
}
.wa-float a:hover { transform: translateX(-3px); background: #178f47; }
.wa-float svg { flex-shrink: 0; }

/* ---------- 15. reveal ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; }
}

/* ---------- 16. responsive ------------------------------------------ */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prodgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-band__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav, .header__tools .btn { display: none; }
  .burger { display: block; margin-left: auto; }
  .header__tools { margin-left: auto; }
  .split, .contact-grid, .auth-wrap { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .auth-aside { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .searchbox { margin-left: 0; width: 100%; }
}
@media (max-width: 620px) {
  :root { --gut: 18px; }
  .grid--2, .grid--3, .grid--4, .prodgrid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .checkgrid { grid-template-columns: 1fr; }
  .hero__inner { padding: 64px 0 48px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .brand__sub { display: none; }
  .wa-float a span { display: none; }
  .wa-float a { padding: 14px; }
}
