/* (<= 1024px) */
@media (max-width: 1024px) {
  .header-text-content h1 {
    font-size: 2.4rem;
  }
  .header-text-content p {
    font-size: 1.05rem;
  }
  .accordion {
    padding: 30px 1.5rem;
  }
  .about-container {
    gap: 2rem;
  }
  .accordion-item {
    max-width: 90%;
  }
}

/*(<= 768px)*/
@media (max-width: 768px) {
  .header-content {
    padding: 0 1.5rem;
  }

  .header-text {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
  }

  .header-text-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .header-text-content p {
    font-size: 1rem;
  }

  .contact-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-text {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .about-image {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .about-image img {
    max-width: 90%;
    height: auto;
    border-radius: 12px;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    position: relative;
    display: inline-block;
  }

  .about-text h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--green-dark, #007a36);
    border-radius: 3px;
  }

  .services {
    padding: 80px 6%;
  }

  .services h2 {
    font-size: 2.2rem;
  }

  .accordion {
    max-width: 90%;
    padding: 30px 1.5rem;
  }

  .accordion-btn {
    font-size: 1.2rem;
    padding: 1.5rem;
  }

  .accordion-left, .accordion-right {
    flex: 1 1 100%;
    text-align: center;
  }

  .accordion-right img {
    width: 160px;
    height: 160px;
  }

  .contact {
    padding: 80px 6%;
  }

  .contact h2 {
    font-size: 2.4rem;
  }

  .contact p {
    font-size: 1rem;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .social-links {
    order: 10; /* щоб вони завжди були після всіх контактів */
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #00b061, #008040);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 128, 64, 0.4);
    transition: all 0.3s ease;
  }

  .social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 128, 64, 0.5);
  }
}

/*(<= 480px)*/
@media (max-width: 480px) {
  .header-content {
    padding: 0 1rem;
    height: 70px;
  }

  .header-text-content h1 {
    font-size: 1.6rem;
  }

  .header-text-content p {
    font-size: 0.9rem;
  }

  .contact-btn {
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
  }

  .about-container {
    padding: 1.5rem 1rem;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text h2::after {
    width: 55px;
    height: 3px;
    bottom: -8px;
  }

  .accordion-btn {
    font-size: 1rem;
    padding: 1.2rem;
  }

  .accordion-right img {
    width: 140px;
    height: 140px;
  }

  .contact h2 {
    font-size: 1.8rem;
  }

  .contact p {
    font-size: 0.9rem;
  }

  .contact-card {
    width: 100%;
    padding: 1.5rem;
  }
}

/*(<= 360px)*/
@media (max-width: 360px) {
  .header-text-content h1 {
    font-size: 1.4rem;
  }

  .header-text-content p {
    font-size: 0.85rem;
  }

  .contact-btn {
    padding: 0.6rem 1.6rem;
    font-size: 0.85rem;
  }
}

/*(<= 992px)*/
@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }

  .nav a:hover {
    color: #3cb371;
  }

  .burger {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    position: relative;
  }

  .burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }
}


section {
  margin: 0;
  padding: 0;
  border: 0;
}

section > * {
  margin-top: 0;
  margin-bottom: 0;
}

section:first-of-type {
  margin-top: 0;
}
section:last-of-type {
  margin-bottom: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: #fff;
}

.header,
.about,
.services,
.contact {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

section {
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .contact-card .map-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #00b061, #008040);
    box-shadow: 0 0 15px rgba(0, 128, 64, 0.4);
    transition: all 0.3s ease;
  }

  .contact-card .map-link i {
    color: #fff;
    font-size: 1.4rem;
  }

  .contact-card .map-link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 128, 64, 0.5);
  }

  .contact-card a {
    display: block;
    text-align: center;
    font-weight: 600;
    color: #006b3b;
    text-decoration: none;
    line-height: 1.4;
  }

  .contact-card a:hover {
    text-decoration: underline;
  }
}

