:root {
  --primary: #19988B;
  --primary-dark: #127369;
  --primary-soft: #e6f4f2;
  --ink: #111111;
  --secondary: #54595F;
  --text: #7A7A7A;
  --line: #e3e6e8;
  --bg: #f6f7f7;
  --card: #ffffff;
  --danger: #c62828;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: var(--secondary);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--primary); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 44px; display: block; }
.header-right { display: flex; align-items: center; gap: 16px; }
.phone { color: var(--ink); text-decoration: none; font-weight: 500; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--secondary); }
.lang button.active { background: var(--primary); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(rgba(10, 40, 37, .62), rgba(10, 40, 37, .62)),
              url('https://looknfeel.mu/wp-content/uploads/2024/08/Bioclimatic_10.jpg') center/cover;
  color: #fff;
  padding: 64px 0 72px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; margin: 0 0 8px; color: #bfe9e4; }
.hero h1 { font-family: 'Roboto Slab', serif; font-weight: 500; font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; color: #fff; }
.hero .lead { max-width: 640px; margin: 0; font-size: 17px; color: #e8f1f0; }

/* Layout */
.layout { max-width: 860px; margin-top: -36px; padding-bottom: 64px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.card h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 20px; font-weight: 600; color: var(--ink); }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 15px; flex: none; }

/* Items */
.item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.item-title { font-weight: 600; color: var(--ink); }
.remove { border: 0; background: none; color: var(--danger); cursor: pointer; font: inherit; font-size: 14px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.product {
  position: relative; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: #fff; text-align: left; padding: 0; font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.product:hover { border-color: #b9dcd8; }
.product.selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.product img { width: 100%; height: 88px; object-fit: cover; display: block; }
.product span { display: block; padding: 8px 10px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.dims, .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.dims:empty, .opts:empty { display: none; }
.field .help { font-weight: 400; font-size: 13px; color: var(--text); }
.area-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--text); }
.item-estimate { margin: 14px 0 0; font-size: 15px; color: var(--ink); }
.item-estimate:empty { display: none; }
.item-estimate strong { color: var(--primary-dark); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--ink); }
.field-label { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  font: inherit; font-weight: 400; font-size: 15px; color: var(--ink);
  border: 1px solid #cfd4d7; border-radius: 8px; padding: 10px 12px; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.invalid { border-color: var(--danger) !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 40px; }
.input-unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--text); font-size: 14px; }
.error { color: var(--danger); font-size: 13px; font-weight: 400; margin: 0; min-height: 0; }
.error:empty { display: none; }

/* Regions */
.regions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.region {
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px 8px;
  cursor: pointer; font: inherit; text-align: center; color: var(--ink);
}
.region b { display: block; font-size: 22px; color: var(--primary); line-height: 1.1; }
.region small { font-size: 13px; color: var(--secondary); }
.region.selected { border-color: var(--primary); background: var(--primary-soft); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 6px; }
.consent input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn-primary {
  display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 32px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { border: 1px dashed var(--primary); color: var(--primary); background: none; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 500; cursor: pointer; width: 100%; }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Estimate */
.calc-row { margin-top: 20px; text-align: center; }
.est-block { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.est-block:first-child { padding-top: 0; }
.est-info h3 { margin: 0; color: var(--ink); font-size: 17px; }
.est-info p { margin: 2px 0 0; font-size: 14px; }
.est-info .choices { color: var(--text); }
.est-amount { font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.est-amount .on-request { font-size: 14px; font-weight: 500; color: var(--primary-dark); }
#result-total.loading { opacity: .4; transition: opacity .2s; }
.result-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  border-top: 2px solid var(--primary); padding-top: 14px; margin-top: 4px; color: var(--ink); font-weight: 600; font-size: 17px; }
.result-total strong { font-size: 26px; color: var(--primary-dark); }
.cta { margin-top: 22px; text-align: center; background: var(--bg); border-radius: var(--radius); padding: 20px; }
.cta[hidden] { display: none; }
.cta p { margin: 0 0 14px; color: var(--ink); }
.disclaimer { font-size: 13px; color: var(--text); background: #fff8e6; border-left: 3px solid #f0b429; padding: 10px 12px; border-radius: 4px; margin: 16px 0 0; }
.card[hidden] { display: none; }

/* Success */
.success { position: fixed; inset: 0; background: rgba(10, 30, 28, .55); display: grid; place-items: center; padding: 16px; z-index: 20; }
.success[hidden] { display: none; }
.success-card { background: #fff; border-radius: 14px; padding: 32px 28px; max-width: 460px; text-align: center; }
.success-card h2 { color: var(--ink); margin: 8px 0; }
.check { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto; }
.success-total { font-size: 20px; color: var(--primary-dark); font-weight: 600; margin: 12px 0; }
.success-card .btn-primary { margin-top: 20px; }

/* Footer */
.site-footer { background: #111; color: #bbb; padding: 36px 0; text-align: center; font-size: 14px; }
.site-footer a { color: #bbb; }
.footer-logo { height: 40px; }
.muted { color: #888; }

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .phone { display: none; }
  .hero { padding: 40px 0 56px; }
  .card { padding: 18px; }
  .btn-primary { width: 100%; text-align: center; }
}
