/* Inter, Oswald — SIL Open Font License 1.1 (fonts.google.com) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Фирменный стиль КБП (kbp.kz): белый фон, тёмно-синий текст, бирюзовые акценты и полосы,
   узкий заглавный Oswald для заголовков, Inter для текста. Основа — общий стиль сайтов КБП. */
:root {
  --bg: #ffffff;
  --soft: #f3f7fa;
  --tint: #e9f6f8;
  --navy: #15232e;
  --text: #253d4b;
  --muted: #586e7c;
  --line: #dde6eb;
  --teal: #00abc2;
  --teal-deep: #007583;
  --on-dark: #ffffff;
  --on-dark-muted: #b8c7d0;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.8vw, 1.6rem);
  --step-3: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.6vw, 5.2rem);
  --measure: 62ch;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); font-weight: 700; line-height: 1.05; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; margin: 0; letter-spacing: 0.005em; }
h1 em, h2 em { font-style: normal; color: var(--teal-deep); } /* контраст ≥ 4.5:1 на белом (WCAG 1.4.3) */
p { margin: 0; }

.wrap {
  width: 100%; max-width: 74rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); }

/* Шапка */
.top { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--text); }
.menu a:hover { background: var(--soft); color: var(--navy); }
.top-end { display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.product-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 0.95rem; line-height: 1.1; padding-left: 12px; border-left: 2px solid var(--teal); white-space: nowrap; }
footer .product-name { display: none; }
.logo svg { width: 178px; height: auto; }
.lang { display: flex; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.lang a, .lang span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.lang span { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.lang a:hover { border-color: var(--teal); }

/* Кнопки */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--teal-deep); color: var(--on-dark); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: var(--bg); }
.btn-ghost:hover { border-color: var(--teal); }
.btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 9px 16px; border-radius: 10px; font-size: 0.92rem; }
.btn-onDark { border-color: rgba(255, 255, 255, 0.35); color: var(--on-dark); }
.btn-onDark:hover { border-color: var(--teal); }

/* Первый экран */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }


/* Бирюзовая полоса */
.band { background: var(--teal-deep); color: var(--on-dark); }
.band .wrap { padding-block: clamp(22px, 3.5vw, 34px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.band p { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: var(--step-2); line-height: 1.15; max-width: 34ch; }
.band .cities { font-family: var(--body); text-transform: none; font-size: 0.95rem; font-weight: 500; max-width: 44ch; line-height: 1.5; }

/* Разделы */
section { padding-block: clamp(52px, 7vw, 96px); }
.alt { background: var(--soft); }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: var(--measure); }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--muted); font-size: var(--step-1); }

/* Три шага с большими цифрами */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; right: 12px; top: -14px; font-family: var(--display); font-weight: 700; font-size: 8rem; line-height: 1; color: var(--tint); z-index: 0; }
.steps li > * { position: relative; z-index: 1; }
.steps h3 { font-size: 1.45rem; padding-right: 56px; }
.steps p { color: var(--muted); }

/* Возможности */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.feature .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--teal-deep); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 1rem; }


/* Факты списком */
.long .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.long .head { margin-bottom: 0; }
.facts { display: grid; gap: 0; border-top: 2px solid var(--navy); margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); text-transform: uppercase; color: var(--navy); font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.facts dd { margin: 0; color: var(--muted); }

/* Для кого */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.who div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.who h3 { font-size: 1.15rem; }
.who p { color: var(--muted); font-size: 1rem; }

/* Вопросы */
.faq { max-width: 54rem; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: var(--measure); }

/* Финальный призыв */
.cta { background: var(--navy); color: var(--on-dark); }
.cta .wrap { padding-block: clamp(44px, 6vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta h2 { color: var(--on-dark); font-size: var(--step-3); max-width: 22ch; }
.cta h2 em { color: var(--teal); }
.cta p { color: var(--on-dark-muted); margin-top: 12px; max-width: 46ch; }
.cta .btn-primary { background: var(--teal); color: var(--navy); }
.cta .btn-primary:hover { background: var(--on-dark); }

/* Подвал */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; color: var(--muted); font-size: 0.92rem; }
footer .logo svg { width: 150px; }

@media (max-width: 1040px) { .menu { display: none; } }
@media (max-width: 960px) {
  .hero .wrap, .long .wrap { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .steps, .features, .who { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .logo svg { width: 120px; }
  .product-name { font-size: 0.78rem; white-space: normal; max-width: 9rem; }
  .btn { flex: 1 1 auto; }
  .top .btn-sm { flex: 0 0 auto; padding: 8px 12px; }
  .lang a, .lang span { padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Блоки лендинга CRM поверх base.css. Макеты экранов — в mocks.css */

/* Первый экран: текст сверху, широкий макет приложения под ним */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 46%, var(--soft) 46%, var(--soft) 100%); }
.hero .wrap { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); padding-block: clamp(36px, 5vw, 68px) clamp(40px, 5vw, 72px); }
.hero-text { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: "eye eye" "h1 lead" "h1 act" "h1 note" "badge badge"; column-gap: clamp(28px, 5vw, 72px); row-gap: 18px; align-items: end; }
.hero-text .eyebrow { grid-area: eye; }
.hero h1 { grid-area: h1; font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.3rem); align-self: start; }
.hero .lead { grid-area: lead; max-width: 44ch; }
.hero .actions { grid-area: act; }
.hero-note { grid-area: note; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.95rem; }
.hero-note svg { width: 18px; height: 18px; color: var(--teal-deep); flex: none; }
.hero-art { min-width: 0; }
/* Значки первого экрана: казахстанская CRM, данные в Казахстане */
.hero-badges { grid-area: badge; list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.hero-badges li:first-child { background: var(--tint); border-color: var(--teal); }
.hero-badges svg { width: 18px; height: 18px; color: var(--teal-deep); flex: none; }

/* Разделы-возможности: текст и макет рядом, через раз меняются местами */
.spot .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.spot.flip .spot-text { order: 2; }
.spot-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.spot h2 { font-size: var(--step-3); }
.spot-p { color: var(--muted); font-size: var(--step-1); max-width: 46ch; }
.spot-art { min-width: 0; display: flex; justify-content: center; align-items: center; padding: clamp(20px, 4vw, 48px) clamp(14px, 3vw, 40px); border-radius: 24px; background: radial-gradient(120% 90% at 85% 0%, rgba(0, 171, 194, 0.16), transparent 60%), linear-gradient(160deg, #eaf4f7 0%, #f6fafb 100%); border: 1px solid #dde9ee; }
.alt .spot-art { background: radial-gradient(120% 90% at 15% 0%, rgba(0, 171, 194, 0.18), transparent 60%), linear-gradient(160deg, #ffffff 0%, #eef5f8 100%); }
.flist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.flist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.flist svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; margin-top: 1px; background: #e3f6ec; color: #067647; }

/* Сделано для Казахстана */
.dark-sec { background: var(--navy); color: var(--on-dark); }
.dark-sec h2 { color: var(--on-dark); }
.dark-sec h2 em { color: var(--teal); }
.dark-sec .eyebrow { color: var(--teal); }
.dark-sec .head p { color: var(--on-dark-muted); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.tiles li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.tiles li:first-child { background: rgba(0, 171, 194, 0.14); border-color: var(--teal); }
.rmark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); background: var(--teal); }
.rmark svg { width: 24px; height: 24px; }
.tiles h3 { color: var(--on-dark); font-size: 1.15rem; margin-bottom: 6px; }
.tiles p { color: var(--on-dark-muted); font-size: 0.97rem; }

/* Стоимость */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.accent { border: 2px solid var(--teal); }
.plan h3 { font-size: 1.3rem; }
.price { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); line-height: 1; }
.price small { display: block; margin-top: 8px; font-family: var(--body); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text); }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.plan li svg { width: 20px; height: 20px; color: var(--teal-deep); margin-top: 3px; }
.plan-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; max-width: var(--measure); }
.plan-note a { color: var(--teal-deep); font-weight: 600; }
.alt .who div { background: var(--bg); }

/* Подвал: исполнитель, реквизиты, документы */
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1.2fr); align-items: start; gap: 24px 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-req { font-style: normal; line-height: 1.6; max-width: 46ch; }
.foot-req a, .foot-links a { color: var(--navy); }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a:hover, .foot-req a:hover { color: var(--teal-deep); }

/* Страницы-документы: оплата и возврат, условия использования */
.doc { padding-block: clamp(40px, 7vw, 88px); }
.doc .wrap { display: flex; flex-direction: column; gap: 14px; max-width: 52rem; }
.doc h1 { font-size: var(--step-3); }
.doc .lead { max-width: var(--measure); }
.doc h2 { font-size: var(--step-2); margin-top: 18px; }
.doc p, .doc li { max-width: var(--measure); }
.doc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.doc a { color: var(--teal-deep); overflow-wrap: anywhere; }
.doc .facts { margin-top: 4px; }

/* Страница 404 */
.lost { padding-block: clamp(64px, 12vw, 140px); }
.lost .wrap { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.lost h1 { font-size: var(--step-3); }

@media (max-width: 960px) {
  .hero-text { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eye" "h1" "lead" "act" "note" "badge"; align-items: start; }
  .spot .wrap { grid-template-columns: minmax(0, 1fr); }
  .spot.flip .spot-text { order: 0; }
  .hero { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--soft) 60%, var(--soft) 100%); }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Макеты экранов CRM на лендинге: только HTML/CSS/SVG, без картинок (CSP). Все макеты — role="img" с подписью. */
:root {
  --k-bg: #eef3f6;
  --st-blue: #3b82c4;
  --st-teal: #00abc2;
  --st-amber: #e3a23b;
  --st-green: #2e9e6b;
  --shadow: 0 1px 2px rgba(21, 35, 46, 0.06), 0 18px 40px -12px rgba(21, 35, 46, 0.22);
}

/* Общие детали */
.ava { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 0.68rem; font-weight: 700; color: #fff; flex: none; letter-spacing: 0.02em; border: 2px solid #fff; }
.ava.sm { width: 22px; height: 22px; font-size: 0.6rem; border-width: 0; }
.ava.lg { width: 52px; height: 52px; font-size: 1rem; border-width: 0; }
.ava.a1 { background: #007583; } .ava.a2 { background: #6941c6; } .ava.a3 { background: #b54708; } .ava.a4 { background: #2f6fd6; }
.ava.add { background: #fff; color: var(--teal-deep); border: 1.5px dashed var(--teal); }
.ava.add svg { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { font-size: 0.72rem; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.mbtn { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; color: var(--navy); border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.mbtn svg { width: 14px; height: 14px; }
.mbtn.primary { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.mbtn.wa, .pill.wa { color: #0f6b3a; border-color: #b9e4cb; background: #ecf9f1; }
.mock { position: relative; width: 100%; max-width: 480px; font-size: 0.85rem; line-height: 1.35; color: var(--text); }
.mock b { color: var(--navy); font-weight: 600; }
.mock small { color: var(--muted); }

/* Колонка и карточки доски */
.kcol { background: var(--k-bg); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 7px; min-width: 0; border-top: 3px solid var(--line); }
.kcol.c-blue { border-top-color: var(--st-blue); } .kcol.c-teal { border-top-color: var(--st-teal); }
.kcol.c-amber { border-top-color: var(--st-amber); } .kcol.c-green { border-top-color: var(--st-green); }
.khead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; padding: 2px 4px 4px; }
.khead b { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; }
.khead span { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.kebab { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; color: var(--navy); margin-left: auto; }
.kebab svg { width: 16px; height: 16px; }
.kadd { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; color: var(--teal-deep); border: 1.5px dashed #b9d7de; border-radius: 9px; padding: 6px 8px; }
.kadd svg { width: 13px; height: 13px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: 0 1px 1px rgba(21, 35, 46, 0.04); }
.kcard > b { font-size: 0.78rem; line-height: 1.25; overflow-wrap: break-word; }
.kcard > small { font-size: 0.7rem; }
.krow { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.kcard .sum { font-weight: 700; color: var(--teal-deep); font-size: 0.76rem; white-space: nowrap; }
.task { display: inline-flex; align-items: center; gap: 4px; font-size: 0.66rem; font-weight: 600; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.task svg { width: 11px; height: 11px; stroke-width: 2.2; }
.t-over { background: #fdecea; color: #b42318; }
.t-today { background: #e3f6ec; color: #067647; }
.t-plan { background: #eef2f5; color: #3d5361; }
.t-none { background: #fff3d6; color: #7a4a00; }
.t-done { background: #e3f6ec; color: #067647; }
.kdays { font-size: 0.64rem; color: #7a4a00; font-weight: 600; }
.kcard.lift { border-color: var(--teal); box-shadow: 0 14px 26px -8px rgba(21, 35, 46, 0.28); transform: rotate(-2.5deg); animation: lift 4s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes lift { 0%, 100% { transform: rotate(-2.5deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-5px); } }

/* Окно приложения на первом экране */
.app { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 0.85rem; line-height: 1.35; color: var(--text); }
.app b { color: var(--navy); font-weight: 600; }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: #f7fafb; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #dbe3e8; }
.url { font-size: 0.72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 2px 12px; }
.app-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 400px; }
.side { background: var(--navy); color: #d7e2e8; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.org { display: flex; align-items: center; gap: 9px; padding: 4px 6px 12px; }
.org b { color: #fff; font-size: 0.82rem; }
.org-ava { width: 28px; height: 28px; border-radius: 8px; background: var(--teal); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: 0.85rem; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 0.78rem; }
.side-item svg { width: 16px; height: 16px; flex: none; }
.side-item.on { background: rgba(0, 171, 194, 0.22); color: #fff; }
.side-item.hot em { margin-left: auto; font-style: normal; font-size: 0.66rem; font-weight: 700; background: #f04438; color: #fff; border-radius: 999px; padding: 1px 7px; }
.side-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fb3bf; padding: 12px 8px 4px; }
.side-label.sep { padding: 6px 0 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin: 0 8px 6px; }
.main { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: #fbfcfd; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.main-title { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; }
.avatars { display: flex; }
.avatars .ava + .ava { margin-left: -6px; }
.main .search { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; }
.main .search svg { width: 13px; height: 13px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }

/* Доска: быстрый ввод и меню этапа */
.m-board { display: flex; flex-direction: column; gap: 12px; padding-right: 40px; }
.m-board .kcol { width: min(300px, 100%); box-shadow: var(--shadow); }
.quick { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 2px solid var(--teal); border-radius: 9px; padding: 7px 9px; font-size: 0.78rem; color: var(--navy); }
.caret::after { content: ""; display: inline-block; width: 1.5px; height: 1em; background: var(--navy); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
kbd { font-family: var(--body); font-size: 0.66rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: #f7fafb; }
.menu-pop { position: absolute; right: 0; top: 74px; width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; z-index: 3; }
.menu-pop span { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 7px; font-size: 0.76rem; color: var(--navy); }
.menu-pop span:first-child { background: var(--soft); }
.menu-pop .danger { color: #b42318; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; margin-top: 4px; }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.sw:first-of-type { margin-left: auto; }
.s1 { background: var(--st-blue); } .s2 { background: var(--st-teal); } .s3 { background: var(--st-amber); } .s4 { background: var(--st-green); }

/* Сделка: поля, следующее дело, лента */
.m-deal { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dhead { display: flex; flex-direction: column; gap: 2px; }
.dhead small { font-size: 0.72rem; }
.dhead b { font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; }
.dfields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 12px; background: var(--soft); border-radius: 10px; }
.dfields div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dfields small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.dfields b { font-size: 0.85rem; overflow-wrap: break-word; }
.next { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1.5px solid #9fdcbc; background: #f0faf4; border-radius: 12px; padding: 10px; }
.nico { width: 34px; height: 34px; border-radius: 10px; background: #067647; color: #fff; display: grid; place-items: center; }
.nico svg { width: 18px; height: 18px; }
.next div { display: flex; flex-direction: column; min-width: 0; }
.next b { font-size: 0.82rem; }
.next small { font-size: 0.7rem; color: #3d5a4a; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--line); margin-left: 10px; padding-left: 14px; }
.feed li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; margin-left: -26px; }
.feed p { font-size: 0.78rem; }
.feed small { display: block; font-size: 0.68rem; }
.feed .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); color: var(--muted); }
.feed .dot svg { width: 12px; height: 12px; stroke-width: 2.2; }
.feed .done .dot { background: #067647; border-color: #067647; color: #fff; }
.feed .sys p { color: var(--muted); }
.compose { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.compose span { font-size: 0.74rem; font-weight: 600; padding: 6px 12px; border-radius: 8px; color: var(--muted); border: 1px solid var(--line); }
.compose .on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Клиент */
.m-client { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chead { display: flex; gap: 12px; align-items: center; }
.chead div { display: flex; flex-direction: column; min-width: 0; }
.chead b { font-size: 1.02rem; }
.chead small { font-size: 0.76rem; }
.cphone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cphone .num { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-right: auto; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; border-radius: 999px; padding: 6px 12px; border: 1px solid var(--line); color: var(--navy); background: #fff; }
.pill svg { width: 14px; height: 14px; }
.dup { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: #fff8e6; border: 1px solid #f1d38f; border-radius: 10px; padding: 9px 10px; font-size: 0.76rem; color: #5c3b00; }
.dup > svg { width: 18px; height: 18px; color: #a15c00; }
.cdeals { display: flex; flex-direction: column; gap: 6px; }
.cdeals div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; }
.cdeals b { font-size: 0.8rem; }
.cdeals span { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }
.cdeals .won { color: #067647; font-weight: 600; }

/* Приглашение */
.m-invite { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mt { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; border: 1.5px solid var(--teal); border-radius: 10px; padding: 6px; }
.tag { font-size: 0.74rem; background: var(--tint); color: var(--navy); border-radius: 6px; padding: 3px 8px; }
.ph { font-size: 0.74rem; color: var(--muted); padding: 3px 4px; }
.select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.select b { font-size: 0.82rem; }
.select span { font-size: 0.72rem; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.ck { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; color: var(--muted); }
.ck.on { border-color: var(--teal-deep); color: var(--navy); background: var(--tint); }
.ck svg { width: 12px; height: 12px; color: var(--teal-deep); stroke-width: 2.4; }
.mrow { display: flex; flex-wrap: wrap; gap: 6px; }


/* Правило этапа */
.m-rule { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.rflow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rflow > svg { width: 20px; height: 20px; color: var(--teal-deep); }
.stage { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--st-amber); color: var(--navy); }
.stage.won { border-top-color: var(--st-green); }
.dialog { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dialog > b { font-size: 1rem; }
.rsub { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; margin-top: -6px; }
.rsub svg { width: 14px; height: 14px; color: var(--teal-deep); }
.input { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 0.82rem; color: var(--navy); font-weight: 600; background: #fbfcfd; }
.dialog .field:first-of-type .input { border: 2px solid var(--teal); background: #fff; }

/* Отчёт */
.m-report { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.rhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rhead b { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; }
.note { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.funnel { width: 100%; height: auto; overflow: visible; }
.flabel { fill: var(--navy); font-size: 13px; font-weight: 600; font-family: var(--body); }
.fnum { fill: #fff; font-size: 13px; font-weight: 700; font-family: var(--body); }
.fconv { fill: var(--teal-deep); font-size: 13px; font-weight: 700; font-family: var(--body); }
.fbar { transform-box: fill-box; transform-origin: left center; animation: grow 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.f0 { fill: #0b4f5a; } .f1 { fill: #0a6472; animation-delay: 0.12s; } .f2 { fill: #007583; animation-delay: 0.24s; } .f3 { fill: #1f7a4f; animation-delay: 0.36s; }
@keyframes grow { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }
.table { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tr { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.tr span:not(:first-child) { text-align: right; white-space: nowrap; }
.tr.th span { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.tr .bad { color: #b42318; font-weight: 700; }

/* Телефон и уведомление */
.m-phone { display: flex; justify-content: center; padding: 0 0 30px; }
.phone { width: 236px; background: var(--navy); border-radius: 34px; padding: 10px; box-shadow: var(--shadow); position: relative; }
.pnotch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 70px; height: 16px; border-radius: 10px; background: #0b151c; z-index: 2; }
.pscreen { background: #fbfcfd; border-radius: 26px; padding: 36px 10px 10px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.phead { display: flex; align-items: center; justify-content: space-between; }
.phead b { font-family: var(--display); text-transform: uppercase; font-size: 1rem; }
.phead svg { width: 18px; height: 18px; color: var(--navy); }
.ptabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 9px; color: var(--muted); }
.ptabs svg { width: 18px; height: 18px; }
.ptabs svg:first-child { color: var(--teal-deep); }
.bubble { position: absolute; right: 0; bottom: 0; width: min(270px, 78%); display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 11px 12px; animation: pop 0.6s 0.8s ease-out both; }
.bico { width: 32px; height: 32px; border-radius: 50%; background: var(--teal-deep); color: #fff; display: grid; place-items: center; }
.bico svg { width: 16px; height: 16px; }
.bubble b { font-size: 0.78rem; }
.bubble p { font-size: 0.76rem; margin: 1px 0 2px; }
.bubble small { font-size: 0.66rem; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Ширина экрана */
@media (max-width: 1100px) { .app-body { grid-template-columns: 170px minmax(0, 1fr); } }
@media (max-width: 860px) {
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .side { display: none; }
}
@media (max-width: 680px) {
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban .k2, .kanban .k3 { display: none; }
  .main .avatars { display: none; }
  .m-board { padding-right: 0; }
  .menu-pop { top: auto; bottom: -8px; right: 0; width: 190px; }
  .m-board { padding-bottom: 120px; }
  .m-phone { flex-direction: column; align-items: center; gap: 14px; padding: 0; }
  .bubble { position: static; width: 100%; max-width: 320px; animation: none; }
}
@media (max-width: 400px) {
  .dfields { grid-template-columns: minmax(0, 1fr); }
  .next { grid-template-columns: 34px minmax(0, 1fr); }
  .next .mbtn { grid-column: 2; justify-self: start; }
  .dup { grid-template-columns: 20px minmax(0, 1fr); }
  .dup .mbtn { grid-column: 2; justify-self: start; }
  .tr { font-size: 0.72rem; gap: 4px; }
}

/* Согласование: голоса согласующих */
.votes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.votes li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--navy); }
.votes li > svg { width: 16px; height: 16px; color: var(--muted); }
.votes li.v-ok > svg { color: #067647; }
