/* Grand-App AI — Israel (Hebrew RTL; English, Portuguese, Spanish LTR) — use logical properties (inline-start/end) */
:root {
  --teal: #0193ac;
  --teal-dark: #017387;
  --teal-light: #e6f5f8;
  --navy: #002737;
  --orange: #f5a623;
  --text: #212121;
  --muted: #4e4b66;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --border: #dde5e8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 39, 55, .08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Heebo = Hebrew + Latin; Arabic and Cyrillic pages also load Noto Sans Arabic / Noto Sans (per-character fallback) */
  font-family: "Heebo", "Noto Sans Arabic", "Noto Sans", "Assistant", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; top: 0; inset-inline-start: 0; transform: translateY(-120%); z-index: 100; background: #fff; padding: 8px 14px; }
.skip-link:focus { transform: none; top: 12px; inset-inline-start: 12px; }
html, body { overflow-x: clip; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 1.4rem; line-height: 1; padding: 6px 12px; cursor: pointer; color: var(--navy);
}
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .submenu-btn {
  display: block; padding: 10px 10px; color: var(--navy); text-decoration: none; font-weight: 500; white-space: nowrap;
  font-size: 1rem; border-radius: 8px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .submenu-btn:hover, .main-nav a[aria-current="page"] { color: var(--teal); background: var(--teal-light); }
.submenu-btn::after { content: "▾"; margin-inline-start: 6px; font-size: .8em; }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0;
  min-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  display: none;
}
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu, .has-submenu.open > .submenu { display: block; }
.nav-cta a { background: var(--teal); color: #fff !important; padding-inline: 18px; }
.nav-cta a:hover { background: var(--teal-dark) !important; }
/* country & language menu: one button (current flag + language) after the main menu on desktop, beside ☰ on phones;
   it opens a panel grouped by country – each flag once, with that country's languages next to it (site.js) */
.brand { margin-inline-end: auto; }
.main-nav { order: 1; }
.lang-switch { order: 2; position: relative; }
.nav-toggle { order: 3; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--navy); font: inherit; font-size: .9rem; font-weight: 500; line-height: 1; cursor: pointer;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); }
.lang-btn img, .lang-menu img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.lang-caret { font-size: .75em; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 300px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px;
  max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain;   /* the EU has 24 languages */
}
.lang-menu[hidden] { display: none; }
.lang-menu-title { margin: 2px 6px 8px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu li { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--border); }
.lang-menu li:first-child { border-top: 0; }
.lang-country { font-weight: 700; color: var(--navy); font-size: .95rem; }
.lang-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.lang-links a { padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--navy); text-decoration: none; font-size: .88rem; }
.lang-links a:hover { background: var(--teal-light); color: var(--teal); }
.lang-links a[aria-current] { background: var(--teal); color: #fff; }
/* country suggestion bar (site.js) – stays until the visitor answers */
.site-suggest { background: var(--navy); color: #fff; font-size: .95rem; }
.site-suggest-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 10px; }
.site-suggest-site { display: inline-flex; align-items: center; gap: 8px; }
.site-suggest-go.btn { padding: 6px 16px; font-size: .9rem; }
.site-suggest-stay { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.site-suggest-stay:hover { background: rgba(255,255,255,.12); }
@media (max-width: 520px) {
  .site-suggest { font-size: .85rem; }
  .site-suggest-inner { gap: 6px 10px; padding-block: 8px; }
  .site-suggest-text { flex-basis: 100%; }
  .site-suggest-go.btn, .site-suggest-stay { padding: 4px 12px; font-size: .82rem; }
}
/* "+N" button and the popup with all the languages of a country (the EU) – it covers the menu */
.lang-more { padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--teal); background: #fff; color: var(--teal); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.lang-more:hover { background: var(--teal-light); }
.lang-popup { position: absolute; inset: 0; z-index: 2; background: #fff; border-radius: 12px; padding: 12px 14px; overflow-y: auto; }
.lang-popup[hidden] { display: none; }
.lang-popup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lang-popup-close { margin-inline-start: auto; border: 0; background: var(--bg-soft); color: var(--navy); width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.lang-popup-close:hover { background: var(--teal-light); color: var(--teal); }
.lang-popup .lang-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.lang-popup .lang-links a { text-align: center; }
@media (max-width: 520px) {
  .lang-btn { padding: 7px 8px; font-size: .85rem; }
  .lang-menu { position: fixed; top: 76px; inset-inline: 12px; min-width: 0; }
}

/* analytics consent banner (assets/js/analytics.js) */
.consent-banner {
  position: fixed; z-index: 200; inset-inline: 16px; bottom: 16px; max-width: 760px; margin-inline: auto;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 39, 55, .25);
  padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .95rem; line-height: 1.5;
}
.consent-banner p { margin: 0; flex: 1 1 320px; }
.consent-btns { display: flex; gap: 8px; }
.consent-btns .btn { padding: 8px 18px; font-size: .95rem; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); max-height: calc(100vh - 76px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .submenu { position: static; display: block; box-shadow: none; border: 0; padding: 0; padding-inline-start: 16px; min-width: 0; }
  .submenu-btn::after { content: ""; }
  .submenu-btn { color: var(--muted) !important; background: none !important; cursor: default; font-size: .9rem; padding-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background-color: var(--navy);
  background-size: cover; background-position: center;
  padding: clamp(80px, 12vw, 150px) 0;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0, 39, 55, .88) 0%, rgba(0, 39, 55, .55) 60%, rgba(0, 39, 55, .25) 100%); }
[dir="ltr"] .hero::before { background: linear-gradient(90deg, rgba(0, 39, 55, .88) 0%, rgba(0, 39, 55, .55) 60%, rgba(0, 39, 55, .25) 100%); }
.hero .container { position: relative; }
.hero h1, .hero h2 { color: #fff; max-width: 820px; }
.hero .eyebrow { color: var(--orange); font-weight: 700; letter-spacing: .02em; margin-bottom: .5em; }
.hero .lead { font-size: 1.2rem; max-width: 720px; color: #fff; opacity: .95; }
.hero.small { padding: clamp(60px, 8vw, 100px) 0; }
.breadcrumbs { font-size: .9rem; opacity: .85; margin-bottom: 1em; }
.breadcrumbs a { color: #fff; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--teal); color: #fff; border: 2px solid var(--teal); font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.outline { background: transparent; color: #fff; border-color: #fff; }
.btn.outline:hover { background: #fff; color: var(--navy); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
/* white cards inside a dark section keep the normal dark text */
.section.navy .card { color: var(--text); }
.section.navy .card h3 { color: var(--teal); }
.section-head { max-width: 820px; margin-bottom: 2.5em; }
.section-head.center { text-align: center; margin-inline: auto; }
.subtitle { color: var(--teal); font-weight: 700; font-size: 1.15rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.img-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.img-stack img { aspect-ratio: 3 / 4; height: 100%; }
.img-stack img:first-child { margin-top: 40px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { color: var(--teal); }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card img.card-img { border-radius: 10px; margin: -8px -8px 18px; width: calc(100% + 16px); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; }
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: 12px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-inline-start: 34px; margin-bottom: 10px; }
.checklist li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal); font-weight: 800; font-size: .85rem; display: grid; place-items: center; line-height: 1;
}
.section.navy .checklist li::before { background: rgba(255, 255, 255, .15); color: #fff; }

.callout { background: var(--teal-light); border-inline-start: 5px solid var(--teal); padding: 22px 26px; border-radius: 10px; font-weight: 500; color: var(--navy); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px; }
.member { text-align: center; }
.member img { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 5px solid var(--teal-light); background: var(--bg-soft); }
.member h3 { margin-bottom: .2em; font-size: 1.15rem; }
.member p { color: var(--muted); font-size: .95rem; margin: 0; }

/* News */
.news-card { padding: 0; overflow: hidden; }
.news-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.15rem; }
.news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h3 a:hover { color: var(--teal); }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .6em; }

/* Article */
.article { max-width: 820px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); margin-bottom: 2em; box-shadow: var(--shadow); }
.article h2 { margin-top: 1.4em; font-size: 1.6rem; }
.article h3 { margin-top: 1.2em; }
.article blockquote { margin: 1.5em 0; padding: 18px 24px; background: var(--bg-soft); border-inline-start: 5px solid var(--orange); border-radius: 8px; }
.article .note { font-size: .9rem; color: var(--muted); }

/* Comparison table (choosing-fall-detection) – scrolls inside its box on phones */
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--border); border-radius: 12px; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; background: #fff; }
.compare-table th, .compare-table td { padding: 10px 12px; border-top: 1px solid var(--border); text-align: start; vertical-align: top; }
.compare-table thead th { border-top: 0; background: var(--bg-soft); color: var(--navy); }
.compare-table tbody th { font-weight: 700; color: var(--navy); width: 22%; }
.compare-table .ours { background: #eaf7f8; }
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 1.2em 0; }
.type-cards .card h3 { margin-top: 0; }

/* Legal */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal ol { padding-inline-start: 1.4em; }

/* Steps / numbered */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 16px 20px; padding-inline-start: 64px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; }

/* ---------- Contact ---------- */
.contact-band { background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%); color: #fff; padding: clamp(56px, 8vw, 90px) 0; }
.contact-band h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 1.5em 0 0; }
.contact-details li { margin-bottom: 12px; }
.contact-details a { color: #fff; font-weight: 700; }
.contact-form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { font-weight: 500; font-size: .95rem; display: grid; gap: 4px; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; font-size: 1rem; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; width: 100%; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfdbe0; padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 56px; width: auto; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px 14px; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Private homes page ---------- */
.btn.ghost { background: #fff; color: var(--teal); }
.btn.ghost:hover { background: var(--teal-light); color: var(--teal-dark); }
.nav-home a { color: var(--teal) !important; font-weight: 700; }

.floorplan { margin: 0 auto 48px; max-width: 900px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.floorplan > svg { width: 100%; height: auto; display: block; }
.fp-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; margin-top: 14px; font-size: .95rem; color: var(--muted); }
.fp-legend span { display: inline-flex; align-items: center; gap: 8px; }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.product { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.product-img { height: 150px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.product-img img { max-height: 150px; width: auto; object-fit: contain; }
.product h3 { color: var(--teal); margin-bottom: .3em; }
.product p { font-size: .95rem; color: var(--muted); }
.product-qty { font-weight: 700; color: var(--navy) !important; margin: 0; }

.price-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
.plan { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--teal); }
.plan-tag { display: inline-block; background: var(--teal-light); color: var(--teal); font-weight: 700; border-radius: 999px; padding: 2px 14px; margin-bottom: .6em; }
.plan h3 { font-size: 1.5rem; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 0; line-height: 1.3; }
.plan-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-sub { color: var(--muted); font-size: .95rem; margin: .4em 0 1em; }
.plan .checklist { margin-top: 1em; }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.price-table td { padding: 8px 0; border-top: 1px solid var(--border); }
.price-table td.num { text-align: end; font-weight: 700; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.price-notes { max-width: 980px; margin: 28px auto 0; }
.price-notes p { margin-bottom: .5em; }
@media (max-width: 760px) { .price-plans { grid-template-columns: 1fr; } }

.club-banner { display: flex; align-items: center; gap: 24px; background: #fff7e6; border: 2px solid var(--orange); border-radius: var(--radius); padding: 18px 24px; margin: 0 auto 32px; }
.club-banner p { margin: 0; color: var(--navy); }
.club-logos { display: flex; gap: 12px; flex-shrink: 0; }
.club-logo { display: grid; place-items: center; min-width: 120px; height: 64px; padding: 6px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-weight: 800; color: var(--navy); }
.club-logo { text-decoration: none; }
.club-logo:hover { border-color: var(--teal); }
.club-logo img { max-height: 52px; max-width: 140px; width: auto; height: auto; }
.club-htz { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.club-htz img { width: 40px; height: 37px; }
.cfg-send label[hidden] { display: none; }
.cfg-send label small { color: var(--muted); font-weight: 400; }
.cfg-send select { font: inherit; font-size: 1rem; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
@media (max-width: 640px) { .club-banner { flex-direction: column; text-align: center; } }
.cfg-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.cfg-model { border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.cfg-model legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.cfg-model label { cursor: pointer; }
.cfg-data-hint { color: var(--muted); font-size: .9rem; align-self: center; }
.cfg-head, .cfg-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr .8fr .9fr 36px; gap: 10px; align-items: center; }
.cfg-head { font-size: .85rem; color: var(--muted); font-weight: 500; padding: 0 0 6px; }
.cfg-row { padding: 12px 0; border-top: 1px solid var(--border); }
.cfg-dim { display: block; }
.cfg-dim-label { display: none; font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.cfg-head span:nth-child(4), .cfg-head span:nth-child(5) { text-align: center; }
.cfg-buttons { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cfg-btn-total { font-weight: 800; color: var(--teal); font-size: 1.1rem; min-width: 1.2em; text-align: center; }
.cfg-btn-edit { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; font-size: 1.2rem; font-weight: 700; line-height: 1; cursor: pointer; }
.cfg-btn-edit:hover { background: var(--teal-dark); }
.btn-dialog { border: 0; border-radius: var(--radius); padding: 24px 28px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 39, 55, .3); }
.btn-dialog::backdrop { background: rgba(0, 39, 55, .45); }
.btn-dialog h3 { margin-bottom: 1em; }
.btn-pick { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.btn-pick img { width: 72px; height: 72px; object-fit: contain; }
.btn-pick-name b { display: block; color: var(--navy); }
.btn-pick-name small { color: var(--muted); }
.btn-pick output { width: 38px; height: 30px; display: grid; place-items: center; font-weight: 800; border-block: 1px solid var(--border); }
.stepper button:disabled { opacity: .35; cursor: default; }
.btn-dialog-total { border-top: 2px solid var(--navy); padding-top: 12px; font-weight: 700; color: var(--navy); }
.btn-dialog .btn { width: 100%; }
.cfg-row select, .cfg-row input[type=number] { font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; width: 100%; background: #fff; }
.cfg-radars { font-weight: 800; color: var(--teal); text-align: center; font-size: 1.1rem; }
.cfg-hint { font-size: .95rem; color: var(--muted); margin: 1.2em 0 .6em; }
.stepper { display: inline-flex; align-items: center; direction: ltr; }
.stepper button { width: 30px; height: 30px; border: 1px solid var(--border); background: var(--teal-light); color: var(--teal); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }
.stepper input { width: 38px; height: 30px; padding: 0; text-align: center; font: inherit; border: 1px solid var(--border); border-inline: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfg-remove { background: none; border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; color: var(--muted); }
.cfg-remove:hover { color: #e53935; border-color: #e53935; }
.cfg-warn { background: #fff7e6; border-inline-start: 4px solid var(--orange); padding: 10px 14px; border-radius: 8px; margin-top: 16px; }
.cfg-result { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; }
.cfg-result h3 { font-size: 1.15rem; margin-top: .4em; }
.cfg-eq { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.cfg-eq b { color: var(--teal); font-size: 1.2rem; }
.cfg-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--navy); padding-top: 10px; margin-top: 10px; font-weight: 700; color: var(--navy); }
.cfg-total b { font-size: 1.5rem; direction: ltr; unicode-bidi: isolate; }
.cfg-note { font-size: .85rem; color: var(--muted); margin: .6em 0 0; }
.cfg-send { display: grid; gap: 10px; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.cfg-send label { display: grid; gap: 4px; font-size: .95rem; }
.cfg-send input, .cfg-send textarea { font: inherit; font-size: 1rem; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 960px) {
  .cfg-grid { grid-template-columns: 1fr; }
  .cfg-result { position: static; }
}
@media (max-width: 640px) {
  .cfg-head { display: none; }
  .cfg-row { grid-template-columns: 1fr 1fr 1fr 36px; }
  .cfg-row select { grid-row: 1; grid-column: 1 / 4; }
  .cfg-row .cfg-remove { grid-row: 1; grid-column: 4; }
  .cfg-row .cfg-dim-l { grid-row: 2; grid-column: 1; }
  .cfg-row .cfg-dim-w { grid-row: 2; grid-column: 2; }
  .cfg-row .cfg-radars { grid-row: 2; grid-column: 3 / 5; align-self: end; padding-bottom: 8px; }
  .cfg-row .cfg-buttons { grid-row: 3; grid-column: 1 / -1; justify-content: flex-start; }
  .cfg-buttons::before { content: "Buttons: "; font-weight: 500; color: var(--muted); font-size: .9rem; }
  .cfg-dim-label { display: block; }
  .cfg-radars::before { content: "Radars: "; font-weight: 500; color: var(--muted); font-size: .9rem; }
  /* mobile column labels per language (<html lang>) */
  :lang(he) .cfg-buttons::before { content: "לחצנים: "; }
  :lang(he) .cfg-radars::before { content: "רדרים: "; }
  :lang(ar) .cfg-buttons::before { content: "أزرار: "; }
  :lang(ar) .cfg-radars::before { content: "رادارات: "; }
  :lang(ru) .cfg-buttons::before { content: "Кнопки: "; }
  :lang(ru) .cfg-radars::before { content: "Радары: "; }
  :lang(es) .cfg-buttons::before { content: "Botones: "; }
  :lang(es) .cfg-radars::before { content: "Radares: "; }
  :lang(pt) .cfg-buttons::before { content: "Botões: "; }
  :lang(pt) .cfg-radars::before { content: "Radares: "; }
}
.call-big a { font-size: 2rem; font-weight: 800; text-decoration: none; color: var(--navy); }
.note-small { font-size: .85rem; color: var(--muted); }

/* Sitemap page */
.sitemap-cols { columns: 2 260px; }
.sitemap-cols ul { margin-top: 0; }

/* High-Tech Zone member pages (site/_m/htz/, built by build.mjs): banner at the top of the content */
.member-bar{display:flex;align-items:center;gap:12px;max-width:1100px;margin:12px auto 0;padding:10px 16px;background:#e8f0ff;border:1px solid #2f5fd0;border-radius:10px;color:#173a8a;font-weight:600}
.member-bar img{flex:none;border-radius:4px}
@media (max-width:640px){.member-bar{margin:8px 16px 0;font-size:.95em}}

/* Extra repeaters in the quote calculator (14 Nov 2026) */
.cfg-extra { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 1em; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.cfg-extra-name b { display: block; color: var(--navy); }
.cfg-extra-name small { color: var(--muted); }
.cfg-extra output { width: 38px; height: 30px; display: grid; place-items: center; font-weight: 800; border-block: 1px solid var(--border); }
