body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #F5F9F2;
    color: #223324;
    font-weight: 600;
}

.header {
    background: linear-gradient(to bottom right, #bcf0bc 0%, #f5f9f2 100%);
    padding-bottom: 40px;
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.logo {
    font-weight: bold;
    color: #218c4a;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.nav {
    display: inline-flex; 
    gap: 20px; 
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #e7f3e2; 
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(33, 140, 74, 0.25);
  }
  .nav li a {
    display: block;
    color: #218c4a;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .nav li a:hover, .nav li a:focus {
    background-color: #218c4a;
    color: #fff;
  }

.header__banner {
    text-align: left;
    padding: 56px 0 22px 0;
}

.header__banner h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.header__banner .green {
    color: #218c4a;
}

.header__banner p {
    font-size: 1.07rem;
    margin-bottom: 18px;
    color: #495f43;
    max-width: 550px;
}

.header__buttons {
    display: flex;
    gap: 12px;
}

.btn {
    background: #218c4a;
    font-family: "Montserrat";
    font-weight: 600;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.22s;
    text-align: center;
    transition: transform 0.3s ease;
}

.btn--outline {
    background: transparent;
    color: #218c4a;
    border: 1.5px solid #218c4a;
}

.btn:hover {
    background: #145b2c;
    color: #fff;
    transform: scale(1.05);
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

.services {
    padding: 56px 0 48px 0;
    background: #fff;
}

.services h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 36px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: linear-gradient(to bottom right, #bcf0bc 0%, #f5f9f2 100%);
    border-radius: 11px;
    box-shadow: 0 1px 8px #d2e5d2;
    padding: 28px 22px;
    min-height: 160px;
    transition: box-shadow 0.2s;
    transition: transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 4px 14px #b6ddb6;
    cursor: pointer;
    transform: scale(1.05);
}

.service-card h3 {
    color: #218c4a;
    margin-bottom: 11px;
    font-size: 1.18rem;
}

.choose-us {
    background: #e7f3e2;
    padding: 48px 0 36px 0;
}

.choose-us h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 32px;
}

.choosepartner__grid {
    width: 100%; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    justify-content: stretch; 
}

.choose-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  justify-content: center; 
}

.choose-us__grid > :nth-child(5) {
  grid-column: 2 / 3;
}

.choose-us__grid > :nth-child(6) {
  grid-column: 3 / 4; 
}

.choose-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 12px;
    box-shadow: 0 1px 7px #d7edde;
    font-weight: 500;
    font-size: 1.02rem;
    text-align: center;
}

.contact {
    background: #fff;
    padding: 36px 0;
    text-align: center;
}

.contact .btn {
    margin-top: 16px;
}

.footer {
    background: #e7f3e2;
    padding: 26px 0 0 0;
    color: #223324;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    padding: 0 0 18px 0;
}

.footer__content div {
    min-width: 200px;
    font-size: 0.97rem;
}

.footer__bottom {
    text-align: center;
    padding: 16px 0;
    font-size: 0.94rem;
    color: #567559;
    border-top: 1px solid #b8c8ba;
    margin-top: 12px;
}

.modal {
    display: flex; 
    opacity: 0; 
    pointer-events: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.35);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
  }

  .modal.show {
    opacity: 1; 
    pointer-events: auto; 
  }

  .modal__content {
    background: #fff;
    margin: 10% auto;
    padding: 32px 22px;
    border-radius: 10px;
    box-shadow: 0 6px 22px #218c4a33;
    max-width: 50vw;
    text-align: center;
    position: relative;
  }
  
  .modal__close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 2rem;
    color: #218c4a;
    cursor: pointer;
  }
  

@media (max-width: 600px) {
    .container {
       align-items:center;
    }
    
    .modal__content {
      background: #fff;
      margin: 10% auto;
      padding: 32px 22px;
      border-radius: 10px;
      box-shadow: 0 6px 22px #218c4a33;
      max-width: 90vw;
      text-align: center;
      position: relative;
    }

    
    .choose-us__grid {
        grid-template-columns: 1fr; /* одна колонка */
      }
      .choose-us__grid > :nth-child(5),
      .choose-us__grid > :nth-child(6) {
        grid-column: auto;
        align-items: center;
        justify-content: center;
      }
  
    .header__top {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .header__banner h1 {
    font-size: 1.6rem;
  }

  .header__banner p {
    max-width: 100%;
    font-size: 1rem;
  }

  .header__buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
  }

  .services__grid, .choose-us__grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .service-card {
    min-height: auto;
    padding: 18px 14px;
  }

  .modal__content {
    width: 90% !important;
    padding: 20px 15px !important;
    margin: 20% auto !important;
  }

  .footer__content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .footer__content div {
    min-width: auto;
  }

  nav {
    text-align: center; /* горизонтальне центрування */
  }
  
  .nav {
    display: inline-flex; /* робимо список навігації стрічковим, для кращого контролю */
    gap: 20px; /* відступи між пунктами */
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #e7f3e2; /* світло-зелений фон для виділення */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(33, 140, 74, 0.25);
  }
  
  .nav li a {
    display: block;
    color: #218c4a;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .nav li a:hover, .nav li a:focus {
    background-color: #218c4a;
    color: #fff;
  }
}




a[href^="mailto:"] {
    color: #218c4a;
    text-decoration: none;
    font-weight: 600;
  }
  
  a[href^="mailto:"]:hover {
    text-decoration: underline;
    color: #145b2c;
  }

  .phone-link {
    color: #218c4a;
    font-weight: 600;
    text-decoration: none; /* прибираємо підкреслення */
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .phone-link:hover,
  .phone-link:focus {
    color: #145b2c;
    text-decoration: underline; /* або залишити без підкреслення */
  }