
:root {
  /* === Neutral ramp (OKLCH) === */
  --n-50:  oklch(98% 0.006 235);
  --n-100: oklch(95% 0.010 235);
  --n-200: oklch(90% 0.014 235);
  --n-300: oklch(82% 0.018 235);
  --n-400: oklch(70% 0.018 235);
  --n-500: oklch(58% 0.018 235);
  --n-600: oklch(46% 0.018 235);
  --n-700: oklch(35% 0.018 235);
  --n-800: oklch(25% 0.018 235);
  --n-900: oklch(16% 0.018 235);

  /* === Accent — steel blue ramp === */
  --a-50:  oklch(97% 0.018 240);
  --a-100: oklch(93% 0.035 240);
  --a-200: oklch(86% 0.060 240);
  --a-300: oklch(76% 0.090 240);
  --a-400: oklch(65% 0.120 240);
  --a-500: oklch(55% 0.145 240);
  --a-600: oklch(46% 0.145 240);
  --a-700: oklch(37% 0.130 240);
  --a-800: oklch(28% 0.110 240);
  --a-900: oklch(20% 0.090 240);

  /* === Semantic roles === */
  --bg:          var(--n-50);
  --surface:     #ffffff;
  --raised:      var(--n-100);
  --border:      var(--n-200);
  --muted:       var(--n-400);
  --body:        var(--n-800);
  --heading:     var(--n-900);
  --accent:      var(--a-500);
  --accent-dark: var(--a-700);
  --accent-bg:   var(--a-50);
  --accent-mid:  var(--a-100);

  /* === Spacing === */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm:  0 1px 3px oklch(0% 0 0 / .08), 0 1px 2px oklch(0% 0 0 / .04);
  --shadow-md:  0 4px 14px oklch(0% 0 0 / .08), 0 2px 6px oklch(0% 0 0 / .05);
  --shadow-lg:  0 16px 40px oklch(0% 0 0 / .10), 0 4px 12px oklch(0% 0 0 / .06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

body {
  background: var(--bg);
  color: var(--body);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Shell ── */
.shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 15px; color: var(--heading); letter-spacing: -.025em; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--accent); color: #fff;
  font-weight: 900; font-size: 11px; letter-spacing: .04em;
  box-shadow: 0 4px 12px oklch(55% .145 240 / .30);
}
.brand-sub { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; line-height: 1.1; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--n-600);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--a-50); color: var(--accent-dark); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.contact-block { text-align: right; font-size: 11px; color: var(--muted); line-height: 1.3; }
.contact-block strong { display: block; color: var(--body); font-size: 13px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 8px;
  color: var(--body); border: 1px solid var(--border);
  transition: background .15s;
}
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; top: 68px; z-index: 99;
  background: #fff;
  padding: 20px;
  flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: var(--body);
  transition: background .15s;
}
.mobile-nav a:hover { background: var(--a-50); color: var(--accent-dark); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 20px;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 700;
  transition: background .15s, box-shadow .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 12px oklch(55% .145 240 / .28); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 6px 18px oklch(55% .145 240 / .32); }
.btn-secondary { background: var(--surface); color: var(--body); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--a-50); border-color: var(--a-200); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--a-200); }
.btn-ghost:hover { background: var(--a-50); }

/* ── Hero ── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  padding: 88px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 90% 40%, var(--a-100) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  color: var(--accent); font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 850; line-height: .96;
  letter-spacing: -.06em; color: var(--heading);
  margin-bottom: 22px;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-lead { max-width: 480px; color: var(--n-600); font-size: 17px; line-height: 1.65; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-visual-wrap { position: relative; z-index: 1; }
.hero-visual {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--a-900);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--a-200);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, oklch(20% .018 235 / .45) 0%, transparent 55%);
}
.hero-visual-badge {
  position: absolute; z-index: 1;
  left: 20px; top: 20px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-visual-caption {
  position: absolute; z-index: 1;
  left: 20px; right: 20px; bottom: 18px;
  color: #fff;
}
.hero-visual-caption strong { display: block; font-size: 20px; line-height: 1.15; letter-spacing: -.04em; }
.hero-visual-caption span { font-size: 12px; opacity: .72; }

/* ── Stats ── */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0 0 80px;
}
.stat { padding: 22px 24px; background: var(--surface); }
.stat-num { font-size: 30px; font-weight: 850; letter-spacing: -.06em; color: var(--heading); line-height: 1; }
.stat-num span { color: var(--accent); }
.stat-label { margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ── Section head ── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(26px, 4vw, 44px); font-weight: 850; line-height: .98; letter-spacing: -.06em; color: var(--heading); margin-bottom: 0; }
.section-head p { max-width: 340px; color: var(--muted); font-size: 13px; margin-bottom: 0; }

/* ── Catalog ── */
.catalog-section { padding-bottom: 88px; }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.search-wrap { position: relative; flex: 1 1 260px; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--n-400); pointer-events: none; }
.search-input {
  width: 100%; height: 44px; padding: 0 14px 0 40px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--body);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(55% .145 240 / .12); }
.filter-select {
  height: 44px; padding: 0 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--n-600);
  min-width: 155px; outline: none; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.filter-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(55% .145 240 / .12); }
.count-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; font-size: 12px; color: var(--muted);
}
.count-row strong { color: var(--heading); font-size: 13px; }

/* ── Cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--a-200); }
.card-img {
  position: relative; aspect-ratio: 3/2; overflow: hidden;
  background: var(--raised);
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.card:hover .card-img img { transform: scale(1.04); }

/* Skeleton shimmer */
.skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--n-100) 0%, var(--n-50) 50%, var(--n-100) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.card-img img.loaded + .skeleton, .card-img img.loaded ~ .skeleton { display: none; }

.card-tag {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  padding: 5px 9px; border-radius: 7px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 9px; font-weight: 800; color: var(--accent-dark);
  letter-spacing: .09em; text-transform: uppercase;
}
.card-photo-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 7px;
  background: oklch(20% .018 235 / .72);
  color: #fff; font-size: 11px; font-weight: 600;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-size: 17px; font-weight: 750; line-height: 1.2; letter-spacing: -.03em; color: var(--heading); margin-bottom: 8px; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: auto; }
.card-city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.card-size { font-size: 12px; color: var(--muted); }
.card-cta {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: 1.5px solid var(--border);
  color: var(--body); font-size: 15px;
  transition: background .15s, border-color .15s, color .15s;
}
.card:hover .card-cta { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty-state { grid-column: 1/-1; padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-state p { margin-bottom: 16px; }

/* ── About ── */
.about-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; padding: 80px 0;
  border-top: 1px solid var(--border);
}
.about-section h2 { font-size: clamp(28px, 4vw, 50px); font-weight: 850; line-height: 1.02; letter-spacing: -.06em; color: var(--heading); margin-bottom: 20px; }
.about-section h2 em { font-style: normal; color: var(--accent); }
.about-lead { color: var(--n-600); font-size: 15px; margin-bottom: 28px; }
.about-points { display: flex; flex-direction: column; gap: 13px; }
.about-point { display: flex; gap: 13px; align-items: flex-start; }
.point-icon {
  flex: 0 0 30px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--a-100);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--accent-dark);
}
.point-text { font-size: 13px; font-weight: 600; color: var(--body); padding-top: 6px; }
.about-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.about-card {
  padding: 20px; border: 1.5px solid var(--border);
  border-radius: var(--r-md); background: var(--surface);
}
.about-card-num { font-size: 28px; font-weight: 850; letter-spacing: -.06em; color: var(--accent); }
.about-card-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── CTA band ── */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 36px 40px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--a-700) 0%, var(--a-900) 100%);
  color: #fff;
  margin-bottom: 80px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 28px rgba(255,255,255,.04), inset 0 0 0 56px rgba(255,255,255,.03);
}
.cta-band h2 { font-size: 24px; font-weight: 800; letter-spacing: -.05em; margin-bottom: 6px; }
.cta-band p { color: oklch(87% .04 240); font-size: 13px; margin-bottom: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 8px; text-align: right; flex-shrink: 0; }
.cta-actions .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: none; }
.cta-actions .btn-primary:hover { background: var(--a-50); }
.cta-tel { font-size: 11px; color: oklch(80% .04 240); }
.cta-tel a { color: inherit; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 26px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.footer-inner a { color: var(--body); font-weight: 600; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(12% .018 235 / .85);
  display: grid; place-items: center;
  padding: 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative;
  display: grid; grid-template-columns: 1.4fr .6fr;
  width: min(1060px, 100%);
  max-height: calc(100dvh - 32px);
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.99);
  transition: transform .22s ease;
}
.modal-overlay.open .modal-box { transform: none; }
.modal-stage {
  position: relative;
  background: var(--n-900);
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
.modal-stage img { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; }
.modal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.88);
  display: grid; place-items: center;
  color: var(--body); font-size: 20px;
  box-shadow: var(--shadow-sm);
  transition: background .15s;
}
.modal-arrow:hover { background: #fff; }
.modal-arrow.prev { left: 14px; }
.modal-arrow.next { right: 14px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%;
  background: oklch(20% .018 235 / .72);
  display: grid; place-items: center;
  color: #fff; font-size: 18px;
  transition: background .15s;
}
.modal-close:hover { background: oklch(20% .018 235 / .92); }
.modal-counter {
  position: absolute; left: 14px; bottom: 14px;
  padding: 5px 9px; border-radius: 7px;
  background: oklch(20% .018 235 / .72);
  color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.modal-info { padding: 28px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.modal-info .eyebrow { margin-bottom: 0; }
.modal-info h2 { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.05em; color: var(--heading); margin-bottom: 4px; }
.modal-location { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modal-spec { padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--raised); }
.modal-spec-label { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.modal-spec-val { margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--heading); }
.modal-desc { font-size: 13px; color: var(--n-600); line-height: 1.65; flex: 1; overflow-y: auto; }
.modal-info .btn { align-self: flex-start; }

/* Photo strip */
.photo-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.photo-strip::-webkit-scrollbar { height: 4px; }
.photo-strip::-webkit-scrollbar-track { background: var(--raised); border-radius: 2px; }
.photo-strip::-webkit-scrollbar-thumb { background: var(--a-300); border-radius: 2px; }
.thumb {
  flex: 0 0 52px; height: 40px;
  border-radius: 6px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s, opacity .15s;
  opacity: .65;
}
.thumb.active { border-color: var(--accent); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Toast */
.toast {
  position: fixed; z-index: 300;
  left: 50%; bottom: 20px; transform: translate(-50%, 8px);
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--n-900); color: #fff; font-size: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-section { grid-template-columns: 1fr; gap: 36px; }
  .about-right { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; padding: 60px 0 52px; gap: 36px; }
  .hero-visual-wrap { max-width: 520px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .modal-box { grid-template-columns: 1fr; max-height: calc(100dvh - 20px); overflow-y: auto; }
  .modal-stage { min-height: 260px; }
  .modal-stage img { max-height: 50vh; }
  .modal-info { padding: 20px; }
  .modal-info h2 { font-size: 22px; }
  .cta-band { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-actions { text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1200px); }
  .topbar-inner { height: 60px; }
  .mobile-nav { top: 60px; }
  .nav, .contact-block { display: none; }
  .burger { display: flex; }
  .hero h1 { font-size: clamp(38px, 12vw, 64px); }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn:last-child { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tools-row { display: grid; grid-template-columns: 1fr 1fr; }
  .search-wrap { grid-column: 1/-1; }
  .filter-select { width: 100%; min-width: 0; }
  #resetBtn { width: 100%; grid-column: 1/-1; }
  .cards-grid { grid-template-columns: 1fr; }
  .about-right { grid-template-columns: repeat(2,1fr); }
  .cta-band { padding: 24px 20px; }
  .cta-band h2 { font-size: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 440px) {
  .stats-strip { grid-template-columns: repeat(2,1fr); }
  .stat-num { font-size: 24px; }
  .modal-specs { grid-template-columns: 1fr 1fr; }
}


/* ── Header refinement ── */
.brand { flex: 0 0 auto; min-width: 0; }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; line-height: 1; }
.brand-name { display: block; white-space: nowrap; }
.brand-sub { display: block; margin: 0; white-space: nowrap; line-height: 1.15; }
.nav { margin-left: auto; }
.contact-block { min-width: 218px; white-space: nowrap; }
.contact-block a { display: block; color: var(--muted); transition: color .15s; }
.contact-block a:hover { color: var(--accent-dark); }
.topbar-actions .btn { flex: 0 0 auto; }

/* ── Image loading states ── */
.card-img.image-missing,
.hero-visual.image-missing { background: linear-gradient(135deg, var(--n-100), var(--a-50)); }
.card-img.image-missing::after,
.hero-visual.image-missing::before {
  content: "Фото объекта";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--n-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-img.image-missing .skeleton { display: none; }
.card-img img:not([src]), .hero-visual img:not([src]) { visibility: hidden; }
.thumb.image-missing { background: var(--raised); opacity: .35; }
.thumb.image-missing img { display: none; }

/* ── Contact modal ── */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 18px;
  background: oklch(12% .018 235 / .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.contact-modal-overlay.open { opacity: 1; visibility: visible; }
.contact-modal-box {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 34px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.99);
  transition: transform .22s ease;
}
.contact-modal-overlay.open .contact-modal-box { transform: none; }
.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--raised);
  color: var(--n-700);
  font-size: 17px;
  transition: background .15s, color .15s;
}
.contact-modal-close:hover { background: var(--a-100); color: var(--accent-dark); }
.contact-modal-box .eyebrow { margin-bottom: 8px; }
.contact-modal-box h2 {
  margin: 0 44px 10px 0;
  color: var(--heading);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.contact-modal-lead { margin-bottom: 24px; color: var(--n-600); font-size: 13px; line-height: 1.6; }
.contact-modal-lead a { color: var(--accent-dark); font-weight: 700; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > span { color: var(--n-700); font-size: 11px; font-weight: 700; }
.form-field b { color: var(--accent); }
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--body);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input { height: 44px; padding: 0 13px; }
.form-field textarea { min-height: 126px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(55% .145 240 / .12); }
.form-field input.invalid,
.form-field textarea.invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.08); }
.form-help { margin-top: 10px; color: var(--muted); font-size: 11px; }
.contact-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.form-status { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.35; }
.form-status.error { color: #b42318; }
.form-status.success { color: #18794e; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 1120px) {
  .topbar-inner { gap: 12px; }
  .nav a { padding-inline: 10px; }
  .contact-block { min-width: 0; }
  .contact-block a { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 940px) {
  .contact-block { display: none; }
}
@media (max-width: 700px) {
  .brand-copy { gap: 2px; }
  .brand-sub { font-size: 9px; letter-spacing: .07em; }
  .contact-modal-box { padding: 26px 20px 22px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .contact-form-actions { align-items: stretch; flex-direction: column; }
  .contact-form-actions .btn { width: 100%; }
}


/* Small compatibility refinements */
.mobile-nav-contact a { display: inline; padding: 0; border-radius: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.mobile-nav-contact a:hover { background: transparent; color: var(--accent-dark); }
.modal-stage.image-missing::after {
  content: "Фото объекта недоступно";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--n-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modal-stage.image-missing img { visibility: hidden; }
.modal-arrow:disabled { opacity: .35; cursor: default; }


/* ── Hotfix 2026-09-10: card images + CTA click layer ── */
.card-img img {
  position: relative;
  z-index: 1;
}
.card-img .skeleton {
  z-index: 2;
  pointer-events: none;
}
.card-img.image-loaded .skeleton,
.card-img img.loaded ~ .skeleton {
  display: none !important;
}
.card-tag,
.card-photo-count {
  z-index: 3;
}
.cta-band::before {
  pointer-events: none;
}
.cta-text,
.cta-actions {
  position: relative;
  z-index: 1;
}

/* ── Shared site navigation (presentation v4) ── */
.nav a.is-active {
  background: var(--a-50);
  color: var(--accent-dark);
}
.mobile-nav a.is-active {
  background: var(--a-50);
  color: var(--accent-dark);
}
.mobile-home-link {
  color: var(--accent-dark) !important;
  font-weight: 800 !important;
  border: 1px solid var(--a-100);
  margin-bottom: 4px;
}
@media (max-width: 1180px) and (min-width: 701px) {
  .topbar-inner { gap: 12px; }
  .nav { gap: 0; }
  .nav a { padding-inline: 8px; font-size: 12px; }
  .contact-block { display: none; }
}
