html { scroll-behavior: smooth; }
body { font-family:'Manrope', sans-serif; background:#F6F8F7; color:#12293F; }
h1,h2,h3,.font-display { font-family:'Space Grotesk', sans-serif; }

.blueprint-grid {
  background-image:
    linear-gradient(rgba(46,158,107,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,158,107,0.15) 1px, transparent 1px);
  background-size: 36px 36px;
}

.valve-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #22C55E, transparent);
}

.pipe-line {
  position: relative;
}
.pipe-line::before {
  content:'';
  position:absolute;
  left:0; top:50%;
  width:100%; height:3px;
  background: repeating-linear-gradient(90deg, #22C55E 0 10px, transparent 10px 16px);
  opacity:0.5;
  transform: translateY(-50%);
  z-index:0;
}

input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(46,158,107,0.25); }

::selection { background:#22C55E; color:#fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.gauge-anim { animation: needle 3.5s ease-in-out infinite alternate; transform-origin: 60px 60px; }
@keyframes needle { 0% { transform: rotate(-35deg);} 100% { transform: rotate(35deg);} }

.pulse-ring { animation: pulse-ring 1.8s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(2.8); opacity: 0; }
}

.scroll-bounce { animation: scroll-bounce 2s ease-in-out infinite; }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-down-btn:hover .scroll-bounce { border-color: rgba(74,222,128,0.5); }

@property --mx { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: false; initial-value: 15%; }
#hero-glow {
  --mx: 50%;
  --my: 15%;
  background: radial-gradient(560px circle at var(--mx) var(--my), rgba(34,197,94,0.22), transparent 62%);
  transition: --mx 0.25s ease-out, --my 0.25s ease-out, opacity 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
  #hero-glow { transition: none; }
}

.nav-link { position: relative; }
.nav-link.active { color: #4ADE80; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: #4ADE80;
  border-radius: 2px;
}

a, button { transition: all .18s ease; }

/* Отзывы: строки карточек (цитата, звёзды, текст, автор) выровнены между карточками */
@media (min-width: 768px) {
  .reviews-grid { grid-template-rows: auto auto 1fr auto; }
  .reviews-grid .review-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    row-gap: 0;
  }
}
