*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --page-bg: #f5f5f5;
}

@font-face {
  font-family: "Bodoni 72";
  src: url("assets/fonts/bodoni_72/bodoni_72_bold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway-regular";
  src: url("assets/fonts/Raleway/Raleway-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway-semi_bold";
  src: url("assets/fonts/Raleway/Raleway-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway-bold";
  src: url("assets/fonts/Raleway/Raleway-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway-extra_bold";
  src: url("assets/fonts/Raleway/Raleway-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: black;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

h1,
h2 {
  font-family: "Raleway-extra_bold", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header__inner {
  max-width: 1440px;
  height: 90px;
  margin-inline: auto;
  padding: 11px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__brand {
  display: flex;
  align-items: center;
}

.header__logo-icon {
  width: 106px;
  height: 68px;
}

.header__logo-text {
  width: 183.62px;
  height: 31.68px;
}

.header__nav {
  display: flex;
  gap: 37px;
  font-size: 0.875rem;
}

.header__nav a {
  font-family: "Raleway-regular";
  position: relative;
  font-weight: 400;
  color: #1c215f;
  padding-bottom: 0.1rem;
}

.header__nav a.active,
.header__nav a:hover {
  color: #ec2037;
}

.header__nav a.active::after,
.header__nav a:hover::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: #ec2037;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: #1c215f;
  border-radius: 4px;
  transition: 0.3s;
}

.hero {
  background-color: #ffffff;
}

.hero__img {
  width: 100%;
}

.events-page {
  max-width: 1300px;
  margin: 0 auto 72px;
  padding-inline: 1.5rem;
}

.events-title {
  max-width: 850px;
  margin: 64px 0;
}

.events-title h1 {
  font-family: "Raleway-extra_bold";
  font-size: 64px;
  color: #2d3488;
}

.events-title h1 span {
  color: #ec2037;
}

.events-title p {
  font-family: "Raleway-regular";
  font-size: 32px;
  margin-top: 6px;
  margin-left: 4px;
  line-height: 120%;
  letter-spacing: -0.03em;
  color: #2d3488;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.event-card {
  width: 100%;
  background: #ffffff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.06);
}

.date {
  min-width: 172px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.date .month {
  font-family: "Raleway-regular", sans-serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 3px;
}

.date .day {
  font-family: "Bodoni 72", serif;
  font-size: 80px;
  line-height: 1;
  margin: 0;
}

.date .year {
  font-family: "Raleway-regular", sans-serif;
  font-size: 40px;
  font-weight: 400;
  margin-top: 3px;
}

.divider {
  width: 1px;
  align-self: stretch;
  border-left: 1px dashed #d3d5e5;
}

.logo img {
  width: 200px;
  height: auto;
}

.content {
  max-width: 623px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content h2 {
  font-family: "Raleway-semi_bold";
  font-size: 32px;
  color: #ec2037;
}

.content p {
  font-size: 20px;
  line-height: 1.3;
}

.actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
}

.arrow {
  padding: 4px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow svg {
  width: 18px;
  height: 20px;
  stroke: #1c215f;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.arrow:hover svg {
  transform: translateY(-1px);
  stroke: #1c215f;
}

.btn_cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f5f5f5cc;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.btn_cta_icon {
  width: 25px;
  height: 25px;
}

.btn_cta_light {
  font-family: "Raleway-bold";
  font-weight: 700;
  font-size: 20px;
  color: #1c215f;
}

.btn_cta:hover,
.btn_cta:focus-visible {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  outline: none;
}

.footer {
  position: relative;
  padding: 40px 24px 80px;
  background-color: var(--page-bg);
  font-family: "Raleway-regular", system-ui, sans-serif;
  color: #1a1a1a;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin-inline: auto;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__logo {
  display: block;
  width: 265px;
  height: auto;
  margin-bottom: 1rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  justify-content: center;
  list-style: none;
}

.footer__social-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.footer__contact {
  min-width: 200px;
  max-width: 260px;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.footer__contact-heading {
  margin: 0 0 1rem;
  font-family: "Raleway-regular", system-ui, sans-serif;
  font-size: 14px;
  text-align: center;
}

.footer__contact-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.footer__contact-icon {
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
}

.footer__contact-text {
  font-size: 14px;
  line-height: 1.4;
}

.footer__legal {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 2rem auto 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.footer__rule {
  width: 750px;
  height: 1px;
  border: 1px solid #000000;
  max-width: 100%;
  margin: 0 auto 0.5rem;
}

.footer__copy {
  font-family: "Raleway-regular";
  display: block;
  max-width: none;
  margin: 4px auto;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.footer__doodles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

@media (max-width: 900px) {
  .event-card {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .divider {
    width: 100%;
    height: 1px;
    border-left: none;
    border-top: 1px dashed #d3d5e5;
  }

  .date {
    flex-direction: row;
    gap: 20px;
    justify-content: flex-start;
  }

  .actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
  }

  .logo img {
    width: 160px;
  }

  .content h2 {
    font-size: 28px;
  }

  .content p {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .events-title {
    margin: 40px auto 24px;
    padding: 1.5rem 1rem 1rem;
  }

  .events-title h1 {
    font-size: 40px;
  }

  .events-title p {
    font-size: 20px;
    margin-left: 0;
  }

  .date .day {
    font-size: 60px;
  }

  .date .month {
    font-size: 22px;
  }

  .date .year {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 40px 1rem 60px;
    text-align: center;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
    text-align: center;
  }

  .footer__logo {
    width: 200px;
    height: auto;
  }

  .footer__social {
    justify-content: center;
    gap: 1rem;
  }

  .footer__contact {
    max-width: 260px;
    min-width: 200px;
    margin: 0 auto;
    text-align: center;
  }

  .footer__contact-heading {
    text-align: center;
  }

  .footer__contact-item {
    justify-content: center;
    text-align: left;
  }

  .footer__legal {
    max-width: 100%;
    margin-top: 2rem;
    font-size: 12px;
    line-height: 1.4;
  }

  .footer__rule {
    width: 80%;
    max-width: 750px;
    margin: 1.5rem auto 0.5rem;
    border: 1px solid #000;
  }

  .footer__copy {
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer__brand {
    align-items: flex-start;
    text-align: left;
  }

  .footer__social {
    justify-content: flex-start;
  }

  .footer__contact {
    text-align: left;
  }

  .footer__contact-heading {
    text-align: left;
  }

  .footer__rule {
    width: 750px;
    max-width: 100%;
    margin: 2rem auto 0.5rem;
  }
}

@media (min-width: 1024px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 4rem;
    text-align: left;
  }

  .footer__brand {
    align-items: center;
    text-align: center;
  }

  .footer__contact {
    min-width: 200px;
    max-width: 260px;
    font-size: 14px;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header__nav {
    position: absolute;
    top: 90px;
    right: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 18px;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.25s ease;
  }

  .header__nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header__inner {
    padding: 10px 20px;
    gap: 12px;
    justify-content: space-between;
  }

  .header__brand {
    gap: 12px;
  }

  .header__logo-icon {
    width: 60px;
    height: auto;
  }

  .header__logo-text {
    width: 120px;
    height: auto;
  }

  .header__brand,
  .header__nav,
  .nav-toggle {
    flex-shrink: 0;
  }
}
