/* IndexSoft site — one stylesheet for the company page and the app pages.
   Palette follows the app icons and promo banners: deep violet ground, violet accent. */
:root {
  --ink: #16132e;
  --muted: #4b4766;
  --line: #e4e1f2;
  --tint: #f5f3fc;
  --white: #ffffff;
  --accent: #5b3fe0;
  --accent-ink: #4a2fd0;
  --accent-bright: #7c5cff;
  --dark: #150f3a;
  --darker: #0e0b26;
  --on-dark: #cfc8f5;
  --on-dark-soft: #a99bff;
  --radius: 20px;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Unbounded, Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: #2e1a9e; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 10px 14px; border-radius: 10px; }
.notice { max-width: 1200px; margin: 16px auto 0; padding: 12px 24px; background: #fff1d6; border-radius: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack--xs { gap: 6px; }
.stack--lg { gap: 36px; }
.stack--xl { gap: 48px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 920px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: end; }
.split--top { align-items: start; }
.split--center { align-items: center; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.grid { display: grid; gap: 20px; padding: 0; list-style: none; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--apps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--shots { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 28px; }

.section { padding: 96px 0; position: relative; }
.section--tint { background: var(--tint); }
.dark { background: var(--dark); color: var(--white); position: relative; overflow: hidden; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow--light { color: var(--on-dark-soft); }
.h1 { font: 600 46px/1.12 var(--display); }
.h2 { font: 600 38px/1.18 var(--display); }
.h3 { font: 600 24px/1.25 var(--display); }
.lead { font-size: 18px; color: var(--muted); }
.lead--light { color: var(--on-dark); }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.link-strong { font-weight: 700; }
.accent { color: var(--on-dark-soft) !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #4a2fd0; color: var(--white); }
.btn--accent { background: var(--accent-bright); color: var(--white); }
.btn--accent:hover { background: #6a48ff; color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: #5e52a8; color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #e9e5ff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }

/* Header */
.header { background: var(--darker); border-bottom: 1px solid #2a2358; }
.header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo__mark { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; font: 700 15px var(--display); }
.logo__text { font: 600 18px var(--display); }
.header__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; font-weight: 500; }
.header__nav a:not(.btn) { color: #d9d3fa; text-decoration: none; padding: 6px 0; }
.header__nav a:not(.btn):hover, .header__nav a[aria-current] { color: var(--white); }
.header__nav .header__phone { color: var(--white) !important; font-weight: 700; }

.tabs { background: var(--tint); border-bottom: 1px solid var(--line); }
.tabs__row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
.tabs__row a { padding: 14px 14px 11px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.tabs__row a:hover { color: var(--ink); }
.tabs__row a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Decorative shapes on dark sections */
.decor { position: absolute; inset: 0; pointer-events: none; }
.decor > div { position: absolute; }
.decor svg { width: 100%; height: auto; display: block; }
.decor__line { left: -60px; bottom: -10px; width: 640px; opacity: .18; }
.decor__donut { right: -150px; top: -170px; width: 520px; opacity: .16; }
.decor__funnel { right: 34%; bottom: -70px; width: 320px; opacity: .1; }
.decor__cloud { left: 36%; top: -30px; width: 280px; opacity: .09; }
.decor__kanban { left: -70px; bottom: -90px; width: 560px; opacity: .13; }
.decor__bars { right: -60px; top: -40px; width: 460px; opacity: .14; }
.decor__card { left: 32%; top: 48px; width: 240px; opacity: .08; }
.decor__footer { right: -120px; bottom: -180px; width: 440px; opacity: .08; }
.decor__timer { right: -70px; top: -70px; width: 300px; opacity: .2; }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; }
.hero__title { font: 600 44px/1.14 var(--display); letter-spacing: -.01em; }
.hero__lede { font-size: 19px; color: var(--on-dark); max-width: 560px; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 440px; width: 100%; justify-self: center; }
.mosaic__tile { border-radius: 22px; overflow: hidden; box-shadow: 0 14px 34px rgba(5, 4, 15, .45); transition: transform .2s; }
.mosaic__tile:hover { transform: translateY(-4px); }
.mosaic__tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card--white { background: var(--white); border-color: transparent; }
.card__title { font: 600 19px/1.3 var(--display); }
.card__title--sm { font: 700 18px/1.35 var(--font); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 15px; }
.chips__label { font-weight: 700; padding-right: 6px; }
.chip { background: var(--tint); padding: 8px 14px; border-radius: 999px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; background: var(--tint); border-radius: var(--radius); padding: 32px; }
.facts__value { font: 600 36px var(--display); color: var(--accent-ink); }
.facts__label { color: var(--muted); font-size: 15px; }
.steps { counter-reset: none; }
.steps__num { font: 600 28px var(--display); color: var(--accent); }

/* Packages & licenses */
.packages { align-items: stretch; }
.package { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--white); }
.package--featured { border: 2px solid var(--accent); padding: 31px; }
.package__flag { position: absolute; top: -14px; left: 28px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.package__name { font: 600 22px var(--display); }
.package__price { font: 600 34px var(--display); }
.package__list { padding-left: 20px; color: var(--muted); font-size: 15.5px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.package__includes { list-style: none; margin-left: -20px; font-weight: 700; color: var(--ink); }
.licenses { background: var(--tint); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.licenses__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.license { background: var(--white); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.license__name { font-weight: 700; }
.license__price { font: 600 22px var(--display); padding-top: 6px; }
.license__price span { font: 500 15px var(--font); color: var(--muted); }

/* App catalogue */
.app-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.app-card:hover { color: var(--ink); border-color: #c9c0f5; box-shadow: 0 16px 40px rgba(21, 15, 58, .1); transform: translateY(-2px); }
.app-card__top { display: flex; justify-content: space-between; align-items: center; }
.app-card__icon { width: 56px; height: 56px; border-radius: 14px; }
.app-card--small .app-card__icon { width: 44px; height: 44px; border-radius: 11px; }
.app-card__name { font: 600 19px/1.3 var(--display); }
.app-card--small .app-card__name { font: 700 17px/1.35 var(--font); }
.app-card__text { color: var(--muted); font-size: 15.5px; flex-grow: 1; }
.app-card__link { color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #efedf7; color: var(--muted); }
.badge--free { background: #ddf5e9; color: #0f5a3a; }
.badge--plus { background: #e6e0ff; color: #3a22a8; }
.badge--paid { background: #fff1d6; color: #6a4a00; }

/* Form */
#form .split { align-items: start; }
.contacts { display: flex; flex-direction: column; gap: 6px; color: var(--on-dark); padding-top: 8px; }
.contacts a { color: var(--white); text-decoration: none; }
.contacts__phone { font-weight: 700; font-size: 22px; }
.form-card { background: var(--white); color: var(--ink); border-radius: 22px; padding: 28px; min-height: 420px; display: flex; flex-direction: column; gap: 14px; }
.form-card__note { margin-top: auto; }

/* App page */
.app-hero { padding-top: 72px; padding-bottom: 72px; }
.app-hero__meta { display: flex; align-items: center; gap: 16px; }
.app-hero__icon { width: 72px; height: 72px; border-radius: 18px; }
.shot { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.shot--hero { box-shadow: 0 24px 60px rgba(21, 15, 58, .2); border: none; }
.shot-figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot-figure figcaption { color: var(--muted); font-size: 15px; }
.checklist { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.price-card { border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.price-card > :not(.decor) { position: relative; }
.price-card__value { font: 600 40px var(--display); }
.price-card .btn { align-self: flex-start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--tint); border-radius: 16px; padding: 18px 22px; }
.faq__item summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq__item p { margin-top: 10px; color: var(--muted); }

/* Footer */
.footer { font-size: 15px; color: var(--on-dark); background: var(--darker); }
.footer__inner { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: var(--on-dark); text-decoration: none; }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__brand { font: 600 18px var(--display); color: var(--white); }
.footer__title { color: var(--white); font-weight: 700; }
.footer__requisites { border-top: 1px solid #2a2358; padding-top: 24px; font-size: 13.5px; color: #a39cc8; }

/* Documents */
.doc { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.doc h2 { font: 700 21px/1.35 var(--font); margin-top: 18px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc p, .doc li { color: #2f2b4a; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 64px; }
  .hero__title { font-size: 30px; }
  .h1 { font-size: 32px; }
  .h2 { font-size: 27px; }
  .facts__value { font-size: 30px; }
  .package, .licenses, .price-card { padding: 24px; }
  .header__nav { gap: 6px 18px; }
  .decor { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
