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

:root {
  --bg: #07101e;
  --surface: #0e1a2d;
  --surface-2: #13233a;
  --line: rgba(255,255,255,.1);
  --text: #f4f7fb;
  --muted: #9bacbf;
  --accent: #4ba3ff;
  --accent-2: #63e6be;
  --telegram: #2aabee;
  --card-radius: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(46,134,222,.15), transparent 28rem),
    radial-gradient(circle at 100% 25%, rgba(99,230,190,.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.55;
}
button, select { font: inherit; }
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(7,16,30,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  font-weight: 800;
  box-shadow: 0 10px 32px rgba(75,163,255,.22);
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 11px; margin-top: -2px; }
.language-wrap { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
select {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 34px 10px 13px;
}

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
  padding: 70px 0 60px;
}
.eyebrow, .section-heading > span, .modal-copy > span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 { max-width: 720px; margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: 1.03; letter-spacing: -.055em; }
.hero-copy > p { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.primary-button { background: linear-gradient(135deg, var(--accent), #6f76ff); color: white; box-shadow: 0 14px 35px rgba(75,163,255,.22); }
.secondary-button { background: transparent; border-color: var(--line); color: var(--text); }
.hero-note { margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--accent-2); color: var(--muted); font-size: 13px; }
.hero-phone { display: flex; justify-content: center; transform: rotate(2deg); }

.phone {
  width: min(100%, 350px);
  border: 7px solid #1b283b;
  border-radius: 38px;
  overflow: hidden;
  background: #8cb2cb;
  box-shadow: 0 34px 90px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 15px 16px 12px; background: #202f41; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#5ab5ee,#5477e8); font-weight: 800; }
.phone-bar div { min-width: 0; }
.phone-bar strong { display: block; font-size: 14px; }
.phone-bar small { color: #72d390; font-size: 11px; }
.chat {
  min-height: 470px;
  padding: 18px 12px 12px;
  background-color: #789bae;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 16px 16px;
}
.message { max-width: 92%; margin-bottom: 9px; padding: 10px 12px; border-radius: 7px 15px 15px 15px; background: #182634; box-shadow: 0 2px 5px rgba(0,0,0,.15); font-size: 13px; white-space: pre-line; }
.message b { font-weight: 800; }
.message.user { margin-left: auto; border-radius: 15px 7px 15px 15px; background: #2b5278; }
.time { float: right; margin: 8px 0 -4px 10px; color: #85a1b4; font-size: 9px; }
.inline-buttons { display: grid; gap: 4px; margin: 7px -7px -5px; }
.button-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.button-row.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inline-buttons button { min-height: 34px; padding: 5px 7px; color: #55b7f3; background: rgba(59,83,104,.6); border: 0; border-radius: 7px; font-size: 11px; font-weight: 700; }
.reply-keyboard { display: grid; gap: 5px; padding: 7px; background: rgba(22,36,49,.92); }
.reply-keyboard button { min-height: 40px; padding: 5px; color: white; background: #31485d; border: 0; border-radius: 7px; font-size: 11px; }
.telegram-media { display: grid; place-items: center; min-height: 125px; margin: -10px -12px 10px; padding: 20px; color: #bfe9ff; background: linear-gradient(145deg,#07182b,#123859); border-radius: 7px 15px 0 0; font-size: 17px; font-weight: 800; letter-spacing: .08em; text-align: center; }
.phone-input { display: flex; align-items: center; gap: 8px; padding: 7px 10px 10px; background: #182634; }
.phone-input span { flex: 1; padding: 9px 12px; border-radius: 20px; background: #263746; color: #8fa2b0; font-size: 11px; }

.start-card {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  margin: 20px 0 70px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(99,230,190,.22);
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, rgba(99,230,190,.11), rgba(75,163,255,.08));
}
.start-heading > span { color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.start-heading h2 { margin: 12px 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.start-heading p { margin: 0; color: var(--muted); }
.start-flow { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: start-step; }
.start-flow li { position: relative; min-height: 74px; padding: 14px 16px 14px 64px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7,16,30,.58); counter-increment: start-step; }
.start-flow li::before { content: counter(start-step); position: absolute; left: 15px; top: 15px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #06111d; background: var(--accent-2); font-weight: 800; }
.start-flow strong, .start-flow span { display: block; }
.start-flow strong { margin-bottom: 3px; font-size: 15px; }
.start-flow span { color: var(--muted); font-size: 13px; }

.quick-nav, .guide { padding: 70px 0; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading.compact { margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); }
#quickNav { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
#quickNav a { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,26,45,.7); transition: .2s ease; }
#quickNav a:hover { transform: translateY(-3px); border-color: rgba(75,163,255,.5); }
.nav-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; color: var(--accent-2); background: rgba(99,230,190,.1); font-weight: 800; }
#quickNav a span:last-child { font-size: 13px; font-weight: 700; }

#steps { display: grid; gap: 28px; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(25px, 5vw, 55px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, rgba(19,35,58,.92), rgba(10,21,37,.88));
  overflow: hidden;
}
.step:nth-child(even) .step-copy { order: 2; }
.step:nth-child(even) .step-visual { order: 1; }
.step-number { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.step h3 { margin: 12px 0 15px; font-size: clamp(27px, 3vw, 40px); line-height: 1.12; letter-spacing: -.03em; }
.step-copy > p { color: var(--muted); font-size: 16px; }
.action-list { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; list-style: none; }
.action-list li { position: relative; padding: 13px 15px 13px 44px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,13,24,.42); font-size: 14px; }
.action-list li::before { content: attr(data-n); position: absolute; left: 12px; top: 11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(75,163,255,.14); color: var(--accent); font-size: 11px; font-weight: 800; }
.tip { margin-top: 18px; padding: 13px 15px; border-radius: 14px; color: #c9d7e5; background: rgba(99,230,190,.08); border: 1px solid rgba(99,230,190,.16); font-size: 13px; }
.step-visual { display: flex; justify-content: center; }
.step-visual .phone { width: 320px; transform: scale(.92); }
.step-visual .chat { min-height: 360px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(18px,5vw,72px); color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

#landingModal { width: min(900px, calc(100% - 24px)); padding: 0; color: var(--text); border: 1px solid var(--line); border-radius: 26px; background: #0c1728; box-shadow: 0 40px 120px rgba(0,0,0,.65); overflow: hidden; }
#landingModal::backdrop { background: rgba(2,8,18,.8); backdrop-filter: blur(8px); }
.modal-close { position: absolute; top: 13px; right: 14px; z-index: 2; width: 38px; height: 38px; color: white; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(7,16,30,.65); cursor: pointer; font-size: 22px; }
.modal-preview { min-height: 360px; background: linear-gradient(145deg,#d7f7ff,#eef3ff); color: #102037; }
.preview-browser { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; color: #758298; background: white; font-size: 10px; }
.preview-browser i { width: 8px; height: 8px; border-radius: 50%; background: #e96868; }
.preview-browser i:nth-child(2){ background:#e9b768; }.preview-browser i:nth-child(3){ background:#61c18b; }
.preview-browser span { margin-left: 10px; }
.preview-body { min-height: 316px; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.preview-tag { color: #167cb7; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.preview-body h2 { max-width: 560px; margin: 12px 0; font-size: clamp(30px,5vw,52px); line-height: 1.02; }
.preview-body p { max-width: 520px; margin: 0 0 22px; color: #617089; }
.preview-body button { padding: 13px 22px; border: 0; border-radius: 13px; color: white; background: #167cb7; font-weight: 800; }
.modal-copy { padding: 28px 34px 34px; }
.modal-copy h3 { margin: 0; font-size: 24px; }
.modal-copy p { margin-bottom: 0; color: var(--muted); }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { max-width: 620px; margin-left: auto; margin-right: auto; text-align: left; }
  .hero-phone { transform: none; }
  .start-card { grid-template-columns: 1fr; }
  #quickNav { grid-template-columns: repeat(2,1fr); }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-copy, .step:nth-child(even) .step-visual { order: initial; }
  .step-visual { margin-top: 10px; }
}

@media (max-width: 560px) {
  main { width: min(100% - 22px, 1180px); }
  .topbar { padding: 9px 12px; }
  .brand small, .language-wrap label { display: none; }
  .brand strong { font-size: 13px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 12px; }
  select { max-width: 142px; padding: 8px 24px 8px 9px; font-size: 11px; }
  .hero { padding: 42px 0 35px; gap: 35px; }
  h1 { font-size: 42px; }
  .hero-actions { display: grid; }
  .primary-button, .secondary-button { width: 100%; }
  .phone { max-width: 320px; border-width: 5px; border-radius: 30px; }
  .chat { min-height: 425px; }
  .quick-nav, .guide { padding: 45px 0; }
  #quickNav { grid-template-columns: 1fr; }
  .step { padding: 23px 14px; border-radius: 21px; }
  .step-copy { padding: 0 8px; }
  .step h3 { font-size: 29px; }
  .step-visual .phone { width: 100%; transform: none; }
  footer { flex-direction: column; padding: 22px 14px; }
  .modal-copy { padding: 24px 20px 28px; }
}
