* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #f9f7f2;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.logo {
  width: 150px;
  height: 60px;
  object-fit: contain;
}
.brand h1 {
  margin: 0;
  font-size: 1.2rem;
}
.brand p {
  margin: 2px 0 0;
  color: #666;
}
.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
}
.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.main-nav li {
  white-space: nowrap;
}
.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.social-icons a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-icons a.facebook { background: #1877f2; }
.social-icons a.instagram { background: radial-gradient(circle at 30% 30%, #feda75 0%, #d62976 45%, #962fbf 60%, #4f5bd5 90%); }
.social-icons a.youtube { background: #ff0000; }
.social-icons a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.mobile-menu-btn {
  display: none;
  padding: 10px 16px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
}
.slider {
  min-height: 420px;
  overflow: hidden;
  position: relative;
}
.swiper {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}
.slide-item {
  position: relative;
  min-height: 420px;
  width: 100%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slide-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.slider-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}
.slider-controls button {
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
}
.slider-dots {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.slider-dots button.active {
  background: #fff;
}
.slide-content {
  position: relative;
  max-width: 700px;
  color: #fff;
  text-align: center;
  z-index: 1;
}
.slide-content h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}
.slide-content p {
  margin: 0;
  font-size: 1.05rem;
}
.section {
  padding: 60px 0;
}
.section h2 {
  margin: 0 0 30px;
  font-size: 2rem;
  text-align: center;
}
.group-grid,
.gallery-grid {
  display: grid;
  gap: 24px;
}
.group-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}
.group-card,
.profile-card,
.gallery-item,
.contact-grid > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(50, 50, 93, 0.08);
  padding: 24px;
}
.group-card {
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.group-card h3 {
  margin: 0;
  font-size: 1.2rem;
}
.group-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  background: #333;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.group-link:hover {
  opacity: 0.9;
}
.profile-image {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 24px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}
.gallery-item a {
  display: block;
}
  margin-bottom: 12px;
}
.group-card p {
  margin: 0 0 16px;
  color: #555;
}
.group-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.group-card li {
  margin-bottom: 8px;
}
.profile-section {
  background: linear-gradient(180deg, #fff 0%, #f4f3ef 100%);
}
.profile-card {
  max-width: 900px;
  margin: 0 auto;
}
.profile-card p {
  margin: 0;
  line-height: 1.8;
}
.gallery-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}
.gallery-item {
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  border-radius: 18px;
  height: 240px;
  object-fit: cover;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.contact-grid h3 {
  margin-top: 0;
}
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d7d3ca;
  border-radius: 12px;
  background: #fff;
}
.contact-form button {
  width: fit-content;
  padding: 14px 30px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.contact-feedback {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 16px 18px;
  background: #e7f7e8;
  border: 1px solid #b9e3b9;
  border-radius: 12px;
  color: #1a5e24;
}
.footer {
  background: #222;
  color: #ddd;
  padding: 24px 0;
}
.footer p {
  margin: 0;
  text-align: center;
}
@media (max-width: 960px) {
  .group-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
    position: relative;
  }
  .brand {
    order: 1;
  }
  .social-icons {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }
  .main-nav {
    display: none;
    width: 100%;
    margin-top: 12px;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .mobile-menu-btn {
    display: inline-flex;
    order: 3;
  }
}
