:root {
  --blue: #2aabee;
  --blue-link: #0088cc;
  --text: #333333;
  --muted: #777777;
  --line: #e6e6e6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, Verdana, sans-serif;
}

a {
  color: var(--blue-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  height: 56px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.topnav {
  width: 1410px;
  max-width: calc(100% - 32px);
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.channel-link {
  white-space: nowrap;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 3px solid transparent;
  color: var(--blue-link);
  font-size: 15px;
  line-height: 20px;
}

.nav-link.is-active {
  border-bottom-color: var(--blue);
}

.page {
  width: 1410px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.intro {
  position: relative;
  min-height: 620px;
  padding-top: 40px;
}

.center {
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
  padding-top: 0;
}

.logo-stage {
  position: relative;
  width: 430px;
  max-width: 100%;
  min-height: 128px;
  margin: 0 auto 18px;
}

.telegram-logo {
  width: 128px;
  height: 128px;
  margin: 0 auto;
  transition: transform 360ms ease;
}

.proxy-result {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: #000000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 220ms ease 130ms, transform 260ms ease 130ms;
  white-space: nowrap;
  text-align: left;
}

.proxy-result a {
  color: var(--blue-link);
}

.proxy-more {
  display: block;
  margin-top: 8px;
  color: #000000;
  font-size: 14px;
  line-height: 20px;
}

.proxy-change {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-link);
  cursor: pointer;
  font: inherit;
}

.proxy-change:hover {
  text-decoration: underline;
}

.center.proxy-opened .telegram-logo {
  transform: translateX(-235px);
}

.center.proxy-opened .proxy-result {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

h1 {
  margin: 0;
  color: #4d4d4d;
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -1px;
}

.subtitle {
  margin: 4px 0 14px;
  color: #8c8c8c;
  font-size: 20px;
  line-height: 29px;
}

.connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 38px;
  padding: 5px 24px;
  background: var(--blue);
  border-radius: 3px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  line-height: 28px;
  text-transform: uppercase;
}

.connect-button:hover {
  background: #219fdc;
  text-decoration: none;
}

.description {
  width: 500px;
  max-width: 100%;
  margin: 24px auto 0;
  color: #000000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 20px;
}

.news {
  position: absolute;
  top: 44px;
  right: 77px;
  width: 260px;
  margin-top: 0;
  padding: 5px 0 5px 26px;
}

.news::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 5px;
  border-radius: 5px;
  background: #179cde;
}

.news h2 {
  margin: -6px 0 18px;
  color: var(--blue-link);
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
}

.news article {
  margin: 0 0 12px;
}

.news time {
  display: block;
  margin-bottom: 0;
  color: #000000;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}

.news a {
  display: block;
  max-width: 245px;
  font-size: 12px;
  line-height: 18px;
}

.info-section {
  max-width: 720px;
  margin: 0 auto 46px;
  color: #000000;
  text-align: center;
}

.info-section h2 {
  margin: 0 0 10px;
  color: var(--blue-link);
  font-size: 20px;
  line-height: 26px;
}

.info-section p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 21px;
}

.info-grid {
  max-width: 860px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  text-align: center;
}

.info-grid h3 {
  margin: 0 0 8px;
  color: var(--blue-link);
  font-size: 17px;
  line-height: 22px;
}

.info-grid p {
  margin: 0;
  color: #333333;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 20px;
}

.steps {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 22px;
}

.faq {
  padding-bottom: 70px;
}

.faq details {
  border-top: 1px solid var(--line);
  text-align: left;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 12px 0;
  color: var(--blue-link);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.faq details p {
  padding-bottom: 13px;
}

@media (max-width: 960px) {
  .topnav,
  .page {
    max-width: calc(100% - 24px);
  }

  .intro {
    min-height: auto;
    padding-top: 45px;
  }

  .news {
    position: static;
    width: min(100%, 360px);
    margin: 48px auto 70px;
  }

  .center.proxy-opened .telegram-logo {
    transform: translateX(-120vw);
  }

  .desktop-only {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar,
  .topnav {
    height: auto;
  }

  .topnav {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 6px;
  }

  .nav-left,
  .nav-right {
    flex-wrap: nowrap;
    gap: 0;
  }

  .nav-link {
    min-height: 36px;
    padding: 0 4px;
    font-size: 8px;
    line-height: 12px;
  }

  .channel-link {
    max-width: none;
    white-space: nowrap;
  }

  .page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .intro {
    padding-top: 28px;
  }

  .telegram-logo {
    width: 94px;
    height: 94px;
  }

  .logo-stage {
    width: min(100%, 280px);
    min-height: 94px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 22px;
    line-height: 27px;
    letter-spacing: 0;
  }

  .subtitle {
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 18px;
  }

  .connect-button {
    min-width: 150px;
    min-height: 29px;
    padding: 3px 14px;
    font-size: 13px;
    line-height: 21px;
  }

  .description {
    width: min(100%, 270px);
    margin-top: 18px;
    font-size: 10px;
    line-height: 15px;
  }

  .news {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: calc(100% - 48px);
    max-width: 280px;
    margin: 54px auto 84px;
    padding: 4px 0 4px 18px;
    text-align: left;
  }

  .news::before {
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 4px;
    border-radius: 4px;
  }

  .news h2 {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .news a,
  .news time {
    font-size: 10px;
    line-height: 15px;
  }

  .news article {
    margin-bottom: 10px;
  }

  .center {
    max-width: 280px;
  }

  .proxy-result {
    font-size: 10px;
    line-height: 15px;
  }

  .proxy-more {
    margin-top: 5px;
    font-size: 9px;
    line-height: 14px;
  }

  .center.proxy-opened .telegram-logo {
    transform: translateX(-120vw);
  }

  .info-section {
    width: min(100% - 32px, 320px);
    margin-bottom: 32px;
  }

  .info-section h2 {
    font-size: 14px;
    line-height: 19px;
  }

  .info-section p,
  .steps {
    font-size: 10px;
    line-height: 16px;
  }

  .info-grid {
    width: min(100% - 24px, 360px);
    margin-bottom: 34px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

}
