.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  margin: 0 auto;
}
.header-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.header-logo img {
  display: block;
  width: 150px;
  height: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-left: auto;
}
.header-nav-link {
  color: #111;
  font-size: 16px;
  line-height: 66px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.header-nav-link:hover,
.header-nav-link.is-active {
  color: #543FFC;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  order: 3;
  margin-left: 60px;
}
.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 114px;
  height: 43px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.2s ease;
}
.header-action[hidden] {
  display: none;
}
.header-action:hover .header-action-text {
  transform: translateY(-40px);
}
.header-action:hover .header-action-icon {
  transform: translateY(0);
}
.header-action-text {
  transition: transform 0.25s ease;
}
.header-download {
  background: #5745ff;
}
.header-download:hover {
  background: #4324ff;
}
.header-download:not(.is-current-platform) {
  display: none;
}
.header-buy {
  background: #ff5a27;
}
.header-buy:hover {
  background: #ff4b0c;
}
.header-action-icon {
  position: absolute;
  display: block;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  transform: translateY(40px);
  transition: transform 0.25s ease;
}
.header-menu-toggle {
  display: none;
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.header-menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #111;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 1080px) {
  .header-inner {
    max-width: none;
  }
  .header-nav {
    gap: 28px;
  }
  .header-actions {
    gap: 16px;
    margin-left: 28px;
  }
}
@media (max-width: 820px) {
  .site-header {
    border-top: 0;
  }
  .header-inner {
    position: relative;
    min-height: 56px;
  }
  .header-logo img {
    width: 110px;
  }
  .header-actions {
    gap: 13px;
    margin-left: auto;
  }
  .header-action {
    min-width: 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  .header-action-text {
    display: none;
  }
  .header-action-icon {
    position: static;
    color: #fff;
    transform: none;
    transition: none;
  }
  .header-action-icon {
    font-size: 15px;
    line-height: 1;
  }
  .header-menu-toggle {
    display: block;
    margin-left: 7px;
  }
  .header-nav {
    position: absolute;
    top: 100%;
    left: -16px;
    display: none;
    width: calc(100% + 32px);
    padding: 0 16px;
    margin: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  }
  .site-header.is-menu-open .header-nav {
    display: block;
  }
  .site-header.is-menu-open .header-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header.is-menu-open .header-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.is-menu-open .header-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .header-nav-link {
    display: block;
    padding: 0 2px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 16px;
    line-height: 58px;
  }
  .header-nav-link:last-child {
    border-bottom: 0;
  }
}
.site-footer {
  padding: 58px 0;
  background: #08081f;
  color: #fff;
}
.footer-inner {
  display: flex;
  gap: 50px;
  margin: 0 auto;
}
.footer-copyright {
  color: #F4F4FB;
  font-size: 18px;
  padding-top: 20px;
}
.footer-brand {
  flex: 1;
}
.footer-brand,
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-logo {
  display: block;
  margin-bottom: 20px;
}
.footer-logo img {
  display: block;
  width: 150px;
}
.footer-about {
  font-size: 22px;
  line-height: 1.5;
  color: #F4F4FB;
  transition: all 0.2s;
}
.footer-about:hover {
  color: #A69AFF;
}
.footer-column {
  gap: 20px;
}
.footer-link {
  color: #DFDFEE;
  font-size: 16px;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #A69AFF;
}
.footer-column .footer-column-title {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #F4F4FB;
  font-size: 18px;
  text-align: left;
}
.footer-articles-toggle {
  width: 100%;
  cursor: default;
}
.footer-column-arrow {
  display: none;
}
.footer-article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-socials {
  display: flex;
  gap: 14px;
}
.footer-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.footer-social img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.footer-social .footer-social-hover {
  opacity: 0;
}
.footer-social:hover .footer-social-default {
  opacity: 0;
}
.footer-social:hover .footer-social-hover {
  opacity: 1;
}
.footer-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 210px;
  height: 50px;
  margin-top: 2px;
  border-radius: 7px;
  background: #543FFC;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}
.footer-subscribe:hover {
  background: #4324ff;
}
.footer-subscribe-icon {
  display: block;
  width: 25px;
  object-fit: contain;
}
@media (max-width: 820px) {
  .site-footer {
    padding: 36px 0 56px;
  }
  .footer-inner {
    display: block;
    max-width: none;
  }
  .footer-brand {
    padding-bottom: 20px;
  }
  .footer-logo {
    margin-bottom: 15px;
  }
  .footer-logo img {
    width: 123px;
  }
  .footer-about {
    font-size: 18px;
  }
  .footer-column {
    display: block;
    gap: 0;
  }
  .footer-column > .footer-link,
  .footer-column > .footer-column-title {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 84px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 18px;
    line-height: 1.4;
  }
  .footer-articles-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
  }
  .footer-column-arrow {
    display: block;
    width: 7px;
    height: 7px;
    margin-right: 3px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .footer-article-list {
    display: none;
    padding: 5px 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .footer-article-list .footer-link {
    padding: 10px 0;
    font-size: 16px;
  }
  .footer-articles.is-open .footer-article-list {
    display: flex;
  }
  .footer-articles.is-open .footer-column-arrow {
    transform: rotate(135deg);
  }
  .footer-info {
    padding-top: 30px;
  }
  .footer-info > .footer-column-title {
    min-height: auto;
    margin-bottom: 15px;
    border-bottom: 0;
  }
  .footer-socials {
    margin-bottom: 20px;
  }
  .footer-subscribe {
    width: 210px;
    height: 50px;
    border-bottom: 0;
  }
}
.header-search {
  position: relative;
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.header-search-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: opacity 0.2s;
}
.header-search-icon--active {
  opacity: 0;
}
.header-search:hover .header-search-icon {
  opacity: 0;
}
.header-search:hover .header-search-icon--active {
  opacity: 1;
}
@media (max-width: 768px) {
  .header-search,
  .header-search-icon {
    width: 20px;
    height: 20px;
  }
}
body.is-download-modal-open {
  overflow: hidden;
}
[data-download-platform][hidden],
[data-buy-platform][hidden],
.mac-download-modal[hidden] {
  display: none;
}
.mac-download-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: rgba(26, 24, 38, 0.42);
}
.mac-download-dialog {
  position: relative;
  width: min(100%, 750px);
  padding: 40px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 50.5px 0 rgba(62, 62, 159, 0.21);
}
.mac-download-dialog .mac-download-title {
  color: #222;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}
.mac-download-close {
  position: absolute;
  top: 20px;
  right: 28px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.mac-download-close img {
  display: block;
  width: 100%;
  height: auto;
}
.mac-download-desc {
  margin-top: 8px;
  color: #4C4C4C;
  font-size: 18px;
  line-height: 1.6;
}
.mac-download-options {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
}
.mac-download-card {
  padding: 5px 36px 40px;
  border: 1px solid #CECAED;
  border-radius: 14px;
  background: #F9F9FC;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}
.mac-download-card:hover {
  box-shadow: 0 4px 13.4px 0 rgba(194, 194, 235, 0.35);
}
.mac-download-card .mac-download-card-title {
  margin-top: 25px;
  color: #222;
  font-size: 18px;
  font-weight: 600;
}
.mac-download-card p {
  margin-top: 12px;
  color: #747474;
  font-size: 12px;
}
.mac-download-chip {
  display: block;
  width: auto;
  height: 185px;
}
.mac-download-button {
  position: relative;
  width: 194px;
  height: 56px;
  margin: 18px auto 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #543FFC;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.mac-download-button .icon-mac {
  margin-right: 9px;
  font-size: 21px;
}
.mac-download-button-text,
.mac-download-button-icon {
  transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.22, 0.75, 0.3, 1);
}
.mac-download-button-icon {
  position: absolute;
  font-size: 30px;
  opacity: 0;
  transform: translateY(100%);
}
.mac-download-button:hover,
.mac-download-button:focus-visible {
  outline: none;
  background: #3920FF;
}
.mac-download-button:hover .mac-download-button-text,
.mac-download-button:focus-visible .mac-download-button-text {
  opacity: 0;
  transform: translateY(-100%);
}
.mac-download-button:hover .mac-download-button-icon,
.mac-download-button:focus-visible .mac-download-button-icon {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .mac-download-modal {
    padding: 16px;
    align-items: center;
  }
  .mac-download-dialog {
    width: 100%;
    padding: 36px 12px 16px;
    border-radius: 14px;
  }
  .mac-download-dialog .mac-download-title {
    font-size: 20px;
  }
  .mac-download-close {
    top: 16px;
    right: 16px;
  }
  .mac-download-desc {
    margin-top: 6px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1.4;
  }
  .mac-download-options {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mac-download-card {
    min-width: 0;
    padding: 10px 8px 14px;
  }
  .mac-download-card .mac-download-card-title {
    margin-top: 8px;
    font-size: 15px;
  }
  .mac-download-card p {
    margin-top: 5px;
    font-size: 10px;
    min-height: 27px;
  }
  .mac-download-chip {
    width: 100%;
    max-width: 118px;
    height: auto;
    margin: 0 auto;
  }
  .mac-download-button {
    width: 100%;
    max-width: 132px;
    height: 40px;
    margin-top: 10px;
    font-size: 14px;
  }
  .mac-download-button .icon-mac {
    margin-right: 5px;
    font-size: 16px;
  }
}
.back-to-top {
  --back-to-top-progress: 0%;
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 30;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s;
}
.back-to-top::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(#543ffc var(--back-to-top-progress), #fff 0);
  content: "";
}
.back-to-top.is-visible {
  opacity: 0.8;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  opacity: 1;
  filter: drop-shadow(0 6px 8.7px rgba(50, 46, 128, 0.12));
}
.back-to-top:hover .back-to-top-inner {
  background: linear-gradient(135deg, #835dff 0%, #4e34f7 100%);
}
.back-to-top:hover .back-to-top-icon {
  opacity: 0;
}
.back-to-top:hover .back-to-top-icon--white {
  opacity: 1;
}
.back-to-top-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #f1f2ff;
  transition: background 0.3s ease;
}
.back-to-top-icon {
  position: absolute;
  width: 23px;
  height: 26px;
  margin: 0;
  border: 0;
  border-radius: 0;
  transform: none;
  transition: opacity 0.3s ease;
}
.back-to-top-icon--white {
  opacity: 0;
}
@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
  .back-to-top-inner {
    width: 46px;
    height: 46px;
  }
  .back-to-top-icon {
    width: 16px;
    height: auto;
  }
}
