/* ═══════════════════════════════════════════════════
   Бурение скважин Пенза — Main CSS
   gpt-taste aesthetic: Outfit font, editorial hero,
   gapless bento, GSAP-driven scroll, cinematic spacing
   ═══════════════════════════════════════════════════ */

/* ── Tailwind CDN fallback tokens (if CDN fails) ── */
:root {
  /* Colors */
  --color-deep: #021a2b;
  --color-blue: #0a5588;
  --color-blue-bright: #0d6fb0;
  --color-water: #06b6d4;
  --color-earth: #8B6914;
  --color-sand: #d4a853;
  --color-accent: #f59e0b;
  --color-accent-warm: #f97316;
  --color-surface: rgba(255,255,255,0.06);
  --color-surface-hover: rgba(255,255,255,0.10);
  --color-glass: rgba(2, 26, 43, 0.65);
  --color-glass-border: rgba(255,255,255,0.10);

  /* Typography */
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-size-hero: clamp(2.8rem, 5vw, 5.5rem);
  --font-size-h1: clamp(2rem, 3.5vw, 3.5rem);
  --font-size-h2: clamp(1.5rem, 2.5vw, 2.4rem);
  --font-size-body: clamp(1rem, 1.1vw, 1.125rem);
  --leading-tight: 1.08;
  --leading-relaxed: 1.65;

  /* Spacing */
  --section-gap: clamp(4rem, 10vw, 8rem);
  --section-gap-sm: clamp(2rem, 5vw, 4rem);
  --content-width: 1280px;
  --content-narrow: 860px;

  /* Effects */
  --glass-blur: 16px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--leading-relaxed);
  color: #e8ecf1;
  background: var(--color-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10, 85, 136, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(139, 105, 20, 0.06) 0%, transparent 50%),
    var(--color-deep);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 600; line-height: var(--leading-tight); letter-spacing: -0.02em; }
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }

/* ── Main wrapper ── */
.bp-main { overflow-x: hidden; width: 100%; max-width: 100%; }

/* ── Container ── */
.bp-container {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}
.bp-container--narrow { max-width: var(--content-narrow); }
.bp-container--wide { max-width: 1400px; }

/* ═══════════════════════════════════
   NAVIGATION — floating glass pill
   ═══════════════════════════════════ */
.bp-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 2rem), 1200px);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-xl);
  background: rgba(2, 26, 43, 0.9);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-glass-border);
  transition: background var(--transition), border-color var(--transition);
}
.bp-nav--scrolled {
  background: rgba(2, 26, 43, 0.92);
  border-color: rgba(255,255,255,0.16);
}
.bp-nav__logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.bp-nav__logo span { color: var(--color-accent); }
.bp-nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0 auto;
}
.bp-nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color var(--transition);
  white-space: nowrap;
}
.bp-nav__links a:hover { color: var(--color-accent); }
.bp-nav__phone {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}
/* Hide the nav phone below desktop — it stays in the burger menu + floating call button */
@media (max-width: 1140px) {
  .bp-nav__phone { display: none; }
}
.bp-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.bp-nav__burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.bp-nav__burger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.bp-nav__burger--open span:nth-child(2) {
  opacity: 0;
}
.bp-nav__burger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════
   HERO — Editorial Split + 3D Scene
   ═══════════════════════════════════ */
.bp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.bp-hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.bp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(2,26,43,0.92) 0%, rgba(2,26,43,0.7) 38%, rgba(2,26,43,0.25) 75%, rgba(2,26,43,0.1) 100%),
    linear-gradient(180deg, rgba(2,26,43,0.5) 0%, transparent 25%, rgba(2,26,43,0.55) 100%);
  pointer-events: none;
}
.bp-hero__inner {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 10vh, 8rem);
}
.bp-hero__text {
  max-width: 560px;
  background: rgba(2, 26, 43, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.bp-hero__text h1 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.2rem;
}
.bp-hero__text h1 mark {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bp-hero__text h1 .bp-hero__phone {
  white-space: nowrap;
  font-size: 0.52em;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bp-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 440px;
  margin-bottom: 2rem;
}
.bp-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.bp-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.bp-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
.bp-hero__trust-item svg { flex-shrink: 0; color: var(--color-accent); }

/* ── Hero droplets (CSS only, fallback if no 3D) ── */
.bp-hero__droplets {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.bp-hero__droplets span {
  position: absolute;
  bottom: 10%;
  width: 6px;
  height: 6px;
  background: rgba(133, 193, 233, 0.6);
  border-radius: 50%;
  animation: dropletRise 3s ease-in infinite;
}
.bp-hero__droplets span:nth-child(1) { left: 58%; animation-delay: 0s; }
.bp-hero__droplets span:nth-child(2) { left: 60%; animation-delay: 0.8s; width: 8px; height: 8px; }
.bp-hero__droplets span:nth-child(3) { left: 56%; animation-delay: 1.6s; width: 4px; height: 4px; }
.bp-hero__droplets span:nth-child(4) { left: 62%; animation-delay: 2.2s; width: 7px; height: 7px; }
.bp-hero__droplets span:nth-child(5) { left: 59%; animation-delay: 2.9s; width: 5px; height: 5px; }

@keyframes dropletRise {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { opacity: 1; }
  100% { transform: translateY(-380px) scale(0.3); opacity: 0; }
}

/* ═══════════════════════════
   BUTTONS
   ═══════════════════════════ */
.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}
.bp-btn--cta {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-warm));
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.3);
}
.bp-btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.45);
}
.bp-btn--cta-pulse {
  animation: ctaPulse 2.5s ease-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
}
.bp-btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
}
.bp-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
}
.bp-btn--white {
  background: #fff;
  color: var(--color-deep);
}
.bp-btn--white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* ═══════════════════════════
   SECTION LAYOUT
   ═══════════════════════════ */
.bp-section {
  padding-block: var(--section-gap);
  position: relative;
}
.bp-section--dark {
  background: rgba(0,0,0,0.25);
}
.bp-section__title {
  text-align: center;
  margin-bottom: 3rem;
}
.bp-section__title h2 {
  font-size: var(--font-size-h2);
  color: #fff;
  margin-bottom: 0.5rem;
}
.bp-section__lead {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
}

/* ── Scrubbing text reveal ── */
.bp-reveal-word {
  display: inline-block;
  will-change: opacity, filter;
}

/* ═══════════════════════════
   GAPLESS BENTO GRID
   ═══════════════════════════ */
.bp-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: clamp(12px, 1.5vw, 20px);
}
.bp-bento__cell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.bp-bento__cell:hover {
  background: var(--color-surface-hover);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}
.bp-bento__cell--span-2 { grid-column: span 2; }
.bp-bento__cell--span-2-row { grid-column: span 2; grid-row: span 2; }
.bp-bento__cell--span-row-2 { grid-row: span 2; }
.bp-bento__cell-content {
  padding: clamp(1rem, 2.5vw, 2rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bp-bento__cell h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.bp-bento__cell p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}
.bp-bento__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.bp-bento__icon-img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(6,182,212,0.25));
}
.bp-bento__cell--featured .bp-bento__icon-img { width: 72px; height: 72px; }
.bp-bento__cell--featured {
  background: linear-gradient(135deg, rgba(10,85,136,0.35), rgba(6,182,212,0.12));
  border-color: rgba(6,182,212,0.2);
}

/* ═══════════════════════════
   CARD STACK
   ═══════════════════════════ */
.bp-card-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 3vh, 2rem);
}
.bp-card-stack > * {
  will-change: transform, opacity;
}

/* ═══════════════════════════
   PINNED SECTION (Desire phase)
   ═══════════════════════════ */
.bp-pin-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.bp-pin-section__title {
  position: sticky;
  top: 120px;
}
.bp-pin-section__title h2 {
  font-size: var(--font-size-h2);
  color: #fff;
}
.bp-pin-section__title p {
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
}

/* ═══════════════════════════
   SERVICES — card grid
   ═══════════════════════════ */
.bp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.bp-service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-glass-border);
  transition: transform var(--transition), border-color var(--transition);
}
.bp-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.5);
}
.bp-service-card__img {
  aspect-ratio: 16 / 10;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bp-service-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.bp-service-card__body h3 {
  font-size: 1.15rem;
  color: #fff;
}
.bp-service-card__body p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.5;
  flex: 1;
}
.bp-service-card__price {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(249,115,22,0.12));
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.bp-service-card__price--action {
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.bp-service-card__price--action:hover,
.bp-service-card__price--action:focus-visible {
  background: linear-gradient(135deg, rgba(245,158,11,0.32), rgba(249,115,22,0.22));
  border-color: rgba(245,158,11,0.6);
}

/* ═══════════════════════════
   MARQUEE
   ═══════════════════════════ */
.bp-marquee {
  width: 100%;
  overflow: hidden;
  padding-block: 2rem;
  user-select: none;
}
.bp-marquee--active {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 25s linear infinite;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.bp-marquee__track {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  align-items: center;
}
.bp-marquee__item {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.bp-marquee__item--accent { color: rgba(245, 158, 11, 0.25); }

/* ═══════════════════════════
   CALCULATOR
   ═══════════════════════════ */
.bp-calc {
  background: var(--color-surface);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bp-calc__row {
  margin-bottom: 1.5rem;
}
.bp-calc__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}
.bp-calc__label strong {
  color: var(--color-accent);
  font-size: 1.1rem;
}
.bp-calc__radios, .bp-calc__checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.bp-calc__radios label, .bp-calc__checks label {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-glass-border);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.bp-calc__radios label:hover, .bp-calc__checks label:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
}
.bp-calc__radios input:checked + span,
.bp-calc__checks input:checked + span {
  font-weight: 600;
}
.bp-calc__radios label:has(input:checked),
.bp-calc__checks label:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(245,158,11,0.08);
}
.bp-calc__plus {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.bp-calc input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  outline: none;
}
.bp-calc input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 3px solid var(--color-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.bp-calc__total {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--color-glass-border);
}
.bp-calc__total-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.bp-calc__total-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════
   FOOTER / ACTION
   ═══════════════════════════ */
.bp-footer {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--color-glass-border);
  background: rgba(0,0,0,0.3);
}
.bp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}
.bp-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.bp-footer a, .bp-footer p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  display: block;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.bp-footer a:hover { color: #fff; }
.bp-footer__phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent) !important;
}
.bp-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.bp-footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}
.bp-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-glass-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition);
}
.bp-footer__socials a:hover {
  background: var(--color-surface-hover);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════
   CTA BANNER
   ═══════════════════════════ */
.bp-cta-banner {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 2rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(10,85,136,0.5), rgba(6,182,212,0.15));
  border: 1px solid rgba(6,182,212,0.15);
}
.bp-cta-banner h2 {
  font-size: var(--font-size-h2);
  color: #fff;
  margin-bottom: 1rem;
}
.bp-cta-banner p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-inline: auto;
}

/* ═══════════════════════════
   PAGE HEADER (inner pages)
   ═══════════════════════════ */
.bp-page-header {
  padding: 7rem 0 3rem;
  text-align: center;
}
.bp-page-header h1 {
  font-size: var(--font-size-h1);
  color: #fff;
  margin-bottom: 0.5rem;
}
.bp-page-header p {
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════
   BLOG CARDS
   ═══════════════════════════ */
.bp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.bp-portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-glass-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.bp-portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}
.bp-portfolio-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,0.04);
  object-fit: cover;
}
.bp-portfolio-card__body {
  padding: 1.2rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bp-portfolio-card__body h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.bp-portfolio-card__body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  flex: 1;
}
.bp-portfolio-card__date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.8rem;
}

/* ═══════════════════════════
   IMAGE SCALE & FADE
   ═══════════════════════════ */
.bp-img-scale {
  will-change: transform, opacity;
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════
   MOBILE NAV
   ═══════════════════════════ */
.bp-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(2, 26, 43, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.bp-mobile-nav--open { display: flex; }
.bp-mobile-nav a {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .bp-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bp-hero__text {
    max-width: 100%;
  }
  .bp-hero__subtitle { max-width: 100%; margin-inline: auto; }
  .bp-hero__ctas { justify-content: center; }
  .bp-hero__trust { justify-content: center; }

  .bp-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bp-bento__cell--span-2,
  .bp-bento__cell--span-2-row,
  .bp-bento__cell--span-row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bp-pin-section {
    grid-template-columns: 1fr;
  }
  .bp-pin-section__title {
    position: static;
    margin-bottom: 1.5rem;
  }

  .bp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .bp-nav__links { display: none; }
  .bp-nav__burger { display: flex; }

  .bp-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (≤640px) */
@media (max-width: 640px) {
  :root {
    --font-size-hero: clamp(2rem, 7vw, 2.6rem);
    --section-gap: 3rem;
  }

  .bp-nav {
    border-radius: var(--radius);
    padding: 10px 16px;
  }

  .bp-hero {
    min-height: 90vh;
    min-height: 90svh;
  }

  .bp-hero__text h1 .bp-hero__phone {
    font-size: 0.68em;
  }

  .bp-bento {
    grid-template-columns: 1fr;
  }

  .bp-footer__grid {
    grid-template-columns: 1fr;
  }

  .bp-services-grid {
    grid-template-columns: 1fr;
  }

  .bp-calc__radios, .bp-calc__checks {
    grid-template-columns: 1fr;
  }

  .bp-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

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