/*
Theme Name: SN-Building-Pro
Description: Custom theme for SN-Building-Pro LLC — construction and electrical contractor, Bambilor, Senegal.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: snbuildingpro
*/

:root {
  --green: #12602F;       /* logo green */
  --green-bright: #239A45;
  --forest: #0B2E1A;
  --concrete: #E8ECE7;
  --concrete-2: #D5DCD4;
  --ink: #15211A;
  --muted: #4E5D53;
  --line: #CBD3CA;
  --white: #FFFFFF;
  --yellow: #F2B705;      /* safety yellow: main action only */
  --yellow-ink: #1B1A12;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 4px;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1,h2,h3 { font-family: var(--display); font-stretch: 112%; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 105%; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--yellow-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.ic { flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 600 1rem/1 var(--body); padding: .85em 1.3em; border-radius: var(--r); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { font-size: 1.06rem; padding: 1em 1.5em; }
.btn-quote { background: var(--yellow); color: var(--yellow-ink); }
.btn-quote:hover { background: #FFC81F; color: var(--yellow-ink); }
.btn-line { border-color: var(--green); color: var(--green); background: transparent; }
.btn-line:hover { background: var(--green); color: var(--white); }
.btn-line-light { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-line-light:hover { background: var(--white); color: var(--forest); }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.text-link:hover .ic { transform: translateX(3px); }
.text-link .ic { transition: transform .15s; }

/* Top bar */
.topbar { background: var(--forest); color: #CFE0D3; font-size: .875rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar-contacts { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.topbar a { color: #CFE0D3; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--white); }
.topbar-lang { display: flex; align-items: center; }
.topbar-lang a { color: #CFE0D3; }
.topbar-lang select { font-size: .85rem; padding: 2px 4px; border-radius: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 6px 18px -12px rgba(11,46,26,.45); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand-logo { width: 190px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav .menu a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--green); color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* Hero */
.hero { position: relative; color: var(--white); min-height: min(86vh, 760px); display: flex; align-items: flex-end; isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,46,26,.15) 0%, rgba(11,46,26,.45) 45%, rgba(8,30,17,.92) 100%); }
.hero-in { padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); width: 100%; }
.hero h1 { color: var(--white); max-width: 17ch; margin-bottom: .45em; }
.hero-kicker { font-weight: 600; color: #DDEBE0; margin-bottom: 1.1em; display: inline-flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 28px; height: 3px; background: var(--yellow); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: #E4EEE6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* The dimension line: the drawing-office signature */
.dim { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 4px 0 24px; font-size: .8rem; color: #C9DCCD; letter-spacing: .02em; }
.dim-line { flex: 1; height: 14px; position: relative; }
.dim-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--yellow); }
.dim-line::after { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--yellow); border-right: 1px solid var(--yellow); }
.dim-label { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .dim-line::before { transform-origin: left; animation: draw .9s .3s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Commitments strip */
.commit { background: var(--forest); color: #D7E5DA; }
.commit-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.commit-item { display: flex; gap: 16px; padding: 30px 28px 30px 0; }
.commit-item + .commit-item { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.commit-item .ic { color: var(--yellow); margin-top: 2px; }
.commit-item h2 { color: var(--white); font-size: 1.15rem; font-stretch: 105%; margin-bottom: .3em; }
.commit-item p { margin: 0; font-size: .95rem; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: 40px 0 0; }
.section-concrete { background: var(--concrete); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* Services list (rows, not cards) */
.svc-list { border-top: 2px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: 56px minmax(220px, 1fr) 1.4fr 32px; align-items: center; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .15s; }
.svc-row:hover { background: var(--concrete); color: var(--ink); }
.svc-ic { color: var(--green); display: inline-flex; }
.svc-t { font: 700 1.2rem/1.2 var(--display); font-stretch: 108%; }
.svc-d { color: var(--muted); }
.svc-go { color: var(--green); transition: transform .15s; }
.svc-row:hover .svc-go { transform: translateX(4px); }

/* Split media/text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.split-text p { max-width: 60ch; }
.about-split .split-media { position: relative; }
.about-split .split-media::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 46%; height: 46%; border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); z-index: -1; }
.about-split .split-media { z-index: 0; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 12px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--concrete-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: var(--white); font-size: .88rem; font-weight: 500; background: linear-gradient(transparent, rgba(8,30,17,.8)); }
.m-1 { grid-column: span 1; grid-row: span 2; }
.m-2 { grid-column: span 3; }
.m-3 { grid-column: span 1; }
.m-4 { grid-column: span 2; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 24px 0 0; }
.steps li + li { padding-left: 24px; }
.step-n { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--green); color: var(--green); border-radius: 50%; font: 800 1.15rem/1 var(--display); background: var(--white); position: relative; z-index: 1; margin-bottom: 18px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 46px; right: 0; border-top: 2px dashed var(--line); }
.steps li + li:not(:last-child)::after { left: 70px; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* CTA band */
.cta-band { background: var(--green); color: #E3F0E6; padding: clamp(44px, 6vw, 72px) 0; }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .35em; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--forest); color: #B9CDBE; font-size: .95rem; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.f-logo { width: 170px; filter: brightness(0) invert(1); margin-bottom: 16px; opacity: .95; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #D4E3D7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ic { color: var(--yellow); margin-top: 3px; }
.f-bottom { display: flex; justify-content: space-between; position: relative; padding-top: 18px; padding-bottom: 22px; font-size: .85rem; }
.f-bottom::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); border-top: 1px solid rgba(255,255,255,.12); }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.f-bottom p { margin: 0; }

/* WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px -6px rgba(0,0,0,.4); }
.wa-float:hover { color: var(--white); background: #1EBE5A; }

/* Page hero */
.page-hero { position: relative; background: var(--forest); color: #DCE8DF; isolation: isolate; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,46,26,.95) 0%, rgba(11,46,26,.82) 45%, rgba(11,46,26,.35) 100%); }
.page-hero-media, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero-in { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20ch; }
.page-hero p { font-size: 1.12rem; max-width: 58ch; margin: 0; }
.page-hero-in::after { content: ""; display: block; width: 64px; height: 4px; background: var(--yellow); margin-top: 26px; }

/* In-page jump links */
.jump { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 79px; z-index: 40; }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 26px; overflow-x: auto; scrollbar-width: none; }
.jump a { display: block; padding: 14px 0; white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 2px solid transparent; }
.jump a:hover { color: var(--green); border-bottom-color: var(--green); }

/* Service details */
.svc-detail { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.svc-detail.flip .split-media { order: 2; }
.svc-detail h2 { margin-top: 10px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Gallery */
.proj-group + .proj-group { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; border-radius: var(--r); background: var(--concrete-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: 8px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6,20,12,.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 86vw); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #E4EEE6; text-align: center; padding-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: var(--white); border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* About */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.values > div { border-top: 3px solid var(--green); padding-top: 18px; }
.values p { color: var(--muted); margin: 0; }
.person { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; max-width: 820px; }
.person-photo { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--concrete); }
.person-role { color: var(--green); font-weight: 600; margin-top: -.2em; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.split .prose { max-width: none; }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.form-card h2 { font-size: 1.5rem; }
.form-aside h2 { font-size: 1.25rem; margin-top: 0; }
.form-aside h2 + * { margin-bottom: 32px; }
.mini-steps { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.mini-steps li::marker { color: var(--green); font-weight: 700; }
.contact-lines { list-style: none; padding: 0; display: grid; gap: 12px; }
.contact-lines li { display: flex; align-items: center; gap: 10px; }
.contact-lines .ic { color: var(--green); }
.contact-lines span { color: var(--muted); font-size: .9rem; }
.wpcf7 form p { margin: 0 0 18px; }
.wpcf7 label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); }
.wpcf7 .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea { width: 100%; margin-top: 6px; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #FBFCFA; border: 1px solid #AEB9AF; border-radius: var(--r); padding: .75em .85em; }
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); background: var(--white); }
.wpcf7 input[type=submit] { background: var(--yellow); color: var(--yellow-ink); border: 0; font: 600 1.05rem/1 var(--body); padding: 1em 1.6em; border-radius: var(--r); cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #FFC81F; }
.wpcf7 .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.wpcf7-not-valid-tip { color: #A3261B; font-size: .88rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); border-width: 2px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--green); background: #EAF4EC; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #C7861A; background: #FFF6E0; }
.wpcf7-spinner { vertical-align: middle; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.c-card { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.c-card .ic { color: var(--green); margin-bottom: 12px; }
.c-card h2 { font-size: 1.15rem; margin-bottom: .4em; }
.c-card p { margin: 0; }
.map { border-radius: var(--r); overflow: hidden; min-height: 420px; background: var(--concrete); height: 100%; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contact-layout { grid-template-columns: 1.2fr 1fr; align-items: stretch; }

/* Listings */
.ltabs a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.lfilter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; background: var(--concrete); padding: 18px; border-radius: var(--r); margin-bottom: 26px; }
.lfilter label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .85rem; }
.lfilter select, .lfilter input, .lform input, .lform textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #FBFCFA; border: 1px solid #AEB9AF; border-radius: var(--r); padding: .65em .75em; }
.lfilter select:focus, .lfilter input:focus, .lform input:focus, .lform textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); background: var(--white); }
.lfilter .btn { justify-content: center; }
.lcount { margin: 0 0 14px; font-size: .95rem; }
.lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); transition: box-shadow .2s; }
.lcard:hover { box-shadow: 0 10px 28px rgba(11,46,26,.12); }
.lcard-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--concrete-2); overflow: hidden; }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lcard:hover .lcard-img img { transform: scale(1.03); }
.lcard-ph { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--muted); }
.lcard.is-closed .lcard-img img { filter: grayscale(.6); }
.ltag { position: absolute; top: 12px; left: 12px; background: var(--forest); color: var(--white); font: 600 .78rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 9px; border-radius: 3px; }
.ltag-rent { background: var(--green); }
.ltag-stay { background: var(--yellow); color: var(--yellow-ink); }
.ltag-status { left: auto; right: 12px; background: #A3261B; }
.lhead-price .ltag-status { position: static; display: inline-block; margin-bottom: 8px; }
.lcard-body { padding: 16px 18px 20px; }
.lprice { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 1.35rem; color: var(--green); margin: 0 0 4px; }
.lcard-body h3 { font-size: 1.08rem; margin: 0 0 6px; }
.lcard-body h3 a { color: var(--ink); text-decoration: none; }
.lcard-body h3 a:hover { color: var(--green); }
.lplace { display: flex; align-items: center; gap: 5px; color: var(--muted); margin: 0 0 4px; font-size: .95rem; }
.lfacts { margin: 0; font-size: .92rem; font-weight: 500; }
.lempty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--r); }
.lempty p:last-child { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }
.pager { margin-top: 32px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.pager .current { background: var(--green); border-color: var(--green); color: var(--white); }
.lsell { align-items: center; }
.lsell h2 { margin-bottom: .3em; }
.lnote { padding-top: 22px; padding-bottom: 22px; }
.lnote p { display: flex; gap: 8px; align-items: center; margin: 0; font-size: .92rem; }
.lhead { padding: 34px 0 22px; border-bottom: 1px solid var(--line); }
.lcrumb { font-size: .9rem; margin: 0 0 10px; color: var(--muted); }
.lcrumb a { color: var(--muted); }
.lhead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.lhead h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: .2em; }
.lhead-price { text-align: right; }
.lhead-price .lprice { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.lgal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; margin-top: 24px; }
.lgal a { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--concrete-2); }
.lgal a img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lgal a:hover img { transform: scale(1.03); }
.lgal .lgal-main { grid-row: span 2; }
.lgal.one { grid-template-columns: 1fr; grid-template-rows: min(62vh, 560px); }
.lgal-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(11,46,26,.6); color: var(--white); font-weight: 600; font-size: 1.1rem; }
.lbody { padding-top: 40px; }
.lfactbox { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lfactbox li { padding: 14px 16px; background: var(--white); font-weight: 600; }
.lfactbox span { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lh2 { font-size: 1.4rem; margin-top: 34px; }
.lmap { border-radius: var(--r); overflow: hidden; background: var(--concrete); }
.lmap iframe { width: 100%; height: 340px; border: 0; display: block; }
.linq { position: sticky; top: 100px; }
.lform p { margin: 0 0 14px; }
.lform label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.lform .btn { width: 100%; justify-content: center; }
.lwa .btn { width: 100%; justify-content: center; }
.lsafe { display: flex; gap: 6px; align-items: center; font-size: .85rem; margin: 0; }
.lerr { background: #FFF6E0; border-left: 4px solid #C7861A; padding: 10px 12px; }
.hp { position: absolute !important; left: -9999px; }

/* Responsive */
@media (max-width: 1080px) {
  .hide-md { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--white); flex-direction: column; align-items: stretch; padding: 92px 28px 28px; gap: 24px; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; z-index: 55; }
  .nav-open .site-nav { visibility: visible; transition: transform .25s ease; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
  .site-nav .menu { flex-direction: column; gap: 0; }
  .site-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-open .site-nav { transform: none; }
  .nav-open .nav-toggle { position: fixed; right: var(--gut); top: 18px; z-index: 60; }
  .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(6,20,12,.45); z-index: 45; }
  .split, .form-layout, .contact-layout { grid-template-columns: 1fr; }
  .svc-detail.flip .split-media { order: 0; }
  .svc-row { grid-template-columns: 44px 1fr 24px; }
  .svc-d { grid-column: 2; grid-row: 2; }
  .svc-go { grid-row: 1 / span 2; grid-column: 3; }
  .commit-grid { grid-template-columns: 1fr; }
  .commit-item, .commit-item + .commit-item { padding: 20px 0; border-left: 0; }
  .commit-item + .commit-item { border-top: 1px solid rgba(255,255,255,.14); }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps li:nth-child(odd) { padding-left: 0; }
  .steps li::after { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .jump { top: 0; position: relative; }
  .lfilter { grid-template-columns: 1fr 1fr; }
  .lgrid { grid-template-columns: 1fr 1fr; }
  .linq { position: static; }
  .lgal { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 140px; }
  .lgal .lgal-main { grid-column: span 2; grid-row: auto; }
  .lgal a:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .topbar-contacts { gap: 14px; }
  .topbar-in { flex-wrap: wrap; justify-content: center; row-gap: 4px; padding: 6px 0; }
  .topbar-lang { font-size: .8rem; }
  .brand-logo { width: 150px; }
  .header-in { min-height: 66px; }
  .hero { min-height: 640px; }
  .dim { font-size: .72rem; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .m-1 { grid-column: span 1; grid-row: span 2; }
  .m-2 { grid-column: span 1; }
  .m-3 { grid-column: span 1; }
  .m-4 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 0; }
  .ticks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .f-bottom { flex-direction: column; gap: 6px; }
  .person { grid-template-columns: 1fr; }
  .person-photo { width: 160px; }
  .wpcf7 .form-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .lfilter, .lgrid { grid-template-columns: 1fr; }
  .lhead-price { text-align: left; }
  .lfactbox { grid-template-columns: 1fr 1fr; }
}
