/* ============================================================
   K4 Real Estate — site styling (Direction C · Cinematic Slate)
   Consumes K4 design tokens; dark, editorial, monochrome luxury.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  /* --- K4 design tokens (self-contained, no external dependency) --- */
  --k4-font-heading: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --k4-font-body:    'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --k4-font-mono:    'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --k4-gold:         #C9A24B;
  --k4-slate:        #0B1220;
  --k4-deep-navy:    #0B1220;
  --k4-ease-out:     cubic-bezier(.16, 1, .3, 1);
  --k4-shadow-4:     0 24px 60px rgba(0,0,0,.45);

  --re-bg:        #000000;   /* base black */
  --re-bg-2:      #0A0A0A;   /* raised surface */
  --re-bg-3:      #141414;   /* card / input */
  --re-line:      rgba(255,255,255,.10);
  --re-line-2:    rgba(255,255,255,.16);
  --re-fg:        #FFFFFF;
  --re-fg-2:      rgba(255,255,255,.68);
  --re-fg-3:      rgba(255,255,255,.46);
  --re-container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--re-bg); color: var(--re-fg-2);
  font-family: var(--k4-font-body); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--re-fg); text-decoration: none; transition: opacity .16s var(--k4-ease-out); }
a:hover { opacity: .68; }
h1,h2,h3,h4,h5 { color: var(--re-fg); margin: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--re-container); margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 940px; margin: 0 auto; padding: 0 40px; }

/* ---------- type helpers ---------- */
.eyebrow { font-family: var(--k4-font-heading); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--re-fg-3); margin: 0; }
.display { font-weight: 300; letter-spacing: -.02em; line-height: .98; color: #fff; }
.display em { font-style: italic; font-weight: 400; }
.meta { font-family: var(--k4-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--re-fg-3); }
.lead { font-size: 18px; line-height: 1.65; color: var(--re-fg-2); }

/* ---------- placeholders ---------- */
.ph { position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 15px),
    linear-gradient(180deg, #232B3A, #161D2B);
}
.ph::after {
  content: attr(data-label); position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--k4-font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.5); background: rgba(0,0,0,.4); padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.12); white-space: nowrap; border-radius: 2px;
}
.ph.plain::after { display: none; }
img.ph { object-fit: cover; display: block; }
img.ph::after { display: none; }

/* ---------- image motion: hover zoom (cards) + scroll parallax (bands) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pcard .pcard-img, .bcard, .post, .tcard { overflow: hidden; }
  .pcard .pcard-img img.ph, .bcard img.ph, .post img.ph, .tcard img.ph {
    transition: transform .7s cubic-bezier(.22,1,.36,1); will-change: transform;
  }
  .pcard:hover .pcard-img img.ph, .bcard:hover img.ph,
  .post:hover img.ph, .tcard:hover img.ph { transform: scale(1.06); }

  .px-wrap { overflow: hidden; }
  img.px { will-change: transform; }
}

/* ---------- buttons ---------- */
.btn { font-family: var(--k4-font-heading); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 14px 26px; border-radius: 4px; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; border: 1px solid transparent; transition: all .18s var(--k4-ease-out); }
.btn-solid { background: #fff; color: var(--k4-slate); }
.btn-solid:hover { background: rgba(255,255,255,.86); opacity: 1; }
.btn-ghost { border-color: var(--re-line-2); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); opacity: 1; }
.btn-dark { background: var(--k4-slate); color: #fff; }
.btn-dark:hover { background: var(--k4-deep-navy); opacity: 1; }
.arrow { font-family: var(--k4-font-heading); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- badges ---------- */
.badge { display: inline-block; font-family: var(--k4-font-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--re-line-2); border-radius: 2px; color: var(--re-fg-2); }
.badge.sold { border-color: rgba(255,255,255,.12); color: var(--re-fg-3); }
.badge.filled { background: #fff; color: var(--k4-slate); border-color: #fff; }

/* ---------- nav ---------- */
.nav-outer { position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px;
  background: rgba(0,0,0,.78); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--re-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--re-container); margin: 0 auto; padding: 0 40px; }
.nav-logo { height: 30px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-family: var(--k4-font-heading); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.nav-links a:hover { color: #fff; opacity: 1; }
.nav-links a.active { color: #fff; }
.nav-burger { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.mobile-menu { display: none; }

/* ---------- sections ---------- */
.sec { padding: 112px 0; }
.sec-sm { padding: 84px 0; }
.bg-2 { background: var(--re-bg-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 52px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 300; letter-spacing: -.02em; }

/* ---------- listing card (grid) ---------- */
.plist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pcard { display: block; color: inherit; }
.pcard .pcard-img { position: relative; }
.pcard .ph { width: 100%; aspect-ratio: 4/3; }
.pcard .pcard-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.pcard .pcard-tags .badge { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.pcard-body { padding: 20px 2px 0; }
.pcard .loc { display: flex; justify-content: space-between; align-items: baseline; }
.pcard h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.32; margin: 12px 0 16px; color: #fff; }
.pcard .price { font-size: 19px; font-weight: 300; color: #fff; }
.pcard .specs { display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--re-line); }
.pcard .spec { font-family: var(--k4-font-mono); font-size: 11px; letter-spacing: .06em; color: var(--re-fg-2); }
.pcard .spec b { color: #fff; font-weight: 700; }
.pcard:hover { opacity: 1; }
.pcard:hover h3 { opacity: .78; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; background: #000; color: var(--re-fg-2); padding: 80px 0 40px; border-top: 1px solid var(--re-line); }
.foot a { position: relative; z-index: 1; }
.foot a { color: var(--re-fg-2); font-size: 14px; }
.foot a:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--re-line); }
.foot h4 { color: #fff; font-family: var(--k4-font-heading); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 20px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot .logo { height: 34px; margin-bottom: 22px; }
.foot .blurb { font-size: 14px; max-width: 42ch; line-height: 1.75; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.foot-bottom .cr, .foot-bottom .legal { font-family: var(--k4-font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--re-fg-3); }
.foot-bottom .legal { display: flex; gap: 24px; }

/* ---------- list-with-us modal ---------- */
.lmodal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; }
.lmodal.open { display: flex; }
.lmodal-veil { position: absolute; inset: 0; background: rgba(5,8,15,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s var(--k4-ease-out); }
.lmodal.open .lmodal-veil { opacity: 1; }
.lmodal-card { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--re-bg-2); border: 1px solid var(--re-line-2); border-radius: 12px; padding: 38px 40px 34px; box-shadow: var(--k4-shadow-4); transform: translateY(16px) scale(.98); opacity: 0; transition: opacity .22s var(--k4-ease-out), transform .22s var(--k4-ease-out); }
.lmodal.open .lmodal-card { transform: none; opacity: 1; }
.lmodal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--re-line-2); background: transparent; color: var(--re-fg-2); cursor: pointer; display: grid; place-items: center; }
.lmodal-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.lmodal-close svg { width: 18px; height: 18px; }
.lmodal h2 { font-size: clamp(24px,3vw,32px); font-weight: 300; letter-spacing: -.02em; }
.lmodal .sub { color: var(--re-fg-2); font-size: 15px; margin: 10px 0 26px; }
.lform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lform .full { grid-column: 1 / -1; }
.lform textarea.input { resize: vertical; min-height: 84px; }
.lform button[type=submit] { width: 100%; justify-content: center; margin-top: 6px; }
.lform .note { font-family: var(--k4-font-mono); font-size: 11px; letter-spacing: .04em; color: var(--re-fg-3); text-align: center; margin: 4px 0 0; }
.lok { text-align: center; padding: 20px 0 6px; }
.lok .tick { width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; margin: 0 auto 20px; }
.lok .tick svg { width: 30px; height: 30px; color: #fff; }
.lok h2 { margin-bottom: 10px; }
.lok p { color: var(--re-fg-2); font-size: 15px; max-width: 40ch; margin: 0 auto 24px; }
@media (max-width: 560px) { .lform { grid-template-columns: 1fr; } .lmodal-card { padding: 32px 22px 26px; } }

/* ---------- whatsapp float ---------- */
.wa { position: fixed; right: 26px; bottom: 26px; z-index: 200; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--k4-slate); display: grid; place-items: center; box-shadow: var(--k4-shadow-4); }
.wa:hover { opacity: 1; transform: translateY(-2px); }
.wa svg { width: 26px; height: 26px; }

/* ---------- contact dock (WhatsApp bot + Instagram) ---------- */
.cdock { position: fixed; right: 26px; bottom: 26px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cfabs { display: flex; flex-direction: column; gap: 12px; }
.cfab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 0; box-shadow: var(--k4-shadow-4); transition: transform .18s var(--k4-ease-out); position: relative; }
.cfab:hover { transform: translateY(-2px); }
.cfab svg { width: 27px; height: 27px; }
.cfab-wa { background: #25D366; color: #fff; }
.cfab-ig { background: #fff; color: var(--k4-slate); }
.cfab-ig svg { width: 26px; height: 26px; }
.cfab .cdot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #25D366; border: 2px solid var(--re-bg); }
.cfab-wa .cdot { background: #fff; border-color: #25D366; }
.cfab .cclose { display: none; }
.cdock.open .cfab-wa .cwa-icon { display: none; }
.cdock.open .cfab-wa .cclose { display: block; }

.cpanel { width: 340px; max-width: calc(100vw - 40px); background: var(--re-bg-2); border: 1px solid var(--re-line-2); border-radius: 16px; overflow: hidden; box-shadow: var(--k4-shadow-4); transform-origin: bottom right; opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none; transition: opacity .2s var(--k4-ease-out), transform .2s var(--k4-ease-out); }
.cdock.open .cpanel { opacity: 1; transform: none; pointer-events: auto; }
.cdock:not(.open) .cpanel { display: none; }  /* closed panel never blocks clicks (e.g. footer links) */
.cp-head { background: #075E54; padding: 18px 20px; display: flex; gap: 13px; align-items: center; }
.cp-ava { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; overflow: hidden; }
.cp-ava img { width: 30px; height: auto; }
.cp-meta .nm { color: #fff; font-family: var(--k4-font-heading); font-weight: 600; font-size: 15px; }
.cp-meta .st { color: rgba(255,255,255,.75); font-size: 12px; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.cp-meta .st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34e07a; }
.cp-body { padding: 22px 18px 6px; background: #0d1524; max-height: 300px; overflow-y: auto; }
.cp-bubble { background: var(--re-bg-3); border: 1px solid var(--re-line); color: var(--re-fg); font-size: 14px; line-height: 1.5; padding: 13px 15px; border-radius: 4px 14px 14px 14px; max-width: 88%; margin-bottom: 8px; }
.cp-bubble .sub { color: var(--re-fg-3); font-size: 11px; display: block; margin-top: 8px; font-family: var(--k4-font-mono); letter-spacing: .06em; }
.cp-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 18px 4px; }
.cp-quick button { background: transparent; border: 1px solid var(--re-line-2); color: var(--re-fg); font-family: var(--k4-font-body); font-size: 13px; padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: all .15s var(--k4-ease-out); }
.cp-quick button:hover { background: #25D366; border-color: #25D366; color: #fff; }
.cp-foot { display: flex; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--re-line); background: var(--re-bg-2); }
.cp-foot input { flex: 1; background: var(--re-bg-3); border: 1px solid var(--re-line-2); border-radius: 999px; padding: 12px 16px; color: #fff; font-family: var(--k4-font-body); font-size: 14px; outline: none; }
.cp-foot input::placeholder { color: var(--re-fg-3); }
.cp-foot input:focus { border-color: rgba(255,255,255,.4); }
.cp-send { background: #25D366; border: 0; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; cursor: pointer; color: #fff; }
.cp-send:hover { background: #1eb959; }
.cp-send svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .cdock { right: 16px; bottom: 16px; gap: 12px; }
  .cfab { width: 52px; height: 52px; }
  .cpanel { width: calc(100vw - 32px); }
}

/* ---------- forms ---------- */.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--k4-font-heading); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--re-fg-3); }
.input, select.input, textarea.input { background: var(--re-bg-3); border: 1px solid var(--re-line-2); border-radius: 4px;
  padding: 13px 15px; color: #fff; font-family: var(--k4-font-body); font-size: 14px; outline: none; transition: border-color .16s; }
.input::placeholder { color: var(--re-fg-3); }
.input:focus { border-color: rgba(255,255,255,.45); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--k4-ease-out), transform .5s var(--k4-ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- page hero (interior) ---------- */
.phero { position: relative; padding: 150px 0 84px; overflow: hidden; }
.phero .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.phero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.92)); }
.phero-inner { position: relative; z-index: 2; }
.phero h1 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.phero .crumb { margin-bottom: 20px; }
.crumb { font-family: var(--k4-font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--re-fg-3); }
.crumb a { color: var(--re-fg-3); }
.crumb a:hover { color: #fff; }

/* ---------- mortgage calculator ---------- */
.mortgage { margin-top: 40px; }
.mtg-grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; margin-top: 10px; }
.mtg-controls .mrow { margin-bottom: 26px; }
.mtg-controls .mtop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mtg-controls .mtop label { font-family: var(--k4-font-heading); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--re-fg-2); }
.mtg-controls .mtop .mval { font-family: var(--k4-font-mono); font-size: 14px; color: #fff; }
.mtg-controls input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--re-line-2); border-radius: 3px; outline: none; }
.mtg-controls input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: pointer; border: 3px solid var(--re-bg-2); box-shadow: 0 0 0 1px var(--re-line-2); }
.mtg-controls input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: pointer; border: 3px solid var(--re-bg-2); }
.mtg-controls .mprice { display: flex; align-items: center; gap: 10px; }
.mtg-controls .mprice .cur { font-family: var(--k4-font-mono); font-size: 13px; color: var(--re-fg-3); }
.mtg-controls .mprice input { flex: 1; background: var(--re-bg-3); border: 1px solid var(--re-line-2); border-radius: 4px; padding: 12px 14px; color: #fff; font-family: var(--k4-font-body); font-size: 15px; outline: none; }
.mtg-controls .mprice input:focus { border-color: rgba(255,255,255,.4); }
.mtg-result { background: var(--re-bg-3); border: 1px solid var(--re-line-2); border-radius: 10px; padding: 30px 28px; }
.mtg-result .rl { font-family: var(--k4-font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--re-fg-3); }
.mtg-result .monthly { font-size: 40px; font-weight: 300; color: #fff; letter-spacing: -.02em; margin: 6px 0 2px; }
.mtg-result .permo { font-size: 13px; color: var(--re-fg-3); }
.mtg-result .brk { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--re-line); display: flex; flex-direction: column; gap: 14px; }
.mtg-result .brk .r { display: flex; justify-content: space-between; align-items: baseline; }
.mtg-result .brk .r span { font-size: 13px; color: var(--re-fg-2); }
.mtg-result .brk .r b { font-family: var(--k4-font-mono); font-size: 14px; color: #fff; font-weight: 400; }
.mtg-result .disc { font-size: 11px; color: var(--re-fg-3); line-height: 1.5; margin: 20px 0 0; }
.mtg-result .btn { width: 100%; justify-content: center; margin-top: 20px; }
@media (max-width: 760px) { .mtg-grid { grid-template-columns: 1fr; gap: 26px; } }

@media (max-width: 1080px) {
  .plist { grid-template-columns: repeat(2, 1fr); }
  .wrap, .wrap-narrow, .nav-inner { padding: 0 28px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }

  /* --- full-screen mobile menu --- */
  .nav-outer.menu-open .nav { background: #000; backdrop-filter: none; border-bottom-color: transparent; }
  .nav-burger .ico-close { display: none; }
  .nav-outer.menu-open .nav-burger .ico-open { display: none; }
  .nav-outer.menu-open .nav-burger .ico-close { display: block; }

  .mobile-menu.open {
    display: block; position: fixed; inset: 0; z-index: 99;
    background: #000;
    padding: 104px 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }
  .mobile-menu.open a {
    display: block;
    position: relative; z-index: 1;
    font-family: var(--k4-font-heading);
    font-size: 26px; font-weight: 400; letter-spacing: -.01em;
    padding: 22px 0;
    border-bottom: 1px solid var(--re-line);
    color: #fff; text-transform: none;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(255,255,255,.08);
    touch-action: manipulation;
  }
  .mobile-menu.open a:first-child { border-top: 1px solid var(--re-line); }
  /* keep nav (logo + close btn) clickable above the overlay */
  .nav-outer.menu-open { z-index: 101; }
  .nav-outer.menu-open .nav-burger { position: relative; z-index: 102; }
  /* hide floating buttons while menu is open — they were stealing taps */
  body:has(.mobile-menu.open) .wa,
  body:has(.mobile-menu.open) .cdock,
  body.menu-open .wa,
  body.menu-open .cdock { display: none !important; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .sec { padding: 84px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 760px) {
  .wrap, .wrap-narrow, .nav-inner { padding: 0 20px; }
  .plist { grid-template-columns: 1fr; }
  .sec { padding: 68px 0; }
  .foot-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .btn { padding: 13px 22px; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow, .nav-inner { padding: 0 16px; }
  .foot-top { grid-template-columns: 1fr; gap: 30px; }
  .sec { padding: 56px 0; }
  .wa { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .wa svg { width: 23px; height: 23px; }
  .lead { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .nav { height: 68px; }
}

/* ---------- mobile tap-reliability fixes ---------- */
@media (max-width: 900px) {
  /* the closed chat panel must never intercept taps */
  .cpanel { pointer-events: none !important; }
  .cdock:not(.open) .cpanel { display: none !important; }
  /* selects: full field is tappable, no iOS zoom */
  select.input { font-size: 16px; -webkit-appearance: none; appearance: none; }
}
