/* ==========================================================================
   ЛЬОША HUB — СІЛЬСЬКИЙ ЛЮКС & СКЕВОМОРФІЗМ 2000-Х (Y2K VILLAGE CORE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600;1,700&family=Lora:ital,wght@0,500;0,600;1,500&family=Russo+One&family=VT323&display=swap');

:root {
  /* Скевоморфна палітра 2000-х + Колгоспний оксамит */
  --carpet-crimson: #7e0f14;
  --carpet-deep: #4d070b;
  --gold-metallic-1: #fff1a8;
  --gold-metallic-2: #d4af37;
  --gold-metallic-3: #947118;
  --gold-metallic-4: #543f07;
  
  --tape-blue-1: #1e62a8;
  --tape-blue-2: #3488dc;
  --tape-blue-dark: #123d6b;

  --bg-linen: #f4eee2;
  --bg-parchment: #e9deca;
  --bg-card: #fefcf8;
  --bg-dark-wood: #1e130c;
  
  --tractor-green: #296025;
  --tractor-green-bright: #3ea138;
  --clay-terracotta: #a8422b;
  
  --text-charcoal: #1a120c;
  --text-earth: #423226;
  --text-muted: #6f5f52;
  --text-light: #fffdf7;

  /* Шрифти */
  --font-serif-hero: 'Cormorant Garamond', Georgia, serif;
  --font-serif-body: 'Lora', Georgia, serif;
  --font-cringe-y2k: 'Russo One', Impact, sans-serif;
  --font-counter: 'VT323', 'Courier New', monospace;

  /* 2000s Глянцеві тіні та відблиски */
  --gloss-highlight: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.2) 48%, rgba(255,255,255,0) 52%, rgba(255,255,255,0.15) 100%);
  --shadow-bevel: inset 1px 1px 2px rgba(255,255,255,0.8), inset -1px -1px 2px rgba(0,0,0,0.5);
  --shadow-deep-carpet: 0 12px 30px rgba(77, 7, 11, 0.35), 0 4px 10px rgba(0,0,0,0.15);
}

/* Скидання та база */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-linen);
  /* Фактура справжнього настінного килима з геометричними орнаментами */
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(126, 15, 20, 0.1) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(126, 15, 20, 0.03) 0, rgba(126, 15, 20, 0.03) 3px, transparent 3px, transparent 12px),
    repeating-linear-gradient(-45deg, rgba(212, 175, 55, 0.04) 0, rgba(212, 175, 55, 0.04) 3px, transparent 3px, transparent 12px),
    linear-gradient(#f4eee2, #f4eee2);
  color: var(--text-charcoal);
  font-family: var(--font-serif-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 5rem;
}

/* СТИЛІ ДЛЯ SVG ІКОНОК */
.cringe-svg {
  display: inline-block;
  vertical-align: middle;
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cringe-svg-lg {
  width: 2.8rem;
  height: 2.8rem;
}

.cringe-svg-xl {
  width: 3.5rem;
  height: 3.5rem;
}

.mobile-break {
  display: none;
}

/* 2000s Блискітка (Sparkle) */
.sparkle-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  animation: sparkle-spin 3s linear infinite;
}

@keyframes sparkle-spin {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; filter: drop-shadow(0 0 6px #fff1a8); }
  100% { transform: scale(0.8) rotate(360deg); opacity: 0.7; }
}

/* БІГАЮЧИЙ РЯДОК СІЛЬСЬКИХ НОВИН (TICKER) У СТИЛІ 2000-х */
.village-news-ticker {
  background: linear-gradient(180deg, #9b131a 0%, #68080d 50%, #460407 100%);
  color: #fff6d9;
  padding: 0.5rem 0;
  font-family: var(--font-cringe-y2k);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  border-bottom: 3px ridge var(--gold-metallic-2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-block;
  animation: ticker-scroll 32s linear infinite;
  padding-left: 100%;
}
.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 3.5rem;
}

.ticker-badge {
  background: linear-gradient(180deg, #ffe570 0%, #d4af37 50%, #9e7d17 100%);
  color: var(--carpet-deep);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  border: 1px solid #fff1a8;
}

/* ГОЛОВНИЙ КАРКАС: РУЧНИЙ КИЛИМ + СКЕВОМОРФНА ЗОЛОТА РАМА */
.page-frame {
  width: calc(100% - 2.5rem);
  max-width: 1080px;
  margin: 2.2rem auto;
  padding: 3rem 2.6rem;
  background: var(--bg-card);
  border: 4px ridge var(--gold-metallic-2);
  border-radius: 6px;
  box-shadow: 
    0 0 0 6px var(--carpet-crimson),
    0 0 0 10px var(--gold-metallic-2),
    0 0 0 15px #2a1a12,
    0 18px 45px rgba(0, 0, 0, 0.45);
  position: relative;
}

/* Скевоморфні металеві заклепки по кутах */
.frame-corner-tl, .frame-corner-tr, .frame-corner-bl, .frame-corner-br {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 10;
}
.frame-corner-tl { top: 8px; left: 8px; }
.frame-corner-tr { top: 8px; right: 8px; }
.frame-corner-bl { bottom: 8px; left: 8px; }
.frame-corner-br { bottom: 8px; right: 8px; }

/* ВЕРХНЯ ШТЕМПЕЛЬНА ПАНЕЛЬ */
.header-stamp-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px dashed #cfbaa2;
  padding-bottom: 1.25rem;
  margin-bottom: 2.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.15rem;
  background: linear-gradient(180deg, #fff7f7 0%, #ffebeb 100%);
  border: 2.5px solid var(--carpet-crimson);
  color: var(--carpet-crimson);
  border-radius: 4px;
  font-family: var(--font-cringe-y2k);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  transform: rotate(-1.5deg);
  box-shadow: 2px 3px 8px rgba(126, 15, 20, 0.25);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  user-select: none;
}
.stamp-badge:hover {
  transform: rotate(0deg) scale(1.06);
  background: var(--carpet-crimson);
  color: #ffffff;
  border-color: var(--gold-metallic-2);
}

/* 2000s Глянцевий VIP-бейдж */
.vip-badge-ribbon {
  background: linear-gradient(180deg, #fff5b3 0%, #f0c842 48%, #c99c24 52%, #ffd966 100%);
  color: #3b2800;
  font-family: var(--font-cringe-y2k);
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  border: 2px solid #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(148, 113, 24, 0.4), var(--shadow-bevel);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  animation: y2k-glow 2s infinite alternate;
}

@keyframes y2k-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.3)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)); }
}

/* ГОЛОВНИЙ ЗАГОЛОВОК (ЛЬОША HUB) — ОБ'ЄМНИЙ ЗОЛОТИЙ СКЕВОМОРФІЗМ */
.site-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.site-title {
  font-family: var(--font-serif-hero);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: #f7d358;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  text-shadow: 
    0 1px 0 #fff7cf,
    0 2px 0 #d4af37,
    0 3px 0 #b38b18,
    0 4px 0 #7e5e0a,
    0 6px 12px rgba(0, 0, 0, 0.45);
}

.site-title .title-hub {
  color: #ffffff;
  background: linear-gradient(180deg, #d90429 0%, #8b0000 50%, #590000 100%);
  padding: 0.15rem 0.65rem;
  border-radius: 8px;
  border: 3px ridge var(--gold-metallic-2);
  margin-left: 0.3rem;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), var(--shadow-bevel);
  transform: rotate(2.5deg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ornamental-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.2rem auto;
}
.ornamental-divider::before,
.ornamental-divider::after {
  content: "";
  height: 3px;
  width: min(100px, 20vw);
  background: linear-gradient(to right, transparent, var(--gold-metallic-2), transparent);
  border-radius: 2px;
}

.site-subtitle {
  font-family: var(--font-serif-hero);
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  font-weight: 800;
  font-style: italic;
  color: var(--carpet-crimson);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 #fff;
}

.site-feat {
  font-family: var(--font-serif-body);
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  color: var(--text-earth);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.author-highlight {
  font-family: var(--font-serif-hero);
  font-weight: 900;
  color: var(--carpet-deep);
  border-bottom: 3px double var(--gold-metallic-2);
  background: linear-gradient(180deg, rgba(255,241,168,0.3) 0%, rgba(212,175,55,0.15) 100%);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Оголошення сільради */
.village-announcement-card {
  max-width: 740px;
  margin: 1.5rem auto 0;
  padding: 1.35rem 2rem;
  background: linear-gradient(180deg, #fdfbf5 0%, #f4ead5 100%);
  border: 2px solid #dfcfb8;
  border-left: 6px solid var(--tractor-green);
  border-right: 6px solid var(--gold-metallic-2);
  border-radius: 5px;
  text-align: center;
  box-shadow: 
    0 6px 18px rgba(77, 7, 11, 0.12),
    inset 0 1px 0 #ffffff;
}

.village-announcement-card h3 {
  font-family: var(--font-serif-hero);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--tractor-green);
  line-height: 1.4;
  font-style: italic;
}

/* СІЛЬСЬКИЙ САУНДБОРД (ПУЛЬТ ДИДЖЕЯ) — СКЕВОМОРФНА АПАРАТУРА 2000-х */
.village-soundboard {
  background: linear-gradient(180deg, #2b1d14 0%, #170d07 100%);
  border: 3px ridge var(--gold-metallic-2);
  border-radius: 8px;
  padding: 1.85rem;
  margin: 3.5rem 0;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.55),
    inset 0 2px 6px rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.soundboard-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #4a3424;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.soundboard-title {
  font-family: var(--font-cringe-y2k);
  font-size: 1.35rem;
  color: #ffea79;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 2000s Світлодіодний індикатор (LED VU-meter) */
.led-meters {
  display: flex;
  gap: 4px;
}
.led-bar {
  width: 8px;
  height: 18px;
  background: #333;
  border-radius: 1px;
}
.led-bar.green { background: #00ff66; box-shadow: 0 0 6px #00ff66; }
.led-bar.yellow { background: #ffcc00; box-shadow: 0 0 6px #ffcc00; }
.led-bar.red { background: #ff3333; box-shadow: 0 0 6px #ff3333; }

.sound-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 1rem;
}

/* Глянцева 3D кнопка пульта 2000-х */
.sound-btn {
  background: linear-gradient(180deg, #4d3627 0%, #2e1d13 50%, #1e110a 100%);
  color: #fff6e0;
  border: 2px outset var(--gold-metallic-2);
  border-radius: 6px;
  padding: 1rem 0.6rem;
  font-family: var(--font-serif-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.sound-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: var(--gloss-highlight);
  border-radius: 4px 4px 100px 100px;
  pointer-events: none;
}

.sound-btn:hover {
  background: linear-gradient(180deg, #9b131a 0%, #68080d 50%, #460407 100%);
  border-color: #fff1a8;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
  color: #ffffff;
}

.sound-btn:active {
  transform: translateY(2px);
  border-style: inset;
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.6);
}

/* ЗОЛОТИЙ ФОНД БІЛЯН (ГАЛЕРЕЯ З СИНЬОЮ ІЗОЛЕНТОЮ) */
.gallery-section {
  margin: 4rem 0 3.5rem;
}

.section-badge-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  font-family: var(--font-serif-hero);
  font-size: clamp(1.6rem, 4.5vw, 2.7rem);
  font-weight: 900;
  color: var(--carpet-deep);
  text-shadow: 1px 1px 0 var(--gold-metallic-2);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 0.8rem;
}

.section-sublabel {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.8rem 2.2rem;
  justify-content: center;
  align-items: start;
}

/* Сільська рама з СИНЬОЮ ІЗОЛЕНТОЮ по кутах */
.rustic-frame {
  background: #ffffff;
  padding: 1.2rem 1.2rem 1.7rem 1.2rem;
  border: 3px double #bda893;
  border-radius: 4px;
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.rustic-frame:nth-child(1) { transform: rotate(-1.5deg); }
.rustic-frame:nth-child(2) { transform: rotate(1.5deg); }
.rustic-frame:nth-child(3) { transform: rotate(-1.2deg); }

.rustic-frame:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 22px 45px rgba(126, 15, 20, 0.28);
  border-color: var(--gold-metallic-2);
  z-index: 10;
}

/* СИНЯ ІЗОЛЕНТА (Квінтесенція сільського ремонту) */
.blue-tape-tl {
  position: absolute;
  top: -10px;
  left: -18px;
  width: 65px;
  height: 22px;
  background: linear-gradient(135deg, #1e62a8 0%, #3488dc 50%, #1e62a8 51%, #123d6b 100%);
  transform: rotate(-35deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
  border-radius: 1px;
  z-index: 8;
  opacity: 0.95;
}
.blue-tape-br {
  position: absolute;
  bottom: -10px;
  right: -18px;
  width: 65px;
  height: 22px;
  background: linear-gradient(135deg, #1e62a8 0%, #3488dc 50%, #1e62a8 51%, #123d6b 100%);
  transform: rotate(-35deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
  border-radius: 1px;
  z-index: 8;
  opacity: 0.95;
}

/* Золотий цвяшок зверху */
.frame-nail {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #fff1a8 20%, #d4af37 60%, #543f07 100%);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.frame-number-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(180deg, #9b131a 0%, #68080d 100%);
  color: #fff8e8;
  font-family: var(--font-cringe-y2k);
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  border: 1px solid var(--gold-metallic-2);
  letter-spacing: 0.08em;
  z-index: 6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.15);
  aspect-ratio: 3 / 4;
  background: #ebe3d5;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.rustic-frame:hover .image-wrapper img {
  transform: scale(1.05);
}

.frame-caption {
  margin-top: 1.15rem;
  text-align: center;
  font-family: var(--font-serif-hero);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-charcoal);
}

.frame-subcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
  text-align: center;
}

/* ІНТЕРАКТИВНИЙ ГЕНЕРАТОР ПРИВІТАНЬ У ХЛІВІ */
.greeting-generator-box {
  background: linear-gradient(180deg, #fffdfa 0%, #f6edd9 100%);
  border: 3px ridge var(--carpet-crimson);
  border-radius: 8px;
  padding: 2.2rem;
  margin: 3.5rem 0;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  position: relative;
}

.greeting-generator-box h3 {
  font-family: var(--font-serif-hero);
  font-size: 1.75rem;
  color: var(--carpet-deep);
  font-weight: 900;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.greeting-quote-display {
  background: #ffffff;
  border: 2px inset #d9c7af;
  border-left: 6px solid var(--gold-metallic-2);
  border-radius: 5px;
  padding: 1.35rem 1.6rem;
  margin: 1.4rem auto;
  max-width: 720px;
  font-family: var(--font-serif-body);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-charcoal);
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 2000s Web 2.0 Gel CTA Button */
.cringe-action-btn {
  background: linear-gradient(180deg, #d90429 0%, #a0031e 50%, #680213 100%);
  color: #fffdf5;
  border: 3px outset var(--gold-metallic-2);
  padding: 0.95rem 2.2rem;
  border-radius: 30px;
  font-family: var(--font-cringe-y2k);
  font-size: 1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(126, 15, 20, 0.4),
    var(--shadow-bevel);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.cringe-action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: var(--gloss-highlight);
  border-radius: 30px 30px 100px 100px;
  pointer-events: none;
}

.cringe-action-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
  filter: brightness(1.1);
}

.cringe-action-btn:active {
  transform: translateY(2px) scale(0.98);
  border-style: inset;
}

/* ПРЕЙСКУРАНТ ПОСЛУГ НА СІНОВАЛІ */
.village-pricelist-section {
  margin: 3.5rem 0;
}

.pricelist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.price-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f1e6 100%);
  border: 2px outset #d9cbb9;
  border-radius: 6px;
  padding: 1.35rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card:hover {
  border-color: var(--gold-metallic-2);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(126, 15, 20, 0.15);
}

.price-card-title {
  font-family: var(--font-serif-hero);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-charcoal);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-card-value {
  font-family: var(--font-cringe-y2k);
  font-size: 1.05rem;
  color: var(--carpet-crimson);
  margin-top: 0.85rem;
  padding-top: 0.6rem;
  border-top: 2px dashed #d5c3ab;
}

/* КАТАЛОГ РОЗДІЛІВ (АРХІВНИЙ РЕПЕРТУАР) */
.category-section {
  margin: 4rem 0 3.5rem;
}

.category-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  padding: 0;
}

.category-item {
  background: linear-gradient(180deg, #fdfbf7 0%, #ece0cc 100%);
  border: 2px outset var(--gold-metallic-2);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.category-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: var(--gloss-highlight);
  pointer-events: none;
}

.category-item:hover {
  background: #ffffff;
  border-color: var(--carpet-crimson);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(126, 15, 20, 0.2);
}

.category-item-text {
  font-family: var(--font-serif-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-charcoal);
}

.category-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #3ea138 0%, #205c1d 100%);
  color: #ffffff;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-weight: 800;
  border: 1px solid #70cc6a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ПІДВАЛ: МОЇ КОНЯКИ */
.site-footer {
  margin-top: 4.5rem;
  padding-top: 2.8rem;
  border-top: 4px ridge var(--gold-metallic-2);
  position: relative;
}

.footer-heading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.site-footer h1, 
.site-footer .footer-title {
  font-family: var(--font-serif-hero);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--carpet-deep);
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 1px 1px 0 var(--gold-metallic-2);
}

.contacts-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 0;
  margin-bottom: 3rem;
}

.contact-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6efe2 100%);
  border: 2px ridge #cfbda7;
  border-radius: 6px;
  padding: 1.35rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.contact-card:hover {
  background: #ffffff;
  border-color: var(--carpet-crimson);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(126, 15, 20, 0.2);
}

.contact-icon-box {
  margin-bottom: 0.6rem;
}

.contact-name {
  font-family: var(--font-serif-hero);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--carpet-crimson);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.contact-hint {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
}

/* 2000s СКЕВОМОРФНИЙ ЕЛЕКТРОННИЙ ЛІЧИЛЬНИК ВІДВІДУВАЧІВ */
.counter-box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
  padding: 1.35rem;
  background: linear-gradient(180deg, #eae1ce 0%, #d5c6ab 100%);
  border-radius: 8px;
  border: 3px inset #baaa8f;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.25);
}

.hit-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-cringe-y2k);
  font-size: 0.9rem;
  color: #2b1d14;
}

/* 2000s LED Табло */
.counter-screen {
  background: #081108;
  border: 3px inset #444444;
  border-radius: 4px;
  padding: 0.25rem 0.8rem;
  box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.4);
  position: relative;
  overflow: hidden;
}

.counter-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.3) 0, rgba(0,0,0,0.3) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
}

.counter-digits {
  color: #00ff66;
  font-family: var(--font-counter);
  font-size: 1.8rem;
  letter-spacing: 0.25em;
  text-shadow: 0 0 8px #00ff66;
  position: relative;
  z-index: 2;
}

/* Кнопка "Підтримати колгосп" */
.donate-kolkhoz-btn {
  background: linear-gradient(180deg, #3ea138 0%, #205c1d 50%, #123d10 100%);
  color: #ffffff;
  border: 2px outset #70cc6a;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-cringe-y2k);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), var(--shadow-bevel);
  position: relative;
  overflow: hidden;
}

.donate-kolkhoz-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: var(--gloss-highlight);
  pointer-events: none;
}

.donate-kolkhoz-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(62, 161, 56, 0.8);
}

/* СІЛЬСЬКИЙ ТОСТ (TOAST) */
.village-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(180deg, #2e1d13 0%, #170d07 100%);
  color: #fff9e6;
  padding: 1.1rem 2rem;
  border-radius: 6px;
  border: 3px ridge var(--gold-metallic-2);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.village-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* НИЖНЯ ПРИПИСКА */
.footer-colophon {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px dashed #d5c3ab;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.sound-toggle-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e9deca 100%);
  border: 2px outset var(--gold-metallic-2);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-family: var(--font-serif-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  background: var(--carpet-crimson);
  color: #ffffff;
  border-color: #fff1a8;
}

/* CANVAS ДЛЯ САЛЮТУ */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* ==========================================================================
   СІЛЬСЬКИЙ ВІДЖЕТ ПОГОДИ ТА ГОРОСКОПУ
   ========================================================================== */
.village-weather-widget {
  max-width: 740px;
  margin: 1.25rem auto 0;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(180deg, #fffcf5 0%, #f5ecd8 100%);
  border: 2px dashed #cfbca4;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  font-size: 0.88rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.weather-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-earth);
}

/* ==========================================================================
   WINAMP 2.91 БІЛЯНСЬКИЙ ПЛЕЄР (СКЕВОМОРФНИЙ МЕТАЛ 2000-х)
   ========================================================================== */
.winamp-player {
  max-width: 580px;
  margin: -1.5rem auto 3.5rem;
  background: linear-gradient(180deg, #373b44 0%, #212429 50%, #15171a 100%);
  border: 3px outset #71767f;
  border-radius: 4px;
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  z-index: 20;
}

.winamp-title-bar {
  background: linear-gradient(90deg, #0f2b48 0%, #195286 50%, #0c2035 100%);
  color: #fff;
  font-family: var(--font-cringe-y2k);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 2px;
  border-bottom: 1px solid #000;
  user-select: none;
}
.winamp-title-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.winamp-window-controls {
  display: flex;
  gap: 0.3rem;
  font-family: monospace;
  font-weight: bold;
}
.winamp-btn-min, .winamp-btn-close {
  background: #2b333e;
  border: 1px outset #626c79;
  padding: 0 0.3rem;
  font-size: 0.7rem;
  cursor: pointer;
}

.winamp-main-screen {
  background: #000;
  border: 2px inset #555;
  margin: 0.4rem 0;
  padding: 0.45rem 0.65rem;
  display: grid;
  grid-template-columns: 85px 70px 1fr;
  grid-template-rows: auto auto;
  gap: 0.4rem 0.6rem;
  align-items: center;
  color: #00ff66;
  font-family: var(--font-counter);
  text-shadow: 0 0 6px #00ff66;
  position: relative;
  overflow: hidden;
}
.winamp-main-screen::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, rgba(0,255,102,0.06) 0, rgba(0,255,102,0.06) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}

.winamp-time-display {
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.12em;
}
.winamp-kbps {
  font-size: 0.75rem;
  line-height: 1.2;
  color: #66ff99;
}
.winamp-marquee-track {
  grid-column: 3;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1.1rem;
  color: #00ff66;
}
.winamp-track-text {
  display: inline-block;
  animation: winamp-marquee 14s linear infinite;
}
@keyframes winamp-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.winamp-eq-visualizer {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  height: 20px;
  align-items: flex-end;
  border-top: 1px solid #113311;
  padding-top: 3px;
}
.eq-bar {
  flex: 1;
  background: linear-gradient(0deg, #00ff00 0%, #ffff00 70%, #ff0000 100%);
  height: 35%;
  border-radius: 1px;
  transition: height 0.1s ease;
}

.winamp-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.25rem 0.2rem;
}
.winamp-btn {
  background: linear-gradient(180deg, #4f535b 0%, #2f333a 50%, #1e2025 100%);
  color: #fff;
  border: 2px outset #888;
  border-radius: 3px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}
.winamp-btn:hover {
  background: linear-gradient(180deg, #626772 0%, #3a3f47 100%);
  border-color: #fff;
}
.winamp-btn:active {
  border-style: inset;
  transform: translateY(1px);
}
.winamp-btn-play {
  border-color: #00ff66;
  background: linear-gradient(180deg, #1b5e20 0%, #0d3810 100%);
}

.winamp-vol-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #bbb;
  font-family: var(--font-cringe-y2k);
  font-size: 0.7rem;
}
.winamp-slider {
  accent-color: #00ff66;
  cursor: pointer;
  height: 6px;
  width: 75px;
}

/* ==========================================================================
   РОМАНТИКА НА СІНОВАЛІ: ЛЬОША & МАЛИШКА (LOVE STORY 2006)
   ========================================================================== */
.love-story-section {
  margin: 4rem 0;
  background: radial-gradient(circle at center, #420820 0%, #260312 60%, #120108 100%);
  border: 4px ridge #ff80ab;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 15px 45px rgba(0,0,0,0.7), 0 0 35px rgba(245, 0, 87, 0.35), inset 0 0 35px rgba(255, 64, 129, 0.15);
  position: relative;
  overflow: hidden;
}

.love-story-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 64, 129, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(255, 128, 171, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.love-header-ribbon {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.love-label {
  color: #ff80ab !important;
  text-shadow: 0 0 16px rgba(255, 64, 129, 0.8), 2px 2px 0 #000 !important;
  font-family: var(--font-serif-hero) !important;
  font-size: clamp(1.7rem, 4.5vw, 2.7rem) !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.85rem !important;
}

.love-label .cringe-svg {
  animation: love-heartbeat 1.3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #ff4081);
}

@keyframes love-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1.08); }
  42% { transform: scale(1.22); }
  70% { transform: scale(1); }
}

.love-sublabel {
  color: #ffd1dc;
  font-style: italic;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.love-quote-box {
  margin: 1.4rem auto 0;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.07);
  border: 2px dashed #ff4081;
  border-radius: 10px;
  padding: 1.1rem 1.6rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.love-quote-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.love-quote-mark {
  font-size: 2.2rem;
  color: #ff80ab;
  font-family: serif;
  line-height: 0;
}

.love-quote-text {
  color: #ffffff;
  font-size: clamp(0.98rem, 2.4vw, 1.15rem);
  font-style: italic;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.love-quote-author {
  color: #ffb6c1;
  font-size: 0.82rem;
  display: block;
  margin-top: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Любовна сітка карток */
.love-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.8rem;
  position: relative;
  z-index: 2;
}

.love-card {
  background: linear-gradient(180deg, #fffafd 0%, #ffe9f2 100%);
  border: 4px solid #ffccd5;
  border-radius: 8px;
  padding: 0.9rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45), 0 0 15px rgba(255, 64, 129, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.love-card:nth-child(odd) {
  transform: rotate(-1.5deg);
}
.love-card:nth-child(even) {
  transform: rotate(1.5deg);
}

.love-card:hover {
  transform: scale(1.05) rotate(0deg) !important;
  z-index: 10;
  border-color: #ff4081;
  box-shadow: 0 16px 36px rgba(233, 30, 99, 0.6), 0 0 25px rgba(255, 64, 129, 0.6);
}

.pink-ribbon-badge {
  position: absolute;
  top: -10px;
  right: -8px;
  background: linear-gradient(180deg, #ff4081 0%, #c2185b 100%);
  color: #ffffff;
  border: 2px solid #ffd700;
  border-radius: 4px;
  font-family: var(--font-cringe-y2k);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 4;
  text-shadow: 0 1px 2px #000;
}

.love-img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border: 2px inset #ffb6c1;
  border-radius: 4px;
  background: #111;
  margin-bottom: 0.85rem;
  position: relative;
}

.love-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.love-card:hover .love-img-wrapper img {
  transform: scale(1.06);
}

.love-caption {
  font-family: var(--font-serif-hero);
  font-size: 1.15rem;
  color: #880e4f;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.love-subcaption {
  font-size: 0.83rem;
  color: #5d4037;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  display: block;
}

/* Детектор кохання (Love Meter) */
.love-meter-box {
  background: linear-gradient(180deg, rgba(42, 6, 22, 0.92) 0%, rgba(20, 3, 10, 0.96) 100%);
  border: 3px ridge #ffd700;
  border-radius: 10px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.25), 0 10px 30px rgba(0,0,0,0.6);
  position: relative;
  z-index: 2;
}

.love-meter-title {
  font-family: var(--font-cringe-y2k);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: #ffd700;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  text-shadow: 0 0 10px #ffd700, 0 2px 4px #000;
  letter-spacing: 0.06em;
}

.love-bar-container {
  background: #150208;
  border: 2px inset #ff4081;
  border-radius: 16px;
  height: 34px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}

.love-bar-fill {
  height: 100%;
  width: 100%;
  background: repeating-linear-gradient(45deg, #ff4081 0, #ff4081 16px, #f50057 16px, #f50057 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: love-stripe-slide 2.2s linear infinite;
  background-size: 45px 45px;
}

@keyframes love-stripe-slide {
  0% { background-position: 0 0; }
  100% { background-position: 45px 0; }
}

.love-bar-text {
  font-family: var(--font-cringe-y2k);
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 2px 4px #000, 0 0 8px rgba(0,0,0,0.9);
  letter-spacing: 0.08em;
  padding: 0 0.5rem;
}

.love-meter-status {
  font-size: 1.1rem;
  color: #ffe4ee;
  font-style: italic;
  margin-bottom: 1.3rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.love-actions-row {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cringe-love-btn {
  background: linear-gradient(180deg, #ff4081 0%, #c2185b 100%);
  border: 3px outset #ff80ab;
  border-radius: 6px;
  padding: 0.85rem 1.6rem;
  color: #ffffff;
  font-family: var(--font-cringe-y2k);
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.15s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.cringe-love-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.75);
}

.cringe-love-btn:active {
  border-style: inset;
  transform: scale(0.97);
}

.cringe-love-btn.gold-btn {
  background: linear-gradient(180deg, #ffd700 0%, #d87a00 100%);
  border-color: #fff59d;
  color: #3e2723;
  text-shadow: none;
  box-shadow: 0 6px 16px rgba(216, 122, 0, 0.5), inset 0 1px 0 #fff;
}

@media (max-width: 1024px) {
  .love-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .love-grid {
    grid-template-columns: 1fr;
  }
  .love-card {
    transform: none !important;
  }
  .love-actions-row {
    flex-direction: column;
  }
  .cringe-love-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   ВЕЛИКА ЧЕРВОНА КНОПКА «НЕ ТИСНУТИ!» (НЕБЕЗПЕЧНА ЗОНА)
   ========================================================================== */
.danger-zone-section {
  margin: 4.5rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #2b0003 0%, #140001 100%);
  border: 4px ridge #ff1744;
  border-radius: 8px;
  padding: 2.2rem 1.5rem;
  box-shadow: 0 14px 40px rgba(183, 28, 28, 0.4), inset 0 2px 6px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.hazard-ribbon-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.hazard-stripe {
  height: 14px;
  width: 70px;
  background: repeating-linear-gradient(45deg, #ffd600 0, #ffd600 10px, #000 10px, #000 20px);
  border-radius: 2px;
}
.hazard-title {
  font-family: var(--font-cringe-y2k);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: #ffeb3b;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.danger-subtext {
  color: #ffcdd2;
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.8rem;
}

.big-red-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.nuclear-socket {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, #555 0%, #222 65%, #111 100%);
  border: 6px outset #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7), inset 0 4px 10px rgba(0,0,0,0.9);
}

.nuclear-red-button {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff5252 0%, #d50000 50%, #5f0909 100%);
  border: 4px outset #ff8a80;
  color: #fff;
  font-family: var(--font-cringe-y2k);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  position: relative;
  box-shadow: 
    0 10px 25px rgba(255, 23, 68, 0.7),
    inset 0 2px 8px rgba(255,255,255,0.7),
    inset 0 -6px 12px rgba(0,0,0,0.6);
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.nuclear-red-button:hover {
  transform: scale(1.06);
  filter: brightness(1.2);
  box-shadow: 0 0 35px rgba(255, 23, 68, 0.95);
}
.nuclear-red-button:active {
  transform: scale(0.94) translateY(4px);
  border-style: inset;
  box-shadow: inset 0 8px 18px rgba(0,0,0,0.9);
}
.nuclear-label {
  font-family: var(--font-cringe-y2k);
  font-size: 0.8rem;
  color: #ff8a80;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   СІЛЬСЬКА ГОСТЬОВА КНИГА (UCOZ / НАРОД.РУ 2006)
   ========================================================================== */
.guestbook-section {
  margin: 4rem 0 3.5rem;
}
.guestbook-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}
.guestbook-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf4e8 100%);
  border: 2px outset #dcd0bf;
  border-left: 6px solid #8d6e63;
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}
.guestbook-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-metallic-2);
}
.admin-reply-card {
  border-left: 6px solid var(--carpet-crimson);
  background: linear-gradient(180deg, #fffbfb 0%, #fae8e8 100%);
  margin-left: 1.5rem;
}

.guestbook-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 1px dashed #d5c3ab;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.author-avatar-icon {
  width: 32px;
  height: 32px;
  background: #f1e6d4;
  border: 1px solid #bba891;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author-name {
  font-family: var(--font-serif-hero);
  font-size: 1.15rem;
  color: var(--carpet-deep);
  display: block;
}
.author-badge {
  display: inline-block;
  font-family: var(--font-cringe-y2k);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.badge-tractor { background: #e1f5fe; color: #0277bd; border: 1px solid #81d4fa; }
.badge-elder { background: #f3e5f5; color: #7b1fa2; border: 1px solid #ce93d8; }
.badge-admin { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.post-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-charcoal);
  font-style: italic;
}

.guestbook-form {
  background: linear-gradient(180deg, #fdfbf7 0%, #eee4d1 100%);
  border: 2px ridge var(--gold-metallic-2);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: inset 0 1px 0 #fff;
}
.form-title {
  font-family: var(--font-serif-hero);
  font-size: 1.35rem;
  color: var(--carpet-deep);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.form-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.cringe-input, .cringe-textarea {
  width: 100%;
  background: #ffffff;
  border: 2px inset #cbb9a3;
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-serif-body);
  font-size: 0.95rem;
  color: var(--text-charcoal);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}
.cringe-input:focus, .cringe-textarea:focus {
  outline: none;
  border-color: var(--gold-metallic-2);
  background: #fffdf5;
}
.cringe-textarea {
  margin-bottom: 1rem;
  resize: vertical;
}

/* ==========================================================================
   2000s WORDART ТА 88x31 RETRO WEB BADGES
   ========================================================================== */
.wordart-banner {
  text-align: center;
  margin: 1.8rem auto 1.4rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.18) 50%, transparent 100%);
}
.wordart-text {
  font-family: var(--font-cringe-y2k);
  font-size: clamp(0.95rem, 2.5vw, 1.35rem);
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ff0000 0%, #ff8000 18%, #ffff00 36%, #00ff00 54%, #00ffff 72%, #0000ff 90%, #ff00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 2px 0px rgba(0,0,0,0.8));
  display: inline-block;
}

.retro-badges-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 2.2rem;
}
.retro-badge {
  width: 88px;
  height: 31px;
  border: 1px outset #fff;
  box-shadow: 1px 1px 0 #000, inset 1px 1px 0 rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 8px;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.retro-badge:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}
.badge-title { font-weight: bold; }
.badge-sub { font-size: 7px; opacity: 0.85; }

.badge-ie6 { background: linear-gradient(180deg, #1b5bb5 0%, #0c336b 100%); color: #fff; }
.badge-bilyany { background: linear-gradient(180deg, #d4af37 0%, #795548 100%); color: #fff; }
.badge-standoff { background: linear-gradient(180deg, #e65100 0%, #bf360c 100%); color: #fff; }
.badge-mtz { background: linear-gradient(180deg, #0288d1 0%, #01579b 100%); color: #fff; }
.badge-nokia { background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%); color: #fff; }
.badge-salo { background: linear-gradient(180deg, #ffffff 0%, #ff80ab 100%); color: #880e4f; }
.badge-rambler { background: linear-gradient(180deg, #d50000 0%, #3e2723 100%); color: #fff; }

/* ==========================================================================
   WINDOWS 98 / 2000 CRITICAL ERROR MODAL DIALOG
   ========================================================================== */
.village-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.win98-window {
  width: min(520px, 95vw);
  background: #c0c0c0;
  border: 3px outset #ffffff;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.6);
  color: #000;
  font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
  animation: win98-pop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes win98-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.win98-titlebar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  padding: 0.25rem 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 0.82rem;
}
.win98-title-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.win98-close-btn {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  line-height: 14px;
  text-align: center;
  cursor: pointer;
  color: #000;
}
.win98-close-btn:active {
  border-style: inset;
}

.win98-body {
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.45;
}
.win98-msg-col h3 {
  font-size: 1.15rem;
  color: #b71c1c;
  margin-bottom: 0.4rem;
}
.win98-actions {
  background: #c0c0c0;
  padding: 0.75rem 1.2rem 1.1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.win98-btn {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  box-shadow: 1px 1px 0 #000;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
}
.win98-btn:active {
  border-style: inset;
  transform: translate(1px, 1px);
}
.win98-btn.default-btn {
  border: 2px solid #000;
  outline: 1px dotted #000;
}

/* Screen Shake Effect */
.shake-screen {
  animation: screen-quake 0.5s ease-in-out infinite;
}
@keyframes screen-quake {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-6px, 4px) rotate(-1deg); }
  40% { transform: translate(6px, -4px) rotate(1deg); }
  60% { transform: translate(-4px, -3px) rotate(-0.5deg); }
  80% { transform: translate(4px, 3px) rotate(0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Cursor sparkle trail */
.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 14px;
  color: #ffd700;
  text-shadow: 0 0 6px #fff1a8;
  animation: sparkle-fade 0.8s forwards ease-out;
}
@keyframes sparkle-fade {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(0.2) translateY(-25px); opacity: 0; }
}

/* АДАПТИВНІСТЬ ДЛЯ ПЛАНШЕТІВ ТА МОБІЛЬНИХ */
@media (max-width: 840px) {
  .header-stamp-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: clamp(2.5rem, 8vw, 3.8rem);
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 2rem;
  }
  .page-frame {
    width: calc(100% - 1rem);
    margin: 0.6rem auto;
    padding: 1.6rem 0.85rem;
    box-shadow: 
      0 0 0 3px var(--carpet-crimson),
      0 0 0 6px var(--gold-metallic-2),
      0 10px 25px rgba(0, 0, 0, 0.35);
  }
  .site-title {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }
  .site-subtitle {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
  .soundboard-title {
    font-size: 1.1rem;
    flex-wrap: wrap;
  }
  .sound-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .sound-btn {
    padding: 0.75rem 0.4rem;
    font-size: 0.82rem;
  }
  .mobile-break {
    display: block;
  }
  .section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    line-height: 1.25;
    padding: 0 0.25rem;
    gap: 0.4rem;
  }
  .section-label .cringe-svg {
    display: inline-block;
    vertical-align: middle;
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 0 0.35rem;
  }
  .rustic-frame {
    transform: none !important;
  }
  .greeting-generator-box {
    padding: 1.4rem 0.85rem;
  }
  .greeting-generator-box h3 {
    font-size: 1.25rem;
    flex-wrap: wrap;
    text-align: center;
  }
  .form-inputs-grid {
    grid-template-columns: 1fr;
  }
  .winamp-player {
    margin: -1rem 0.25rem 2.5rem;
    padding: 0.4rem;
  }
  .winamp-main-screen {
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.5rem;
  }
  .winamp-time-display {
    font-size: 1.5rem;
  }
  .winamp-kbps {
    display: none;
  }
  .winamp-controls {
    justify-content: center;
    gap: 0.3rem;
  }
  .winamp-vol-box {
    margin-left: 0;
    margin-top: 0.3rem;
    width: 100%;
    justify-content: center;
  }
  .winamp-slider {
    width: 110px;
  }
  .cringe-action-btn {
    padding: 0.85rem 1.2rem;
    font-size: 0.88rem;
    width: 100%;
    justify-content: center;
  }
  .category-list {
    grid-template-columns: 1fr;
  }
  .category-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .counter-box-container {
    flex-direction: column;
    gap: 1.1rem;
    text-align: center;
  }
  .footer-colophon {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .sound-buttons-grid {
    grid-template-columns: 1fr;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .hazard-title {
    font-size: 1.05rem;
    text-align: center;
  }
  .nuclear-socket {
    width: 150px;
    height: 150px;
  }
  .nuclear-red-button {
    width: 110px;
    height: 110px;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   ОФІЦІЙНЕ РОДОВІДНЕ ДЕРЕВО СВИНЕЙ: ДИНАСТІЯ «БІЛЯНСЬКА ЕЛІТНА»
   ========================================================================== */
.pig-dynasty-section {
  margin: 4.5rem 0 3.5rem;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #2a1408 0%, #170a04 100%);
  border: 4px ridge #d4af37;
  border-radius: 12px;
  padding: 2.2rem 1.6rem;
  box-shadow: 
    0 16px 45px rgba(0, 0, 0, 0.7),
    inset 0 0 25px rgba(212, 175, 55, 0.15),
    0 0 0 3px #5d2800;
  position: relative;
  overflow: hidden;
}

.pig-dynasty-header {
  text-align: center;
  margin-bottom: 2.4rem;
  position: relative;
  z-index: 2;
}

.pig-dynasty-registry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, #ffd700 0%, #d87a00 100%);
  border: 2px outset #fff9c4;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  color: #3e2723;
  font-family: var(--font-cringe-y2k);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.pig-dynasty-title {
  font-family: var(--font-serif-hero);
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  color: #fff9c4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 215, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.pig-dynasty-subtitle {
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  color: #ffecb3;
  font-style: italic;
  margin-bottom: 1.3rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.pig-quote-ribbon {
  background: linear-gradient(180deg, #fdf7e7 0%, #faebd7 100%);
  border: 2px dashed #b8860b;
  border-radius: 8px;
  padding: 0.9rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 820px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  margin: 0 auto;
}

.pig-quote-mark {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: #b8860b;
  line-height: 1;
  font-weight: bold;
}

.pig-quote-text {
  font-family: var(--font-serif-body);
  font-size: 0.96rem;
  color: #3e2723;
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

/* Дерево родоводу */
.pig-tree-wrapper {
  margin: 2.5rem 0;
  position: relative;
  z-index: 2;
}

.pig-generation-label {
  text-align: center;
  margin-bottom: 1.2rem;
}

.generation-pill {
  display: inline-block;
  background: #3e2723;
  color: #ffd700;
  border: 2px solid #b8860b;
  border-radius: 16px;
  padding: 0.3rem 0.95rem;
  font-family: var(--font-cringe-y2k);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.pig-parents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.pig-card {
  background: linear-gradient(180deg, #fbf7ee 0%, #f4e9d5 100%);
  border: 4px ridge #d4af37;
  border-radius: 8px;
  padding: 1.2rem 1.1rem;
  position: relative;
  box-shadow: 0 10px 24px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.pig-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: #ffd700;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7), 0 0 20px rgba(255, 215, 0, 0.4);
  z-index: 5;
}

.pig-father-card {
  transform: rotate(-1.2deg);
}

.pig-wedding-card {
  transform: rotate(0deg);
  border-color: #ffb300;
}

.pig-mother-card {
  transform: rotate(1.2deg);
}

.pig-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  font-family: var(--font-cringe-y2k);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  z-index: 4;
}

.pig-badge-father {
  background: linear-gradient(180deg, #d84315 0%, #bf360c 100%);
  color: #fff;
  border: 1.5px solid #ffd700;
}

.pig-badge-wedding {
  background: linear-gradient(180deg, #fbc02d 0%, #f57f17 100%);
  color: #3e2723;
  border: 1.5px solid #fff;
}

.pig-badge-mother {
  background: linear-gradient(180deg, #ad1457 0%, #880e4f 100%);
  color: #fff;
  border: 1.5px solid #ffd700;
}

.pig-badge-son {
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
  color: #fff;
  border: 1.5px solid #ffd700;
}

.pig-img-wrapper {
  width: 100%;
  height: 270px;
  border: 2px inset #c5a059;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

.pig-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.pig-card:hover .pig-img-wrapper img {
  transform: scale(1.06);
}

.pig-name {
  font-family: var(--font-serif-hero);
  font-size: 1.25rem;
  color: #3e2723;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.pig-role {
  display: block;
  font-family: var(--font-serif-body);
  font-size: 0.84rem;
  color: #795548;
  font-style: italic;
  text-align: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #d7ccc8;
}

.pig-traits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: #4e342e;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pig-traits-list strong {
  color: #2e1408;
}

/* З'єднувальна гілка дерева */
.pig-tree-connector {
  margin: 2rem auto;
  position: relative;
  text-align: center;
}

.connector-line-horizontal {
  width: 70%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #ffd700 20%, #ffd700 80%, transparent 100%);
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.connector-stem-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -8px;
}

.connector-badge-center {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2b1408;
  border: 2px solid #ffd700;
  border-radius: 14px;
  padding: 0.25rem 0.9rem;
  color: #ffd700;
  font-family: var(--font-cringe-y2k);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.connector-arrow-down {
  color: #ffd700;
  font-size: 1.4rem;
  margin-top: -2px;
  animation: bounce-arrow 1.8s infinite ease-in-out;
  text-shadow: 0 0 8px #ffd700;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Нижній ярус: Син */
.pig-son-container {
  display: flex;
  justify-content: center;
}

.pig-son-card {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.4rem;
  align-items: center;
  transform: none;
  background: linear-gradient(180deg, #ffffff 0%, #f5efe6 100%);
  border: 4px ridge #4caf50;
}

.pig-son-img-wrapper {
  height: 310px;
  margin: 0;
}

.pig-son-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pig-son-info .pig-name {
  text-align: left;
  font-size: 1.45rem;
  color: #1b5e20;
}

.pig-son-info .pig-role {
  text-align: left;
}

/* Ветеринарний паспорт */
.pig-passport-box {
  background: linear-gradient(180deg, #fdf8eb 0%, #f4e8cc 100%);
  border: 3px double #8d6e63;
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
  margin-top: 2.8rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 0 15px rgba(141, 110, 99, 0.15);
  position: relative;
}

.passport-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px dashed #bcaaa4;
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
}

.passport-title {
  font-family: var(--font-serif-hero);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: #3e2723;
  margin: 0 0 0.2rem;
  font-weight: 900;
}

.passport-meta {
  font-size: 0.8rem;
  color: #795548;
  font-family: monospace;
}

.passport-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.2rem;
}

.passport-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.passport-table th {
  background: #3e2723;
  color: #ffd700;
  font-family: var(--font-cringe-y2k);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 0.65rem 0.75rem;
  border: 1px solid #5d4037;
}

.passport-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #d7ccc8;
  color: #3e2723;
  background: rgba(255,255,255,0.6);
}

.passport-table tbody tr:nth-child(even) td {
  background: rgba(245, 235, 220, 0.75);
}

.passport-metric {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: bold;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  border: 1px solid #a5d6a7;
}

.passport-stamp-seal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  border-top: 1px dashed #bcaaa4;
  padding-top: 1rem;
}

.vet-conclusion {
  font-size: 0.86rem;
  color: #4e342e;
  line-height: 1.45;
  max-width: 580px;
}

.vet-signature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.vet-signature-text {
  font-size: 0.76rem;
  color: #6d4c41;
}

.vet-sign-handwritten {
  font-family: 'Brush Script MT', 'Comic Sans MS', cursive;
  font-size: 1.25rem;
  color: #0d47a1;
  font-weight: bold;
  transform: rotate(-3deg);
}

.vet-stamp-circle {
  border: 2px solid #b71c1c;
  color: #b71c1c;
  font-family: var(--font-cringe-y2k);
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: 14px;
  transform: rotate(-6deg);
  letter-spacing: 0.06em;
  box-shadow: 0 0 6px rgba(183, 28, 28, 0.3);
}

/* Інтерактивні кнопки дій */
.pig-dynasty-actions {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pig-action-btn {
  background: linear-gradient(180deg, #8d6e63 0%, #4e342e 100%);
  border-color: #bcaaa4;
  color: #fff;
}

.pig-action-btn:hover {
  background: linear-gradient(180deg, #a1887f 0%, #5d4037 100%);
  box-shadow: 0 8px 24px rgba(78, 52, 46, 0.7);
}

.stamp-action-btn {
  background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%);
  border-color: #ef9a9a;
}
.stamp-action-btn:hover {
  box-shadow: 0 8px 24px rgba(183, 28, 28, 0.7);
}

.feed-action-btn {
  background: linear-gradient(180deg, #fbc02d 0%, #f57f17 100%);
  border-color: #fff59d;
  color: #3e2723;
  text-shadow: none;
}
.feed-action-btn:hover {
  box-shadow: 0 8px 24px rgba(245, 127, 23, 0.7);
}

/* Адаптивність для родоводу */
@media (max-width: 900px) {
  .pig-parents-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pig-card {
    transform: none !important;
  }
  .pig-son-card {
    grid-template-columns: 1fr;
  }
  .pig-son-img-wrapper {
    height: 270px;
  }
  .pig-son-info .pig-name, .pig-son-info .pig-role {
    text-align: center;
  }
}

@media (max-width: 580px) {
  .pig-dynasty-section {
    padding: 1.6rem 0.85rem;
  }
  .pig-dynasty-actions {
    flex-direction: column;
  }
  .pig-action-btn {
    width: 100%;
    justify-content: center;
  }
}
