@import url("https://fonts.googleapis.com/css2?family=Bad+Script&family=Comfortaa:wght@500;700&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --bg: #fff7fb;
  --bg-stripe: #ffe566;
  --pink: #ff4da6;
  --pink-deep: #e91e8c;
  --orange: #ff8a00;
  --yellow: #ffe566;
  --cream: #fffdf6;
  --text: #3b1f2b;
  --text-soft: #6b3d4f;
  --border: #e91e8c;
  --shadow: 4px 4px 0 #ff4da6;
  --radius: 6px;
  --max: 920px;
  --font-logo: "Bad Script", cursive;
  --font-head: "Comfortaa", sans-serif;
  --font-body: "PT Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 77, 166, 0.12) 0 28px, transparent 29px),
    radial-gradient(circle at 88% 12%, rgba(255, 229, 102, 0.55) 0 36px, transparent 37px),
    radial-gradient(circle at 70% 80%, rgba(255, 138, 0, 0.12) 0 40px, transparent 41px),
    repeating-linear-gradient(
      -8deg,
      transparent,
      transparent 28px,
      rgba(255, 229, 102, 0.18) 28px,
      rgba(255, 229, 102, 0.18) 30px
    );
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-deep);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--orange);
}

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-wrap {
  width: min(100% - 1.5rem, var(--max));
  margin: 1.25rem auto 2.5rem;
}

/* Header */
.site-header {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #ffeef7 100%);
  border: 4px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 0;
  overflow: hidden;
  animation: rise-in 0.55s ease both;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 40%, var(--yellow) 0 8px, transparent 9px),
    radial-gradient(circle at 94% 30%, var(--pink) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 8%, var(--orange) 0 5px, transparent 6px);
  opacity: 0.85;
  pointer-events: none;
}

.brand {
  position: relative;
  text-align: center;
  margin: 0 0 0.75rem;
}

.brand a {
  text-decoration: none;
  color: var(--pink-deep);
  font-family: var(--font-logo);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 var(--yellow), 4px 4px 0 rgba(255, 77, 166, 0.25);
  display: inline-block;
  transition: transform 0.25s ease;
}

.brand a:hover {
  transform: rotate(-1.5deg) scale(1.03);
  color: var(--pink-deep);
}

.brand-sub {
  margin: 0.35rem 0 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem 1rem;
  border-top: 3px dashed var(--pink);
  background: linear-gradient(90deg, rgba(255, 229, 102, 0.45), rgba(255, 77, 166, 0.12), rgba(255, 229, 102, 0.45));
}

.nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  background: var(--cream);
  border: 3px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  box-shadow: 2px 2px 0 var(--yellow);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav a:hover,
.nav a.is-active {
  background: var(--pink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--yellow);
}

/* Main */
.site-main {
  margin-top: 1.25rem;
  background: var(--cream);
  border: 4px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.75rem;
  animation: rise-in 0.65s ease 0.08s both;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--pink-deep);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background: var(--yellow);
  border: 2px solid var(--border);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff45a, #ff8a00);
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
  transform: rotate(-3deg);
}

.lead {
  font-size: 1.08rem;
  color: var(--text-soft);
}

.hero {
  position: relative;
  margin: -0.25rem 0 1.5rem;
  border: 4px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--yellow);
  animation: rise-in 0.7s ease 0.12s both;
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(90deg, rgba(233, 30, 140, 0.92), rgba(255, 138, 0, 0.88));
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
}

.about p {
  margin: 0 0 0.9rem;
}

.about p:last-child {
  margin-bottom: 0;
}

a.stripe {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 1.5rem 0;
  padding: 0.55rem 0.85rem;
  background: var(--bg-stripe);
  border: 3px solid var(--orange);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  box-shadow: 2px 2px 0 var(--pink);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

a.stripe:link,
a.stripe:visited,
a.stripe:hover,
a.stripe:active,
a.stripe:focus {
  color: var(--text);
  text-decoration: none;
}

a.stripe:hover {
  background: #ffef8a;
  box-shadow: 3px 3px 0 var(--pink);
}

.announce {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  padding: 0.65rem 0.65rem 0.65rem 1rem;
  background: linear-gradient(90deg, #ffe566 0%, #ffc0e0 45%, #ffe566 100%);
  border: 4px solid var(--pink-deep);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--orange);
  animation: rise-in 0.55s ease 0.05s both;
}

.announce[hidden] {
  display: none !important;
}

.announce-close {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 3px solid var(--text);
  border-radius: 4px;
  background: var(--pink-deep);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--yellow);
}

.announce-close:hover {
  background: var(--orange);
  color: #fff;
}

.announce-close:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.announce-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink-deep);
  border: 2px solid var(--text);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--yellow);
}

.announce-text {
  flex: 1 1 auto;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  text-align: left;
}

.announce-text a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announce-text a:hover {
  color: var(--orange);
}

/* Cards / teaser list */
.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--yellow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise-in 0.55s ease both;
}

.card:nth-child(2) {
  animation-delay: 0.08s;
}

.card:nth-child(3) {
  animation-delay: 0.16s;
}

.card:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 5px 5px 0 var(--pink);
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--border);
}

.card-body {
  padding: 0.85rem 0.95rem 1rem;
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 0 0 0.35rem;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--pink-deep);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  position: relative;
  display: grid;
  gap: 0.9rem;
  width: 100%;
  padding: 0.85rem;
  background: #fff;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--yellow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise-in 0.5s ease both;
}

.news-item:hover {
  transform: translateX(4px);
  box-shadow: 5px 5px 0 var(--pink);
}

@media (min-width: 640px) {
  .news-item {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }
}

.news-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: 4px;
}

.news-item h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--pink-deep);
}

.news-item:hover h2 {
  color: var(--orange);
}

.news-meta {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0 0 0.4rem;
}

.news-item p {
  margin: 0;
  color: var(--text-soft);
}

.news-item--event,
.card--event {
  position: relative;
}

.news-item--event::before,
.card--event::before {
  content: "Сбор";
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pink-deep);
  border: 2px solid #3b1f2b;
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--pink);
  transform: rotate(3deg);
  pointer-events: none;
}

.event-pill {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #5c2b00;
  background: var(--yellow);
  border: 2px solid var(--orange);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--pink);
}

.rsvp {
  margin: 1.75rem 0 1.25rem;
  padding: 1.15rem 1.1rem 1.25rem;
  background: linear-gradient(145deg, #fff8e8, #ffeef7);
  border: 3px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--pink);
}

.rsvp-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  color: var(--pink-deep);
}

.rsvp-lead {
  margin: 0 0 0.95rem;
  color: var(--text-soft);
}

.rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rsvp-actions[hidden],
.rsvp-lead[hidden] {
  display: none !important;
}

.rsvp-btn {
  min-height: 48px;
  min-width: 140px;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rsvp-btn-yes {
  color: #14532d;
  background: #dcfce7;
  border-color: #16a34a;
  box-shadow: 3px 3px 0 #86efac;
}

.rsvp-btn-no {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #dc2626;
  box-shadow: 3px 3px 0 #fca5a5;
}

.rsvp-btn:hover {
  transform: translateY(-2px);
}

.rsvp-btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.rsvp-btn.is-selected {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 4px 4px 0 var(--pink);
}

.rsvp-btn-yes.is-selected {
  background: #86efac;
}

.rsvp-btn-no.is-selected {
  background: #fca5a5;
}

.rsvp-status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--pink-deep);
}

/* Whole card clickable without wrapping layout in <a> */
a.news-item-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  text-decoration: none;
  color: transparent;
  background: transparent;
}

a.news-item-link:link,
a.news-item-link:visited,
a.news-item-link:hover,
a.news-item-link:active,
a.news-item-link:focus {
  color: transparent;
  text-decoration: none;
}

a.news-item-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

/* Article */
.article-hero {
  margin: 0 0 1.15rem;
  border: 4px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--yellow);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0 0 1rem;
}

.article-body h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--pink-deep);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body p:last-of-type {
  margin-bottom: 0;
}

.back-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 3px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  box-shadow: 2px 2px 0 var(--yellow);
}

.back-link:hover {
  background: var(--yellow);
  color: var(--text);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  margin: 0;
  background: #fff;
  border: 3px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--yellow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise-in 0.5s ease both;
}

.gallery-item:nth-child(2) { animation-delay: 0.05s; }
.gallery-item:nth-child(3) { animation-delay: 0.1s; }
.gallery-item:nth-child(4) { animation-delay: 0.15s; }
.gallery-item:nth-child(5) { animation-delay: 0.2s; }
.gallery-item:nth-child(6) { animation-delay: 0.25s; }
.gallery-item:nth-child(7) { animation-delay: 0.3s; }
.gallery-item:nth-child(8) { animation-delay: 0.35s; }
.gallery-item:nth-child(9) { animation-delay: 0.4s; }

.gallery-item:hover {
  transform: scale(1.03) rotate(-0.5deg);
  box-shadow: 5px 5px 0 var(--pink);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.45rem 0.6rem 0.6rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(90deg, #ffeef7, #fff8d6);
  border-top: 2px dashed var(--pink);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(59, 31, 43, 0.82);
}

.lightbox.is-open {
  display: flex;
  animation: fade-in 0.2s ease;
}

.lightbox-inner {
  position: relative;
  max-width: min(920px, 100%);
  max-height: 90dvh;
  background: #fff;
  border: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 0.65rem;
  box-shadow: 0 0 0 4px var(--pink);
}

.lightbox-inner img {
  max-height: calc(90dvh - 4rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-caption {
  margin: 0.5rem 0 0;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
}

.lightbox-close {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 3px solid var(--text);
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  box-shadow: 2px 2px 0 var(--yellow);
}

.lightbox-close:hover {
  background: var(--orange);
}

/* Footer */
.site-footer {
  margin-top: 1.25rem;
  text-align: center;
  padding: 1rem 0.75rem;
  background: linear-gradient(90deg, var(--yellow), #ffc0e0, var(--yellow));
  border: 4px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  animation: rise-in 0.55s ease 0.15s both;
}

.site-footer::before {
  content: "★ ★ ★";
  display: block;
  color: var(--pink-deep);
  letter-spacing: 0.4em;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
