/* Общие стили для сайта Дренаж Пласт */
:root {
  /* Основная палитра */
  --primary-color: #0e7c86; /* морской синий - символизирует воду */
  --secondary-color: #4eba6f; /* зеленый - символизирует экологичность */
  --accent-color: #f39237; /* оранжевый акцент для призывов к действию */
  --dark-color: #2d3142; /* темный для текста */
  --light-color: #f7f9fb; /* светлый для фона */
  --gray-color: #e5e5e5; /* серый для разделителей */
  
  /* Тени и эффекты */
  --box-shadow: 0 8px 24px rgba(13, 39, 80, 0.15);
  --transition: all 0.3s ease;
}

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка сайта */
.header {
  background-color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-icon {
  font-size: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

/* Мобильное меню */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-color);
}

/* Основное содержимое */
.main {
  min-height: calc(100vh - 200px);
  padding: 60px 0;
}

/* Секции */
.section {
  margin-bottom: 80px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--dark-color);
}

/* Карточки услуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  height: 80px;
  font-size: 2.5rem;
}

.service-content {
  padding: 25px;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-text {
  color: var(--dark-color);
  margin-bottom: 15px;
}

/* Секция "Почему мы" */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  padding: 25px;
  border-radius: 12px;
  background-color: white;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature-item:hover {
  transform: scale(1.05);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(14, 124, 134, 0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(78, 186, 111, 0.2);
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(243, 146, 55, 0.2);
}

/* Контейнер с градиентом - уникальная фишка сайта */
.gradient-container {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 60px 0;
  border-radius: 20px;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}

.gradient-container::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  animation: bubble 15s infinite ease-in-out;
}

.gradient-container::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  animation: bubble 12s infinite ease-in-out 3s;
}

@keyframes bubble {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.5); }
  100% { transform: translate(0, 0) scale(1); }
}

.wave-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-decoration svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 70px;
}

.wave-decoration .shape-fill {
  fill: var(--light-color);
}

/* О компании страница */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  height: 400px;
  background-color: var(--primary-color);
  border-radius: 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow);
}

.about-image::after {
  content: "💧";
  font-size: 120px;
  opacity: 0.8;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline {
  margin-top: 40px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.timeline-item {
  padding-left: 30px;
  position: relative;
  margin-bottom: 25px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.timeline-date {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Контактная страница */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.contact-text strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.contact-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-color: var(--gray-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
}

.contact-map::after {
  content: "📍";
  opacity: 0.8;
}

/* Подвал сайта */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 10px;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-link a:hover {
  color: var(--accent-color);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Анимация пузырьков воды - уникальная фишка */
.water-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.bubble {
  position: absolute;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(14, 124, 134, 0.1);
  animation: rise 10s infinite ease-in;
  opacity: 0;
}

.bubble:nth-child(1) {
  width: 40px;
  height: 40px;
  left: 10%;
  animation-duration: 8s;
}

.bubble:nth-child(2) {
  width: 25px;
  height: 25px;
  left: 20%;
  animation-duration: 10s;
  animation-delay: 1s;
}

.bubble:nth-child(3) {
  width: 35px;
  height: 35px;
  left: 35%;
  animation-duration: 7s;
  animation-delay: 2s;
}

.bubble:nth-child(4) {
  width: 50px;
  height: 50px;
  left: 50%;
  animation-duration: 11s;
  animation-delay: 0s;
}

.bubble:nth-child(5) {
  width: 30px;
  height: 30px;
  left: 65%;
  animation-duration: 9s;
  animation-delay: 3s;
}

.bubble:nth-child(6) {
  width: 45px;
  height: 45px;
  left: 80%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.bubble:nth-child(7) {
  width: 35px;
  height: 35px;
  left: 90%;
  animation-duration: 10s;
  animation-delay: 4s;
}

@keyframes rise {
  0% {
    bottom: -100px;
    opacity: 0;
  }
  30% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    bottom: 100%;
    opacity: 0;
  }
}

/* Уникальный индикатор скролла */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  z-index: 1000;
  transition: width 0.2s;
}

/* Медиа-запросы */
@media (max-width: 992px) {
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    height: 300px;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .header {
    padding: 15px 0;
  }
  
  .main {
    padding: 40px 0;
  }
  
  .section {
    margin-bottom: 50px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .gradient-container {
    padding: 40px 0;
    margin: 50px 0;
  }
}

/* Темная тема (готовность к будущему) */
@media (prefers-color-scheme: dark) {
  :root {
    --light-color: #1a1f2b;
    --dark-color: #f7f9fb;
    --gray-color: #363b49;
  }
  
  body {
    background-color: var(--light-color);
  }
  
  .service-card,
  .feature-item,
  .contact-card,
  .header {
    background-color: var(--gray-color);
  }
}