/* ==========================================================================
   СТИЛИ САЙТА: ПРОЕКТИРОВАНИЕ И СТРОИТЕЛЬСТВО ВОДОЁМОВ
   Архитектурная палитра: Milk, Warmgray, Sage, Forest, Pine, Moss, Grass, Aqua
   Типографика: Golos Text & IBM Plex Mono
   ========================================================================== */

/* 1. Базовые настройки страницы */
:root {
  --color-milk: #F6F5F0;
  --color-warmgray: #ECEAE2;
  --color-sage: #E1E7E0;
  --color-forest: #1A2F23;
  --color-pine: #13241B;
  --color-moss: #3A6B4C;
  --color-grass: #4E9F63;
  --color-aqua: #5B8C85;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-milk);
  color: var(--color-forest);
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* 2. Тонкая топографическая / инженерная координатная сетка */
.topo-bg {
  background-image: 
    linear-gradient(to right, rgba(26, 47, 35, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 47, 35, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.topo-bg-dark {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 3. Split-screen интерактивная панорама первого экрана */
@media (min-width: 1024px) {
  .hero-split-container {
    display: flex;
    height: 550px;
  }
  .hero-pane {
    flex: 1;
    transition: flex 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .hero-split-container:hover .hero-pane {
    flex: 0.82;
  }
  .hero-split-container .hero-pane:hover,
  .hero-pane.active-pane {
    flex: 1.35;
  }
}

/* 4. Стилизация инженерных ползунков калькулятора (Range Sliders) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

input[type="range"]:hover {
  background: rgba(255, 255, 255, 0.28);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-grass);
  border: 2px solid var(--color-milk);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #5eb575;
}

input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-grass);
  border: 2px solid var(--color-milk);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

/* 5. Послойная взрыв-схема пирога гидроизоляции чаши */
.layer-item {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.2s ease;
}

.layer-stack.exploded .layer-1 {
  transform: translateY(-16px) translateX(8px);
  box-shadow: 0 8px 16px rgba(26, 47, 35, 0.12);
}

.layer-stack.exploded .layer-2 {
  transform: translateY(-5px) translateX(-6px);
  box-shadow: 0 8px 16px rgba(26, 47, 35, 0.18);
}

.layer-stack.exploded .layer-3 {
  transform: translateY(7px) translateX(6px);
  box-shadow: 0 8px 16px rgba(26, 47, 35, 0.1);
}

.layer-stack.exploded .layer-4 {
  transform: translateY(18px) translateX(-8px);
  box-shadow: 0 8px 16px rgba(26, 47, 35, 0.08);
}

.layer-item.active-layer {
  outline: 2px solid var(--color-grass);
  outline-offset: 1px;
}

/* 6. Анимация интерактивных точек (Hotspots) на фото проектов */
.hotspot-btn {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-grass);
  color: #ffffff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hotspot-btn:hover,
.hotspot-btn.active {
  transform: scale(1.18);
  background-color: #5eb575;
}

.hotspot-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(78, 159, 99, 0.6);
  animation: hotspot-pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* 7. Анимация SVG-линии профиля этапов */
#wf-progress-line {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 8. Декоративные скроллбары для горизонтальных SVG-схем */
.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(26, 47, 35, 0.08);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-moss);
  border-radius: 3px;
}

/* 9. Фокус и доступность */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-grass);
  outline-offset: 2px;
}

/* ==========================================================================
   10. ВОДНЫЕ МИКРОАНИМАЦИИ И ГРАДИЕНТЫ (ПО ЗАПРОСУ ПОЛЬЗОВАТЕЛЯ)
   ========================================================================== */
.water-flowing-text {
  background: linear-gradient(
    110deg,
    #1A2F23 0%,
    #2B593F 22%,
    #5B8C85 45%,
    #4E9F63 68%,
    #24553B 85%,
    #1A2F23 100%
  );
  background-size: 240% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: waterFlowShimmer 7s ease-in-out infinite alternate;
}

@keyframes waterFlowShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 100% center;
  }
}

.water-flowing-badge {
  background: linear-gradient(135deg, rgba(91, 140, 133, 0.15) 0%, rgba(78, 159, 99, 0.12) 100%);
  border: 1px solid rgba(91, 140, 133, 0.35);
}

/* Инженерная схема профиля чаши: интерактивные слои */
.profile-zone {
  transition: all 0.25s ease;
}
.profile-zone:hover {
  filter: brightness(1.08);
  cursor: pointer;
}

/* Декоративные технические координаты */
.blueprint-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Интерактивные вкладки видов рыб */
.fish-tab-btn {
  transition: all 0.2s ease;
}
.fish-tab-btn.active {
  background-color: var(--color-forest);
  color: var(--color-milk);
  border-color: var(--color-forest);
}

/* Лайтбокс фотогалереи */
.gallery-card {
  position: relative;
  overflow: hidden;
}
.gallery-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card:hover img {
  transform: scale(1.04);
}

