@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --accent: #0071E3;
  --accent-d: #0077ED;
  --accent-light: #F5F9FF;
  --gold: #BF8B2E;
  --gold-light: #FBF6EE;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #AEAEB2;
  --border: rgba(0, 0, 0, 0.08);
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --dark: #1D1D1F;
  --dark-2: #2C2C2E;
  --green: #248A3D;
  --green-light: #F0FDF4;
  --radius: 18px;
  --radius-pill: 980px;
  --shadow: none;
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --section-pad: 96px;
  --page-max: 1080px;
  --header-max: 1240px;
  --site-header-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ——— Top bar ——— */
.topbar {
  background: var(--bg);
  color: var(--text-2);
  font-size: 12px;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 5px; }
.topbar-item strong { color: var(--text); font-weight: 500; }

/* ——— Header ——— */
header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: var(--site-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text);
  line-height: 1.15;
  flex-shrink: 0;
}
.logo span { color: var(--accent); font-weight: 600; }
.logo sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-2);
  vertical-align: bottom;
  margin-left: 6px;
}

nav { display: flex; gap: 0; flex-wrap: nowrap; align-items: center; min-width: 0; }
nav a {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  border-radius: 0;
  transition: color .2s;
  white-space: nowrap;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
nav a:hover { color: var(--text); background: transparent; }
nav a.active { color: var(--text); font-weight: 500; background: transparent; }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone { font-size: 14px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; white-space: nowrap; }

.site-search-wrap {
  position: relative;
  margin-left: auto;
  width: min(360px, 100%);
}
.site-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 4px 2px 10px;
}
.site-search-form input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  line-height: 1.2;
  padding: 6px 0;
}
.site-search-form input:focus { outline: none; }
.site-search-form button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  font-size: 13px;
}
.site-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 450;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  max-height: min(65vh, 460px);
  overflow: auto;
}
.site-search-dropdown[hidden] { display: none !important; }
.site-search-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.site-search-item:last-child { border-bottom: none; }
.site-search-item:hover { background: var(--bg); }
.site-search-item__img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.site-search-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.site-search-item__name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-search-item__meta {
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-search-item__price {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.site-search-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
}

/* Desktop: compact two-row header — logo + CTA on top, nav below */
@media (min-width: 769px) {
  :root { --site-header-h: 56px; }

  .header-inner {
    max-width: var(--header-max);
    height: auto;
    min-height: var(--site-header-h);
    padding: 4px 0 5px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo cta"
      "nav nav";
    gap: 0 16px;
    align-items: center;
  }

  .logo { grid-area: logo; align-self: start; padding-top: 1px; }
  .header-cta { grid-area: cta; align-self: center; }
  .header-cta .btn { padding: 7px 16px; font-size: 14px; }

  nav {
    grid-area: nav;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: visible;
  }

  nav a { padding: 2px 8px; }
}

@media (min-width: 769px) and (max-width: 900px) {
  nav a { padding: 2px 6px; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 7px 12px; }
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-nav-toggle-icon,
.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}
.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.mobile-nav-toggle-icon::before { top: -5px; }
.mobile-nav-toggle-icon::after { top: 5px; }

.mobile-nav-drawer[hidden] { display: none !important; }
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  padding: 20px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-links a {
  padding: 12px 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: 12px;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--bg);
  color: var(--accent);
}
body.mobile-nav-open { overflow: hidden; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: background .2s, color .2s, opacity .2s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.45);
}
.btn-outline:hover { background: var(--accent-light); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { opacity: .9; }
.btn-white { background: #fff; color: var(--accent); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* ——— Sections ——— */
section { padding: var(--section-pad) 22px; }
.section-inner { max-width: var(--page-max); margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.section-sub {
  font-size: 19px;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.4211;
  margin-bottom: 48px;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.hours-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 5px 0;
  color: var(--text-2);
}
.hours-line strong { color: var(--text); font-weight: 500; }

/* ——— Modal ——— */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 480px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-title { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.modal-close { background: var(--bg); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--text-2); }
.modal-sub { font-size: 15px; color: var(--text-2); margin-bottom: 24px; line-height: 1.5; }
.modal-price { font-size: 28px; font-weight: 600; margin-bottom: 20px; letter-spacing: -0.03em; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 8px; color: var(--text-2); }
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: var(--bg);
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font);
}
.form-group input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
}
.modal-note { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 12px; }
.lead-form-status {
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  line-height: 1.45;
}
.lead-form-status--error { color: #b42318; }
.lead-form-status--success { color: #027a48; }
.btn-submit:disabled { opacity: 0.65; cursor: wait; }

/* ——— Footer ——— */
footer {
  background: var(--bg);
  color: var(--text-2);
  padding: 56px 22px 28px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: var(--page-max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 19px; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: -0.03em; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 14px; line-height: 1.5; margin-bottom: 16px; max-width: 320px; }
.footer-address { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.footer-phone { font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-3);
}

.proto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(36, 138, 61, 0.08);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
}
.proto-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}
.image-lightbox[hidden] {
  display: none !important;
}
body.lightbox-open {
  overflow: hidden;
}
.image-lightbox-stage {
  max-width: min(960px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.image-lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 48px);
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.image-lightbox-caption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  text-align: center;
  max-width: 640px;
}
.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.image-lightbox-prev,
.image-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.image-lightbox-prev { left: 18px; }
.image-lightbox-next { right: 18px; }
.image-lightbox-prev:hover,
.image-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.24);
}
.image-lightbox-prev[hidden],
.image-lightbox-next[hidden] {
  display: none !important;
}
.main-img-wrap img.zoomable,
.thumb-row img.zoomable,
.work-cover.zoomable,
.work-thumb.zoomable {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .topbar { padding: 8px 12px; }
  .site-search-wrap {
    width: 100%;
    margin-left: 0;
    order: 3;
  }
  .site-search-form input { font-size: 14px; }
  .site-search-dropdown {
    max-height: min(55vh, 360px);
  }
  nav { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .header-cta .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  section { padding: 64px 16px; }
  .section-title { font-size: 32px; }
  .section-sub { font-size: 17px; margin-bottom: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}
