*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: #686868;
  background: #fff;
  font-family: "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #000;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin: 0.6rem 0 0.8rem; }
h2 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; color: #686868; margin: 1.4rem 0 0.45rem; }
h5 { font-size: 0.95rem; margin: 0; }

p { margin: 0 0 1rem; }

em { font-style: italic; }

.wrap {
  width: 75rem;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

@media (min-width: 60rem) and (max-width: 74.99rem) {
  .wrap { width: 60rem; }
}

@media (min-width: 48rem) and (max-width: 59.99rem) {
  .wrap { width: 48rem; }
}

@media (min-width: 30.01rem) and (max-width: 47.99rem) {
  .wrap { width: 30rem; }
}

@media (max-width: 30rem) {
  .wrap { width: 100%; }
}

#page {
  position: relative;
  background: #fff;
  min-height: 100vh;
  transition: transform 0.25s ease;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open #page {
  transform: translateX(12rem);
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 1.2rem;
  left: 1.1rem;
  z-index: 40;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
}

.nav-toggle-bars {
  position: relative;
  margin: 11px auto 0;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

#nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 30;
}

#nav-overlay[hidden] {
  display: none;
}

#offcanvas {
  display: none;
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12rem;
  background: #fff;
  overflow: auto;
}

body.nav-open #offcanvas {
  display: block;
}

#offcanvas ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#offcanvas a {
  display: block;
  padding: 0.95rem 1rem;
  color: #686868;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

#offcanvas li.active {
  background: #0e0e0e;
}

#offcanvas li.active a {
  color: #fff;
}

#offcanvas li:hover {
  background: #151515;
}

#offcanvas li:hover a {
  color: #fff;
}

#offcanvas li.active:hover {
  background: #0e0e0e;
}

.site-header {
  background: #fff;
  position: relative;
  z-index: 5;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.35rem;
}

.logo-link {
  flex: 0 0 25%;
  max-width: 25%;
  line-height: 0;
}

.logo-link img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-text {
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.brand-text h4 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: #686868;
  line-height: 1.25;
}

.brand-text p {
  margin: 0;
  color: #686868;
  font-size: 1rem;
  line-height: 1.45;
}

.brand-text a {
  color: #222;
}

.menu-row {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0.7rem;
}

.main-nav a {
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.main-nav li.active a,
.main-nav a:hover {
  color: rgba(0, 0, 0, 0.65);
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .banner {
  margin-top: 0.4rem;
}

.content {
  padding: 4.15rem 0 3.6rem;
}

.page-header {
  margin: 0 0 0.4rem;
}

.page-header h2 {
  margin: 0 0 0.85rem;
  color: #282828;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
}

.phone-link {
  color: #222;
  font-weight: 700;
}

.text-link {
  font-weight: 700;
}

.site-footer {
  background: #17181d;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 1.2rem 1rem;
}

.site-footer p {
  margin: 0;
}

.masonry {
  position: relative;
}

.masonry-item {
  margin: 0 0 1.5rem;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
}

.masonry:not(.masonry-flush) .masonry-item {
  padding: 1.7rem 1rem 0.9rem;
}

.masonry.is-ready .masonry-item {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 1.8rem;
  align-items: start;
}

.site-card {
  position: relative;
  width: 250px;
  max-width: 100%;
  margin: 0;
}

.site-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.site-open img {
  display: block;
  width: 100%;
  height: auto;
}

.site-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  background: rgba(34, 34, 34, 0.8);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-card:hover .site-overlay,
.site-card:focus-within .site-overlay {
  opacity: 1;
}

.site-overlay h5 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

.site-overlay a {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-overlay a:hover {
  color: #fff;
  text-decoration: underline;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 12, 0.94);
  color: #fff;
  overflow: auto;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 3rem 3.5rem;
  background: #111;
}

.lightbox-image {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 4rem;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-prev { left: 0.6rem; }
.lightbox-next { right: 0.6rem; }

.lightbox-meta {
  padding: 4.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-meta h3 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
  color: #fff;
}

.lightbox-link {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.lightbox-link:hover {
  color: #fff;
  text-decoration: underline;
}

.lightbox-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.lightbox-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.lightbox-thumbs li.is-active button {
  border-color: #fff;
}

.lightbox-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  display: block;
}

@media (max-width: 47.99rem) {
  .nav-toggle { display: block; }
  .menu-row { display: none; }

  .brand-row {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 2.6rem;
    gap: 0.35rem;
  }

  .logo-link {
    flex: none;
    max-width: 300px;
    width: min(300px, 100%);
  }

  .brand-text h4 {
    font-size: 1.65rem;
  }

  .page-header h2 {
    font-size: 2rem;
  }

  h1 { font-size: 2rem; }

  .content { padding-top: 2.2rem; }

  .lightbox-dialog {
    grid-template-columns: 1fr;
  }

  .lightbox-stage {
    min-height: 46vh;
    padding: 3.2rem 2.6rem 1.2rem;
  }

  .lightbox-meta {
    padding: 1rem 1.1rem 2rem;
  }
}

@media (min-width: 48rem) and (max-width: 59.99rem) {
  .page-header h2 { font-size: 2.5rem; }
  .brand-text h4 { font-size: 1.3rem; }
}

@media (min-width: 60rem) and (max-width: 74.99rem) {
  .page-header h2 { font-size: 2.75rem; }
  .brand-text h4 { font-size: 1.4rem; }
}

@media (min-width: 100rem) {
  .site-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
