:root {
  --bg-main: #1b1c27;
  --bg-panel: #252737;
  --text-main: #f3f5fb;
  --text-muted: #afb5c8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #7c4dff;
  --accent-cyan: #4bc8ff;
  --font-main: Geneva, "Montserrat", Arial, sans-serif;
  --font-alt: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 16% 8%, rgba(76, 201, 255, 0.1), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(124, 77, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #1a1b26 0%, var(--bg-main) 100%);
}

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

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(26, 27, 38, 0.9);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  width: 220px;
  max-width: 100%;
  display: block;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  min-width: 106px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: #d6dcf2;
  font-size: 0.94rem;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  border-color: rgba(124, 77, 255, 0.72);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.42), rgba(90, 51, 217, 0.42));
  box-shadow: 0 10px 24px rgba(95, 57, 204, 0.33);
}

.hero-section {
  padding-top: 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.overlap-title {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: flex-start;
}

.title-mark {
  margin: 0;
  position: absolute;
  left: 0;
  top: -24px;
  line-height: 1;
  font-size: clamp(5.6rem, 12vw, 9.6rem);
  font-family: var(--font-main);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.overlap-text {
  margin: 0;
  position: relative;
  z-index: 2;
  padding-left: 54px;
  padding-top: 34px;
  font-family: var(--font-main);
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  letter-spacing: 0.02em;
}

.section-title .overlap-text {
  font-size: clamp(1.92rem, 3.2vw, 2.72rem);
}

.hero-description {
  margin: 16px 0 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 28px;
}

.btn-start-telegram {
  min-width: 188px;
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 700;
  background: linear-gradient(135deg, #8b5dff, #603be0);
  box-shadow: 0 12px 24px rgba(96, 59, 224, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-start-telegram svg {
  width: 21px;
  fill: #fff;
}

.btn-start-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(96, 59, 224, 0.45);
}

.preview-stage {
  border-radius: 30px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: 0 22px 42px rgba(7, 9, 16, 0.45);
  display: grid;
  justify-items: center;
  gap: 16px;
}

.phone-device {
  width: min(296px, 100%);
  border-radius: 46px;
  border: 1.8px solid #2f3246;
  background: #0f111a;
  padding: 8px 8px 11px;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.55);
}

.phone-notch {
  width: 34%;
  height: 9px;
  border-radius: 999px;
  margin: 0 auto 8px;
  background: #23283a;
}

.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: #07090f;
  aspect-ratio: 390 / 844;
}

#heroScreen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #07090f;
}

.hero-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  border-color: rgba(124, 77, 255, 0.95);
  background: rgba(124, 77, 255, 0.25);
  transform: translateY(-1px);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-dot {
  width: 48px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.slider-dot.active {
  width: 66px;
  border-color: rgba(124, 77, 255, 0.95);
  background: linear-gradient(90deg, #8d61ff, #5f39de);
}

.section-title {
  margin-bottom: 22px;
}

.section-intro {
  margin: -4px 0 26px;
  max-width: 880px;
  color: var(--text-muted);
  line-height: 1.66;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-box {
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 77, 255, 0.95);
  background: linear-gradient(160deg, rgba(124, 77, 255, 0.22), rgba(255, 255, 255, 0.03));
  box-shadow: 0 20px 32px rgba(74, 43, 190, 0.36);
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: #dce2f6;
  stroke: #dce2f6;
}

.feature-box h3 {
  margin: 0 0 10px;
  font-family: var(--font-alt);
  font-size: 1.08rem;
}

.feature-box p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.58;
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.chain-card {
  border-radius: 16px;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: 0.2s ease;
}

.chain-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 77, 255, 0.9);
  box-shadow: 0 16px 26px rgba(57, 33, 145, 0.3);
}

.chain-card p {
  margin: 12px 0 0;
  font-family: var(--font-alt);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.chain-logo {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  padding: 7px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 20, 34, 0.9);
  display: grid;
  place-items: center;
}

.chain-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.contact-section {
  padding-bottom: 90px;
}

.contact-merged {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  padding: 30px;
}

.contact-start {
  padding: 6px 8px 10px 4px;
}

.contact-start .section-title {
  margin-bottom: 14px;
}

.start-description {
  margin: 8px 0 20px;
  max-width: 470px;
  color: #d4daef;
  line-height: 1.65;
}

.contact-btn {
  min-width: 220px;
}

.contact-pane {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--bg-panel);
  padding: 24px 24px 18px;
}

.contact-heading h3 {
  margin: 0;
  font-family: var(--font-alt);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
}

.contact-heading p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.contact-form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-family: var(--font-alt);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 0 11px;
  color: #fff;
  font: inherit;
  background: transparent;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #7a5bff;
}

.btn-send {
  margin-top: 10px;
  width: 114px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 4px;
  color: #fff;
  background: transparent;
  font-family: var(--font-alt);
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-send:hover {
  border-color: rgba(124, 77, 255, 0.95);
  background: rgba(124, 77, 255, 0.2);
}

.btn-send:disabled {
  cursor: default;
  opacity: 0.95;
}

.btn-send.is-loading,
.btn-send.is-loading:hover {
  border-color: rgba(124, 77, 255, 0.95);
  background: rgba(124, 77, 255, 0.24);
}

.btn-send.is-success,
.btn-send.is-success:hover {
  border-color: #2ac66f;
  color: #2ac66f;
  background: rgba(42, 198, 111, 0.16);
}

.btn-send.is-error,
.btn-send.is-error:hover {
  border-color: #ff4d5e;
  color: #ff4d5e;
  background: rgba(255, 77, 94, 0.16);
}

.telegram-contact {
  margin: 5px 0 0;
  color: var(--text-muted);
}

.telegram-contact a {
  margin-left: 6px;
  color: #77d7ff;
  font-family: var(--font-alt);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 19, 27, 0.62);
  backdrop-filter: blur(6px);
}

.footer-light {
  padding: 22px 0 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: start;
  gap: 20px;
}

.footer-logo {
  width: 166px;
  display: block;
  opacity: 0.96;
}

.footer-col h4 {
  margin: 0 0 10px;
  color: #dfe4f4;
  font-family: var(--font-alt);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.footer-col .footer-nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #c3c9db;
  font-family: var(--font-alt);
  font-size: 0.93rem;
  line-height: 1;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  border-bottom-color: rgba(124, 77, 255, 0.85);
}

.footer-nav .legal-link {
  color: #a9b3d5;
}

.footer-bottom {
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8f98b2;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 9, 16, 0.72);
  display: grid;
  place-items: center;
  padding: 24px;
}

.legal-dialog {
  width: min(760px, calc(100vw - 34px));
  max-height: min(76vh, 760px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1f2231;
  padding: 22px 22px 18px;
  position: relative;
}

.legal-dialog h3 {
  margin: 0 0 14px;
  font-family: var(--font-alt);
  font-size: 1.35rem;
}

.legal-body {
  color: #c7cfe8;
  line-height: 1.62;
  font-size: 0.96rem;
}

.legal-body ul {
  margin: 10px 0 10px 18px;
  padding: 0;
}

.legal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 110;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 23, 35, 0.96);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.38);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner p {
  margin: 0;
  color: #c5cee8;
  line-height: 1.5;
  font-size: 0.93rem;
  max-width: 780px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font-alt);
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #e2e8ff;
}

.cookie-btn.solid {
  border: 1px solid rgba(124, 77, 255, 0.95);
  background: linear-gradient(135deg, #8b5dff, #603be0);
  color: #fff;
}

@media (max-width: 1060px) {
  .hero-grid,
  .contact-merged {
    grid-template-columns: 1fr;
  }

  .footer-light {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-stage {
    width: min(460px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1200px, calc(100% - 30px));
  }

  .section {
    padding: 78px 0;
  }

  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 8px 0;
    gap: 10px;
  }

  .brand-logo {
    width: 182px;
  }

  .nav-link {
    min-width: 78px;
    height: 36px;
    font-size: 0.88rem;
    padding: 0 8px;
  }

  .overlap-title {
    min-height: 108px;
  }

  .title-mark {
    top: -18px;
    font-size: clamp(4.2rem, 22vw, 6.4rem);
  }

  .overlap-text {
    padding-left: 36px;
    padding-top: 28px;
  }

  .slider-dot {
    width: 38px;
  }

  .slider-dot.active {
    width: 52px;
  }

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

  .contact-merged,
  .contact-pane {
    padding: 20px 16px;
  }

  .footer-logo {
    width: 150px;
  }

  .footer-nav {
    gap: 12px 14px;
  }

  .footer-light {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px 0;
  }
}
