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

body {
  font-family: "cormorantgaramond", "cormorant garamond", "serif";
  font-size: 20px;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
  background: url(./images/background1.png ) top left/250px 250px repeat;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.37); /* светлая вуаль */
  z-index: -1; /* за всем контентом */
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(142, 166, 155, 0.95);
  padding: 10px 30px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s, transform 0.2s;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

nav ul li a:hover {
  color: black;
  transform: translateY(-2px);
}

p {
  font-size: 1.3rem;
}

.menu-toggle {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: white;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  animation: fadeInUp 1.5s ease;
}

.profile-img {
  width: 400px;
  border-radius: 10%;
  margin-bottom: 20px;
  margin-top: 20px;
  border: 4px solid rgb(142,166,155);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.hero-photos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
/* --- Карусель hero (только для блока hero) --- */
.carousel-hero {
  position: relative;
  overflow: hidden;
  max-width: 320px;
  margin: auto;
}

.carousel-hero .carousel-hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-hero .carousel-hero-item {
  min-width: 100%;
  text-align: center;
}

.carousel-hero .carousel-hero-item img {
  width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  border: 4px solid rgb(142,166,155);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-top: 30px;
}

/* Кнопки hero */
.carousel-hero .carousel-prev,
.carousel-hero .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(142,166,155);
  color: black;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 50%;
  opacity: 0.9;
  transition: background 0.3s, color 0.3s;
  z-index: 5;
}
.carousel-hero .carousel-prev:hover,
.carousel-hero .carousel-next:hover {
  background: black;
  color: white;
}
.carousel-hero .carousel-prev { left: 0px; }
.carousel-hero .carousel-next { right: 0px; }

/* --- На десктопе hero перестаёт быть слайдером --- */
@media (min-width: 851px) {
  .carousel-hero {
    max-width: 100%;
  }
  .carousel-hero .carousel-hero-track {
    display: flex !important;
    gap: 20px;
    justify-content: center;
    transform: none !important;
  }
  .carousel-hero .carousel-hero-item {
    min-width: auto;
  }
  .carousel-hero .carousel-prev,
  .carousel-hero .carousel-next {
    display: none;
  }
}


.hero-photos img {
  width: 250px;      /* одинаковая ширина */
  height: 350px;     /* одинаковая высота */
  object-fit: cover; /* обрезает лишнее и красиво вписывает */
  border-radius: 15px;
  border: 4px solid rgb(142,166,155);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


blockquote {
  font-style: italic;
  color: rgb(142,166,155);
  margin-bottom: 20px;
}

.btn {
  background: rgb(142,166,155);
  color: #000;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s;
  display: inline-block;
}

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

/* Sections */
section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  position: relative;
}
section h2::after {
  content: "";
  width: 80px;
  height: 3px;
  background: rgb(118, 150, 135);
  display: block;
  margin: 10px auto 0;
  border-radius: 3px;
}

/* --- Карусель --- */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  width: 1000px;
}

.carousel-item {
  min-width: 100%;
  background: #ffffff;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  font-size: 1.2rem;
  transition: transform 0.3s;
  border: 4px solid rgb(142,166,155);
}
.carousel:hover .carousel-item img {
  transform: scale(1.05);
}

/* Новые кнопки карусели */
.carousel-next,
.carousel-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(142,166,155);
  color: black;
  border: none;
  cursor: pointer;
  font-size: 24px;
  width: 35px;       /* фиксированная ширина */
  height: 35px;      /* фиксированная высота */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%; /* делает круг */
  opacity: 0.9;
  transition: background 0.3s, color 0.3s;
  z-index: 5;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: black;
  color: white;
}

.carousel-prev { left: 5px; }
.carousel-next { right: 5px; }

/* --- Стили для кнопок лайтбокса (остались прежние) --- */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  z-index: 2001;
}
.prev { left: 30px; }
.next { right: 30px; }

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
  background: rgba(142,166,155,0.1);
  padding: 25px;
  border-radius: 15px;
}

input, textarea {
  padding: 12px;
  border: 2px solid rgb(142,166,155);
  border-radius: 8px;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: black;
}

button {
  background: rgb(142,166,155);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background: black;
  color: white;
}

/* Footer */
footer {
  text-align: center;
  background: #ffffff;
  padding: 20px;
  margin-top: 40px;
}

#social img {
  width: 40px;
  margin: 5px;
  transition: transform 0.3s;
}

#social img:hover {
  transform: scale(1.2);
}

/* Анимации */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Анимации при загрузке --- */
.fade-load {
  opacity: 0;
  transform: translateY(30px);
  animation: loadFade 1s ease forwards;
  font-size: 1.2rem;
}
.fade-load:nth-child(1) { animation-delay: 0.2s; }
.fade-load:nth-child(2) { animation-delay: 0.4s; }
.fade-load:nth-child(3) { animation-delay: 0.6s; }
.fade-load:nth-child(4) { animation-delay: 0.8s; }

@keyframes loadFade {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Универсальное изображение --- */
img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* --- Карусель --- */
.carousel-item img {
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgb(142,166,155);
}

/* --- Галерея --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 15px;
}
.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}
.gallery img:hover { transform: scale(1.05); }

/* --- Лайтбокс --- */
.lightbox {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.9);
  justify-content:center;
  align-items:center;
  flex-direction:column;
  z-index: 2000;
}
.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
}
.close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.lightbox-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 0 40px;
}

/* Лайтбокс текст */
.lightbox-caption {
  margin-top: 20px;
  text-align: center;
  color: white;
}
.lightbox-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.lightbox-desc {
  font-size: 1rem;
}

/* --- Факты --- */
.facts-card {
  background: rgba(142,166,155,0.1);
  padding: 30px;
  border-radius: 15px;
  border: 2px solid rgb(142,166,155);
  max-width: 800px;
  margin: auto;
  text-align: left;
}
.facts-card h3 {
  margin-top: 5px;
  margin-bottom: 10px;
  color: rgb(60,80,70);
  font-size: 1.5rem;
}
.facts-list {
  margin-top: 15px;
  padding-left: 20px;
  font-size: 1.3rem;
}
.facts-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Мобильная адаптация --- */
@media (max-width: 850px) {
  p {
    font-size: 1.1rem;
  }
  header {
    justify-content: center;
    padding: 0px;
    gap: 10px;
  }
  .logo {
    font-size: 1.4rem;
  }
  .menu-toggle {
    display: block;
  }
  .fade-load{
    font-size: 1.1rem;
  }
  nav ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(142, 166, 155, 0.9);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
  }
  nav ul.show {
    display: flex;
  }
  nav ul li {
    margin: 5px 0;
  }
  nav ul li a {
    font-size: 1rem;
  }
  .hero {
    height: auto;
    padding: 40px 20px;
  }
  .profile-img {
    width: 300px;
    margin-bottom: 0px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 0px;
  }
  blockquote {
    font-size: 0.95rem;
  }
  .carousel-item img {
    max-height: 300px;
  }
  .facts-card {
    padding: 20px;
  }
  .facts-card h3 {
    font-size: 1.5rem;
  }
  .facts-list {
    font-size: 1.2rem;
  }
}
