:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ececec;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --yellow: #fae100;
  --yellow-deep: #e6cf00;
  --max: 1240px;
  --font: "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: var(--yellow);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 9px 0;
  text-align: center;
}
.topbar a { color: #111; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  gap: 16px;
}
.logo { justify-self: center; }
.logo img { height: 52px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  grid-column: 1;
}
.nav-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a, .nav .drop > button, .nav-end a {
  background: none;
  border: 0;
  color: #111;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav a.active, .nav-end a.active { font-weight: 700; }
.nav a:hover, .nav .drop > button:hover, .nav-end a:hover { color: #000; }
.drop { position: relative; }
.mega {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  padding: 12px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  z-index: 20;
}
.drop:hover .mega, .drop:focus-within .mega, .drop.open .mega { display: grid; }
.mega a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
}
.mega a:hover { background: var(--soft); }
.mega img { width: 44px; height: 44px; object-fit: contain; background: var(--soft); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow);
  color: #111 !important;
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { background: var(--yellow-deep); }
.btn.ghost { background: #fff; border: 1px solid #ddd; }
.btn.small { padding: 8px 12px; }
.nav-end .btn { margin-left: 8px; background: var(--yellow); padding: 10px 14px; font-weight: 700; }
.menu-toggle { display: none; background: none; border: 1px solid #ddd; border-radius: 6px; padding: 8px 12px; font-weight: 700; }

.slider { position: relative; background: #f3f3f3; }
.slider img {
  width: 100%;
  height: min(68vh, 560px);
  object-fit: contain;
  background: #f3f3f3;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.slider { height: min(68vh, 560px); }
.slider img.on { opacity: 1; }
.dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 8px;
}
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: #cfcfcf; padding: 0; cursor: pointer; }
.dots button.on { background: #111; width: 22px; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 36px 0 10px;
  text-align: center;
}
.trust strong { display: block; margin-bottom: 4px; font-size: 15px; }
.trust span { color: var(--muted); font-size: 13px; }

.section { padding: 42px 0; }
.center-title { text-align: center; margin: 8px 0 26px; }
.center-title h1, .center-title h2 {
  margin: 0;
  font-size: 32px;
}
.center-title h1:after, .center-title h2:after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--yellow);
  margin: 12px auto 0;
}
.center-title p { color: var(--muted); margin: 12px auto 0; max-width: 520px; }

.cats, .grid { display: grid; gap: 18px 14px; align-items: start; }
.cats { grid-template-columns: repeat(5, 1fr); }
.grid { grid-template-columns: repeat(3, 1fr); }
.card, .cat { background: #fff; min-width: 0; }
.ph {
  position: relative;
  background: #fafafa;
  aspect-ratio: 1;
  border: 1px solid #f0f0f0;
  overflow: hidden;
}
.ph img, .gallery img { width: 100%; height: 100%; object-fit: contain; }
.ph img { position: absolute; inset: 0; }
.hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover .hover, .card:focus-within .hover { opacity: 1; }
.hover .btn { min-width: 96px; }
.cat figcaption, .card .meta { padding: 12px 2px 0; text-align: center; }
.cat strong, .card .name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  min-height: 2.7em;
}
.card .name:hover { text-decoration: underline; }
.count { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 8px; }
.pager button {
  min-width: 36px;
  height: 36px;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.pager button.on { background: var(--yellow); border-color: var(--yellow); }
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  padding: 12px 16px 12px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(18, 140, 70, .35);
  animation: wa-bob 1.6s ease-in-out infinite;
}
.wa-float:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: wa-ping 1.6s ease-out infinite;
}
@keyframes wa-bob { 50% { transform: translateY(-4px); } }
@keyframes wa-ping { 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
body.nav-open .wa-float { display: none; }

.layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding-bottom: 56px; }
.side { position: sticky; top: 96px; height: fit-content; }
.side strong { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.side a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.side a.on { font-weight: 700; box-shadow: inset 3px 0 0 var(--yellow); padding-left: 8px; }
.filters { margin: 0 0 18px; }
.filters input, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 14px;
}
.page-head { padding: 28px 0 8px; text-align: center; }
.page-head h1 { margin: 0; font-size: 32px; }
.page-head h1:after { content: ""; display: block; width: 42px; height: 3px; background: var(--yellow); margin: 12px auto 0; }
.page-head .sub { margin-left: auto; margin-right: auto; }
.crumbs { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.crumbs a:hover { text-decoration: underline; }

.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; padding-bottom: 24px; }
.gallery .main { aspect-ratio: 1; background: #fafafa; border: 1px solid #f0f0f0; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { width: 76px; height: 76px; padding: 4px; border: 1px solid #eee; background: #fff; cursor: pointer; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.quote-box h1 { font-size: 34px; margin: 8px 0; }
.note { background: #fff8cc; border-left: 3px solid var(--yellow); padding: 12px 14px; font-size: 13px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; padding-bottom: 48px; }
.panel, .form-card, .service, .ref {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.prose p, .panel p { color: #333; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
.ticks li { padding: 8px 0 8px 18px; position: relative; }
.ticks li:before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--yellow); }
.cards, .refs { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(3, 1fr); padding-bottom: 48px; }
.refs { grid-template-columns: repeat(3, 1fr); padding-bottom: 48px; }
.ref strong, .service h3 { margin-top: 0; }
.ref span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.success { display: none; background: #fff8cc; padding: 14px; margin-top: 8px; }
.map { border: 0; width: 100%; height: 360px; }

.footer { background: #111; color: #f3f3f3; margin-top: 10px; }
.footer a { color: #f3f3f3; }
.footer .grid4 { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; padding: 40px 0 20px; }
.footer h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.footer h3:after { content: ""; display: block; width: 28px; height: 3px; background: var(--yellow); margin-top: 8px; }
.footer ul { padding: 0; }
.footer li { list-style: none; margin: 7px 0; font-size: 13px; }
.footer img { height: 48px; background: #fff; padding: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0 22px; color: #bdbdbd; font-size: 12px; display: flex; justify-content: space-between; }

@media (max-width: 980px) {
  .detail, .split, .layout, .footer .grid4, .trust { grid-template-columns: 1fr; }
  .cats, .cards, .refs { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .topbar { font-size: 11px; letter-spacing: 0.02em; }
  .topbar .wrap { gap: 16px; flex-wrap: nowrap; }
  .topbar .wrap > span { display: none; }
  .header { z-index: 60; }
  .header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-self: auto;
  }
  .logo img { height: 38px; max-width: 168px; object-fit: contain; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0;
    position: relative;
    z-index: 2;
  }
  .menu-toggle:before,
  .menu-toggle:after {
    content: "";
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    background: #111;
    transition: transform .2s ease, top .2s ease;
  }
  .menu-toggle:before { top: 16px; box-shadow: 0 6px 0 #111; }
  .menu-toggle:after { top: 28px; }
  .menu-toggle.is-open:before { top: 20px; box-shadow: none; transform: rotate(45deg); }
  .menu-toggle.is-open:after { top: 20px; transform: rotate(-45deg); }
  .nav { display: none; }
  .nav-end {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 2;
  }
  .nav-end > a:not(.btn) { display: none; }
  .nav-end .btn { margin: 0; padding: 8px 12px; font-size: 12px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav,
  body.nav-open .nav-end {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 55;
  }
  body.nav-open .nav {
    top: var(--head-offset, 108px);
    bottom: 0;
    overflow: auto;
    padding: 6px 18px 120px;
    border-top: 1px solid var(--line);
  }
  body.nav-open .nav-end {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 12px 18px 18px;
    gap: 0;
    border-top: 1px solid var(--line);
    align-items: stretch;
  }
  body.nav-open .nav-end > a:not(.btn) {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 600;
  }
  body.nav-open .nav-end .btn { width: 100%; padding: 14px 16px; font-size: 14px; }
  .nav a, .nav .drop > button {
    width: 100%;
    text-align: left;
    padding: 16px 4px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
  }
  .drop { width: 100%; }
  .drop > button { display: flex; justify-content: space-between; align-items: center; }
  .drop > button:after { content: "+"; font-weight: 500; font-size: 22px; line-height: 1; }
  .drop.open > button:after { content: "–"; }
  .drop:hover .mega, .drop:focus-within .mega { display: none; }
  .drop.open .mega {
    display: grid;
    position: static;
    width: auto;
    box-shadow: none;
    border: 0;
    padding: 4px 0 10px;
    grid-template-columns: 1fr;
  }
  .mega a { padding: 10px 4px; font-size: 14px; font-weight: 500; border-bottom: 0; }
  .slider, .slider img { height: 240px; }
  .form .two { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .grid { grid-template-columns: 1fr 1fr; }
  .hover { opacity: 1; background: none; position: static; padding: 8px 0 0; }
  .hover .btn { flex: 1; min-width: 0; padding: 8px 6px; font-size: 12px; }
  .wa-float { right: 12px; bottom: 12px; font-size: 13px; }
}
