/* === ОСНОВА === */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f9faf8;
  color: #2e2e2e;
}

/*h1, h2 {
  font-family: 'Playfair Display', serif;
}*/

h1 {
  font-family: 'Marck Script', cursive;
  font-size: 60px; /*font-size: 36px; */
}

h2 {
  font-family: 'Playfair Display', serif;
}

.apigraf {
  font-family: 'Playfair Display', cursive;
  font-size: small; color: #09a155;
  padding: 10px 10px;
  text-align: right;
  max-width: 1100px;
  margin: auto;
  
}

/* === HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgb(225, 240, 202);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
}

header a {
  margin-left: 20px;
  text-decoration: none;
  color: #2e2e2e;
  font-weight: 500;
  transition: .3s;
}

header a:hover {
  color: #4f8a4f;;
}

/* === HERO === */
.hero {
  height: 45vh; /*height: 60vh; */
  background: url("../img/hero.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  background: rgba(0, 0, 0, 0.30);
  color: white;
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(1px);
}

/* === КНОПКИ === */
.button {
  display: inline-block;
  margin-top: 20px;
  background: #6ba368;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: #588f55;
  transform: scale(1.05);
}

/* === СЕКЦИИ === */
.section {
  padding: 10px 10px;
  text-align: center;
  max-width: 1100px;
  margin: auto;
  
}

.section h2 {
  font-size: 32px;
  margin-bottom: 25px;
}

/* === СЕЗОНЫ === */
.seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 15px;
}

.card {
  height: 250px;
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: white;
  background-size: cover;
  background-position: center;
  font-size: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.card:hover {
  transform: scale(1.05);
}

/* === ABOUT === */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #eae8e2;
  padding: 2px;
  border-radius: 15px;
}

.about img {
  border: 5px solid #9acb96;
  border-radius: 10px;
  margin: auto auto;
  display: block;
  width: 100%;
}

.about p {
  font-family: 'Playfair Display', serif;
   font-size: 20px; 
}

/* === ГАЛЕРЕЯ === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  /* grid-template-columns: repeat(auto-fit, minmax(180px,1fr));*/
  gap: 10px;
}

.gallery img {
  width: 100%;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 5px solid #dad7d5;

  /* анимация */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.gallery img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* подписи */
.photo {
  position: relative;
}

.photo span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  font-size: 18px;
  color: white;
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 10px 10px;
  opacity: 0;
}

.photo:hover span {
  opacity: 1;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

/* стрелки */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  color: #6ba368;
}

/* === КНОПКА НАВЕРХ === */
#toTop {
  position: fixed;
  bottom: 40px;
  right: 20px;
  padding: 10px 15px;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  background: #7ab477;
  color: white;
  cursor: pointer;
  display: none;
}

/* === ТЕКСТ === */
.text {
  background: #caf0c7;
}

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

/* === АНИМАЦИЯ === */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 28px;
  }
}

.filters button.active {
  background: #6ba368;
  color: white;
}



footer {
  padding: 10px;
  text-align: center;
  background: #c0f5bf;
  /*border: 5px solid #9acb96;*/
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 1100px;
  margin: 20px auto;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    text-align: center;
  }

  header div {
    display: flex;
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 40vh;
  }

  .hero-content {
    padding: 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero h2 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {    /*  в место padding: 80px 20px;*/
  .section {
    padding: 40px 15px;
  }
}

@media (max-width: 768px) {
  .card {
    height: 180px;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lightbox img {
    max-width: 95%;
    max-height: 70%;
  }

  .prev, .next {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  #toTop {
    bottom: 20px;
    right: 15px;
    padding: 8px 12px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .about {
    gap: 15px;
  }

  .about img {
    width: 100%;
  }
}




