/* Страница приложения PROTOS SECURITY (/решения/web-app-приложения/).
   Подключается только на этой странице; классы с префиксом ap-, чтобы не пересекаться с остальным сайтом. */

/* Первый экран */
.ap-hero { padding: 0 var(--edge); }
.ap-hero__box { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r); background: var(--ink); color: #fff; }
.ap-hero__box::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(199, 0, 25, .45) 0, rgba(199, 0, 25, 0) 65%); }
.ap-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 96px); }
.ap-hero .crumbs { color: rgba(255, 255, 255, .65); }
.ap-hero .crumbs a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.ap-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 600; font-size: .95rem; }
.ap-pill .i { color: var(--red); }
.ap-pill--light { background: var(--grey); }
.ap-hero__title { font: 800 clamp(2.5rem, 6.2vw, 6rem)/.98 var(--f-head); letter-spacing: -.035em; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.ap-hero__lead { margin: 28px 0 36px; max-width: 50ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, .8); }
.ap-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); }
.ap-hero__facts li { display: flex; align-items: center; gap: 10px; }
.ap-hero__facts .i { color: var(--red); }
.ap-hero__visual { display: flex; justify-content: center; }
.ap-hero__visual img { width: min(400px, 100%); height: auto; filter: drop-shadow(0 60px 70px rgba(0, 0, 0, .6)); }
.ap-hero :focus-visible, .ap-band :focus-visible, .ap-download :focus-visible { outline-color: #fff; }

/* Кнопки магазинов */
.ap-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 170px; min-height: 60px; padding: 8px 26px; border-radius: 16px; background: #fff; color: var(--ink); line-height: 1.1; transition: transform .2s, box-shadow .2s; }
.ap-store small { font-size: .78rem; opacity: .7; }
.ap-store b { font: 800 1.25rem/1.15 var(--f-head); letter-spacing: -.01em; }
a.ap-store:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5); }
.ap-store--soon { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.ap-stores--light .ap-store { background: var(--ink); color: #fff; }
.ap-stores--light .ap-store--soon { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }

/* Возможности */
.ap-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ap-feature { padding: clamp(28px, 3vw, 40px); border-radius: var(--r); background: var(--grey); transition: background-color .25s, color .25s; }
.ap-feature .ico { margin-bottom: 28px; }
.ap-feature h3 { margin-bottom: 12px; font: 800 clamp(1.3rem, 1.9vw, 1.7rem)/1.12 var(--f-head); letter-spacing: -.02em; }
.ap-feature p { margin: 0; color: var(--muted); transition: color .25s; }
.ap-feature:hover { background: var(--ink); color: #fff; }
.ap-feature:hover p { color: rgba(255, 255, 255, .72); }

/* Экраны */
.ap-screens-wrap { overflow-x: auto; scrollbar-width: none; margin-top: -24px; padding: 24px 0 48px; scroll-snap-type: x mandatory; }
.ap-screens-wrap::-webkit-scrollbar { display: none; }
.ap-screens { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.ap-screen { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.ap-screen img { width: 100%; height: auto; margin-bottom: 22px; filter: drop-shadow(0 30px 40px rgba(21, 22, 27, .28)); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.ap-screen:hover img { transform: translateY(-8px); }
.ap-screen h3 { margin-bottom: 8px; font: 800 1.35rem/1.15 var(--f-head); letter-spacing: -.02em; }
.ap-screen p { margin: 0; color: var(--muted); }

/* Красная полоса преимуществ */
.ap-band { margin: var(--section) var(--edge) 0; padding: clamp(48px, 7vw, 110px) 0; border-radius: var(--r); background: var(--red); color: #fff; }
.ap-band__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ap-band__title { font: 800 clamp(2.4rem, 5.4vw, 5.4rem)/.98 var(--f-head); letter-spacing: -.035em; }
.ap-band__list li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); font: 700 clamp(1.15rem, 1.8vw, 1.6rem)/1.25 var(--f-head); letter-spacing: -.015em; }
.ap-band__list li:first-child { padding-top: 0; }
.ap-band__list .i { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: #fff; color: var(--red); }

/* Как начать */
.ap-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ap-step { padding: clamp(28px, 3vw, 40px); border-radius: var(--r); border: 2px solid var(--grey-2); }
.ap-step__n { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1.4rem/1 var(--f-head); }
.ap-step h3 { margin-bottom: 10px; font: 800 1.4rem/1.15 var(--f-head); letter-spacing: -.02em; }
.ap-step p { margin: 0; color: var(--muted); }
.ap-cross { margin-top: 20px; }

/* Вопросы */
.ap-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ap-head--stack { grid-template-columns: 1fr; align-items: start; }
.ap-link { color: var(--red); font-weight: 600; }
.ap-faq { border-top: 3px solid var(--ink); }
.ap-faq__item { border-bottom: 1px solid var(--line); }
.ap-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font: 700 clamp(1.1rem, 1.6vw, 1.35rem)/1.25 var(--f-head); letter-spacing: -.01em; }
.ap-faq__item summary::-webkit-details-marker { display: none; }
.ap-faq__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--grey); transition: transform .25s, background-color .25s, color .25s; }
.ap-faq__item[open] .ap-faq__icon { transform: rotate(45deg); background: var(--red); color: #fff; }
.ap-faq__item p { margin: 0; padding: 0 56px 26px 0; color: var(--muted); }

/* Скачать */
.ap-download { margin: var(--section) var(--edge) 0; border-radius: var(--r); background: var(--red); color: #fff; }
.ap-download__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.ap-download__title { font: 800 clamp(2rem, 4.4vw, 4rem)/1 var(--f-head); letter-spacing: -.03em; }
.ap-download .lead { margin: 16px 0 0; color: rgba(255, 255, 255, .9); }

/* Поддержка */
.ap-support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.ap-support .lead { margin: 22px 0 32px; }
.ap-support__contacts li { display: flex; align-items: center; gap: 14px; font-size: 1.1rem; font-weight: 600; }
.ap-support__contacts li + li { margin-top: 12px; }
.ap-support__contacts .ico { width: 44px; height: 44px; }
.ap-support__contacts a:hover { color: var(--red); }
.ap-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ap-bugform .field.is-invalid textarea { border-color: var(--red); }

/* Плавающая кнопка «Столкнулись с багом?» */
.ap-bugfab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; box-shadow: 0 18px 40px -14px rgba(199, 0, 25, .65); transition: transform .25s, opacity .25s, background-color .2s; }
.ap-bugfab:hover { background: var(--red-d); transform: translateY(-2px); }
.ap-bugfab.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

@media (max-width: 1100px) {
  .ap-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .ap-hero__grid, .ap-band__grid, .ap-faq-grid, .ap-support { grid-template-columns: 1fr; }
  .ap-hero__visual img { width: min(320px, 80%); }
  .ap-steps { grid-template-columns: 1fr; }
  .ap-screens { grid-template-columns: repeat(4, 240px); }
}
@media (max-width: 640px) {
  .ap-features { grid-template-columns: 1fr; }
  .ap-store { flex: 1 1 140px; min-width: 0; }
  .ap-faq__item p { padding-right: 0; }
  .ap-bugfab { right: 12px; bottom: 12px; padding: 12px 16px 12px 14px; font-size: .92rem; }
}
