:root {
  --red: #df1f18;
  --blue: #1c3f85;
  --ink: #252f3d;
  --muted: #7b828d;
  --soft: #f3f3f3;
  --hero-bg: #e9eaee;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
}

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

.site {
  background: #fff;
}

.hero {
  position: relative;
  min-height: 648px;
  overflow: hidden;
  background: var(--hero-bg);
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 124px;
}

.hero h1 {
  margin: 0;
  color: #484c52;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero__en {
  margin: 22px 0 13px;
  color: #8a8e95;
  font-family: "Courier New", Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
}

.hero h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  color: #4d5055;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
}

.swiss-flag {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  background: #df231d;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgb(0 0 0 / 10%);
  flex: 0 0 auto;
}

.swiss-flag::before,
.swiss-flag::after {
  content: "";
  position: absolute;
  background: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.swiss-flag::before {
  width: 25px;
  height: 8px;
}

.swiss-flag::after {
  width: 8px;
  height: 25px;
}

.hero__fr {
  margin: 9px 0 0;
  color: #858990;
  font-family: "Courier New", Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
}

.hero__mountains {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 42px;
  width: 1920px;
  max-width: none;
  transform: translateX(-50%);
}

.hero__bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  background: var(--red);
}

.portals {
  padding: 122px 24px 112px;
  background: #fff;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 62px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.portal-card {
  margin: 0;
  text-align: center;
}

.portal-card img {
  width: 100%;
  aspect-ratio: 310 / 126;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgb(33 45 68 / 8%);
}

.portal-card p {
  margin: 22px 0 0;
  color: #2b2b2b;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.section-block {
  padding: 0 24px;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  margin: 0;
  color: #1f2837;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
}

.section-title span {
  display: block;
  width: 48px;
  height: 4px;
  margin: 28px auto 0;
  background: var(--blue);
}

.intro__text {
  width: min(1100px, 100%);
  margin: 54px auto 0;
  color: #8a9099;
  font-size: 14px;
  line-height: 2.2;
  text-align: left;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 72px;
  width: min(980px, 100%);
  margin: 78px auto 0;
  text-align: center;
}

.metric {
  color: #8a8f98;
}

.metric strong {
  display: inline-block;
  color: #eb2019;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.metric strong span {
  margin-left: 3px;
  font-size: 21px;
  vertical-align: super;
}

.metric small {
  display: inline-block;
  margin-left: 6px;
  color: #565d66;
  font-size: 20px;
  vertical-align: 6px;
}

.metric p {
  margin: 28px 0 0;
  color: #9499a2;
  font-size: 27px;
  line-height: 1.2;
}

.events {
  padding-top: 166px;
  padding-bottom: 104px;
}

.events__summary {
  width: min(880px, 100%);
  margin: 66px auto 72px;
  color: #989da5;
  font-size: 14px;
  line-height: 2;
  text-align: center;
}

.event-feature {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  width: min(1210px, 100%);
  margin: 0 auto;
}

.event-feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.event-feature__body {
  min-width: 0;
  padding: 6px 0;
}

.event-feature__body h3 {
  margin: 0 0 24px;
  color: #161a22;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
}

.event-feature__body time {
  display: block;
  margin-bottom: 36px;
  color: #a6abb3;
  font-size: 14px;
}

.event-feature__body p {
  margin: 0 0 20px;
  color: #4f5661;
  font-size: 16px;
  line-height: 1.7;
}

.event-feature__body strong {
  color: #333a45;
  font-weight: 700;
}

.footer {
  padding: 42px 24px 34px;
  background: var(--red);
  color: #f7c9c7;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.footer span {
  display: block;
  width: min(1420px, 80vw);
  height: 1px;
  margin: 36px auto 26px;
  background: rgb(255 255 255 / 20%);
}

@media (max-width: 1200px) {
  .hero {
    min-height: 560px;
  }

  .hero__content {
    padding-top: 92px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 31px;
  }

  .hero__mountains {
    width: 1500px;
  }

  .portal-grid {
    gap: 34px;
  }

  .portal-card p {
    font-size: 18px;
  }

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

@media (max-width: 900px) {
  .hero {
    min-height: 500px;
  }

  .hero__content {
    padding: 72px 22px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 25px;
  }

  .hero__en,
  .hero__fr {
    font-size: 13px;
  }

  .swiss-flag {
    width: 34px;
    height: 34px;
  }

  .hero__mountains {
    width: 1120px;
  }

  .portals {
    padding: 72px 20px 86px;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }

  .section-title h2 {
    font-size: 36px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 32px;
  }

  .events {
    padding-top: 112px;
  }

  .event-feature {
    grid-template-columns: 1fr;
    max-width: 650px;
    gap: 34px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 430px;
  }

  .hero__content {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero h2 {
    font-size: 21px;
  }

  .hero__mountains {
    width: 920px;
    bottom: 32px;
  }

  .hero__bar {
    height: 32px;
  }

  .portals {
    padding-top: 54px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 310px;
  }

  .portal-card p {
    margin-top: 13px;
    font-size: 17px;
  }

  .intro__text {
    margin-top: 36px;
    font-size: 13px;
    line-height: 2;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .metric strong {
    font-size: 46px;
  }

  .metric p {
    margin-top: 16px;
    font-size: 22px;
  }

  .events {
    padding-top: 82px;
    padding-bottom: 72px;
  }

  .events__summary {
    margin: 42px auto 42px;
    font-size: 13px;
  }

  .event-feature__body h3 {
    font-size: 26px;
  }

  .event-feature__body p {
    font-size: 14px;
  }
}
