:root {
  --primary-color: #8bc34a;
  --secondary-color: #689f38;
  --text-color: #eee;
  --background-color: #2c2c2c;
  --header-bg: #2e7d32;
  --nav-bg: #1b5e20;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

header {
  background: var(--header-bg);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
}

.header-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: 300px;
  background-image: url("banner.png");
  background-size: cover;
  background-color: #B9EDB5;
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.header-banner h1 {
  font-size: 2.5rem;
  margin: 0;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.header-banner p {
  font-size: 1.2rem;
  margin-top: 10px;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

nav {
  background: var(--nav-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}

nav ul {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  display: block;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background: var(--primary-color);
  color: var(--background-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px 15px;
  margin-left: 0;
}

.menu-toggle span {
  background: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(5px); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-5px); }

main {
  max-width: 1000px;
  margin: auto;
  padding: 0 25px;
}

h2, h3 {
  color: var(--primary-color);
}

ul {
  padding-left: 20px;
}

.table-wrapper {
  max-width: 1000px;
  margin: 0 auto 20px;
  overflow: visible;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  white-space: normal;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.gallery a {
  display: block;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  background: #222;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery a:hover img,
.gallery a:focus img {
  transform: scale(1.05);
}

#contact a,
.phone-link {
  color: var(--primary-color);
  text-decoration: none;
}

#contact a:hover,
#contact a:focus,
.phone-link:hover,
.phone-link:focus {
  color: var(--secondary-color);
  text-decoration: underline;
}

.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 50px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-links a img {
  width: 42px;
  height: 42px;
  pointer-events: none;
  image-rendering: crisp-edges;
}

.social-links a:hover,
.social-links a:focus {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.1);
}

section[id]::before {
  content: "";
  display: block;
  height: 60px;
  visibility: hidden;
}

@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--nav-bg);
    z-index: 1000;
    border-top: 1px solid var(--primary-color);
    transition: max-height 0.3s ease;
  }

  nav ul.active {
    max-height: 300px;
  }

  nav a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--primary-color);
  }

  .menu-toggle {
    display: flex;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  p, li { font-size: 1rem; }
}