:root {
  --color-primary: #b71c1c;
  --color-primary-soft: #e57373;
  --color-bg: #faf9f7;
  --color-card: #ffffff;
  --color-text: #2d2d2d;
  --color-muted: #5c5c5c;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--color-card);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
header:hover { box-shadow: var(--shadow-md); }
header img { height: 52px; display: block; }

nav { display: flex; gap: 28px; }
nav a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
nav a:hover { color: var(--color-primary); }
nav a:hover::after { width: 100%; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}
.burger div {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--transition), opacity var(--transition);
}
.burger.active div:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active div:nth-child(2) { opacity: 0; }
.burger.active div:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  text-align: center;
  padding: 70px 24px 80px;
  background: linear-gradient(165deg, #fff 0%, #fef5f5 40%, var(--color-bg) 100%);
  position: relative;
}
.hero-heart {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--color-primary);
  animation: heart-pulse 1.4s ease-in-out infinite;
}
.hero-heart svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(183, 28, 28, 0.25));
}
@keyframes heart-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.92; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-heart { animation: none; }
}
.hero h1 {
  color: var(--color-primary);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.hero .slogan {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: normal;
  margin: 16px 0;
  color: var(--color-muted);
}
.hero-desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Sections */
.section {
  max-width: 1000px;
  margin: 48px auto;
  padding: 0 24px;
}
.section h2 {
  color: var(--color-primary);
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}
.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-soft));
  border-radius: 2px;
}

.info-box {
  background: var(--color-card);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.info-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.info-box p { margin-bottom: 10px; }
.info-box p:last-child { margin-bottom: 0; }

/* Посилання на документ (Word) */
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #2b579a 0%, #1e3a6e 100%);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.doc-link:hover {
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.doc-link-icon {
  display: flex;
  flex-shrink: 0;
}
.doc-link-icon svg {
  width: 22px;
  height: 22px;
}
.doc-link-format {
  font-size: 0.85em;
  opacity: 0.9;
}

/* Контакти */
.contacts-box .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.contacts-box .contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  font-size: 1.2em;
  flex-shrink: 0;
}
.contacts-box a {
  color: var(--color-primary);
  font-weight: 600;
}
.contacts-box a:hover {
  text-decoration: underline;
}

/* Галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  justify-items: center;
}
.gallery .thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery .thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(183, 28, 28, 0.15);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery .thumb-wrap:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}
.gallery .thumb-wrap:hover::after { opacity: 1; }
.gallery .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Лайтбокс — анимация */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  transition: background 0.35s ease, opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
}
.lightbox.is-open {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  opacity: 1;
  visibility: visible;
}
.lightbox.is-open .lightbox-content {
  opacity: 1;
  transform: scale(1);
}
.lightbox-content {
  max-width: 92%;
  max-height: 92%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
#lightbox-img,
#lightbox-video {
  display: none;
}
#lightbox-img.visible,
#lightbox-video.visible {
  display: block;
}
.lightbox .close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  font-weight: 300;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox .close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.08);
}

/* Кнопки перехода в лайтбоксі */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev.hidden,
.lightbox-next.hidden {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 26px; }
}

/* Футер */
footer {
  margin-top: 64px;
  padding: 28px 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
}

/* Адаптив */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: var(--color-card);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
  }
  nav.active { display: flex; }
  .burger { display: flex; }
  .hero { padding: 50px 20px 56px; }
  .hero-heart svg { width: 48px; height: 48px; }
  .hero .slogan { font-size: 1.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
