* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #24251f;
  background: #f7f6f0;
}

::selection {
  color: #fff;
  background: #393f2b;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 3px solid #805000;
  outline-offset: 5px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-itmes: center;
  padding: 44px 40px;
  background: #f7f6f0;
  border-bottom: 1px solid #cecec1;
}

.brand {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
}

.site-nav {
  dispaly: flex;
  gap: 24px;
  margin-left: 1000px;
  flex-shrink: 0;
}

.site-nav a,
.site-nav__item {
  white-space: nowrap;
}

.site-nav__item {
  margin: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px;
}

.intro {
  padding: 48px 40px 32px;
  background: #edb84d;
}

.intro .page-title {
  max-width: 16ch;
  margin-bottom: 24px;
  font-size: 56px;
  letter-spacing: -0.03em;
}

.intro__text {
  max-width: 52ch;
  font-size: 19px;
}

.intro__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.intro__bottom p {
  margin: 0;
  font-size: 15px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
}

.button--dark {
  color: #fff;
  background: #24251f;
}

.program {
  margin-top: 48px;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading .section-title {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
}

.events {
  display: grid;
  grid-template-columns: 65% 65%;
  gap: 24px;
}

.event {
  padding: 28px;
  border: 1px solid #cecec1;
  background: #fff;
  border-radius: 12px;
}

.event__meta {
  margin-bottom: 16px;
  font-size: 14px;
  color: #505348;
}

.event h3,
.event .event-title {
  margin-bottom: 16px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.event__description {
  margin-bottom: 24p;
}

.event__code {
  font-size: 20px;
  color: #505348;
}

.event__link {
  display: inline-block;
  font-weight: 700;
}

.badge {
  position: absolute;
  top: 260px;
  right: 40%;
  padding: 12px 18px;
  background: #393f2b;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 6px;
}

.details {
  margin-top: 64px;
}

.details h2,
.visit h2,
.rules h2 {
  margin-bottom: 24px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.details article {
  max-width: 68ch;
  padding: 24px 0;
  border-top: 1px solid #cecec1;
}

.details h3 {
  font-size: 23px;
  margin-bottom: 12px;
}

.details p {
  margin-bottom: 0;
}

.visit {
  margin-top: 40px;
  padding: 32px;
  background: #e6e9de;
}

.visit p,
.rules p {
  max-width: 68ch;
}

.rules {
  margin-top: 48px;
}

.rules p {
  font-size: 14px;
  color: #505348;
}

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid #cecec1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 0;
}
