/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--olive-deep); box-shadow: 0 10px 22px -12px var(--gold-dark); }
.btn-primary:hover { background: var(--gold-dark); color: #fff; box-shadow: 0 14px 26px -12px var(--gold-dark); }
.btn-outline { background: transparent; border-color: var(--olive-deep); color: var(--olive-deep); }
.btn-outline:hover { background: var(--olive-deep); color: #fff; }
.btn-light { background: #fff; color: var(--olive-deep); }
.btn-light:hover { background: var(--gold-light); color: var(--olive-deep); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--olive-deep); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--olive-deep); min-height: 44px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(251, 251, 248, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(51,52,43,.4); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo-img { height: 44px; width: auto; }
.logo-link { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--text); transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--olive-tint); color: var(--olive-deep); }
.main-nav a[aria-current="page"] { background: var(--gold-light); color: var(--olive-deep); font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; min-height: 44px; justify-content: center; }
.header-phone .lbl { font-size: .75rem; color: var(--text-soft); }
.header-phone .num { font-family: var(--font-head); font-weight: 600; color: var(--olive-deep); }
.menu-btn {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 24px; height: 24px; }

/* Full-screen mobile menu (native dialog = focus trap + Esc) */
.mobile-menu {
  border: 0; padding: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  background: var(--olive-deep); color: #fff;
}
.mobile-menu[open] { animation: fade-in .25s ease; display: flex; flex-direction: column; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); }
.mobile-menu-top .logo-img { filter: brightness(0) invert(1); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 16px var(--gutter); gap: 4px; }
.mobile-menu nav a {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: #fff; text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); min-height: 48px;
}
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu .mm-actions { padding: 16px var(--gutter) 32px; display: grid; gap: 12px; margin-top: auto; }
.mobile-menu .menu-btn { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-deep); color: rgba(255,255,255,.78); padding: 72px 0 0; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 2px; }
.footer-grid li a { display: inline-flex; min-height: 36px; align-items: center; }
.footer-logo { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-contact { font-style: normal; display: grid; gap: 8px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--olive-deep); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: .9rem;
}
.site-footer .tbc { color: var(--olive-deep); }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(51,52,43,.45); }
.ico-badge {
  width: 52px; height: 52px; border-radius: 14px; background: var(--gold-light); color: var(--gold-dark);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.ico-badge svg { width: 26px; height: 26px; }
.service-card p { color: var(--text-soft); margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Product / equipment card */
.product-card { padding: 24px; display: flex; flex-direction: column; text-align: center; align-items: center; }
.product-img {
  width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 50%; background: #ECECE8;
  overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-brand { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.product-card h3 { margin: 4px 0 8px; }
.product-card .warranty { color: var(--leaf); font-weight: 700; font-size: .9375rem; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.product-card .warranty svg { width: 16px; height: 16px; }
.product-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Engineer card */
.engineer-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.engineer-photo { aspect-ratio: 4 / 5; background: #ECECE8; }
.engineer-photo img { width: 100%; height: 100%; object-fit: cover; }
.engineer-body { padding: 24px; }
.engineer-role { color: var(--gold-dark); font-weight: 700; font-size: .9375rem; margin-bottom: 4px; }
.engineer-years { color: var(--text-soft); font-size: .9375rem; }
.engineer-bio { color: var(--text-soft); margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; list-style: none; }
.chip { background: var(--olive-tint); border: 1px solid var(--line); color: var(--olive-dark); padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.chip--gold { background: var(--gold-light); border-color: transparent; }

/* Pricing card */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.price-card .price { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--olive-deep); line-height: 1.1; margin: 8px 0 2px; }
.price-card .unit { color: var(--text-soft); font-size: .9375rem; margin-bottom: 20px; }
.price-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 20px; height: 20px; color: var(--leaf); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* Step card */
.step-card { position: relative; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--olive-deep); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-card p { color: var(--text-soft); margin: 0; }

/* Arrow list */
.arrow-list { list-style: none; display: grid; gap: 14px; }
.arrow-list li { display: flex; gap: 12px; align-items: flex-start; }
.arrow-list li > svg, .arrow-list li > [data-icon] { flex: none; margin-top: 3px; color: var(--gold-dark); }
.arrow-list li svg { width: 22px; height: 22px; }
.arrow-list strong { color: var(--olive-deep); }

/* Check list */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--leaf-tint); color: var(--leaf); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.check-ico svg { width: 16px; height: 16px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--gold); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; min-height: 56px; font-weight: 700; color: var(--olive-deep);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold-dark); line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; color: var(--text-soft); }

/* CTA band */
.cta-band {
  background: var(--olive-deep); color: #fff; border-radius: var(--radius-xl); padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -80px; top: -140px;
  background: radial-gradient(circle, rgba(232,169,76,.35), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* Modal (native <dialog>) */
.modal {
  border: 0; padding: 0; border-radius: var(--radius-lg); width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 48px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); color: var(--text); background: #fff;
}
.modal[open] { animation: modal-in .3s var(--ease); }
.modal::backdrop { background: rgba(51,52,43,.6); backdrop-filter: blur(3px); animation: fade-in .3s ease; }
.modal-body { padding: 36px; overflow-y: auto; max-height: calc(100vh - 48px); }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 2;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.modal-head .product-img, .modal-head .avatar { width: 110px; flex: none; margin: 0; }
.avatar { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #ECECE8; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal h3 { font-size: 1.5rem; margin-bottom: 4px; }
.modal h4 { font-size: 1rem; margin: 20px 0 8px; }

/* Skeleton / states */
.skeleton { border-radius: var(--radius-lg); min-height: 280px; background: linear-gradient(90deg, #EEEEE8 25%, #F7F7F3 50%, #EEEEE8 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.state-box {
  grid-column: 1 / -1; text-align: center; padding: 48px 24px; border: 2px dashed var(--line);
  border-radius: var(--radius-lg); color: var(--text-soft); background: #fff;
}
.state-box strong { display: block; color: var(--olive-deep); font-family: var(--font-head); font-size: 1.125rem; margin-bottom: 4px; }

/* Kicker */
.kicker { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--olive-dark); margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-tint); }

/* Breadcrumb */
.breadcrumb { display: flex; gap: 8px; list-style: none; font-size: .9rem; color: var(--text-soft); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--text-soft); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 600; font-size: .9375rem; color: var(--olive-deep); }
.field .opt { font-weight: 400; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; background: var(--olive-tint); border: 1.5px solid transparent;
  border-radius: var(--radius); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--gold-dark); outline: none; box-shadow: 0 0 0 3px var(--gold-light); }
.field [aria-invalid="true"] { border-color: var(--terracotta); background: var(--terracotta-tint); }
.field .err { color: var(--terracotta); font-size: .875rem; font-weight: 600; min-height: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.urgency-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0 0 18px; }
.urgency-toggle legend { font-weight: 600; font-size: .9375rem; color: var(--olive-deep); margin-bottom: 6px; padding: 0; }
.urgency-opt { position: relative; }
.urgency-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.urgency-opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; transition: all .2s;
}
.urgency-opt input:checked + span { border-color: var(--gold-dark); background: var(--gold-light); }
.urgency-opt input[value="urgent"]:checked + span { border-color: var(--terracotta); background: var(--terracotta-tint); color: var(--terracotta); }
.urgency-opt input:focus-visible + span { outline: 3px solid var(--gold-dark); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-size: .9375rem; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold-dark); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--text-soft); margin: 14px 0 0; }
.success-box { display: none; background: var(--leaf-tint); border: 1px solid var(--leaf); color: #2F4A1D; padding: 20px 22px; border-radius: var(--radius); margin-top: 18px; }
.success-box.show { display: block; }
.success-box strong { display: block; font-family: var(--font-head); }
.error-box { display: none; background: var(--terracotta-tint); border: 1px solid var(--terracotta); color: #7A2E1A; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; }
.error-box.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav, .header-phone { display: none; }
  .menu-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
}
@media (max-width: 640px) {
  .header-right .btn { display: none; }
  .footer-grid, .grid-2, .grid-3, .grid-4, .two-col { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251,251,248,.95); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  body { padding-bottom: 76px; }
  .modal-body { padding: 28px 22px; }
  .cta-band { padding: 36px 24px; border-radius: var(--radius-lg); }
  .cta-actions, .cta-actions .btn { width: 100%; }
}

/* Header fit */
.main-nav a, .header-phone .num, .header-right .btn { white-space: nowrap; }
.header-inner { gap: 16px; }
.header-right { gap: 14px; }
@media (max-width: 1140px) { .header-phone { display: none; } }

/* Services dropdown */
.nav-dd { position: relative; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border: 0; background: none; border-radius: 999px;
  font-weight: 500; font-size: .9375rem; cursor: pointer; color: var(--text); white-space: nowrap; transition: background .2s;
}
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { background: var(--olive-tint); }
.nav-dd-btn.is-current { background: var(--gold-light); font-weight: 700; }
.nav-dd-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-dd.open .nav-dd-btn svg, .nav-dd:hover .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 300px; padding: 8px; margin-top: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .nav-dd-menu a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 14px; border-radius: 8px; min-height: 56px; }
.nav-dd-menu a strong { color: var(--olive-deep); font-size: .9375rem; }
.nav-dd-menu a span { color: var(--text-soft); font-size: .8125rem; font-weight: 400; }
.mobile-menu .mm-group { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: #fff; padding: 14px 0 4px; }
.mobile-menu nav a.mm-sub { font-size: 1.125rem; font-weight: 500; padding: 10px 0 10px 18px; color: rgba(255,255,255,.85); min-height: 44px; }
.mobile-menu nav a.mm-sub[aria-current="page"] { color: var(--gold); }

/* Gallery cards */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gal-img { aspect-ratio: 4 / 3; background: #ECECE8; }
.gal-img img { width: 100%; height: 100%; object-fit: cover; }
.gal-label { padding: 14px 18px; font-family: var(--font-head); font-weight: 600; color: var(--olive-deep); }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }
.header-inner { gap: 24px; }
.header-right { gap: 28px; }
.header-phone { margin-right: 4px; }
