:root {
    --cream: #F4EFE6;
    --cream-2: #ECE4D2;
    --sand: #E0D3B5;
    --ink: #1B2A3A;
    --ink-2: #2A3E54;
    --rust: #B84A2E;
    --rust-dark: #8E3621;
    --moss: #3A5A40;
    --moss-light: #588157;
    --paper: #FBF8F2;
    --line: rgba(27, 42, 58, 0.12);
    --line-strong: rgba(27, 42, 58, 0.25);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* TOPOGRAPHIC GRID PATTERN — 80×80 px tile with major grid lines, minor sub-grid,
     and geodetic station tick marks at intersections. Used as background-image
     overlay on each section (combined with section's base color via shorthand).
     Two variants: dark-stroke for light backgrounds, light-stroke for dark backgrounds. */
  :root {
    --topo-grid: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIj48ZyBzdHJva2U9IiMxQjJBM0EiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPjxwYXRoIGQ9Ik0gMCAwIEwgODAgMCBNIDAgMCBMIDAgODAiIHN0cm9rZS13aWR0aD0iMC44IiBvcGFjaXR5PSIwLjE4Ii8+PHBhdGggZD0iTSAyMCAwIEwgMjAgODAgTSA0MCAwIEwgNDAgODAgTSA2MCAwIEwgNjAgODAiIHN0cm9rZS13aWR0aD0iMC40IiBvcGFjaXR5PSIwLjA5Ii8+PHBhdGggZD0iTSAwIDIwIEwgODAgMjAgTSAwIDQwIEwgODAgNDAgTSAwIDYwIEwgODAgNjAiIHN0cm9rZS13aWR0aD0iMC40IiBvcGFjaXR5PSIwLjA5Ii8+PHBhdGggZD0iTSAtMyAwIEwgMyAwIE0gMCAtMyBMIDAgMyIgc3Ryb2tlLXdpZHRoPSIwLjkiIG9wYWNpdHk9IjAuMzAiLz48cGF0aCBkPSJNIDc3IDAgTCA4MyAwIE0gODAgLTMgTCA4MCAzIiBzdHJva2Utd2lkdGg9IjAuOSIgb3BhY2l0eT0iMC4zMCIvPjxwYXRoIGQ9Ik0gLTMgODAgTCAzIDgwIE0gMCA3NyBMIDAgODMiIHN0cm9rZS13aWR0aD0iMC45IiBvcGFjaXR5PSIwLjMwIi8+PHBhdGggZD0iTSA3NyA4MCBMIDgzIDgwIE0gODAgNzcgTCA4MCA4MyIgc3Ryb2tlLXdpZHRoPSIwLjkiIG9wYWNpdHk9IjAuMzAiLz48cGF0aCBkPSJNIDM5IDQwIEwgNDEgNDAgTSA0MCAzOSBMIDQwIDQxIiBzdHJva2Utd2lkdGg9IjAuNiIgb3BhY2l0eT0iMC4yMCIvPjwvZz48L3N2Zz4=");
    --topo-grid-light: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIj48ZyBzdHJva2U9IiNGNEVGRTYiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJzcXVhcmUiPjxwYXRoIGQ9Ik0gMCAwIEwgODAgMCBNIDAgMCBMIDAgODAiIHN0cm9rZS13aWR0aD0iMC44IiBvcGFjaXR5PSIwLjE0Ii8+PHBhdGggZD0iTSAyMCAwIEwgMjAgODAgTSA0MCAwIEwgNDAgODAgTSA2MCAwIEwgNjAgODAiIHN0cm9rZS13aWR0aD0iMC40IiBvcGFjaXR5PSIwLjA3Ii8+PHBhdGggZD0iTSAwIDIwIEwgODAgMjAgTSAwIDQwIEwgODAgNDAgTSAwIDYwIEwgODAgNjAiIHN0cm9rZS13aWR0aD0iMC40IiBvcGFjaXR5PSIwLjA3Ii8+PHBhdGggZD0iTSAtMyAwIEwgMyAwIE0gMCAtMyBMIDAgMyIgc3Ryb2tlLXdpZHRoPSIwLjkiIG9wYWNpdHk9IjAuMjYiLz48cGF0aCBkPSJNIDc3IDAgTCA4MyAwIE0gODAgLTMgTCA4MCAzIiBzdHJva2Utd2lkdGg9IjAuOSIgb3BhY2l0eT0iMC4yNiIvPjxwYXRoIGQ9Ik0gLTMgODAgTCAzIDgwIE0gMCA3NyBMIDAgODMiIHN0cm9rZS13aWR0aD0iMC45IiBvcGFjaXR5PSIwLjI2Ii8+PHBhdGggZD0iTSA3NyA4MCBMIDgzIDgwIE0gODAgNzcgTCA4MCA4MyIgc3Ryb2tlLXdpZHRoPSIwLjkiIG9wYWNpdHk9IjAuMjYiLz48cGF0aCBkPSJNIDM5IDQwIEwgNDEgNDAgTSA0MCAzOSBMIDQwIDQxIiBzdHJva2Utd2lkdGg9IjAuNiIgb3BhY2l0eT0iMC4xNiIvPjwvZz48L3N2Zz4=");
  }

  /* Apply topographic grid to body (covers white/paper backgrounds throughout) */
  body {
    background: var(--topo-grid) repeat, var(--paper);
  }

  /* TOPOGRAPHIC PATTERN BACKGROUND */
  .topo-bg {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
  }

  /* TYPOGRAPHY */
  h1, h2, h3, h4 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
  }

  .display {
    font-family: 'Fraunces', serif;
    font-variation-settings: "opsz" 144, "wght" 500;
    font-style: italic;
  }

  .mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
  }

  /* NAVIGATION */
  nav.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--ink);
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: var(--cream);
    position: relative;
  }

  .logo-mark::before {
    content: '';
    position: absolute;
    inset: 6px;
    background-image:
      linear-gradient(var(--ink), var(--ink)),
      linear-gradient(var(--ink), var(--ink));
    background-size: 100% 1px, 1px 100%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
  }

  .logo-mark::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--rust);
    border-radius: 50%;
  }

  .logo-text { display: flex; flex-direction: column; line-height: 1; }
  .logo-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; }
  .logo-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--ink-2); margin-top: 2px; letter-spacing: 0.05em; }

  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }

  .nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
  }

  .nav-links a:hover { color: var(--rust); }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
  }

  .nav-cta:hover { background: var(--rust); transform: translateY(-1px); }

  .menu-toggle {
    display: none;
    background: var(--cream);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .menu-toggle:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  /* HERO */
  section.hero {
    position: relative;
    padding: 6rem 1.5rem 7rem;
    background: var(--topo-grid) repeat, var(--cream);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
  }

  .hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    background: var(--paper);
  }

  .hero-tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--moss-light);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.2);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(88, 129, 87, 0); }
  }

  h1.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--ink);
  }

  h1.hero-title .accent {
    font-style: italic;
    color: var(--rust);
    font-weight: 500;
  }

  .hero-desc {
    font-size: 1.15rem;
    color: var(--ink-2);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.55;
  }

  .hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .btn-primary { background: var(--ink); color: var(--paper); }
  .btn-primary:hover { background: var(--rust); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(184, 74, 46, 0.3); }

  .btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
  }
  .btn-outline:hover { background: var(--ink); color: var(--paper); }

  /* HERO COORDINATES PANEL */
  .coords-panel {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 20px 50px -20px rgba(27, 42, 58, 0.15);
    transform: rotate(-1.2deg);
  }

  .coords-panel::before {
    content: 'PUNCT GEODEZIC';
    position: absolute;
    top: -10px; left: 1.5rem;
    background: var(--paper);
    padding: 0 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--rust);
    letter-spacing: 0.2em;
  }

  .coord-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
  }
  .coord-row:last-child { border-bottom: none; }
  .coord-label { color: var(--ink-2); }
  .coord-value { color: var(--ink); font-weight: 600; }

  .coords-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--ink-2);
    line-height: 1.6;
  }

  /* SECTIONS GENERAL */
  section.block {
    padding: 5rem 1.5rem;
    position: relative;
  }

  .container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }

  .section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--rust);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .section-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--rust);
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 1rem;
    max-width: 800px;
  }
  .section-title em { color: var(--rust); font-style: italic; font-weight: 500; }

  .section-lead {
    font-size: 1.1rem;
    color: var(--ink-2);
    max-width: 700px;
    margin-bottom: 3rem;
  }

  /* STATS */
  section.stats {
    background: var(--topo-grid-light) repeat, var(--ink);
    color: var(--paper);
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }

  .stat-card {
    border-left: 2px solid rgba(244, 239, 230, 0.2);
    padding-left: 1.5rem;
  }

  .stat-num {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 400;
    line-height: 1;
    color: var(--cream);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
  }
  .stat-num .plus { color: var(--rust); font-size: 0.6em; }

  .stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: rgba(244, 239, 230, 0.7);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  /* SERVICES */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .service-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .service-card:hover {
    transform: translateY(-4px);
    border-color: var(--rust);
    box-shadow: 0 20px 40px -15px rgba(27, 42, 58, 0.12);
  }

  .service-card::before {
    content: attr(data-num);
    position: absolute;
    top: 1rem; right: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--ink-2);
    opacity: 0.5;
  }

  .service-icon {
    width: 48px; height: 48px;
    margin-bottom: 1.2rem;
    color: var(--rust);
  }

  .service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
  }

  .service-card p {
    color: var(--ink-2);
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .service-link {
    color: var(--rust);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
  }
  .service-link:hover { gap: 0.6rem; }

  /* MAP SECTION */
  section.map-section { background: var(--topo-grid) repeat, var(--cream); }

  .map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: stretch;
  }

  .map-info { padding-top: 0.5rem; }

  .coverage-list {
    list-style: none;
    margin-top: 1.5rem;
  }

  .coverage-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--line-strong);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
  }

  .coverage-list .county-name { font-weight: 600; color: var(--ink); }
  .coverage-list .county-meta { color: var(--ink-2); font-size: 0.78rem; }

  #map {
    height: 480px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 20px 40px -15px rgba(27, 42, 58, 0.15);
    background: var(--paper);
  }

  /* DOCUMENTS ACCORDION */
  .accordion {
    max-width: 900px;
    margin: 0 auto;
  }

  .acc-item {
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 0.8rem;
    background: var(--paper);
    overflow: hidden;
    transition: border-color 0.2s;
  }

  .acc-item.open { border-color: var(--rust); }

  .acc-header {
    padding: 1.3rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--paper);
    transition: background 0.2s;
  }
  .acc-header:hover { background: var(--cream); }

  .acc-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
  }

  .acc-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--ink-2);
    margin-right: 1rem;
  }

  .acc-icon {
    width: 28px; height: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform 0.3s, background 0.2s;
    flex-shrink: 0;
  }

  .acc-item.open .acc-icon {
    transform: rotate(45deg);
    background: var(--rust);
    color: var(--paper);
    border-color: var(--rust);
  }

  .acc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .acc-content-inner {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
  }

  .acc-content ol, .acc-content ul {
    padding-left: 1.2rem;
    color: var(--ink-2);
  }

  .acc-content li {
    padding: 0.35rem 0;
    font-size: 0.92rem;
  }

  .acc-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cream-2);
    color: var(--ink);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s;
  }
  .acc-download:hover { background: var(--rust); color: var(--paper); }

  /* TARIFE TABLE */
  .tarife-toggle {
    display: inline-flex;
    background: var(--cream-2);
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 2rem;
  }
  .tarife-toggle button {
    border: none;
    background: transparent;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-2);
    transition: all 0.25s;
    font-family: inherit;
  }
  .tarife-toggle button.active {
    background: var(--ink);
    color: var(--paper);
  }

  .tarife-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
  }

  .tarife-table th {
    background: var(--ink);
    color: var(--paper);
    padding: 1rem 1.2rem;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .tarife-table td {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .tarife-table tr:last-child td { border-bottom: none; }
  .tarife-table tr:hover td { background: var(--cream); }

  .tarife-table .price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--ink);
  }
  .tarife-table .price-urgent { color: var(--rust); }

  .tarife-note {
    font-size: 0.85rem;
    color: var(--ink-2);
    margin-top: 1.2rem;
    padding: 1rem;
    background: var(--cream);
    border-left: 3px solid var(--rust);
    border-radius: 4px;
  }

  /* TOOLS GRID (Coordinate converter + Calculator) */
  section.tools { background: var(--topo-grid) repeat, var(--cream); }
  section#tarife { background: var(--topo-grid) repeat, var(--cream); }
  section#testimonials { background: var(--topo-grid) repeat, var(--cream); }

  .tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .tool-card {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 2rem;
    position: relative;
  }

  .tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
  }

  .tool-card .tool-desc {
    font-size: 0.9rem;
    color: var(--ink-2);
    margin-bottom: 1.5rem;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .form-field {
    display: flex;
    flex-direction: column;
  }

  .form-field label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
  }

  .form-field input, .form-field select, .form-field textarea {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background: var(--paper);
    color: var(--ink);
    transition: border-color 0.2s;
    font-family: inherit;
  }

  .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--rust);
  }

  .form-field .mono-input { font-family: 'JetBrains Mono', monospace; }

  .tool-result {
    background: var(--ink);
    color: var(--cream);
    padding: 1rem 1.2rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    line-height: 1.7;
    min-height: 40px;
  }

  .tool-result .result-label { color: rgba(244, 239, 230, 0.6); font-size: 0.72rem; }

  /* EQUIPMENT */
  .equip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .equip-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s;
  }

  .equip-card:hover { border-color: var(--ink); transform: translateY(-2px); }

  .equip-card .equip-icon {
    width: 40px; height: 40px;
    margin-bottom: 1rem;
    color: var(--moss);
  }

  .equip-card h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .equip-card .equip-spec {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--rust);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .equip-card p {
    color: var(--ink-2);
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }

  /* TESTIMONIALS */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .testi-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem;
    position: relative;
  }

  .testi-card::before {
    content: '"';
    position: absolute;
    top: -10px; left: 1.5rem;
    font-family: 'Fraunces', serif;
    font-size: 5rem;
    color: var(--rust);
    line-height: 1;
    background: var(--paper);
    padding: 0 0.3rem;
  }

  .testi-text {
    font-style: italic;
    color: var(--ink-2);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .testi-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .testi-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--cream-2);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-family: 'Fraunces', serif;
  }

  .testi-name { font-weight: 600; font-size: 0.95rem; }
  .testi-role { font-size: 0.78rem; color: var(--ink-2); font-family: 'JetBrains Mono', monospace; }

  .testi-stars { color: #E8B339; margin-bottom: 0.6rem; }

  /* CONTACT */
  section.contact { background: var(--topo-grid-light) repeat, var(--ink); color: var(--cream); }
  section.contact .section-title { color: var(--cream); }
  section.contact .section-tag { color: #E8B339; }
  section.contact .section-tag::before { background: #E8B339; }

  /* COORDINATE PICKER TOOL (Stereo70 map widget, full-width in tools section) */
  .picker-tool-wrapper {
    margin-top: 2rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    overflow: hidden;
    background: var(--paper);
    transition: background 0.4s, border-color 0.4s;
    box-shadow: 0 12px 32px -16px rgba(27, 42, 58, 0.2);
  }

  .picker-tool-wrapper.theme-dark {
    background: var(--ink);
    border-color: rgba(244, 239, 230, 0.15);
  }

  .picker-tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--line);
    gap: 1.5rem;
    flex-wrap: wrap;
    transition: background 0.4s, border-color 0.4s;
  }

  .picker-tool-wrapper.theme-dark .picker-tool-header {
    border-bottom-color: rgba(244, 239, 230, 0.1);
    background: rgba(244, 239, 230, 0.02);
  }

  .picker-header-info {
    flex: 1;
    min-width: 250px;
  }

  .picker-tool-title {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.4rem;
    line-height: 1.2;
    transition: color 0.4s;
  }

  .picker-tool-wrapper.theme-dark .picker-tool-title { color: var(--cream); }

  .picker-tool-desc {
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.55;
    max-width: 600px;
    transition: color 0.4s;
  }

  .picker-tool-wrapper.theme-dark .picker-tool-desc { color: rgba(244, 239, 230, 0.65); }

  .picker-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* Group of action buttons (Locație + Curăță) — stays together on wrap */
  .picker-control-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .picker-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    background: var(--cream);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 38px;
  }

  .picker-action-btn:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
  }

  .picker-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .picker-action-btn.is-loading svg {
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .picker-tool-wrapper.theme-dark .picker-action-btn {
    background: rgba(244, 239, 230, 0.06);
    border-color: rgba(244, 239, 230, 0.18);
    color: var(--cream);
  }

  .picker-tool-wrapper.theme-dark .picker-action-btn:hover {
    background: var(--rust);
    border-color: var(--rust);
    color: var(--paper);
  }

  /* Generic segmented control (used for basemap toggle and theme toggle) */
  .picker-segmented {
    display: inline-flex;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 3px;
    transition: background 0.4s, border-color 0.4s, opacity 0.3s;
  }

  .picker-tool-wrapper.theme-dark .picker-segmented {
    background: rgba(244, 239, 230, 0.06);
    border-color: rgba(244, 239, 230, 0.12);
  }

  .picker-segmented button {
    border: none;
    background: transparent;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 30px;
  }

  .picker-segmented button:hover { color: var(--ink); }

  .picker-segmented button.active {
    background: var(--ink);
    color: var(--paper);
  }

  .picker-tool-wrapper.theme-dark .picker-segmented button { color: rgba(244, 239, 230, 0.55); }
  .picker-tool-wrapper.theme-dark .picker-segmented button:hover { color: var(--cream); }
  .picker-tool-wrapper.theme-dark .picker-segmented button.active {
    background: var(--cream);
    color: var(--ink);
  }

  /* Hide theme toggle when basemap is Google Hybrid (irrelevant for satellite) */
  .picker-tool-wrapper.basemap-hybrid #picker-theme-toggle {
    display: none;
  }

  /* Map container */
  #picker-map {
    height: 520px;
    width: 100%;
    background: var(--cream);
    z-index: 1;
    cursor: crosshair;
    transition: background 0.4s;
  }

  .picker-tool-wrapper.theme-dark #picker-map { background: #0F1822; }

  /* Apply CSS filter to invert the street map (Esri Topografic) when in dark mode.
     The :not(.basemap-hybrid) ensures Google satellite imagery is never inverted —
     a darkened satellite would look terrible. */
  .picker-tool-wrapper.theme-dark:not(.basemap-hybrid) #picker-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.75);
    transition: filter 0.45s ease;
  }

  /* Leaflet popup styling — light theme (default) */
  #picker-map .leaflet-popup-content-wrapper {
    background: var(--paper);
    color: var(--ink);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(27, 42, 58, 0.25);
    padding: 0;
    overflow: hidden;
  }
  #picker-map .leaflet-popup-content {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    width: 240px !important;
  }
  #picker-map .leaflet-popup-tip { background: var(--paper); }
  #picker-map .leaflet-popup-close-button { color: var(--ink-2); padding: 6px 8px 0 0 !important; }

  /* Leaflet popup styling — dark theme */
  .picker-tool-wrapper.theme-dark #picker-map .leaflet-popup-content-wrapper {
    background: var(--ink);
    color: var(--cream);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .picker-tool-wrapper.theme-dark #picker-map .leaflet-popup-tip { background: var(--ink); }
  .picker-tool-wrapper.theme-dark #picker-map .leaflet-popup-close-button { color: rgba(244, 239, 230, 0.6); }

  /* Custom popup content layout */
  .coord-popup {
    padding: 0.85rem 1rem 0.95rem;
  }

  .coord-popup-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--rust);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .picker-tool-wrapper.theme-dark .coord-popup-header { color: #E8B339; }

  .coord-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
  }
  .coord-popup-row:last-of-type { border-bottom: none; }

  .picker-tool-wrapper.theme-dark .coord-popup-row { border-bottom-color: rgba(244, 239, 230, 0.12); }

  .coord-popup-label {
    color: var(--ink-2);
    font-size: 0.72rem;
  }
  .picker-tool-wrapper.theme-dark .coord-popup-label { color: rgba(244, 239, 230, 0.55); }

  .coord-popup-value {
    font-weight: 600;
    color: var(--ink);
  }
  .picker-tool-wrapper.theme-dark .coord-popup-value { color: var(--cream); }

  .coord-popup-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.7rem;
  }

  .coord-popup-btn {
    flex: 1;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }
  .coord-popup-btn:hover {
    background: var(--rust);
    color: var(--paper);
    border-color: var(--rust);
  }
  .picker-tool-wrapper.theme-dark .coord-popup-btn {
    background: rgba(244, 239, 230, 0.08);
    border-color: rgba(244, 239, 230, 0.18);
    color: var(--cream);
  }

  /* Leaflet attribution */
  #picker-map .leaflet-control-attribution {
    background: rgba(251, 248, 242, 0.92);
    color: var(--ink-2);
    font-size: 0.65rem;
  }
  #picker-map .leaflet-control-attribution a { color: var(--rust); }

  .picker-tool-wrapper.theme-dark #picker-map .leaflet-control-attribution {
    background: rgba(15, 24, 34, 0.92);
    color: rgba(244, 239, 230, 0.55);
  }
  .picker-tool-wrapper.theme-dark #picker-map .leaflet-control-attribution a {
    color: rgba(232, 179, 57, 0.85);
  }

  /* Leaflet zoom controls */
  #picker-map .leaflet-control-zoom a {
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    transition: all 0.2s;
  }
  #picker-map .leaflet-control-zoom a:hover {
    background: var(--rust);
    color: var(--paper);
    border-color: var(--rust);
  }

  .picker-tool-wrapper.theme-dark #picker-map .leaflet-control-zoom a {
    background: rgba(15, 24, 34, 0.92);
    color: var(--cream);
    border-color: rgba(244, 239, 230, 0.18);
  }
  .picker-tool-wrapper.theme-dark #picker-map .leaflet-control-zoom a:hover {
    background: var(--rust);
    border-color: var(--rust);
  }

  /* Status bar at bottom */
  .picker-status {
    padding: 0.85rem 1.6rem;
    border-top: 1px solid var(--line);
    background: var(--cream);
    transition: background 0.4s, border-color 0.4s;
  }

  .picker-tool-wrapper.theme-dark .picker-status {
    border-top-color: rgba(244, 239, 230, 0.1);
    background: rgba(244, 239, 230, 0.02);
  }

  .picker-status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .picker-status-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--ink-2);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.25rem 0.55rem;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: all 0.4s;
  }
  .picker-tool-wrapper.theme-dark .picker-status-label {
    background: rgba(244, 239, 230, 0.06);
    border-color: rgba(244, 239, 230, 0.18);
    color: rgba(244, 239, 230, 0.55);
  }

  .picker-status-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--ink);
    transition: color 0.4s;
  }
  .picker-tool-wrapper.theme-dark .picker-status-value { color: var(--cream); }

  .picker-status-value.is-error { color: var(--rust); }
  .picker-status-value.is-success { color: var(--moss); }
  .picker-tool-wrapper.theme-dark .picker-status-value.is-success { color: #6FA76E; }

  /* OFFICE MAP (in contact section, full-width) */
  .office-map-wrapper {
    margin-top: 3rem;
    border: 1px solid rgba(244, 239, 230, 0.15);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(244, 239, 230, 0.03);
    position: relative;
    transition: background 0.4s, border-color 0.4s;
  }

  .office-map-wrapper.theme-light {
    background: var(--paper);
    border-color: var(--line-strong);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4);
  }

  .office-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid rgba(244, 239, 230, 0.1);
    background: rgba(244, 239, 230, 0.02);
    flex-wrap: wrap;
    gap: 1rem;
    transition: background 0.4s, border-color 0.4s;
  }

  .office-map-wrapper.theme-light .office-map-header {
    background: var(--cream);
    border-bottom-color: var(--line);
  }

  .office-map-header .om-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: rgba(244, 239, 230, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.4s;
  }

  .office-map-wrapper.theme-light .om-label {
    color: var(--ink-2);
  }

  .office-map-header .om-label::before {
    content: '';
    width: 6px; height: 6px;
    background: #E8B339;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(232, 179, 57, 0.2);
  }

  .office-map-wrapper.theme-light .om-label::before {
    background: var(--rust);
    box-shadow: 0 0 0 3px rgba(184, 74, 46, 0.2);
  }

  .office-map-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Theme toggle (segmented) */
  .map-theme-toggle {
    display: inline-flex;
    background: rgba(244, 239, 230, 0.06);
    border: 1px solid rgba(244, 239, 230, 0.12);
    border-radius: 999px;
    padding: 3px;
    transition: background 0.4s, border-color 0.4s;
  }

  .office-map-wrapper.theme-light .map-theme-toggle {
    background: var(--paper);
    border-color: var(--line-strong);
  }

  .map-theme-toggle button {
    border: none;
    background: transparent;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(244, 239, 230, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .map-theme-toggle button:hover { color: var(--cream); }

  .map-theme-toggle button.active {
    background: var(--cream);
    color: var(--ink);
  }

  .office-map-wrapper.theme-light .map-theme-toggle button {
    color: var(--ink-2);
  }

  .office-map-wrapper.theme-light .map-theme-toggle button:hover {
    color: var(--ink);
  }

  .office-map-wrapper.theme-light .map-theme-toggle button.active {
    background: var(--ink);
    color: var(--paper);
  }

  .office-map-header .om-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #E8B339;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
  }

  .office-map-header .om-directions:hover { color: var(--cream); }

  .office-map-wrapper.theme-light .om-directions { color: var(--rust); }
  .office-map-wrapper.theme-light .om-directions:hover { color: var(--ink); }

  #office-map {
    height: 480px;
    width: 100%;
    background: #0F1822;
    z-index: 1;
    transition: background 0.4s;
  }

  .office-map-wrapper.theme-light #office-map { background: var(--cream); }

  /* Dark mode (default) — invert the street map (Esri Topografic) only.
     Satellite / hybrid imagery is never filtered and hides the theme toggle. */
  .office-map-wrapper:not(.theme-light):not(.basemap-hybrid) #office-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.75);
    transition: filter 0.45s ease;
  }
  .office-map-wrapper.basemap-hybrid .map-theme-toggle { display: none; }

  /* Leaflet popup — DARK theme (default) */
  #office-map .leaflet-popup-content-wrapper {
    background: var(--ink);
    color: var(--cream);
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  }
  #office-map .leaflet-popup-content {
    margin: 0.8rem 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
  }
  #office-map .leaflet-popup-content strong { color: #E8B339; }
  #office-map .leaflet-popup-content a { color: var(--cream); }
  #office-map .leaflet-popup-tip { background: var(--ink); }
  #office-map .leaflet-popup-close-button { color: rgba(244, 239, 230, 0.6); }

  /* Leaflet popup — LIGHT theme */
  .office-map-wrapper.theme-light #office-map .leaflet-popup-content-wrapper {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 8px 30px rgba(27, 42, 58, 0.2);
  }
  .office-map-wrapper.theme-light #office-map .leaflet-popup-content strong { color: var(--rust); }
  .office-map-wrapper.theme-light #office-map .leaflet-popup-content a { color: var(--ink); }
  .office-map-wrapper.theme-light #office-map .leaflet-popup-tip { background: var(--paper); }
  .office-map-wrapper.theme-light #office-map .leaflet-popup-close-button { color: var(--ink-2); }

  /* Leaflet attribution — DARK theme */
  #office-map .leaflet-control-attribution {
    background: rgba(15, 24, 34, 0.85);
    color: rgba(244, 239, 230, 0.55);
    font-size: 0.65rem;
  }
  #office-map .leaflet-control-attribution a { color: rgba(232, 179, 57, 0.8); }

  /* Leaflet attribution — LIGHT theme */
  .office-map-wrapper.theme-light #office-map .leaflet-control-attribution {
    background: rgba(251, 248, 242, 0.9);
    color: var(--ink-2);
  }
  .office-map-wrapper.theme-light #office-map .leaflet-control-attribution a { color: var(--rust); }

  /* Leaflet zoom buttons — both themes */
  #office-map .leaflet-control-zoom a {
    background: rgba(15, 24, 34, 0.9);
    color: var(--cream);
    border: 1px solid rgba(244, 239, 230, 0.15);
    transition: background 0.25s;
  }
  #office-map .leaflet-control-zoom a:hover { background: var(--rust); color: var(--paper); }

  .office-map-wrapper.theme-light #office-map .leaflet-control-zoom a {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line-strong);
  }
  .office-map-wrapper.theme-light #office-map .leaflet-control-zoom a:hover { background: var(--rust); color: var(--paper); border-color: var(--rust); }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
  /* grid items must be allowed to shrink below their nowrap content width (mobile overflow) */
  .contact-grid > *, .tools-grid > *, .hero-inner > *, .map-wrapper > * { min-width: 0; }

  .contact-info-block {
    margin-bottom: 1.8rem;
  }

  .contact-info-block .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(244, 239, 230, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
  }

  .contact-info-block .value {
    font-size: 1.1rem;
    color: var(--cream);
  }

  .contact-info-block .value a {
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.2s;
  }
  .contact-info-block .value a:hover { border-bottom-color: var(--rust); }

  /* CONTACT CTA PANEL (replaces form) */
  .contact-cta-panel {
    background: rgba(244, 239, 230, 0.04);
    border: 1px solid rgba(244, 239, 230, 0.15);
    padding: 2rem;
    border-radius: 6px;
    align-self: start;
  }

  .cta-panel-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #E8B339;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .cta-panel-label::before {
    content: '';
    width: 18px;
    height: 1px;
    background: #E8B339;
  }

  .cta-panel-title {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 0.6rem;
    line-height: 1.2;
  }

  .cta-panel-desc {
    color: rgba(244, 239, 230, 0.65);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .cta-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: rgba(244, 239, 230, 0.04);
    border: 1px solid rgba(244, 239, 230, 0.12);
    border-radius: 6px;
    text-decoration: none;
    color: var(--cream);
    margin-bottom: 0.7rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  .cta-action:hover {
    transform: translateX(4px);
    background: rgba(244, 239, 230, 0.08);
    border-color: rgba(244, 239, 230, 0.25);
  }

  .cta-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: all 0.25s;
  }

  .cta-action-primary .cta-action-icon { background: var(--rust); color: var(--paper); }
  .cta-action-whatsapp .cta-action-icon { background: #25D366; color: white; }
  .cta-action-email .cta-action-icon { background: rgba(232, 179, 57, 0.15); color: #E8B339; border: 1px solid rgba(232, 179, 57, 0.3); }

  .cta-action-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
  }

  .cta-action-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.15rem;
  }

  .cta-action-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: rgba(244, 239, 230, 0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cta-action-arrow {
    color: rgba(244, 239, 230, 0.4);
    transition: all 0.25s;
    flex-shrink: 0;
  }

  .cta-action:hover .cta-action-arrow {
    color: var(--cream);
    transform: translateX(3px);
  }

  .cta-panel-note {
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    background: rgba(232, 179, 57, 0.08);
    border-left: 2px solid #E8B339;
    border-radius: 0 4px 4px 0;
    font-size: 0.82rem;
    color: rgba(244, 239, 230, 0.75);
    line-height: 1.5;
  }

  .cta-panel-note strong { color: #E8B339; }

  /* FOOTER */
  footer.site-footer {
    background: var(--topo-grid-light) repeat, #0F1822;
    color: var(--cream);
    padding: 4rem 1.5rem 2rem;
  }

  .footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(244, 239, 230, 0.1);
  }

  .footer-col h4 {
    color: var(--cream);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
    font-weight: 500;
  }

  .footer-col ul { list-style: none; }
  .footer-col li { padding: 0.3rem 0; }
  .footer-col a {
    color: rgba(244, 239, 230, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--rust); }

  /* Legal badges (ANPC SAL + EU SOL) — official logos with white background */
  .legal-badges {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.6rem;
  }

  .legal-badge {
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    line-height: 0;
    max-width: 160px;
    background: #FFFFFF;
    border: 1px solid rgba(244, 239, 230, 0.18);
    filter: brightness(0.95);
  }

  .legal-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(244, 239, 230, 0.35);
  }

  .legal-badge img {
    display: block;
    width: 100%;
    height: auto;
  }

  .footer-brand p {
    color: rgba(244, 239, 230, 0.6);
    font-size: 0.9rem;
    margin: 1rem 0;
    max-width: 360px;
  }

  .footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(244, 239, 230, 0.5);
  }

  .footer-bottom .legal-links { display: flex; gap: 1.5rem; }
  .footer-bottom a { color: rgba(244, 239, 230, 0.5); text-decoration: none; }
  .footer-bottom a:hover { color: var(--rust); }

  /* FLOATING WHATSAPP */
  .whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: transform 0.2s;
  }

  .whatsapp-float:hover { transform: scale(1.1); }

  .whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.5;
    animation: ripple 2s infinite;
  }
  @keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
  }

  /* ROMPOS WIDGET */
  .rompos-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(58, 90, 64, 0.1);
    border: 1px solid var(--moss-light);
    color: var(--moss);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
  }
  .rompos-widget:hover { background: var(--moss); color: var(--paper); }
  .rompos-dot {
    width: 6px; height: 6px;
    background: var(--moss-light);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
  }
  /* ROMPOS states (assets/js/rompos.js) */
  .rompos-widget[data-state="unknown"], .rompos-widget[data-state="checking"] {
    background: rgba(27, 42, 58, 0.05); border-color: var(--line-strong); color: var(--ink-2);
  }
  .rompos-widget[data-state="unknown"] .rompos-dot, .rompos-widget[data-state="checking"] .rompos-dot { background: #9aa3ab; animation: none; }
  .rompos-widget[data-state="checking"] .rompos-dot { animation: pulse 1s infinite; }
  .rompos-widget[data-state="partial"] { background: rgba(232, 179, 57, 0.14); border-color: #D9A030; color: #8A5A00; }
  .rompos-widget[data-state="partial"] .rompos-dot { background: #E8B339; }
  .rompos-widget[data-state="down"] { background: rgba(184, 74, 46, 0.1); border-color: var(--rust); color: var(--rust); }
  .rompos-widget[data-state="down"] .rompos-dot { background: var(--rust); }
  .rompos-widget[data-state]:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

  /* SCROLL REVEAL */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ============ RESPONSIVE BREAKPOINTS ============
     Strategy:
     - 1280px and below: nav and content adjustments
     - 1024px (tablet portrait): wider grids start to collapse
     - 980px: hero, contact, tools become single-column
     - 768px: most multi-column grids become 2-cols, picker controls reflow
     - 640px: full single-column, mobile menu toggle visible
     - 480px (small phones): tighter typography & spacing
     - 360px (very small): essential content only
  */

  /* ===== Tablet & smaller laptops ===== */
  @media (max-width: 1180px) {
    .nav-inner { padding: 0.85rem 1.25rem; gap: 1.25rem; }
    .nav-links { gap: 1.4rem; }
    section.block, section.hero { padding: 4.5rem 1.5rem; }
    h1.hero-title { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
  }

  /* ===== Tablet portrait ===== */
  @media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .equip-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid .testi-card:last-child {
      grid-column: 1 / -1;
      max-width: 600px;
      margin: 0 auto;
    }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
    .stats-grid { gap: 1.5rem; }
    #map, #picker-map, #office-map { height: 440px; }
  }

  /* ===== Hero / contact / tools collapse ===== */
  @media (max-width: 980px) {
    .hero-inner, .map-wrapper, .tools-grid, .contact-grid {
      grid-template-columns: 1fr;
      gap: 2.25rem;
    }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
    .footer-grid .footer-col:last-child { grid-column: auto; }
    .coords-panel { transform: rotate(-0.5deg); max-width: 420px; }
    .picker-tool-header { gap: 1rem; }
  }

  /* ===== Mobile landscape & small tablets ===== */
  @media (max-width: 768px) {
    .nav-inner { padding: 0.75rem 1rem; }
    .logo-name { font-size: 0.95rem; }
    .logo-sub { font-size: 0.6rem; }
    section.block, section.hero { padding: 3.75rem 1.25rem; }
    .hero-tag { font-size: 0.7rem; }
    h1.hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-desc { font-size: 1rem; }
    .section-title { font-size: clamp(1.75rem, 5vw, 2.4rem); }
    .section-lead { font-size: 1rem; }

    .picker-tool-header {
      flex-direction: column;
      align-items: stretch;
      padding: 1.1rem 1.2rem;
    }
    .picker-controls {
      width: 100%;
      justify-content: flex-start;
      gap: 0.5rem;
    }
    .picker-action-btn span { display: none; }
    .picker-action-btn { padding: 0.5rem 0.75rem; }
    #picker-map, #map, #office-map { height: 400px; }
    .picker-tool-title { font-size: 1.15rem; }
    .picker-tool-desc { font-size: 0.85rem; }

    .office-map-header {
      flex-direction: column;
      align-items: flex-start;
      padding: 0.8rem 1.1rem;
    }
    .office-map-controls { width: 100%; justify-content: space-between; }

    .services-grid, .equip-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .testimonials-grid .testi-card:last-child { max-width: none; margin: 0; }

    .accordion .acc-header { padding: 1.1rem 1.1rem; }
    .accordion .acc-title { font-size: 1rem; }
    .acc-content-inner { padding: 0 1.1rem 1.2rem; padding-top: 1.1rem; }
  }

  /* ===== Phone (most common) ===== */
  @media (max-width: 640px) {
    html { -webkit-text-size-adjust: 100%; }

    /* Mobile menu — dropdown panel (toggle adds .is-open) */
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      background: var(--paper);
      padding: 1rem 1.25rem;
      border-bottom: 1px solid var(--line);
      gap: 0;
      box-shadow: 0 10px 24px -8px rgba(27, 42, 58, 0.15);
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { display: block; padding: 0.4rem 0; font-size: 0.95rem; }

    .menu-toggle { display: inline-flex; }
    .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
    .nav-cta svg { width: 12px; height: 12px; }

    section.block, section.hero { padding: 3rem 1rem; }
    .stats-grid, .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-grid .footer-col:first-child,
    .footer-grid .footer-col:last-child { grid-column: auto; }

    .coords-panel { transform: none; }

    /* Tarife table — wider scroll, smaller padding */
    .tarife-table { font-size: 0.85rem; }
    .tarife-table td, .tarife-table th { padding: 0.7rem 0.6rem; }
    .tarife-table .col-hide-mob { display: none; }

    /* Tools cards — single column already, just adjust internal padding */
    .tool-card { padding: 1.5rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; gap: 0.7rem; }

    /* Contact CTA panel — smaller padding */
    .contact-cta-panel { padding: 1.5rem 1.25rem; }
    .cta-action { padding: 0.95rem 1rem; }
    .cta-action-icon { width: 40px; height: 40px; }
    .cta-action-label { font-size: 0.92rem; }
    .cta-action-value { font-size: 0.74rem; }

    /* Picker — keep action buttons and segmented controls usable */
    #picker-map, #map, #office-map { height: 360px; }
    .picker-segmented button { padding: 0.4rem 0.7rem; font-size: 0.65rem; }

    /* Hero coords panel: smaller font */
    .coord-row { font-size: 0.78rem; padding: 0.5rem 0; }
    .coords-meta { font-size: 0.65rem; }

    /* Stat numbers smaller */
    .stat-num { font-size: clamp(2rem, 8vw, 3rem); }
    .stat-card { padding-left: 1.2rem; }

    /* Service card */
    .service-card { padding: 1.5rem 1.25rem; }

    /* WhatsApp float — slightly smaller, away from edge */
    .whatsapp-float { bottom: 1rem; right: 1rem; width: 52px; height: 52px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
  }

  /* ===== Small phones (iPhone SE, older Androids) ===== */
  @media (max-width: 480px) {
    section.block, section.hero { padding: 2.5rem 1rem; }
    .hero-tag { font-size: 0.65rem; padding: 0.35rem 0.7rem; }
    .hero-ctas { gap: 0.6rem; }
    .hero-ctas .btn { padding: 0.85rem 1.3rem; font-size: 0.88rem; flex: 1; min-width: 140px; justify-content: center; }
    .rompos-widget { font-size: 0.7rem; padding: 0.35rem 0.7rem; }

    h1.hero-title { font-size: clamp(1.85rem, 9vw, 2.5rem); }

    .nav-cta span,
    .nav-cta { font-size: 0; }
    .nav-cta { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
    .nav-cta svg { width: 16px; height: 16px; display: block; }
    .nav-cta::after { content: ''; }

    .section-tag { font-size: 0.65rem; }
    .section-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }

    /* Picker — extra-compact controls */
    .picker-controls { gap: 0.4rem; }
    .picker-action-btn {
      padding: 0.5rem 0.6rem;
      gap: 0;
      width: 38px;
      height: 38px;
      justify-content: center;
    }
    .picker-segmented {
      width: 100%;
      justify-content: center;
    }
    .picker-segmented button {
      flex: 1;
      justify-content: center;
      padding: 0.5rem 0.5rem;
    }
    #picker-map, #map, #office-map { height: 340px; }
    .picker-tool-header { padding: 1rem; }
    .picker-status { padding: 0.7rem 1rem; }
    .picker-status-value { font-size: 0.75rem; }

    /* Office map header on tiny screens */
    .office-map-header { padding: 0.7rem 1rem; }
    .office-map-header .om-label { font-size: 0.65rem; }

    /* Tarife — even tighter */
    .tarife-table { font-size: 0.78rem; }
    .tarife-table td, .tarife-table th { padding: 0.55rem 0.45rem; }

    /* Tools section — enough breathing room */
    .tool-card h3 { font-size: 1.15rem; }
    .form-field input, .form-field select, .form-field textarea {
      font-size: 16px;  /* iOS Safari prevents auto-zoom only when ≥16px */
    }

    /* Accordion — smaller padding */
    .accordion .acc-header { padding: 0.95rem 0.95rem; }
    .acc-num { display: none; }

    /* Footer */
    footer.site-footer { padding: 3rem 1rem 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
    .footer-bottom .legal-links { flex-wrap: wrap; gap: 1rem; }

    /* Legal pages headings */
    .legal-page { padding: 3.5rem 1rem; }

    /* Coords panel mobile */
    .coords-panel { padding: 1.2rem; }
    .coord-row { font-size: 0.74rem; }
    .coord-value { font-size: 0.78rem; }

    /* Tool result block — smaller text */
    .tool-result { font-size: 0.78rem; padding: 0.85rem 1rem; }

    /* Reduce inline transforms on mobile (smoother scroll, less GPU) */
    .reveal { transform: translateY(15px); }

    /* Scroll snap — disable smooth scroll on small screens for performance */
    html { scroll-behavior: auto; }
  }

  /* ===== Very small phones (≤360px width) ===== */
  @media (max-width: 360px) {
    section.block, section.hero { padding: 2rem 0.85rem; }
    h1.hero-title { font-size: 1.65rem; }
    .section-title { font-size: 1.5rem; }

    .picker-action-btn { width: 36px; height: 36px; }
    .picker-segmented button { font-size: 0.62rem; padding: 0.45rem 0.4rem; }
    .picker-segmented button svg { width: 10px; height: 10px; }

    .nav-cta { width: 36px; height: 36px; }

    .footer-bottom .legal-links { gap: 0.7rem; }
    .footer-col h4 { font-size: 0.75rem; }
  }

  /* ===== Touch devices: never use hover-only effects ===== */
  @media (hover: none) and (pointer: coarse) {
    /* Disable transform/lift effects that were tied to :hover (jittery on tap) */
    .service-card:hover,
    .equip-card:hover,
    .legal-badge:hover,
    .cta-action:hover {
      transform: none;
    }
    /* Make all interactive elements meet 44px tap target (WCAG 2.5.5) */
    a, button, .btn, .picker-action-btn, .nav-links a {
      min-height: 38px;
    }
  }

  /* ===== Reduced motion preference ===== */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* ===== Landscape phones — keep map heights reasonable ===== */
  @media (max-height: 500px) and (orientation: landscape) {
    #picker-map, #map, #office-map { height: 320px; }
    section.hero { padding: 2.5rem 1.5rem; }
    h1.hero-title { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  }

  /* ===== High-DPI displays — sharper SVG line widths ===== */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon, .equip-icon { stroke-width: 1.25; }
  }

  /* ===== Safe-area-inset for notched devices (iPhone X+) ===== */
  @supports (padding: max(0px)) {
    .nav-inner { padding-left: max(1.25rem, env(safe-area-inset-left)); padding-right: max(1.25rem, env(safe-area-inset-right)); }
    section.block, section.hero, footer.site-footer {
      padding-left: max(1.5rem, env(safe-area-inset-left));
      padding-right: max(1.5rem, env(safe-area-inset-right));
    }
    .whatsapp-float { right: max(1.5rem, env(safe-area-inset-right)); bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  }

  /* PRINT */
  @media print {
    nav, .whatsapp-float, .hero-ctas, .nav-cta,
    .picker-controls, .office-map-header,
    #map, #picker-map, #office-map { display: none; }
    body { background: white; color: black; }
    section.block, section.hero { padding: 1.5rem 0; page-break-inside: avoid; }
  }