/* =====================================================================
   Base styles shared by both pages + the price calculator page
   Premium look (2026-11-17): charcoal + bronze, serif headings, square buttons, a lot of air.
   ===================================================================== */
:root {
  --bg: #f4f1eb;              /* warm ivory */
  --bg-2: #ebe6dc;
  --card: #fbfaf7;
  --ink: #141414;
  --ink-2: #393836;
  --muted: #6d675d;
  --line: #e2dbce;
  --line-2: #cdc3b2;
  --accent: #9a7444;          /* bronze (on light) */
  --accent-2: #7b5b33;
  --accent-soft: #f1e9dc;
  --accent-ink: #ffffff;
  --gold: #c9a66d;            /* bronze (on dark) */
  --gold-2: #dcbd88;
  --steel: #121314;           /* charcoal */
  --steel-2: #1b1c1e;
  --wa: #1f9d55;
  --radius: 6px;
  --radius-sm: 4px;
  --serif: "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .05), 0 2px 10px rgba(20, 20, 20, .04);
  --shadow: 0 2px 6px rgba(20, 20, 20, .04), 0 18px 40px rgba(20, 20, 20, .08);
  --shadow-lg: 0 30px 70px rgba(20, 20, 20, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(154, 116, 68, .6); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(201, 166, 109, .35); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(18, 19, 20, .9); color: #fff;
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(201, 166, 109, .14); transition: background .25s, box-shadow .25s; }
.top.scrolled { background: rgba(18, 19, 20, .97); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 18px; white-space: nowrap;
  text-decoration: none; color: inherit; min-width: 0; }
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
/* wordmark like the logo: capitals with wide letter spacing */
.brand [data-name] { text-transform: uppercase; letter-spacing: .22em; font-weight: 500; font-size: 14px; }
.logo { width: 38px; height: 38px; flex: none; display: block; color: var(--gold); }
.logo svg { display: block; width: 100%; height: 100%; }
.top-contacts { display: flex; align-items: center; gap: 18px; white-space: nowrap; flex: none; }
.top-phone { text-decoration: none; font-weight: 500; color: #e9e6e0; display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.top-phone::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.top-back { color: #bdb8ae; text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.top-back:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn { font: inherit; font-weight: 600; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px;
  padding: 14px 22px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.2;
  transition: background .25s var(--ease), border-color .25s, color .25s, transform .2s var(--ease), box-shadow .25s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-lg { padding: 18px 30px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-gold { background: var(--gold); color: #141414; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: #188a49; border-color: #188a49; }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.wa-ico { width: 18px; height: 18px; flex: none; }

/* =====================================================================
   Price calculator page
   ===================================================================== */
.page-head { background: var(--steel); color: #fff; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -160px; top: -200px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 166, 109, .16), transparent 65%); pointer-events: none; }
.page-head .wrap { position: relative; padding-top: 40px; padding-bottom: 44px; }
.crumbs { font-size: 12px; color: #9b968d; margin-bottom: 16px; letter-spacing: .12em; text-transform: uppercase; }
.crumbs a, .crumbs button { color: #d6d1c8; text-decoration: none; font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 0; padding: 0; cursor: pointer; }
.crumbs a:hover, .crumbs button:hover { color: #fff; }
.crumbs span { color: var(--gold); }
.page-head h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.page-head p { margin: 0; color: #bfbab1; max-width: 640px; }
.progress { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
/* steps: ✓ done, bronze = current; they work as links (js/app.js → renderProgress) */
.progress button { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 13px; color: #bfbab1; letter-spacing: .06em;
  background: none; border: 0; padding: 4px 0; cursor: pointer; transition: color .2s; }
.progress button:hover { color: #fff; }
.progress b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  font-size: 12px; font-weight: 500; color: #fff; transition: background .2s, border-color .2s, color .2s; }
.progress .cur { color: #fff; }
.progress .cur b { border-color: var(--gold); color: var(--gold); }
.progress .done b { background: var(--gold); border-color: var(--gold); color: #141414; font-weight: 700; }

.block { margin: 48px 0; }
.block-title { display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; }
.block-title h2 { margin: 0; font-size: 26px; }
.block-title .idx { font-family: var(--serif); font-size: 15px; color: var(--accent); }
/* block 02 opens only after a type is chosen (js/app.js → state.chosen) */
.pick-hint { margin: -4px 0 16px; font-size: 14.5px; color: var(--muted); }
.change-type { margin-left: auto; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--accent-2); background: none;
  border: 0; border-bottom: 1px solid rgba(154, 116, 68, .4); padding: 2px 0; cursor: pointer; white-space: nowrap; }
.change-type:hover { color: var(--ink); border-color: var(--accent); }

/* category tabs: on a computer 2 even rows (--cols = half of the categories, set in js/app.js), on a phone one row that scrolls */
.cats { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); column-gap: 6px; margin-bottom: 18px; }
.cat { font: inherit; font-weight: 500; font-size: clamp(13.5px, 1.45vw, 15px); line-height: 1.3; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 12px 4px; cursor: pointer; text-align: center; transition: color .2s, border-color .2s, box-shadow .2s; }
.cat:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.cat.on { color: var(--ink); border-bottom-color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
/* subsections of a category (railings: stairs / balcony) */
.subs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 18px; }
.subs[hidden] { display: none; }
.sub-back { font: inherit; font-size: 14px; font-weight: 500; color: var(--accent-2); background: transparent; border: 0; padding: 4px 0; cursor: pointer;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.sub-back:hover { color: var(--ink); border-bottom-color: var(--accent); }
.sub-cur { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); }
.sub-n { font-family: "Noto Sans Armenian", system-ui, sans-serif; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 6px; }
/* subsection cards: bigger pictures, a "look" link */
.types:has(.sub-card) { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 18px; }
.sub-card .type-name { font-size: 19px; }
.sub-card .type-desc { margin-bottom: 10px; }
.sub-card .type-from { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sub-go { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.sub-card:hover .sub-go { color: var(--accent); }

/* product cards */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.type-card { text-align: left; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0 0 16px; cursor: pointer; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.type-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.type-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.type-card.on::after { content: ""; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23c9a66d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.type-img { overflow: hidden; margin-bottom: 14px; }
.type-img svg { display: block; width: 100%; height: auto; }
.type-name { font-family: var(--serif); font-weight: 500; font-size: 16.5px; padding: 0 14px; line-height: 1.3; }
/* the part in brackets of a name ("1–3 հրացան", "Loft") on its own small line, so the name does not break in the middle */
.type-note { display: block; margin-top: 3px; font-family: "Noto Sans Armenian", system-ui, sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: .03em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.type-desc { font-size: 13px; color: var(--muted); margin: 6px 0 12px; padding: 0 14px; line-height: 1.5; }
.type-from { font-size: 13px; font-weight: 600; color: var(--accent-2); margin-top: auto; padding: 0 14px; letter-spacing: .02em; }

/* "Չգտա՞ք Ձեր տարբերակը" under the product cards */
.custom-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 18px;
  padding: 16px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--card); }
.cc-text { font-size: 14.5px; color: var(--muted); max-width: 720px; }
.cc-text b { font-family: var(--serif); font-weight: 500; font-size: 16.5px; color: var(--ink); }

/* configurator layout */
.config { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cfg-visual { position: sticky; top: 92px; display: grid; gap: 16px; }
/* taller than the window: js/app.js → fitSticky pins it by the bottom edge (negative top), so the price stays visible */
.preview { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); }
.preview svg { display: block; width: 100%; height: auto; border-radius: 3px; }
.preview-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 8px 4px; font-size: 14px; color: var(--muted); }
.preview-cap b { color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 15.5px; }
.badge { font-size: 11.5px; font-weight: 600; color: var(--accent-2); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

.cfg-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.field { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field-title { display: flex; justify-content: space-between; gap: 10px; font-family: var(--serif); font-weight: 500; margin-bottom: 12px; font-size: 16.5px; color: var(--ink); }
.field-title small { font-family: "Noto Sans Armenian", sans-serif; font-weight: 500; color: var(--muted); font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hint.center { text-align: center; }

.length-row { display: flex; align-items: center; gap: 16px; }
.length-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; }
.length-num { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.length-num input, .qty input { width: 84px; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); padding: 8px 10px;
  border: 1px solid var(--line-2); border-radius: 3px; text-align: center; background: #fff; }
.length-num input:focus, .qty input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(154, 116, 68, .15); }
.qty { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.qty input { width: 70px; }
.qty-btn { width: 42px; height: 42px; font: inherit; font-size: 22px; line-height: 1; border: 1px solid var(--line-2); background: #fff;
  border-radius: 3px; cursor: pointer; color: var(--ink); }
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }

/* quick sizes with their price (js/app.js → renderPresets) */
.size-presets { margin-top: 14px; }
.sp-cap { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sp-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sp { font: inherit; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 8px 11px; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px; transition: border-color .15s, background .15s; }
.sp:hover { border-color: var(--line-2); }
.sp b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.sp span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sp.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 .5px var(--accent); }
.sp.on span { color: var(--accent-2); }
.sp-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 3px;
  padding: 9px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.chip:hover { border-color: var(--line-2); background: #fdfcfa; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 .5px var(--accent); }
.chip-name { font-weight: 500; }
.chip.on .chip-name { font-weight: 600; }
.chip-extra { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 2px; padding: 1px 6px; }
.chip.on .chip-extra { background: #fff; color: var(--accent-2); }
.sw { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), inset 0 6px 8px rgba(255, 255, 255, .18); }
.chip.on .sw { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }

/* quote */
.quote { background: var(--steel); color: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  border: 1px solid rgba(201, 166, 109, .18); }
.quote::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 166, 109, .2), transparent 70%); pointer-events: none; }
.quote > * { position: relative; }
.quote-title { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.quote-total { font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1.1; margin: 8px 0 4px; transition: color .3s; }
.quote-total.bump { color: var(--gold-2); }
.quote-per { color: #a39e95; font-size: 14px; margin-bottom: 14px; min-height: 1em; }
.quote-more { border-top: 1px solid rgba(255, 255, 255, .1); margin-bottom: 14px; }
.quote-more summary { cursor: pointer; list-style: none; font-size: 14px; color: #d3cfc7; padding: 12px 0 4px; display: flex; justify-content: space-between; }
.quote-more summary::-webkit-details-marker { display: none; }
.quote-more summary::after { content: "▾"; transition: transform .2s; }
.quote-more[open] summary::after { transform: rotate(180deg); }
.quote-lines { list-style: none; padding: 0; margin: 6px 0 0; }
.quote-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); font-size: 13px; color: #c4c0b8; }
.quote-lines b { white-space: nowrap; font-weight: 600; color: #fff; }
.quote-lines b.z { color: #77736b; font-weight: 400; }
/* lead time, warranty, approval next to the price (data/site.js → quote.terms) */
.quote-terms { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }
.quote-terms li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #d3cfc7; line-height: 1.45; }
.quote-terms svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.quote-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; }
.quote-links button { font: inherit; font-size: 13px; color: #d3cfc7; background: none; border: 0; border-bottom: 1px solid rgba(201, 166, 109, .4);
  padding: 3px 0; cursor: pointer; transition: color .2s, border-color .2s; }
.quote-links button:hover { color: #fff; border-color: var(--gold); }
.quote-links .ql-main { color: var(--gold-2); font-weight: 600; }
.quote-toggle { display: none; }
.quote-dim { position: fixed; inset: 0; z-index: 39; background: rgba(12, 12, 13, .5); }
.quote-note { font-size: 13px; color: #98938a; margin-bottom: 18px; }
.quote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote .btn-primary { background: var(--gold); border-color: var(--gold); color: #141414; }
.quote .btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.quote .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.quote .btn-ghost:hover { border-color: #fff; background: #fff; color: var(--ink); }
.quote-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: #98938a; }
.quote-trust span::before { content: "— "; color: var(--gold); }

/* footer (calculator page) */
.foot { border-top: 1px solid var(--line); padding: 28px 0 100px; color: var(--muted); font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(12, 12, 13, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px; z-index: 60; animation: fade .2s ease; }
.modal-box { background: var(--card); border-radius: var(--radius); width: 100%; max-width: 470px; padding: 30px; position: relative; max-height: 92vh;
  overflow: auto; box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-box h3 { margin: 0 0 6px; font-size: 26px; }
.modal-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.modal-sum { background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; font-size: 13px; margin-bottom: 18px; color: var(--ink-2); }
.modal-sum div:last-child { font-weight: 700; margin-top: 6px; font-size: 16px; color: var(--ink); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg);
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-x:hover { color: var(--ink); }
#leadForm label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
#leadForm .opt { font-weight: 400; color: var(--muted); }
#leadForm input, #leadForm textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 3px; background: #fff; }
#leadForm input:focus, #leadForm textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(154, 116, 68, .15); }
.form-err { color: #a3271c; font-size: 14px; margin-bottom: 8px; }
/* form: ✓ when a field is right, a short message under it when not (js/app.js → checkName / checkPhone) */
#leadForm .f input { padding-right: 40px; }
#leadForm .ok input { border-color: #7fa98a; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%232f7d4a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
#leadForm .bad input { border-color: #b8463b; }
.f-err { display: block; color: #a3271c; font-size: 13px; font-weight: 500; margin-top: 5px; }
.f-err:empty { display: none; }
.f-hint { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 6px; line-height: 1.45; }
.f-day { margin-bottom: 14px; }
.f-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.f-day .chips { gap: 6px; margin-bottom: 6px; }
.f-day .chip { padding: 7px 10px; font-size: 13px; }
.f-privacy { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.5; }
.lead-done { text-align: center; padding: 6px 0 0; }
.lead-done h3 { margin: 8px 0; }
.lead-done p { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.lead-done .btn + .btn { margin-top: 10px; }
.done-ico { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--wa); }

/* short message after "Կիսվել" */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; max-width: calc(100% - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--steel); color: #fff; font-size: 14px; padding: 12px 18px; border-radius: 4px; box-shadow: var(--shadow-lg); border: 1px solid rgba(201, 166, 109, .3);
  transition: opacity .25s, transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* calculator: tablet / phone */
@media (max-width: 960px) {
  .config { grid-template-columns: 1fr; }
  .cfg-visual { position: static; }
  .quote { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; border-radius: 0; border-width: 1px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t b" "p b"; column-gap: 10px; align-items: center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); }
  .quote::after, .quote-title, .quote-more, .quote-note, .quote-trust, .quote-terms, .quote-links { display: none; }
  .quote-total { grid-area: t; font-size: 25px; margin: 0; }
  /* the left part of the bar opens the details (handle on top + ▴ after the price) */
  .quote::before { content: ""; position: absolute; top: 5px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
  .quote-total::after { content: "▴"; font-size: 13px; color: var(--gold); margin-left: 7px; vertical-align: 3px; }
  .quote-toggle { display: block; grid-area: 1 / 1 / 3 / 2; align-self: stretch; z-index: 2; background: transparent; border: 0; padding: 0; margin: -12px 0 -12px -16px; cursor: pointer; }
  .quote.open { display: block; max-height: 84vh; overflow-y: auto; border-radius: 10px 10px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .quote.open .quote-title, .quote.open .quote-more, .quote.open .quote-note, .quote.open .quote-trust, .quote.open .quote-links { display: block; }
  .quote.open .quote-terms { display: grid; }
  .quote.open .quote-links { display: flex; }
  .quote.open .quote-trust { display: flex; }
  .quote.open .quote-total { font-size: 30px; margin: 6px 0 2px; }
  .quote.open .quote-total::after { content: ""; }
  .quote.open .quote-per { margin-bottom: 14px; }
  .quote.open .quote-btns { grid-template-columns: 1fr 1fr; }
  .quote.open .quote-btns .btn { padding: 14px 12px; font-size: 12px; }
  .quote.open .quote-toggle { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; margin: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); }
  .quote.open .quote-toggle::before { content: "×"; color: #fff; font-size: 24px; line-height: 40px; }
  .custom-cta .btn { width: 100%; }
  .quote-per { grid-area: p; margin: 0; font-size: 12px; }
  .quote-btns { grid-area: b; grid-template-columns: auto auto; gap: 8px; }
  .quote-btns .btn { padding: 12px 14px; font-size: 11.5px; letter-spacing: .06em; }
  .top-phone { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 62px; gap: 10px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand [data-name] { font-size: 12px; letter-spacing: .16em; }
  .logo { width: 34px; height: 34px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .type-desc { display: none; }
  .type-name { font-size: 15px; padding: 0 10px; }
  .type-from { padding: 0 10px; }
  .types:has(.sub-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sub-card .type-name { font-size: 16px; }
  .sub-card .type-desc { display: block; padding: 0 10px; }
  .sub-go { display: none; }
  .field { padding: 16px; }
  .quote-total { font-size: 21px; }
  .quote-btns .btn { padding: 10px 10px; font-size: 11px; }
  .progress { display: none; }
  .top-back { display: none; }
  .page-head .wrap { padding-top: 22px; padding-bottom: 26px; }
  .crumbs { margin-bottom: 10px; font-size: 11px; letter-spacing: .08em; }
  .page-head h1 { font-size: 26px; }
  .page-head p { font-size: 14px; }
  .block { margin: 32px 0; }
  .sp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .sp { padding: 7px 8px; }
  .sp span { font-size: 11.5px; }
}
@media (max-width: 960px) {
  .config { grid-template-columns: minmax(0, 1fr); }
  .cfg-visual, .cfg-panel { min-width: 0; }
  .preview-cap .badge { display: none; }
  .cats { display: flex; column-gap: 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
  /* soft edge only on the side where more tabs are hidden (classes set in js/app.js) */
  .cats.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .cats.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px); mask-image: linear-gradient(90deg, transparent, #000 24px); }
  .cats.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 32px), transparent);
                                mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 32px), transparent); }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: none; padding: 12px 14px; white-space: nowrap; }
}

/* realistic pictures */
img.ph { display: block; width: 100%; aspect-ratio: 640 / 420; object-fit: cover; background: #e9e4db; }
.type-img img.ph { border-radius: 0; }
.preview-box { position: relative; border-radius: 3px; overflow: hidden; }
.preview-box img.ph { border-radius: 3px; }
.ph-note { position: absolute; right: 10px; bottom: 10px; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(18, 19, 20, .55);
  padding: 3px 9px; border-radius: 2px; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(4px); }
.preview { position: relative; }
.view-tabs { position: absolute; z-index: 2; top: 20px; left: 20px; display: inline-flex; gap: 2px; padding: 3px; border-radius: 3px;
  background: rgba(251, 250, 247, .92); box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); }
.view-tabs button { font: inherit; font-size: 12.5px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 2px; cursor: pointer; }
.view-tabs button.on { background: var(--steel); color: #fff; }
.preview-box > svg, .type-img > svg { display: block; width: 100%; height: auto; }

/* =====================================================================
   Printable quote ("PDF առաջարկ" → print → Save as PDF), built in js/app.js → printQuote
   ===================================================================== */
.print-doc { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  html, body { background: #fff !important; }
  body > *:not(.print-doc) { display: none !important; }
  .print-doc { display: block; color: #141414; font-size: 11.5pt; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pd-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1.5px solid #9a7444; }
  .pd-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 11pt; }
  .pd-logo { width: 34px; height: 34px; color: #9a7444; display: block; }
  .pd-logo svg { width: 100%; height: 100%; display: block; }
  .pd-contact { text-align: right; font-size: 9.5pt; color: #555; }
  .pd-title { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 2px; }
  .pd-title h1 { margin: 0; font-size: 20pt; }
  .pd-title span { font-size: 10pt; color: #555; }
  .print-doc h2 { margin: 0 0 10px; font-size: 13.5pt; color: #7b5b33; }
  .pd-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .pd-pics.one { grid-template-columns: 1fr; }
  .pd-pics.one .pd-pic svg { max-height: 95mm; }
  .pd-pic { border: 1px solid #ddd; padding: 4px; break-inside: avoid; }
  .pd-pic svg { display: block; width: 100%; height: auto; max-height: 75mm; }
  .pd-pic span { display: block; font-size: 8.5pt; color: #777; text-align: center; margin-top: 3px; }
  .pd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; break-inside: avoid; }
  .print-doc table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .print-doc th, .print-doc td { text-align: left; padding: 4px 0; border-bottom: 1px solid #e5e0d6; vertical-align: top; }
  .print-doc th { font-weight: 500; color: #666; width: 42%; padding-right: 8px; }
  .pd-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
  .pd-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding: 8px 10px; background: #f4f1eb; border-left: 3px solid #9a7444; }
  .pd-total b { font-size: 17pt; font-family: var(--serif); font-weight: 500; }
  .pd-terms { margin: 14px 0 6px; padding-left: 18px; font-size: 10pt; }
  .pd-note { font-size: 9.5pt; color: #555; margin: 6px 0; }
  .pd-link { font-size: 8.5pt; color: #777; word-break: break-all; }
}
