* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #22211f;
  background: #fbfaf6;
}

body,
a {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: 100%;
  margin: 0 auto;
  padding: 30px max(24px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: rgba(255, 252, 247, 0.82);
  border-bottom: 1px solid rgba(98, 82, 63, 0.08);
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  color: #b17c72;
  text-align: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  color: #4d4942;
}

.site-nav a:hover {
  color: #22211f;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.hero {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(88vh - 86px);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 72px;
  padding: 32px 0 72px;
  background: #f2e7d8;
  box-shadow: 0 0 0 100vmax #f2e7d8;
  clip-path: inset(0 -100vmax);
}

.hero-text h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  line-height: 1.04;
  font-weight: 400;
}

.hero-text p {
  margin: 0;
  max-width: 560px;
  color: #5d5850;
  font-size: 24px;
  line-height: 1.5;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(234, 225, 211, 0.42)),
    #eee7dc;
  box-shadow: inset 0 0 0 1px rgba(120, 105, 85, 0.08);
}

.about,
.work,
.running,
.contact {
  width: 100%;
  padding: 128px 0 144px;
}

.about {
  position: relative;
  overflow: hidden;
}

.about::before,
.about::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 470px;
  border: 0;
  border-left: 4px solid rgba(177, 124, 114, 0.24);
  border-radius: 58% 42% 62% 38%;
  pointer-events: none;
}

.about::before {
  left: max(48px, calc((100% - 1120px) / 2 - 72px));
  top: 120px;
  transform: rotate(-9deg);
}

.about::after {
  right: max(48px, calc((100% - 1120px) / 2 - 72px));
  bottom: 96px;
  transform: rotate(9deg) scaleX(-1);
}

.work {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f3eee6;
}

.work::before {
  content: "";
  position: absolute;
  top: 64px;
  right: max(16px, calc((100% - 1120px) / 2 - 28px));
  bottom: 64px;
  width: min(40%, 500px);
  border-radius: 34px;
  background: url("images/main/Mily_work.jpg") center center / cover no-repeat;
}

.work::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f3eee6 0%, #f3eee6 58%, rgba(243, 238, 230, 0.82) 74%, rgba(243, 238, 230, 0.34) 100%),
    linear-gradient(180deg, #f3eee6 0%, rgba(243, 238, 230, 0) 18%, rgba(243, 238, 230, 0) 82%, #f3eee6 100%);
  pointer-events: none;
}

.running {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f7f5ef;
}

.running::before {
  content: "";
  position: absolute;
  top: 64px;
  left: max(16px, calc((100% - 1120px) / 2 - 28px));
  bottom: 64px;
  width: min(40%, 500px);
  border-radius: 34px;
  background: url("images/main/Mily_running.jpg") center top / cover no-repeat;
}

.running::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 239, 0.34) 0%, rgba(247, 245, 239, 0.82) 26%, #f7f5ef 42%, #f7f5ef 100%),
    linear-gradient(180deg, #f7f5ef 0%, rgba(247, 245, 239, 0) 18%, rgba(247, 245, 239, 0) 82%, #f7f5ef 100%);
  pointer-events: none;
}

.about h2,
.contact h2 {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 400;
}

.about p,
.contact p {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  color: #5d5850;
  font-size: 20px;
  line-height: 1.7;
}

.work-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-left: min(4vw, 44px);
}

.work-text {
  max-width: 540px;
}

.work h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 400;
}

.work p {
  margin: 0;
  max-width: 560px;
  color: #5d5850;
  font-size: 20px;
  line-height: 1.7;
}

.running-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-right: min(4vw, 44px);
}

.running-text {
  max-width: 540px;
  margin-left: auto;
}

.running h2 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.2;
  font-weight: 400;
  color: #464139;
}

.running p {
  margin: 0;
  max-width: 560px;
  color: #5d5850;
  font-size: 20px;
  line-height: 1.7;
}

.running-link {
  display: inline-flex;
  margin-top: 34px;
  padding: 13px 20px;
  border: 1px solid rgba(70, 65, 57, 0.22);
  border-radius: 999px;
  color: #464139;
  background: rgba(251, 250, 246, 0.44);
  font-size: 15px;
  font-weight: 500;
}

.running-link:hover {
  border-color: rgba(70, 65, 57, 0.38);
  background: rgba(251, 250, 246, 0.7);
}

.about p + p,
.work p + p,
.running p + p,
.contact p + p {
  margin-top: 22px;
}

@media (max-width: 760px) {
  .site-header {
    padding: 22px 16px;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .logo {
    grid-row: 1;
    font-size: 26px;
  }

  .nav-left {
    grid-row: 2;
  }

  .nav-right {
    grid-row: 3;
  }

  .hero {
    width: min(100% - 32px, 1120px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 72px;
  }

  .hero-text h1 {
    font-size: 48px;
  }

  .hero-text p {
    font-size: 20px;
  }

  .photo-placeholder {
    max-width: 420px;
  }

  .about,
  .work,
  .running,
  .contact {
    padding: 88px 0 104px;
  }

  .about::before,
  .about::after {
    display: none;
  }

  .work {
    min-height: 760px;
    align-items: flex-start;
  }

  .work::before {
    top: 320px;
    right: 16px;
    bottom: 48px;
    width: min(78%, 400px);
    background-position: center center;
  }

  .work::after {
    background:
      linear-gradient(180deg, #f3eee6 0%, #f3eee6 34%, rgba(243, 238, 230, 0.76) 62%, #f3eee6 100%);
  }

  .running {
    min-height: 760px;
    align-items: flex-start;
  }

  .running::before {
    top: 320px;
    left: 16px;
    bottom: 48px;
    width: min(78%, 400px);
    background-position: center top;
  }

  .running::after {
    background:
      linear-gradient(180deg, #f7f5ef 0%, #f7f5ef 32%, rgba(247, 245, 239, 0.76) 58%, #f7f5ef 100%);
  }

  .about h2,
  .contact h2,
  .about p,
  .contact p {
    width: min(100% - 32px, 760px);
  }

  .about h2,
  .contact h2 {
    font-size: 36px;
    margin-bottom: 22px;
  }

  .work-content {
    width: min(100% - 32px, 760px);
    padding-left: 0;
  }

  .work h2 {
    font-size: 36px;
    margin-bottom: 22px;
  }

  .running-content {
    width: min(100% - 32px, 760px);
    padding-right: 0;
  }

  .running h2 {
    font-size: 36px;
    margin-bottom: 22px;
  }
  
  html {
  scroll-behavior: smooth;
  }
}

.running-page {
  background: #fbfaf6;
}

.run-hero {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(86vh - 86px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 76px;
  padding: 72px 0 112px;
  background: #f2e7d8;
  box-shadow: 0 0 0 100vmax #f2e7d8;
  clip-path: inset(0 -100vmax);
}

.run-hero h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  line-height: 1;
  font-weight: 400;
}

.run-label {
  margin: 0 0 18px;
  color: #9a6e65;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-hero p,
.run-section p {
  color: #514d46;
  font-size: 20px;
  line-height: 1.7;
}

.run-hero p {
  max-width: 640px;
  margin: 0;
}

.run-hero p + p,
.run-section p + p {
  margin-top: 22px;
}

.run-hero-image {
  min-height: 560px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(242, 231, 216, 0.08), rgba(242, 231, 216, 0.4)),
    url("images/running/Mily_running2.jpg") center top / cover no-repeat;
}

.run-section {
  padding: 132px 0 148px;
}

.run-section-inner {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
}

.run-section h2 {
  margin: 0 0 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.16;
  font-weight: 400;
}

.run-focus {
  position: relative;
  overflow: hidden;
}

.run-focus::before {
  content: "";
  position: absolute;
  top: 104px;
  right: max(40px, calc((100% - 1120px) / 2 - 80px));
  width: 140px;
  height: 440px;
  border-left: 4px solid rgba(177, 124, 114, 0.18);
  border-radius: 58% 42% 62% 38%;
  transform: rotate(9deg) scaleX(-1);
  pointer-events: none;
}

.run-races {
  background: #f3eee6;
}

.race-template {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 38px;
  border: 1px solid rgba(98, 82, 63, 0.14);
  border-radius: 28px;
  overflow: hidden;
}

.race-template span {
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 22px;
  color: #5d5850;
  background: rgba(251, 250, 246, 0.44);
  font-size: 15px;
  font-weight: 600;
}

.bucket-list {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.bucket-list li {
  padding: 20px 0;
  border-top: 1px solid rgba(98, 82, 63, 0.14);
  color: #514d46;
  font-size: 22px;
  line-height: 1.45;
}

.bucket-list li:last-child {
  border-bottom: 1px solid rgba(98, 82, 63, 0.14);
}

.run-hero .run-label,
.run-section .run-label {
  margin: 0 0 18px;
  color: #9a6e65;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .run-hero {
    width: min(100% - 32px, 1120px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 56px 0 88px;
  }

  .run-hero h1 {
    font-size: 54px;
  }

  .run-hero p,
  .run-section p {
    font-size: 19px;
  }

  .run-hero-image {
    min-height: 420px;
  }

  .run-section {
    padding: 88px 0 104px;
  }

  .run-section-inner {
    width: min(100% - 32px, 820px);
  }

  .run-section h2 {
    font-size: 38px;
  }

  .run-focus::before {
    display: none;
  }

  .race-template {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .race-template span {
    min-height: 64px;
  }

  .bucket-list li {
    font-size: 20px;
  }
}
