* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

/* HEADER  */

header {
  padding: 10px 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.min-logo {
  width: 70px;
}

.nav ul {
  display: flex;
  gap: 40px;
}

.nav ul li {
  list-style: none;
  font-weight: 500;
  font-size: 20px;
  font-family: "League Spartan", sans-serif;
}

.nav ul li a {
  color: #565e5f;
}

.nav ul li:not(:last-child) a:hover {
  color: #3aabb8;
  transition: color 0.3s ease;
}

.call-btn {
  padding: 10px 20px;
  background-color: #3aabb8;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  width: 180px;
  font-size: 20px;
  font-weight: 500;
  font-family: "League Spartan", sans-serif;
}

.phone {
  color: #fff;
  font-size: 15px;
  margin-right: 7px;
}

.desktop-only {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

.nav-toggle {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  width: 34px;
  height: 26px;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #565e5f;
  border-radius: 3px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

@media (max-width: 860px) {
  header {
    justify-content: space-between;
    padding: 10px 16px;
  }

  .burger {
    display: flex;
    order: 2;
  }

  .desktop-only {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 16px;
  }

  .nav ul li {
    font-size: 20px;
  }

  .nav ul a {
    display: block;
    padding: 14px 6px;
  }

  .mobile-only {
    display: block;
    margin-top: 10px;
  }

  .mobile-only .call-btn {
    width: 180px;
    padding: 14px;
    font-size: 18px;
    color: white;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 340px;
  }

  .nav-toggle:checked + .burger span:nth-child(1) {
    transform: translateY(11.5px) rotate(45deg);
  }

  .nav-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .burger span:nth-child(3) {
    transform: translateY(-11.5px) rotate(-45deg);
  }
}

/* MAIN */

h1 {
  font-size: 36px;
  font-weight: 700;
  font-family: "League Spartan", sans-serif;
  text-align: center;
  margin-top: 150px;
}

main span {
  color: #3aabb8;
}

#realisations-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.realisation-month {
  margin: 60px 0;
}

.realisation-month h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  text-transform: capitalize;
  text-align: center;
  color: #3aabb8;
}

.realisation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.realisation-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;

  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.realisations-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 30px;
  margin-top: 30px;
  align-items: center;
}

.filter-btn {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #999;
}

.filter-btn.active {
  background: #111;
  color: white;
  border-color: #111;
}

.realisation-month {
  margin: 40px 30px;
}

.realisation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px);
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.realisation-item img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.realisation-item img.loaded {
  opacity: 1;
  transform: scale(1);
}

.realisations-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: 30px;
  margin-top: 30px;
  align-items: center;
}

.month-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;

  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);

  background: #ffffff;
  color: #333;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border 0.2s ease;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.filter-btn:active {
  transform: scale(0.96);
}

.filter-btn.active {
  background: #111;
  color: white;
  border-color: #111;
  transform: scale(1.05);
}

#sort-toggle {
  font-weight: 600;
}

/* FOOTER */

footer {
  background-color: #565e5f;
}

.footer-content {
  display: flex;
}

.left-block {
  width: 33.33%;
  gap: 20px;
  padding: 30px;
}

.left-block p {
  width: 50%;
  color: rgba(255, 255, 255, 0.63);
  font-family: "League Spartan", sans-serif;
  margin-bottom: 15px;
}

.networks ul {
  display: flex;
  gap: 20px;
}

.networks ul li {
  list-style: none;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.networks ul li i {
  font-size: 16px;
}

.networks ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-3px);
  cursor: pointer;
}

.middle-block ul li a:hover,
.right-block ul li:hover {
  color: white;
  transform: translateY(-3px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-block {
  display: flex;
  width: 90%;
}

.middle-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 70%;
}

.middle-block ul {
  margin-top: 15px;
  list-style: none;
}

.middle-block ul li a {
  line-height: 30px;
  color: rgba(255, 255, 255, 0.63);
  font-family: "League Spartan", sans-serif;
  width: fit-content;
}

.right-block {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.right-block ul {
  margin-top: 15px;
}

.right-block ul li {
  list-style: none;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.63);
  font-family: "League Spartan", sans-serif;
  width: fit-content;
}

.middle-block h4,
.right-block h4 {
  color: white;
  font-size: 20px;
  font-family: "League Spartan", sans-serif;
}

@media (max-width: 1310px) {
  .footer-content {
    display: block;
  }
  .left-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .left-block p {
    width: 100%;
    text-align: center;
  }
  .middle-block {
    align-items: center;
    padding-top: 40px;
  }
}
