@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-white: #ffffff;
  --bg-subtle: #f8f9fa;
  --bg-card-grey: #f5f6f8;
  --bg-card-hover: #eef0f4;
  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --accent-coral: #e04f33;
  --accent-coral-soft: rgba(224, 79, 51, 0.1);
  --accent-green: #15803d;
  --accent-green-soft: #dcfce7;
  --border-light: #e5e7eb;
  --border-subtle: #f0f1f3;
  --dark-pill: #111827;
  --dark-pill-hover: #1f2937;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 12px 32px -4px rgba(17, 24, 39, 0.08), 0 4px 12px -2px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(17, 24, 39, 0.14), 0 8px 20px -4px rgba(17, 24, 39, 0.06);
  --shadow-pill: 0 16px 40px -8px rgba(17, 24, 39, 0.1), 0 2px 10px rgba(17, 24, 39, 0.04);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --container-max: 1280px;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER (Brickwise Reference Style)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
  flex-wrap: nowrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #111827 0%, #1e293b 100%);
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo:hover .brand-emblem {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 20px rgba(224, 79, 51, 0.22);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-name-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

.brand-name-city {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: var(--accent-coral);
  padding: 3px 7px;
  border-radius: 6px;
}

.brand-sub-caption {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
  flex-wrap: nowrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px 2px 0 0;
}

/* Dropdown for 5 informational pages */
.nav-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 310px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: var(--bg-subtle);
}

.dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--bg-card-grey);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.dropdown-item-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-pill-outline:hover {
  border-color: #d1d5db;
  background: var(--bg-subtle);
}

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--dark-pill);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.16);
}

.btn-pill-dark:hover {
  background: var(--dark-pill-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.22);
}

/* ==========================================================================
   HERO SECTION WITH CARTOGRAPHIC MAP & CENTRAL FEATURED CARD
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 52px;
  padding-bottom: 56px;
  overflow: hidden;
  background-color: #ffffff;
}

/* Subtle architectural cartographic background */
.hero-map-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-map-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-map-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.88) 26%, rgba(255, 255, 255, 0.15) 55%, rgba(255, 255, 255, 0.08) 85%, rgba(255, 255, 255, 0.65) 100%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-coral);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--text-main);
  max-width: 850px;
  margin-bottom: 18px;
}

/* Inline pill image inside the headline just like Brickwise screenshot */
.headline-inline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 84px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 6px;
  border: 2px solid #111827;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.16);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  transform: translateY(-3px);
}

.headline-inline-pill svg {
  width: 100%;
  height: 100%;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.25vw, 1.06rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Floating Search / Filter Pill Bar */
.hero-search-pill {
  width: 100%;
  max-width: 780px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 28px;
  box-shadow: var(--shadow-pill);
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  margin-bottom: 42px;
}

.search-pill-col {
  padding-right: 16px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-pill-col:nth-child(3) {
  border-right: none;
}

.search-pill-label {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.search-pill-control {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  width: 100%;
  outline: none;
  background: transparent;
  cursor: pointer;
  padding: 2px 0;
}

.search-pill-control::placeholder {
  color: var(--text-main);
  opacity: 0.85;
}

.search-pill-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark-pill);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.search-pill-btn:hover {
  background: var(--accent-coral);
  transform: scale(1.04);
}

/* Interactive Map Stage in Hero */
.hero-map-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Floating Avatar/Pin Bubbles around the Central Card */
.map-floating-pin {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.16);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.map-floating-pin::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #ffffff;
  z-index: -1;
}

.map-floating-pin:hover,
.map-floating-pin.active {
  transform: translateY(-4px) scale(1.12);
  border-color: var(--text-main);
  z-index: 6;
}

.pin-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-main);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow-md);
}

.map-floating-pin:hover .pin-tooltip {
  opacity: 1;
}

/* Central Featured Notary Card (Brickwise Spotlight Card) */
.hero-featured-card-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-featured-card {
  width: 340px;
  background: #ffffff;
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.14), 0 4px 16px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.8);
  text-align: left;
  position: relative;
  transition: transform 0.25s ease;
}

.hero-featured-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-right: 1px solid rgba(229, 231, 235, 0.8);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.featured-card-visual {
  position: relative;
  height: 168px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #1e293b;
}

.featured-card-visual svg,
.featured-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.featured-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.featured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.featured-dot.active {
  width: 16px;
  border-radius: 4px;
  background: #ffffff;
}

.featured-card-body {
  padding: 2px 6px 4px;
}

.featured-card-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.featured-card-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.featured-card-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.73rem;
  color: var(--text-secondary);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.featured-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.featured-price-val {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.featured-price-green {
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 3px;
}

.featured-action-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.featured-action-btn:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

/* Dark circle cluster marker below the card (like "20" in Brickwise) */
.hero-cluster-badge {
  margin-top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-main);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.28);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-cluster-badge:hover {
  transform: scale(1.08);
}

.hero-cluster-badge::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--text-main);
}

/* ==========================================================================
   STATS STRIP (4 Metrics side-by-side with uppercase label)
   ========================================================================== */
.stats-strip {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  line-height: 1.35;
  max-width: 130px;
}

/* ==========================================================================
   ASYMMETRIC "REASON TO CHOOSE US" SECTION (Brickwise Bento Style)
   ========================================================================== */
.reasons-section {
  padding: 88px 0;
  background: #ffffff;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: stretch;
}

.reasons-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-coral);
  margin-bottom: 14px;
  display: inline-block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--text-main);
}

.reasons-left-bottom {
  margin-top: 48px;
}

.reasons-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 440px;
}

.reasons-desc a {
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent-coral);
  padding-bottom: 1px;
}

.reasons-desc a:hover {
  color: var(--accent-coral);
}

.reasons-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bento-card {
  background: var(--bg-card-grey);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bento-card.span-2 {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
}

.bento-micro-ui {
  margin-bottom: 28px;
}

.micro-search-bar {
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  font-size: 0.8rem;
  color: var(--text-light);
  width: 100%;
  max-width: 240px;
}

.micro-shield-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--text-main);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2);
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.bento-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Bottom bento card dotted map + mini card visual */
.bento-trajectory-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bento-price-tag {
  position: absolute;
  top: 8px;
  left: 0;
  background: var(--accent-coral);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(224, 79, 51, 0.3);
  z-index: 2;
}

.bento-mini-prop {
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  width: 210px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  transform: rotate(2deg);
}

.bento-mini-prop-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-mini-prop-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CATALOG SECTION (ALL 74 NOTARIES OF YEKATERINBURG)
   ========================================================================== */
.catalog-section {
  padding: 76px 0 96px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.catalog-controls-bar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.catalog-filters-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.filter-input-label {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-control {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.filter-control:focus {
  border-color: var(--text-main);
  background: #ffffff;
}

.district-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: #9ca3af;
  color: var(--text-main);
}

.chip-btn.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.chip-count {
  font-size: 0.7rem;
  opacity: 0.75;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-found-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.catalog-found-text strong {
  color: var(--text-main);
  font-weight: 700;
}

.view-switcher {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.view-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.view-btn.active {
  background: var(--text-main);
  color: #ffffff;
}

/* Notary Cards Grid */
.notaries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.notaries-grid.list-view {
  grid-template-columns: 1fr;
}

.notary-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.notary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.notary-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.notary-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-card-grey);
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.notary-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-grey);
  color: var(--text-secondary);
}

.badge-pill.green {
  background: var(--accent-green-soft);
  color: var(--accent-green);
}

.badge-pill.coral {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
}

.notary-fio {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
}

.notary-fio-link {
  color: var(--text-main);
  transition: color 0.15s ease;
}

.notary-fio-link:hover {
  color: var(--accent-coral);
}

.location-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: all 0.18s ease;
}

.location-link-card:hover {
  background: #ffffff;
  border-color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.profile-info-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 32px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-detail-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px;
}

.profile-detail-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.profile-detail-value {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.notary-license {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.notary-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.notary-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notary-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--text-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.metro-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  margin-right: 4px;
}

.notary-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: nowrap;
}

.notary-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-grey);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.notary-phone-btn:hover {
  background: var(--text-main);
  color: #ffffff;
}

.notary-more-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.notary-more-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

/* Interactive Map Container inside Catalog */
.catalog-map-panel {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  height: 560px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.catalog-map-panel.visible {
  display: block;
}

/* ==========================================================================
   GUIDES & INFORMATIONAL PAGES SECTION (5 USEFUL GUIDES)
   ========================================================================== */
.guides-section {
  padding: 88px 0;
  background: #ffffff;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.guide-card {
  background: var(--bg-card-grey);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.guide-card:hover {
  background: #ffffff;
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.guide-card.featured-guide {
  grid-column: span 2;
  background: var(--text-main);
  color: #ffffff;
}

.guide-card.featured-guide .guide-title,
.guide-card.featured-guide .guide-link {
  color: #ffffff;
}

.guide-card.featured-guide .guide-desc {
  color: rgba(255, 255, 255, 0.76);
}

.guide-card.featured-guide .guide-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.guide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 18px;
  width: fit-content;
}

.guide-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 10px;
}

.guide-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(156, 163, 175, 0.2);
}

.guide-tariff-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-soft);
  padding: 4px 10px;
  border-radius: 8px;
}

.guide-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   PRICES PAGE & TARIFF TABLES
   ========================================================================== */
.page-hero-compact {
  padding: 56px 0 44px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumbs a:hover {
  color: var(--text-main);
}

.tariff-formula-banner {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px 28px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.formula-equation {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.formula-box {
  background: var(--bg-card-grey);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.formula-box-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.formula-box-val {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.prices-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.prices-table th {
  background: var(--bg-card-grey);
  padding: 16px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.prices-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  font-size: 0.88rem;
}

.prices-table tr:last-child td {
  border-bottom: none;
}

.prices-table tr:hover td {
  background: var(--bg-subtle);
}

.price-num-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--bg-card-grey);
  padding: 3px 8px;
  border-radius: 6px;
}

.price-regional-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent-green);
  background: var(--accent-green-soft);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
}

/* ==========================================================================
   ARTICLE / INFORMATIONAL PAGE LAYOUT
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 56px 0 88px;
  align-items: start;
}

.article-main {
  background: #ffffff;
}

.article-main h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 36px 0 16px;
  color: var(--text-main);
}

.article-main h2:first-child {
  margin-top: 0;
}

.article-main h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--text-main);
}

.article-main p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 16px;
}

.article-main ul, .article-main ol {
  margin: 0 0 22px 20px;
  color: var(--text-secondary);
}

.article-main li {
  margin-bottom: 10px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.article-main a.inline-seo-link {
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent-coral);
}

.article-main a.inline-seo-link:hover {
  color: var(--accent-coral);
}

.info-callout {
  background: var(--bg-card-grey);
  border-left: 4px solid var(--text-main);
  border-radius: 0 16px 16px 0;
  padding: 22px 24px;
  margin: 24px 0;
}

.info-callout.coral {
  border-left-color: var(--accent-coral);
  background: #fff8f6;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}

.checklist-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checklist-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  margin-top: 2px;
}

.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-card-grey);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
}

/* ==========================================================================
   MODAL FOR NOTARY DETAILS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #111827;
  color: #ffffff;
  padding: 64px 0 36px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  gap: 28px;
  flex-wrap: wrap;
}

.footer-disclaimer {
  max-width: 820px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

.footer-disclaimer strong {
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .notaries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reasons-grid {
    grid-template-columns: 1fr;
  }
  .guides-grid {
    grid-template-columns: 1fr 1fr;
  }
  .guide-card.featured-guide {
    grid-column: span 2;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filters-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero-search-pill {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 18px;
    gap: 12px;
  }
  .search-pill-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    padding-right: 0;
  }
  .search-pill-btn {
    width: 100%;
    border-radius: 14px;
  }
  .map-floating-pin {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reasons-bento {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .notaries-grid,
  .guides-grid,
  .checklist-grid,
  .tariff-formula-banner,
  .footer-grid,
  .directory-split-grid,
  .reference-bottom-box,
  .profile-details-grid,
  .benefits-3col,
  .calc-banner-grid,
  .calc-inputs-grid {
    grid-template-columns: 1fr !important;
  }
  .guide-card.featured-guide {
    grid-column: span 1;
  }
}
