@font-face {
  font-family: 'Teko';
  src: url('Teko-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #141414;
  --text: #f7fff7;
  --green: #66d86f;
  --green-soft: #83e58d;
  --panel: #d0d0d0;
  --panel-light: #e5e5e5;
  --field: #f5f5f5;
  --ink: #101610;
  --muted: #555555;
  --line: #8d8d8d;
  --blue: #007aff;
  --blue-dark: #006ee6;
  --red: #c1121f;
  --page-width: 1000px;
  --text-width: 620px;
  --visual-width: 720px;
  --page-pad-x: 24px;
  --page-pad-y: 32px;
  --page-pad-bottom: 48px;
  --h1-size: 100px;
  --h2-size: 40px;
  --p-size: 26px;
  --logo-size: 72px;
  --wallet-width: 720px;
  --chart-height: 280px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-width: 0;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Teko', Arial, sans-serif;
  letter-spacing: 0.034em;
  line-height: 1.38;
  word-spacing: 0.22em;
}

img {
  height: auto;
  max-width: 100%;
}

strong,
b {
  font-weight: 400;
}

a {
  color: var(--green-soft);
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--page-pad-y) var(--page-pad-x) var(--page-pad-bottom);
}

.site-menu {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
}

.home-nav-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #101610;
  font-family: 'Teko', Arial, sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  padding: 11px 22px;
  text-decoration: none;
}

.home-nav-link:hover,
.home-nav-link:focus-visible {
  border-color: #ffffff;
  background-color: #ffffff;
}

.home-arrow {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10;
  display: block;
  width: 76px;
  height: 64px;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.home-arrow::before,
.home-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.home-arrow::before {
  left: 20px;
  width: 50px;
  height: 13px;
  border-radius: 999px;
  background-color: #ffffff;
}

.home-arrow::after {
  left: 0;
  width: 0;
  height: 0;
  border-top: 27px solid transparent;
  border-right: 31px solid #ffffff;
  border-bottom: 27px solid transparent;
}

.home-arrow:hover,
.home-arrow:focus-visible {
  opacity: 0.82;
  outline: none;
}

.site-menu-button {
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #101610;
  cursor: pointer;
  font-family: 'Teko', Arial, sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  padding: 11px 22px;
}

.site-menu-button:hover,
.site-menu-button:focus-visible,
.site-menu.open .site-menu-button {
  border-color: #ffffff;
  background-color: #ffffff;
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
  text-align: left;
}

.site-menu-panel a {
  display: block;
  padding: 14px 24px;
  color: #101610;
  font-family: 'Teko', Arial, sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
}

.site-menu-panel a:hover,
.site-menu-panel a:focus-visible {
  background-color: #ececec;
}

.site-menu-panel a + a {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-menu-panel .site-menu-primary {
  border-left: 3px solid var(--green);
  background-color: #f1f1f1;
  font-weight: 700;
  padding-left: 21px;
}

h1,
h2,
p {
  font-family: 'Teko', Arial, sans-serif;
  letter-spacing: inherit;
}

h1 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
}

h2 {
  margin: 34px 0 12px;
  color: var(--green);
  font-size: var(--h2-size);
  font-weight: 300;
  line-height: 1.05;
  text-align: left;
}

p {
  margin: 0 0 20px;
  color: var(--text);
  font-size: var(--p-size);
  line-height: 1.38;
  overflow-wrap: break-word;
  text-align: left;
}

.logo {
  display: block;
  width: var(--logo-size);
  margin: 0 auto 8px;
}

.page-logo-header {
  margin: 0 auto 42px;
  text-align: center;
}

.page-logo-header .logo {
  width: var(--logo-size);
  height: auto;
  margin-bottom: 8px;
  object-fit: contain;
}

.page-logo-header h1 {
  margin-top: 0;
}

@media (min-width: 1600px) {
  :root {
    --page-width: 1160px;
    --text-width: 680px;
    --visual-width: 840px;
    --page-pad-y: 44px;
    --page-pad-bottom: 72px;
    --h1-size: 92px;
    --h2-size: 48px;
    --p-size: 28px;
    --logo-size: 88px;
    --wallet-width: 840px;
    --chart-height: 340px;
  }
}

@media (min-width: 2400px) {
  :root {
    --page-width: 1900px;
    --text-width: 900px;
    --visual-width: 1500px;
    --page-pad-x: 72px;
    --page-pad-y: 84px;
    --page-pad-bottom: 128px;
    --h1-size: 132px;
    --h2-size: 72px;
    --p-size: 34px;
    --logo-size: 132px;
    --wallet-width: 1500px;
    --chart-height: 620px;
  }

  h2 {
    margin-top: 64px;
  }

  p {
    line-height: 1.42;
  }

  .site-menu {
    top: 32px;
    right: 32px;
  }

  .home-nav-link {
    top: 32px;
    left: 32px;
    font-size: 51px;
    padding: 15px 33px;
  }

  .site-menu-button {
    font-size: 51px;
    padding: 15px 33px;
  }

  .site-menu-panel {
    width: 460px;
  }

  .site-menu-panel a {
    font-size: 52px;
    padding: 16px 34px;
  }

  .site-menu-panel .site-menu-primary {
    padding-left: 31px;
  }
}

@media (max-width: 760px) {
  :root {
    --page-width: 100%;
    --text-width: 100%;
    --visual-width: 100%;
    --page-pad-x: 18px;
    --page-pad-y: 30px;
    --page-pad-bottom: 56px;
    --h1-size: 66px;
    --h2-size: 42px;
    --p-size: 26px;
    --logo-size: 64px;
    --chart-height: 250px;
  }

  .logo {
    width: auto;
    height: 132px;
    max-width: 88%;
    margin: 0 auto 24px;
    object-fit: contain;
  }

  h1 {
    line-height: 1;
    max-width: 95%;
    margin: 0 auto 50px;
  }

  .page-logo-header h1 {
    margin-bottom: 0;
  }

  h2 {
    margin-top: 38px;
    margin-bottom: 20px;
  }

  p {
    line-height: 1.42;
    margin-bottom: 24px;
  }

  .site-menu {
    top: 12px;
    right: 12px;
  }

  .home-arrow {
    top: 12px;
    left: 12px;
    width: 64px;
    height: 58px;
  }

  .home-arrow::before {
    left: 17px;
    width: 41px;
    height: 12px;
  }

  .home-arrow::after {
    border-top-width: 24px;
    border-right-width: 28px;
    border-bottom-width: 24px;
  }

  .home-nav-link {
    top: 12px;
    left: 12px;
    font-size: 30px;
    padding: 9px 17px;
  }

  .site-menu-button {
    font-size: 30px;
    padding: 9px 17px;
  }

  .site-menu-panel {
    width: 300px;
  }

  .site-menu-panel a {
    font-size: 34px;
    padding: 11px 18px;
  }

  .site-menu-panel .site-menu-primary {
    padding-left: 15px;
  }
}

@media (max-width: 430px) {
  :root {
    --page-pad-x: 16px;
    --page-pad-y: 24px;
    --page-pad-bottom: 48px;
    --h1-size: 54px;
    --h2-size: 38px;
    --p-size: 24px;
    --logo-size: 56px;
    --chart-height: 230px;
  }

  .logo {
    height: 108px;
    margin-bottom: 22px;
  }

  h1 {
    margin-bottom: 44px;
  }

  .page-logo-header h1 {
    margin-bottom: 0;
  }

  .site-menu {
    top: 10px;
    right: 10px;
  }

  .home-arrow {
    top: 10px;
    left: 10px;
    width: 58px;
    height: 52px;
  }

  .home-arrow::before {
    left: 15px;
    width: 37px;
    height: 12px;
  }

  .home-arrow::after {
    border-top-width: 22px;
    border-right-width: 25px;
    border-bottom-width: 22px;
  }

  .home-nav-link {
    top: 10px;
    left: 10px;
    font-size: 27px;
    padding: 8px 14px;
  }

  .site-menu-button {
    font-size: 27px;
    padding: 8px 14px;
  }

  .site-menu-panel {
    width: 280px;
  }

  .site-menu-panel a {
    font-size: 32px;
    padding: 10px 16px;
  }

  .site-menu-panel .site-menu-primary {
    padding-left: 13px;
  }
}
