:root {
  --maroon: #691327;
  --maroon-dark: #4c0f1d;
  --yellow: #efe326;
  --light: #f6f6f6;
  --text: #ffffff;
  --ink: #1c1c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--light);
  color: var(--ink);
}

.top-nav {
  background: linear-gradient(90deg, var(--maroon-dark), #8d2338);
  color: var(--text);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav p {
  margin: 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.top-phone:hover,
.top-phone:focus-visible {
  text-decoration: underline;
}

.menu-link {
  opacity: 0.95;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  background-image: url("/static/images/hero.avif");
  background-position: center top;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 18px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: 22px 26px 26px;
  border-radius: 12px;
  background: rgba(31, 7, 14, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(2px);
}

.hero-logo {
  width: 190px;
  max-width: 42vw;
}

.hero h1 {
  color: #fff;
  margin: 16px 0 22px;
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.12;
}

.cta-button {
  display: inline-block;
  background: var(--yellow);
  color: #212121;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 4px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.cta-button:focus-visible {
  outline: 3px solid rgba(239, 227, 38, 0.46);
  outline-offset: 2px;
}

.about {
  background: linear-gradient(180deg, #7e1e32 0%, #641223 100%);
  color: #ffffff;
  padding: 34px 0;
}

.section-wrap {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.about h2,
.team h2,
.testimonials h2,
.events h2 {
  text-align: center;
  margin: 0 0 16px;
}

.about p {
  margin: 0 auto 12px;
  max-width: 860px;
  line-height: 1.56;
  font-size: 0.95rem;
}

.team,
.testimonials {
  padding: 34px 0;
  background: #ffffff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
}

.team-card {
  background: #f7f7f7;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.team-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.card-body {
  padding: 12px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card-body p {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #3f3f3f;
}

.testimonial-card {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
}

.avatar-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card p {
  margin: 0;
  line-height: 1.6;
}

.events {
  background: radial-gradient(circle at 40% 0%, #21394f 0%, #0f1f30 56%, #13283d 100%);
  color: #ffffff;
  padding: 38px 0 44px;
}

.event-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  max-width: 760px;
  margin: 0 auto;
}

.event-card {
  background: rgba(239, 227, 38, 0.95);
  border-radius: 8px;
  padding: 14px;
  color: #222;
}

.event-card img {
  width: 100%;
  border-radius: 6px;
  display: block;
  margin-bottom: 10px;
}

.event-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.event-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.site-footer {
  background: linear-gradient(180deg, #7d1b2f 0%, #5f1221 100%);
  color: #fff;
  padding: 24px 0 18px;
}

.footer-wrap {
  width: min(1040px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.footer-logo {
  width: 180px;
  max-width: 100%;
}

.footer-text p {
  margin: 4px 0;
}

.footer-text p a {
  color: var(--text);
  text-decoration: none;
}

.copyright {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .top-phone {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 360px;
    padding: 30px 14px;
  }

  .hero-content {
    padding: 18px 18px 22px;
  }

  .team-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .avatar-wrap {
    margin: 0 auto;
  }
}
