:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-soft: #f4f3f8;
  --ink: #19191f;
  --muted: #666978;
  --line: #e7e4ee;
  --violet: #5b4df2;
  --violet-dark: #3529c7;
  --violet-soft: #edeaff;
  --green: #30b977;
  --shadow: 0 22px 70px rgba(37, 31, 71, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

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

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 0 max(24px, calc((100vw - 1230px) / 2));
  border-bottom: 1px solid rgba(231, 228, 238, 0.9);
  background: rgba(251, 251, 253, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: transparent;
  background:
    radial-gradient(circle at 65% 20%, #ff8fd9 0 18%, transparent 19%),
    linear-gradient(135deg, #7f4cff, #4c5bff);
  box-shadow: 0 12px 30px rgba(91, 77, 242, 0.28);
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: #5c6070;
  font-size: 14px;
  font-weight: 750;
}

.top-nav a {
  transition: color 160ms ease;
}

.top-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  text-align: left;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(91, 77, 242, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 77, 242, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 70%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0.45;
}

.hero-glow-left {
  top: 120px;
  left: -140px;
  background: radial-gradient(circle, rgba(91, 77, 242, 0.2), transparent 68%);
}

.hero-glow-right {
  top: 40px;
  right: -110px;
  background: radial-gradient(circle, rgba(151, 106, 255, 0.24), transparent 68%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 72px;
  align-items: center;
}

.section-kicker {
  margin: 0 0 28px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(58px, 5.6vw, 82px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6654ff, #584be8);
  box-shadow: 0 18px 38px rgba(91, 77, 242, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5e4dff, #493ed5);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-secondary:hover {
  border-color: #cfcadb;
  box-shadow: 0 14px 34px rgba(37, 31, 71, 0.08);
}

.hero-card {
  position: relative;
  width: min(760px, 100%);
  margin-top: 52px;
  padding: 18px;
  border: 1px solid rgba(231, 228, 238, 0.8);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 242, 255, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.device-panel {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(231, 228, 238, 0.75);
  border-radius: 52px;
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 77, 242, 0.12), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94) 0 1px, transparent 2px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 246, 252, 0.98));
  background-size: auto, 32px 32px, auto;
  box-shadow: 0 28px 80px rgba(37, 31, 71, 0.08);
}

.device-panel::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 62% 48%, rgba(91, 77, 242, 0.04), transparent 45%);
  pointer-events: none;
}

.photo-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 246, 252, 0.98));
}

.hero-product-photo {
  position: absolute;
  inset: 18px;
  z-index: 1;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border-radius: 40px;
  object-fit: cover;
  object-position: 56% center;
  box-shadow: 0 24px 70px rgba(37, 31, 71, 0.1);
}

.device-mock {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: 176px;
  min-height: 318px;
  padding: 34px 24px 22px;
  border: 10px solid #34343a;
  border-radius: 34px;
  background:
    linear-gradient(#37373e, #222229),
    #2a2a31;
  box-shadow:
    0 34px 58px rgba(20, 19, 35, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.device-grille {
  width: 116px;
  height: 118px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(180deg, rgba(155, 135, 255, 0.55) 0 5px, transparent 5px 23px),
    linear-gradient(135deg, rgba(91, 77, 242, 0.5), rgba(20, 20, 28, 0.3));
  box-shadow: 0 0 42px rgba(91, 77, 242, 0.22) inset;
}

.device-label {
  margin-top: 64px;
  color: #8c80ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.device-slot {
  width: 56px;
  height: 6px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-card img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 20px;
}

.hero-card-note {
  position: absolute;
  right: 30px;
  bottom: 30px;
  display: grid;
  max-width: 290px;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(34, 27, 62, 0.12);
  backdrop-filter: blur(14px);
}

.hero-card-note strong {
  font-size: 15px;
}

.hero-card-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.section {
  padding: 76px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-heading h2,
.about h2,
.contacts h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.contacts p,
.about p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.step-card::before {
  position: absolute;
  top: 47px;
  left: -50%;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--line);
}

.step-card:first-child::before {
  display: none;
}

.step-card span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--violet);
  background: #fff;
  box-shadow: 0 10px 30px rgba(37, 31, 71, 0.06);
  font-size: 32px;
  font-weight: 800;
}

.step-card h3 {
  margin: 10px 0 0;
  font-size: 22px;
}

.step-card p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.channels-section {
  background: linear-gradient(180deg, #f7f6fb, var(--bg));
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.channel-card {
  position: relative;
  display: grid;
  min-height: 250px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  text-align: center;
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(37, 31, 71, 0);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.channel-button {
  width: 100%;
  color: inherit;
}

.channel-card:hover {
  border-color: #cac4df;
  box-shadow: 0 18px 54px rgba(37, 31, 71, 0.08);
  transform: translateY(-2px);
}

.channel-telegram {
  border-color: rgba(42, 171, 238, 0.24);
  background:
    radial-gradient(circle at 50% 22%, rgba(42, 171, 238, 0.13), transparent 34%),
    var(--surface);
}

.channel-telegram:hover {
  border-color: rgba(42, 171, 238, 0.42);
  box-shadow: 0 18px 54px rgba(42, 171, 238, 0.14);
}

.channel-whatsapp {
  border-color: rgba(37, 211, 102, 0.24);
  background:
    radial-gradient(circle at 50% 22%, rgba(37, 211, 102, 0.13), transparent 34%),
    var(--surface);
}

.channel-whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.42);
  box-shadow: 0 18px 54px rgba(37, 211, 102, 0.14);
}

.channel-vk {
  border-color: rgba(0, 119, 255, 0.24);
  background:
    radial-gradient(circle at 50% 22%, rgba(0, 119, 255, 0.12), transparent 34%),
    var(--surface);
}

.channel-vk:hover {
  border-color: rgba(0, 119, 255, 0.42);
  box-shadow: 0 18px 54px rgba(0, 119, 255, 0.13);
}

.channel-card strong {
  font-size: 27px;
}

.channel-card span:not(.channel-icon) {
  max-width: 180px;
  color: var(--muted);
  line-height: 1.45;
}

.channel-card em {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.channel-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
}

.channel-icon img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.help-section {
  background: linear-gradient(180deg, transparent 0, #f6f5fa 100%);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.help-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(231, 228, 238, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.help-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(91, 77, 242, 0.18);
  border-radius: 16px;
  color: var(--violet);
  background: linear-gradient(145deg, #ffffff, #f3f1ff);
  box-shadow: 0 12px 32px rgba(91, 77, 242, 0.1);
}

.help-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.help-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.help-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.about,
.contacts {
  padding: 78px 0;
  background: var(--surface);
}

.about-inner,
.contacts-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 2;
}

.about-points span {
  padding: 12px 14px;
  border-radius: 999px;
  color: #353746;
  background: var(--surface-soft);
  font-weight: 750;
}

.contacts {
  background:
    radial-gradient(circle at 18% 10%, rgba(91, 77, 242, 0.12), transparent 30%),
    #f7f6fb;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 12px;
  width: 100%;
}

.contact-btn {
  border-color: transparent;
  color: #fff;
  width: 100%;
  padding-right: 14px;
  padding-left: 14px;
}

.contact-telegram {
  background: #2aabee;
  box-shadow: 0 16px 38px rgba(42, 171, 238, 0.22);
}

.contact-telegram:hover {
  box-shadow: 0 20px 46px rgba(42, 171, 238, 0.3);
}

.contact-whatsapp {
  background: #25d366;
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.2);
}

.contact-whatsapp:hover {
  box-shadow: 0 20px 46px rgba(37, 211, 102, 0.28);
}

.contact-vk {
  background: #0077ff;
  box-shadow: 0 16px 38px rgba(0, 119, 255, 0.2);
}

.contact-vk:hover {
  box-shadow: 0 20px 46px rgba(0, 119, 255, 0.28);
}

.footer {
  padding: 56px 0 60px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.footer-brand-block {
  width: min(320px, 100%);
  justify-self: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1f9d68, #2aa7a8);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.footer-brand-block p {
  max-width: 300px;
  margin: 18px 0 22px;
  color: #171821;
  font-size: 16px;
  line-height: 1.35;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f2f2f4;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.footer-socials img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-socials a:hover {
  background: var(--violet-soft);
  transform: translateY(-1px);
}

.footer-contacts {
  width: min(320px, 100%);
  justify-self: end;
}

.footer-contacts h2 {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1;
}

.footer-contacts dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.footer-contacts dt {
  margin: 0 0 4px;
  color: #8a8c96;
  font-size: 14px;
}

.footer-contacts dd {
  margin: 0;
  color: #171821;
  font-size: 16px;
  font-weight: 750;
}

.footer-contacts a {
  transition: color 160ms ease;
}

.footer-contacts a:hover {
  color: var(--violet);
}

.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(400px, calc(100vw - 48px));
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cookie button {
  min-height: 44px;
  min-width: 118px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #6654ff, #584be8);
  font-weight: 850;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero {
    padding-top: 86px;
  }

  .hero-inner,
  .steps-grid,
  .channel-grid,
  .help-grid,
  .about-inner,
  .contacts-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    text-align: center;
  }

  .hero-inner {
    justify-items: center;
    gap: 48px;
  }

  .hero h1,
  .hero-copy {
    max-width: 760px;
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .device-panel {
    width: min(640px, 100%);
  }

  .step-card::before {
    display: none;
  }

  .about-points {
    grid-column: auto;
  }

  .contact-actions {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand-block,
  .footer-contacts {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: min(100% - 28px, 1230px);
  }

  .site-header {
    min-height: 70px;
    padding: 0 14px;
  }

  .brand {
    gap: 9px;
    font-size: 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: 1.05;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
  }

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

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
  }

  .channel-grid,
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .channel-grid > :last-child:nth-child(odd),
  .contact-actions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .device-panel {
    min-height: 320px;
    border-radius: 28px;
  }

  .hero-product-photo {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 24px;
    object-position: 60% center;
  }

  .device-mock {
    width: 142px;
    min-height: 270px;
  }

  .device-grille {
    width: 92px;
    height: 96px;
  }

  .device-label {
    margin-top: 48px;
    font-size: 10px;
  }

  .step-card span {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .about h2,
  .contacts h2 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
  }

  .section-heading p:not(.section-kicker),
  .contacts p,
  .about p {
    font-size: 15.5px;
    line-height: 1.55;
  }

  .channel-card {
    min-height: 146px;
    gap: 10px;
    padding: 20px 10px;
    border-radius: 20px;
  }

  .channel-card strong {
    font-size: 18px;
  }

  .channel-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .channel-icon img {
    width: 48px;
    height: 48px;
  }

  .help-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .about,
  .contacts {
    padding: 48px 0;
  }

  .about-inner,
  .contacts-inner {
    gap: 28px;
  }

  .about-points span {
    padding: 10px 12px;
    font-size: 14px;
  }

  .contact-btn {
    min-height: 50px;
    padding: 0 10px;
    font-size: 14px;
  }

  .footer {
    padding: 42px 0 46px;
  }

  .footer-logo {
    min-height: 34px;
    font-size: 22px;
  }

  .cookie {
    grid-template-columns: 1fr;
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

}
