/* ===== BASE / LAYOUT ===== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--container-narrow); }

section { position: relative; }
.section-pad { padding-block: clamp(56px, 9vw, 128px); }
.section-pad-sm { padding-block: clamp(40px, 6vw, 84px); }

/* ---- Section heads ---- */
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(28px, 4vw, 52px); }
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08; letter-spacing: -0.01em; font-weight: 600;
}
.section-sub { color: var(--muted); font-size: clamp(14px, 1.2vw, 16px); max-width: 560px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: 14px var(--gutter);
}
.site-header__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface-glass);
  backdrop-filter: blur(var(--blur-nav)); -webkit-backdrop-filter: blur(var(--blur-nav));
  border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-soft);
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.brand__loc { font-size: 10px; letter-spacing: 0.10em; color: var(--muted-2); text-transform: uppercase; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 14px; color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon-pair { display: flex; gap: 8px; }

.hdr-menu-toggle { display: none; }

/* ---- Buttons / links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { transform: translateY(-1px); }
.btn--ghost { background: var(--surface-glass-light); border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--border-strong); }
.btn--sm { padding: 8px 14px; font-size: 13px; }

.text-link {
  font-size: 14px; color: var(--text); display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border-strong); padding-bottom: 2px;
  transition: gap var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.text-link:hover { gap: 10px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border-soft); padding-block: 48px 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a, .footer-col p { color: var(--muted); font-size: 14px; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--muted-2); flex-wrap: wrap;
}

/* ---- Cookie bar ---- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 640px; margin-inline: auto;
  background: var(--surface-glass-strong); backdrop-filter: blur(var(--blur-panel));
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  box-shadow: var(--shadow-panel);
  transform: translateY(140%); transition: transform var(--dur-slow) var(--ease);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---- Bento grid (portfolio) ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento .card { grid-column: span 3; }
.bento .card--wide { grid-column: span 6; }
.bento .card--lg { grid-column: span 4; grid-row: span 2; }
.bento .card--sm { grid-column: span 2; }
.bento .card--tall { grid-column: span 2; grid-row: span 2; }

/* ---- Passport / grid data table ---- */
.passport {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden;
}
.passport__cell { background: var(--surface); padding: 20px 22px; }
.passport__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 8px; }
.passport__value { font-family: var(--font-display); font-size: 20px; font-weight: 600; }

/* ---- Estimate table ---- */
.estimate { border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
.estimate__row { display: flex; justify-content: space-between; padding: 14px 20px; font-size: 14px; border-bottom: 1px solid var(--border-soft); color: var(--muted); }
.estimate__row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.estimate__row--total { background: var(--surface); border-bottom: none; padding-top: 18px; padding-bottom: 18px; }
.estimate__row--total span { color: var(--text); font-weight: 600; font-size: 16px; }

/* ---- Steps (installation) ---- */
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 88px 1fr 1.1fr; gap: 24px; align-items: center; padding: 20px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); }
.step__num { font-family: var(--font-display); font-size: 40px; color: var(--muted-2); }
.step__title { font-family: var(--font-display); font-size: 19px; margin-bottom: 6px; }
.step__text { color: var(--muted); font-size: 14px; }
.step__img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }

/* ---- Engineering grid ---- */
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eng-item { border-radius: var(--radius-md); overflow: hidden; position: relative; }
.eng-item img { aspect-ratio: 1/1; object-fit: cover; width: 100%; height: 100%; }
.eng-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  font-size: 13px; color: var(--text-soft);
}

/* ---- Comparison table ---- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border-soft); }
.compare th { color: var(--muted-2); font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; background: var(--surface); }
.compare td { color: var(--muted); }
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--text); font-weight: 500; }

/* ---- Guide grid ---- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---- Systems grid ---- */
.systems-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---- Contacts ---- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
