:root {
    --white: #ffffff;
    --teal: #30AC97;
    --mint: #72CAB7;
    --dark: #17827E;
    --light-mint: #E8F6F3;
    --gradient: linear-gradient(135deg, #30AC97, #17827E);
    --gradient-light: linear-gradient(135deg, #72CAB7, #30AC97);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 16px;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }

  body {
    background: var(--white);
    color: #111;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
  }

  /* ===== HEADER ===== */
  header {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo i {
    font-size: 1.8rem;
    color: var(--teal);
  }

  header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  header button,
  .header-button {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: inline-block;
  }

  header button:hover,
  .header-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    color: var(--white);
  }

  /* ===== HERO ===== */
  .hero {
    text-align: center;
    padding: 8rem 1rem;
    background: radial-gradient(circle at top left, #72CAB7, #30AC97 60%, #17827E);
    color: var(--white);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
  }

  .hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
  }

  .hero p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-size: 1.2rem;
    opacity: 0.95;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero button,
  .hero-button {
    background: var(--white);
    color: var(--dark);
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
  }

  .hero button.secondary,
  .hero-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.7);
  }

  .hero button:hover,
  .hero-button:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  }

  /* ===== Общие стили секций ===== */
  section {
    padding: 6rem 2rem;
  }

  .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
  }

  .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--gradient);
    margin: 0.8rem auto;
    border-radius: 5px;
  }

  /* ===== СЕНСОР ===== */
  #sensor {
    background: var(--light-mint);
  }

  .sensor-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 4rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
  }

  .sensor-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
  }

  .sensor-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
  }

  .sensor-image:hover {
    transform: translateY(-10px);
  }

  .sensor-section img {
    width: 380px;
    border-radius: var(--radius);
    display: block;
  }

  .sensor-info {
    max-width: 500px;
    color: #044743;
  }

  .sensor-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
  }

  .sensor-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .feature {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--teal);
  }

  .feature:hover {
    background: var(--gradient-light);
    color: white;
    transform: translateY(-5px);
  }

  .feature i {
    color: var(--teal);
    font-size: 1.2rem;
  }

  .feature:hover i {
    color: white;
  }

  /* ===== СЕРВИС И ДЭШБОРДЫ ===== */
  .service {
    background: var(--white);
  }

  .service-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  .service-info {
    flex: 1;
    min-width: 300px;
  }

  .service-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
  }

  .service-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
  }

  .service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .service-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-mint);
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  .service-feature:hover {
    transform: translateX(10px);
    background: var(--gradient-light);
    color: white;
  }

  .service-feature i {
    color: var(--teal);
    font-size: 1.5rem;
  }

  .service-feature:hover i {
    color: white;
  }

  .dashboard-preview {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
  }

  .dashboard-preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }

  .dashboard-preview img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
  }

  .dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(114, 202, 183, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .dashboard-preview:hover .dashboard-overlay {
    opacity: 1;
  }

  .demo-button {
    background: var(--white);
    color: var(--dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .demo-button:hover {
    background: var(--teal);
    color: var(--white);
    transform: scale(1.05);
  }

  /* ===== КАРТА МИРА ===== */
  .world-map {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius);
    padding: 4rem 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
  }

  .world-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
  }

  .map-content {
    position: relative;
    z-index: 1;
  }

  .map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: var(--light-mint);
  }

  #globalMap {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
  }

  .empty-state i {
    font-size: 4rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
  }

  .empty-state h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
  }

  .empty-state p {
    color: #666;
    max-width: 400px;
    margin-bottom: 2rem;
  }

  .map-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 1rem;
    opacity: 0.9;
  }

  /* ===== FAQ ===== */
  .faq {
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-item {
    background: #f5fefc;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s;
    border-left: 4px solid var(--mint);
  }

  .faq-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }

  .faq-item button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .faq-item button i {
    transition: transform 0.3s ease;
  }

  .faq-item.active button i {
    transform: rotate(180deg);
  }

  .faq-item p {
    padding: 0 1.5rem 1.5rem;
    display: none;
    color: #444;
  }

  .faq-item.active p {
    display: block;
    animation: fadeIn 0.4s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ===== КОНТАКТЫ ===== */
  .contact {
    background: var(--light-mint);
    text-align: center;
    padding: 6rem 1rem;
  }

  .contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 2rem auto;
  }

  .contact input, .contact textarea {
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .contact input:focus, .contact textarea:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12), 0 0 0 2px var(--mint);
  }

  .contact button {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    box-shadow: var(--shadow);
  }

  .contact button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 1rem;
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
  }

  .footer-links a:hover {
    color: var(--mint);
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

  .social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: 0.3s;
  }

  .social-icons a:hover {
    color: var(--mint);
    transform: translateY(-5px);
  }

  @media (max-width: 768px) {
    .hero h2 {
      font-size: 2.5rem;
    }
    
    .sensor-section {
      flex-direction: column;
      padding: 2rem;
    }

    .sensor-section img {
      width: 100%;
      max-width: 350px;
    }

    .features-grid {
      grid-template-columns: 1fr;
    }
    
    .hero-buttons {
      flex-direction: column;
      align-items: center;
    }
    
    .hero button {
      width: 100%;
      max-width: 300px;
    }

    .service-content {
      flex-direction: column;
    }

    .map-stats {
      gap: 1.5rem;
    }

    .stat-number {
      font-size: 2rem;
    }
  }

  /* Leaflet custom styles */
  .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .leaflet-popup-content {
    margin: 15px 20px;
    font-family: 'Poppins', sans-serif;
  }

  .custom-popup {
    text-align: center;
  }

  .popup-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
  }

  .popup-status {
    color: #e74c3c;
    font-weight: 500;
  }