/* ===== Загальні стилі ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f7f9fb;
  color: #222;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 600;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Хедер ===== */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)),
              url('https://upload.wikimedia.org/wikipedia/commons/6/68/Ivano-Frankivsk_Ratusha.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(0, 0, 0, 0.4);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffd34e;
}

/* ===== Меню для мобільних ===== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.9);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    text-align: right;
    padding: 1rem;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* ===== Hero content ===== */
.hero-content {
  text-align: center;
  margin-top: auto;
  margin-bottom: 10vh;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: #ffd34e;
  color: #222;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  transition: all 0.3s;
}

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

.btn.secondary {
  background: #fff;
  color: #333;
}

/* ===== Секції ===== */
section {
  padding: 4rem 8%;
  text-align: center;
}

.about-preview {
  background: white;
}

.highlights {
  background: #f1f1f1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  margin-top: 1rem;
}

.card p {
  padding: 0 1rem 1.5rem;
}

/* ===== Анімації при скролі ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Футер ===== */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
