:root {
  color-scheme: light;
  --ink: #161616;
  --green: #23ad4e;
  --green-dark: #179340;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #f5f5f5;
  color: var(--ink);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.route-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 36px 22px 58px;
}

.route-intro {
  margin: 0 auto 26px;
  text-align: center;
}

.route-intro h1,
.route-intro h2 {
  margin: 0;
  color: #d83242;
  font-weight: 750;
  letter-spacing: 0;
}

.route-intro h1,
.route-intro h2 {
  font-size: 34px;
  line-height: 1.22;
}

.route-intro h2 {
  margin-top: 16px;
}

.vpn-link {
  display: inline-block;
  margin-top: 18px;
  color: #41178b;
  font-size: 24px;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.route-list {
  display: grid;
  gap: 20px;
}

.route-card {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 34px 18px 40px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.route-card:hover,
.route-card:focus-visible {
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.13);
}

.route-card:active {
  transform: translateY(1px);
}

.route-label {
  font-size: 34px;
  font-weight: 650;
  white-space: nowrap;
}

.route-label--stacked {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.route-label-note {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.route-button {
  min-width: 232px;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  transition: background 160ms ease;
}

.route-card:hover .route-button,
.route-card:focus-visible .route-button {
  background: var(--green-dark);
}

@media (max-width: 700px) {
  .route-page {
    padding: 56px 16px 42px;
  }

  .route-intro {
    margin-bottom: 27px;
  }

  .route-intro h2 {
    margin-top: 17px;
  }

  .vpn-link {
    margin-top: 18px;
  }

  .route-list {
    gap: 18px;
  }

  .route-card {
    min-height: 96px;
    padding: 16px 24px 16px 28px;
    border-radius: 16px;
  }

  .route-label {
    font-size: 27px;
  }

  .route-label-note {
    font-size: 13px;
  }

  .route-button {
    min-width: 0;
    flex: 0 1 48%;
    padding: 12px 12px;
    font-size: 22px;
  }
}

@media (max-width: 390px) {
  .route-card {
    padding-inline: 20px;
  }

  .route-label {
    font-size: 25px;
  }

  .route-button {
    font-size: 20px;
  }
}
