/* =====================================================
   «Визиты на карте» — лендинг integrator.digital (по прототипу «Классика»).
   Все правила — внутри .vm-page, чтобы не конфликтовать со стилями шаблона Битрикс.
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Golos+Text:wght@400;500;600;700&display=swap');

:root {
   --purple:       #7048b8;
   --purple-dark:  #593694;
   --purple-pale:  #ece7f5;
   --accent:       #fba802;
   --accent-dark:  #e89700;
   --accent-text:  #2a1c06;
   --text:         #0d0a14;
   --text-muted:   #4a4459;
   --green:        #1a9b5c;
   --border:       #ece7f5;
   --font-heading: 'Manrope', 'Golos Text', Arial, sans-serif;
}

.vm-page {
   font-family: 'Golos Text', 'Open Sans', Arial, sans-serif;
   font-size: 16px;
   color: var(--text);
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
}
.vm-page *, .vm-page *::before, .vm-page *::after { box-sizing: border-box; }
.vm-page h1, .vm-page h2, .vm-page h3 { font-family: var(--font-heading); color: inherit; margin: 0; padding: 0; text-transform: none; }
.vm-page p { margin: 0; }
.vm-page img { max-width: 100%; }
.vm-page a { text-decoration: none; }
.vm-page svg { display: block; }

.vm-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.vm-section { padding: 80px 0; background: #fff; }
.vm-section--gray { background: #f8f8f8; }

.vm-eyebrow { font: 700 12px/1.4 var(--font-heading); letter-spacing: 2px; text-transform: uppercase; color: var(--purple-dark); }
.vm-h2 { font: 800 clamp(26px, 3.2vw, 40px)/1.2 var(--font-heading); letter-spacing: -.015em; margin-top: 14px !important; text-wrap: balance; }
.vm-lead { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-top: 16px !important; }
.vm-head { text-align: center; max-width: 840px; margin: 0 auto 44px; }

/* ---- кнопки ---- */
.vm-btn {
   display: inline-flex; align-items: center; justify-content: center; gap: 8px;
   padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
   font: 800 15px/1.2 var(--font-heading); cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.vm-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-text) !important; box-shadow: 0 14px 30px rgba(251, 168, 2, .32); }
.vm-btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.vm-btn--purple { background: var(--purple); border-color: var(--purple); color: #fff !important; }
.vm-btn--purple:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.vm-btn svg { width: 16px; height: 16px; }

/* ---- иконки-плитки ---- */
.vm-tile {
   width: 56px; height: 56px; flex: none; border-radius: 16px; color: #fff; --ac: var(--accent);
   display: flex; align-items: center; justify-content: center;
   background: linear-gradient(135deg, #7048b8 0%, #2a0845 100%); box-shadow: 0 8px 18px rgba(112, 72, 184, .3);
}
.vm-tile svg { width: 30px; height: 30px; }
.vm-tile--sm { width: 52px; height: 52px; border-radius: 14px; }
.vm-tile--sm svg { width: 28px; height: 28px; }
.vm-tile--pale { width: 48px; height: 48px; border-radius: 14px; background: var(--purple-pale); color: var(--purple); box-shadow: none; }
.vm-tile--pale svg { width: 26px; height: 26px; }
.vm-tile--white { width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--purple); box-shadow: none; }
.vm-tile--white svg { width: 28px; height: 28px; }

/* ---- телефон ---- */
.vm-phone {
   width: 220px; aspect-ratio: 1206 / 2622; border-radius: 36px; background: #16111f; padding: 8px;
   box-shadow: 0 30px 70px rgba(42, 8, 69, .22), inset 0 0 0 2px #2b2337;
}
.vm-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.vm-phone--lg { width: 280px; border-radius: 42px; padding: 9px; box-shadow: 0 40px 90px rgba(42, 8, 69, .28), inset 0 0 0 2px #2b2337; }
.vm-phone--lg img { border-radius: 34px; }

/* ===================== 01 HERO ===================== */
.vm-hero { background: linear-gradient(180deg, #f8f8f8 0%, #f4f1f8 100%); padding: 60px 0 0; position: relative; }
.vm-hero__glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.vm-hero__glow::before {
   content: ''; position: absolute; top: -140px; right: -10%; width: 620px; height: 620px; border-radius: 50%;
   background: radial-gradient(circle at 30% 30%, rgba(112, 72, 184, .16), rgba(112, 72, 184, 0) 70%);
}
.vm-hero__grid { display: flex; align-items: center; flex-wrap: wrap; gap: 60px; }
.vm-hero__text { flex: 1 1 460px; min-width: 0; }
.vm-badge {
   display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1.4 var(--font-heading); letter-spacing: 2px;
   text-transform: uppercase; color: var(--purple-dark); background: var(--purple-pale); border-radius: 999px; padding: 9px 18px 9px 14px;
}
.vm-badge svg { width: 14px; height: 14px; color: var(--accent); }
.vm-hero__title { font: 800 clamp(32px, 4.2vw, 54px)/1.08 var(--font-heading) !important; letter-spacing: -.02em; margin-top: 22px !important; text-wrap: balance; }
.vm-hero__title span { color: var(--purple); }
.vm-hero__lead { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-top: 24px !important; max-width: 600px; }
.vm-hero__lead strong { color: var(--purple); font-weight: 600; }
.vm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.vm-hero__visual { flex: 0 0 auto; margin: 0 auto; position: relative; padding: 0 56px 0 40px; }
.vm-float {
   position: absolute; display: flex; align-items: center; gap: 10px; border-radius: 14px; line-height: 1.3;
}
.vm-float--dark { right: 0; top: 120px; padding: 10px 16px 10px 12px; background: var(--text); color: #fff; box-shadow: 0 14px 34px rgba(13, 10, 20, .3); --ac: var(--accent); }
.vm-float--dark svg { width: 22px; height: 22px; flex: none; }
.vm-float--dark b { display: block; font: 800 13px var(--font-heading); }
.vm-float--dark span { font-size: 12px; color: #c9c2d6; }
.vm-float--light { left: -10px; bottom: 56px; gap: 12px; padding: 10px 16px 10px 10px; background: #fff; border: 1px solid #e7e1f0; border-radius: 16px; box-shadow: 0 10px 30px rgba(49, 15, 80, .12); }
.vm-float--light img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.vm-float--light b { display: block; font: 800 14px var(--font-heading); }
.vm-float--light span { font-size: 12px; color: var(--text-muted); }

.vm-hero__cards {
   display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
   margin: 56px auto -72px; position: relative; z-index: 2;
}
.vm-hcard {
   display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; background: #fff;
   border: 1px solid #e7e1f0; box-shadow: 0 20px 44px rgba(49, 15, 80, .12); transition: transform .2s, border-color .2s;
}
.vm-hcard:hover { transform: translateY(-4px); border-color: #c9b9e6; }
.vm-hcard b { display: block; font: 800 17px/1.3 var(--font-heading); }
.vm-hcard span { display: block; font-size: 14px; line-height: 1.5; margin-top: 6px; color: var(--text-muted); }
.vm-hcard--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 20px 44px rgba(251, 168, 2, .38); }
.vm-hcard--accent:hover { border-color: var(--accent); }
.vm-hcard--accent span { color: #4a3410; }
.vm-hcard--accent .vm-tile { background: var(--accent-text); box-shadow: none; }

/* ===================== 02 ОФЛАЙН ===================== */
.vm-offline { background: linear-gradient(90.58deg, #5f3c9d -9.25%, #2a0845 111.8%); padding: 150px 0 80px; color: #fff; }
.vm-offline .vm-eyebrow { color: var(--accent); }
.vm-offline__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; }
.vm-offline__title { font: 800 clamp(28px, 3.4vw, 44px)/1.15 var(--font-heading); letter-spacing: -.015em; margin-top: 14px !important; text-wrap: balance; color: #fff; }
.vm-offline__lead { font-size: 17px; line-height: 1.7; color: #e6def5; margin-top: 18px !important; max-width: 540px; }
.vm-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.vm-glass { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.vm-glass b { display: block; font: 800 17px/1.3 var(--font-heading); }
.vm-glass span { display: block; font-size: 15px; line-height: 1.6; color: #e6def5; margin-top: 4px; }
.vm-offline__phone { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vm-offline__phone .vm-phone { box-shadow: 0 40px 90px rgba(0, 0, 0, .35), inset 0 0 0 2px #2b2337; }
.vm-offline__caption { font: 700 14px var(--font-heading); color: #e6def5; }

.vm-flow { margin-top: 64px; padding: 28px 32px; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .2); }
.vm-flow .vm-eyebrow { color: var(--purple-dark); margin-bottom: 20px; }
.vm-flow__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.vm-flow__step { display: flex; flex-direction: column; gap: 10px; }
.vm-flow__line { display: flex; align-items: center; gap: 10px; }
.vm-flow__num { width: 30px; height: 30px; border-radius: 50%; font: 800 13px/30px var(--font-heading); text-align: center; flex: none; display: flex; align-items: center; justify-content: center; }
.vm-flow__num svg { width: 14px; height: 14px; }
.vm-flow__bar { flex: 1; height: 2px; background: var(--purple-pale); }
.vm-flow__step b { font: 800 15px var(--font-heading); }
.vm-flow__step span { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.vm-flow__num--1 { background: #efedf3; color: var(--text-muted); }
.vm-flow__num--2 { background: #fff1d6; color: #9a6200; }
.vm-flow__num--3 { background: var(--purple-pale); color: var(--purple); }
.vm-flow__num--4 { background: #e3f4ea; color: var(--green); }

.vm-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.vm-mini .vm-glass { gap: 14px; padding: 22px; }
.vm-mini svg { width: 28px; height: 28px; flex: none; color: #fff; --ac: var(--accent); }
.vm-mini b { font-size: 15px; }
.vm-mini span { font-size: 14px; line-height: 1.55; }

/* ===================== 03 МОДУЛЬ ===================== */
.vm-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: center; }
.vm-checks { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.vm-check { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; }
.vm-check svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--green); }
.vm-pills { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.vm-pill {
   display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; cursor: pointer;
   border: 2px solid #ded5ef; background: #fff; color: var(--purple); font: 700 14px var(--font-heading); transition: background .2s, color .2s, border-color .2s;
}
.vm-pill svg { width: 16px; height: 16px; }
.vm-pill.is-active { background: var(--purple); border-color: var(--purple); color: #fff; }
.vm-browser { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e7e1f0; box-shadow: 0 24px 60px rgba(49, 15, 80, .12); }
.vm-browser__bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #f4f1f8; border-bottom: 1px solid var(--border); }
.vm-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ded5ef; }
.vm-browser__bar span { margin-left: 10px; font: 600 12px var(--font-heading); color: var(--text-muted); }
.vm-browser__body { aspect-ratio: 16 / 10; position: relative; background: #f7f5fb; }
.vm-browser__body [data-pane] { position: absolute; inset: 0; }
.vm-browser__body [data-pane][hidden] { display: none; }
.vm-browser__body img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
/* Заглушка, пока нет скриншота портала */
.vm-shot-stub { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font: 600 14px var(--font-heading); text-align: center; padding: 24px; }
.vm-shot-stub svg { width: 34px; height: 34px; color: #c9b9e6; }

/* ===================== 04 ПРИЛОЖЕНИЕ ===================== */
.vm-seg-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
.vm-seg { display: flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid #e7e1f0; }
.vm-seg button { padding: 10px 22px; border: none; border-radius: 999px; background: transparent; color: var(--text-muted); font: 700 14px var(--font-heading); cursor: pointer; transition: background .2s, color .2s; }
.vm-seg button.is-active { background: var(--purple); color: #fff; }
.vm-phones { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.vm-phones[hidden] { display: none; }
.vm-phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vm-phones figcaption { font: 700 15px var(--font-heading); }
.vm-phones--dark .vm-phone { background: #000; box-shadow: 0 30px 70px rgba(0, 0, 0, .3), inset 0 0 0 2px #3a2d55; }

/* ===================== 05 КОНТРОЛЬ ===================== */
.vm-cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.vm-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: 0 10px 30px rgba(49, 15, 80, .07); display: flex; flex-direction: column; gap: 16px; }
.vm-card b { display: block; font: 800 16px/1.3 var(--font-heading); margin-bottom: 8px; }
.vm-card p { font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.vm-card .vm-tile { box-shadow: 0 8px 18px rgba(112, 72, 184, .28); }

/* ===================== 06 ИНТЕГРАЦИЯ ===================== */
.vm-pipe-box { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 32px; box-shadow: 0 10px 30px rgba(49, 15, 80, .07); overflow-x: auto; }
.vm-pipe { min-width: 860px; }
.vm-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vm-stage { height: 52px; display: flex; align-items: center; padding: 0 30px 0 32px; color: #fff; font: 800 15px var(--font-heading); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); }
.vm-stage--1 { background: var(--purple); padding-left: 20px; border-radius: 12px 0 0 12px; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
.vm-stage--2 { background: var(--accent); color: var(--accent-text); }
.vm-stage--3 { background: var(--text-muted); }
.vm-stage--4 { background: var(--green); padding-right: 20px; border-radius: 0 12px 12px 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%); }
.vm-stage-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 22px; padding: 0 6px; }
.vm-stage-note { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.vm-stage-note b { color: var(--text); font-weight: 600; }
.vm-who { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 12px var(--font-heading); }
.vm-who svg { width: 12px; height: 12px; }
.vm-who--manager { background: var(--purple-pale); color: var(--purple-dark); }
.vm-who--app { background: #fff1d6; color: #9a6200; }
.vm-who--bp { background: #e3f4ea; color: var(--green); }
.vm-fails { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px dashed #ded5ef; }
.vm-fails > span:first-child { font: 700 13px var(--font-heading); color: var(--text-muted); padding: 6px 0; }
.vm-fail { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fce9e7; color: #c93a30; font: 700 13px var(--font-heading); }
.vm-fail svg { width: 12px; height: 12px; }
.vm-cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 20px; }
.vm-card--row { flex-direction: row; align-items: flex-start; padding: 24px; box-shadow: none; }
.vm-card--row b { margin-bottom: 6px; }
.vm-card--row p { line-height: 1.6; }

/* ===================== 07 УСТАНОВКА ===================== */
.vm-split--top { align-items: start; }
.vm-install { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.vm-install div { display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.vm-install i { font: normal 800 14px var(--font-heading); color: var(--accent); }
.vm-req { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 32px; box-shadow: 0 10px 30px rgba(49, 15, 80, .07); }
.vm-req__title { font: 800 18px var(--font-heading); margin-bottom: 8px; }
.vm-req__row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f1ecf8; }
.vm-req__row:last-child { border-bottom: none; padding-bottom: 0; }
.vm-req__row svg { width: 22px; height: 22px; flex: none; color: var(--purple); }
.vm-req__row b { display: block; font-weight: 600; }
.vm-req__row span { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===================== 08 СТОИМОСТЬ + ФОРМА ===================== */
.vm-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: stretch; }
.vm-price { border-radius: 24px; padding: 40px; background: linear-gradient(135deg, #5f3c9d 0%, #2a0845 100%); color: #fff; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 30px 70px rgba(42, 8, 69, .25); }
.vm-price__head { display: flex; align-items: center; gap: 14px; }
.vm-price__head img { width: 52px; height: 52px; border-radius: 14px; display: block; }
.vm-price__head b { display: block; font: 800 20px/1.2 var(--font-heading); }
.vm-price__head span { font-size: 14px; color: #e6def5; }
.vm-price__sum { font: 800 clamp(44px, 5vw, 64px)/1 var(--font-heading); letter-spacing: -.02em; }
.vm-price__sum span { color: var(--accent); }
.vm-price__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.5; }
.vm-price__list div { display: flex; gap: 12px; }
.vm-price__list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.vm-price .vm-btn { margin-top: auto; padding: 16px 30px; }
.vm-lead-box { border-radius: 24px; padding: 40px; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(49, 15, 80, .07); display: flex; flex-direction: column; scroll-margin-top: 90px; }
.vm-lead-box__title { font: 800 24px/1.25 var(--font-heading); }
.vm-lead-box__text { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin: 10px 0 24px !important; }

/* ===================== 09 FAQ ===================== */
.vm-faq { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.vm-faq__list { display: flex; flex-direction: column; gap: 12px; }
.vm-faq__item { border: 1px solid var(--border); border-radius: 18px; background: #fff; transition: border-color .2s, background .2s; }
.vm-faq__item.is-open { border-color: #c9b9e6; background: #f7f5fb; }
.vm-faq__q { width: 100%; display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: none; background: transparent; cursor: pointer; text-align: left; font: 800 17px/1.35 var(--font-heading); color: var(--text); }
.vm-faq__q span:first-child { flex: 1; }
.vm-faq__icon { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--purple-pale); color: var(--purple); display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s, color .2s; }
.vm-faq__icon svg { width: 16px; height: 16px; }
.vm-faq__item.is-open .vm-faq__icon { transform: rotate(45deg); background: var(--purple); color: #fff; }
.vm-faq__a { padding: 0 24px 22px; font-size: 15px; line-height: 1.7; color: var(--text-muted); max-width: 740px; }
.vm-faq__a[hidden] { display: none; }

/* ===================== АДАПТИВ ===================== */
@media (max-width: 760px) {
   .vm-section { padding: 56px 0; }
   .vm-wrap { padding: 0 16px; }
   .vm-hero__grid { gap: 40px; }
   .vm-hero__visual { padding: 0 24px; }
   .vm-float--dark { right: -8px; top: 60px; }
   .vm-float--light { left: -8px; bottom: 30px; }
   .vm-offline { padding: 120px 0 56px; }
   .vm-split, .vm-offline__grid, .vm-price-grid { grid-template-columns: 1fr; gap: 36px; }
   .vm-flow { padding: 22px 20px; margin-top: 40px; }
   .vm-price, .vm-lead-box { padding: 28px 22px; }
   .vm-phones { gap: 20px; }
   .vm-phones .vm-phone { width: 160px; border-radius: 28px; padding: 6px; }
   .vm-phones .vm-phone img { border-radius: 22px; }
   .vm-faq { padding: 0 16px; }
   .vm-faq__q { padding: 18px; font-size: 16px; }
   .vm-faq__a { padding: 0 18px 18px; }
}
