@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Figtree:wght@400;500;600&display=swap');

:root {
  --blue: #2B44E0;
  --blue-light: #3D55F0;
  --blue-deep: #1B2AAE;
  --blue-soft: #E8ECFE;
  --ink: #14162B;
  --ink-soft: #4A4E6A;
  --muted: #6D7190;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --line: #DFE3F2;
  --purple: #8E1E8C;
  --orange: #F5A400;
  --red: #E5262A;
  --green: #139A3E;
  --grad: linear-gradient(135deg, #3D55F0 0%, #1B2AAE 100%);
  --font-head: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 76px;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(27, 42, 174, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
}

body.fixed {
  overflow: hidden;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader img {
  width: 54px;
  height: 54px;
}

html.hide .preloader {
  display: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.btn.btn-nav {
  font-size: 14px;
  padding: 10px 22px;
  gap: 8px;
  box-shadow: 0 10px 22px -12px rgba(27, 42, 174, 0.55);
}

.btn.btn-nav svg {
  width: 16px;
  height: 16px;
}

.mobile-menu-cta {
  margin-top: 14px;
}

.burger-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.burger-btn span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.burger-btn span:nth-child(1) {
  top: 15px;
}

.burger-btn span:nth-child(2) {
  top: 21px;
}

.burger-btn span:nth-child(3) {
  top: 27px;
}

.burger-btn.act span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.burger-btn.act span:nth-child(2) {
  opacity: 0;
}

.burger-btn.act span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--surface);
  padding: calc(var(--header-h) + 32px) 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu .nav-link {
  font-size: 22px;
  padding: 12px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  background: var(--grad);
  padding: 17px 36px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 22px 44px -16px rgba(27, 42, 174, 0.5);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-float {
  animation: levitate 3s ease-in-out infinite;
}

.btn-float:hover {
  animation-play-state: paused;
}

@keyframes levitate {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-title {
  font-size: 44px;
  font-weight: 800;
}

.section-mark {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
}

.section-mark i {
  width: 10px;
  height: 10px;
  display: block;
}

.section-mark i:nth-child(1) {
  background: var(--purple);
}

.section-mark i:nth-child(2) {
  background: var(--orange);
  border-radius: 50%;
}

.section-mark i:nth-child(3) {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--red);
}

.section-mark i:nth-child(4) {
  background: var(--green);
  border-radius: 2px;
  transform: rotate(45deg) scale(0.85);
}

.phone {
  position: relative;
  border-radius: 34px;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(20, 22, 43, 0.55);
}

.phone img {
  width: 100%;
  border-radius: 26px;
  background: #fff;
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 110px;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(246, 247, 251, 0.2) 0%, var(--bg) 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-title {
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-title span {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  margin-top: 26px;
  font-size: 19px;
  max-width: 540px;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-cta-note {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  min-height: 560px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px dashed rgba(43, 68, 224, 0.45);
}

.hero-visual .phone {
  width: 236px;
  flex-shrink: 0;
}

.hero-visual .phone-a {
  transform: rotate(-4deg) translateY(-18px);
}

.hero-visual .phone-b {
  transform: rotate(4deg) translateY(28px);
}

.shape {
  position: absolute;
  display: block;
  z-index: 2;
}

.shape-sq {
  width: 38px;
  height: 38px;
  background: var(--purple);
  border-radius: 4px;
}

.shape-ci {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 50%;
}

.hero-visual .s1 {
  top: 4%;
  left: 4%;
}

.hero-visual .s2 {
  top: 4%;
  right: 4%;
}

.hero-visual .s3 {
  bottom: 6%;
  left: 2%;
}

.hero-visual .s4 {
  bottom: 6%;
  right: 2%;
}

.about {
  background: var(--surface);
}

.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-visual::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--blue-soft);
  border-radius: 40px;
}

.about-visual .phone {
  width: 280px;
}

.about-text .section-title {
  margin-bottom: 26px;
}

.about-text p {
  font-size: 19px;
  line-height: 1.75;
}

.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-shot {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--blue-soft);
  display: flex;
  justify-content: center;
  padding-top: 26px;
}

.feature-shot img {
  width: 72%;
  height: auto;
  align-self: flex-start;
  border-radius: 18px 18px 0 0;
  border: 6px solid var(--ink);
  border-bottom: 0;
}

.feature-body {
  padding: 26px 24px 30px;
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 16px;
}

.how {
  background: var(--grad);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.how .container {
  position: relative;
}

.how .section-title {
  color: #fff;
}

.how-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 70px;
  align-items: center;
}

.how-inner .section-title {
  margin-bottom: 44px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  color: #fff;
  font-size: 21px;
  margin-bottom: 8px;
}

.step p {
  font-size: 16px;
}

.how-visual .phone {
  background: #0E1340;
  transform: rotate(3deg);
}

.faq {
  background: var(--surface);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}

.faq-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
}

.faq-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 16px;
}

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-copy {
  width: 100%;
  font-size: 14px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-page {
  padding: calc(var(--header-h) + 60px) 0 100px;
  background: var(--bg);
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 60px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.legal-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 28px;
}

.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 14px;
}

.legal-content h3 {
  font-size: 18px;
  margin: 26px 0 10px;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--purple);
  text-decoration-color: transparent;
}

.legal-content strong {
  color: var(--ink);
}

@media (max-width: 1024px) {
  .nav {
    gap: 26px;
  }

  .hero-title {
    font-size: 50px;
  }

  .hero-inner {
    gap: 30px;
  }

  .hero-visual .phone {
    width: 200px;
  }

  .hero-visual {
    gap: 30px;
    min-height: 480px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    gap: 50px;
  }

  .how-inner {
    grid-template-columns: 1fr 240px;
    gap: 44px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .hero {
    padding: calc(var(--header-h) + 40px) 0 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

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

  .hero-cta {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: 2;
  }

  .about-visual::before {
    width: 60%;
  }

  .about-text {
    text-align: center;
  }

  .how-inner {
    grid-template-columns: 1fr;
  }

  .how-inner .section-title {
    text-align: center;
  }

  .how-visual {
    display: flex;
    justify-content: center;
  }

  .how-visual .phone {
    width: 240px;
  }

  .legal-content {
    padding: 40px 32px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .logo img {
    height: 34px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 0;
    gap: 16px;
  }

  .hero-visual .phone {
    width: 44%;
    max-width: 180px;
    border-radius: 24px;
    padding: 6px;
  }

  .hero-visual .phone img {
    border-radius: 19px;
  }

  .shape-sq,
  .shape-ci {
    width: 26px;
    height: 26px;
  }

  .section-title {
    font-size: 30px;
  }

  .about-text p {
    font-size: 17px;
  }

  .about-visual .phone {
    width: 230px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .step-num {
    width: 50px;
    height: 50px;
    font-size: 21px;
  }

  .faq-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .legal-content {
    padding: 32px 20px;
  }

  .legal-content h1 {
    font-size: 30px;
  }
}
