@font-face { font-family: "e-Ukraine"; src: url("../fonts/e-Ukraine-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "e-Ukraine"; src: url("../fonts/e-Ukraine-Medium.woff2") format("woff2");
  font-weight: 500; font-display: swap; }
@font-face { font-family: "e-Ukraine"; src: url("../fonts/e-Ukraine-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
* { font-family: "e-Ukraine", sans-serif; }

html { background-color: #191C1F; color-scheme: dark; }
body { margin: 0; background: #191C1F; color: #000; }

.ap { background: #F6F6F6; overflow-x: hidden; }
.ap__inner { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
.ap__inner--col { display: flex; flex-direction: column; }

/* --- шапка --- */
.ap__head { background: #191C1F;
  /* Контент шапки в той же зоне, что и .buy__inner/.ap__inner (1120 − 2×20 паддинга
     = 1080), и футер: края хедера/контента/футера совпадают. */
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, calc((100% - 1080px) / 2)) 16px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.ap__logo { grid-column: 2; justify-self: center; }
.ap__logo img { width: 122px; height: auto; display: block; }
/* Кнопка «назад» — в шапке слева, лого по центру: не висит над контентом. */
.ap__head .back-link { grid-column: 1; justify-self: start; margin: 0; }
.ap__head .back-link:hover { border-color: #BCE31A; box-shadow: none; transform: translateX(-3px); }
@media (max-width: 640px) {
  .ap__head .back-link { padding: 9px; gap: 0; }
  .ap__head .back-link__t { display: none; }
}

/* --- герой --- */
.ap__hero { background: #191C1F;
  background-image: radial-gradient(60% 46% at 50% 78%, rgba(188,227,26,.10) 0%, rgba(188,227,26,0) 100%);
  border-radius: 0 0 24px 24px; padding: 44px 0 56px; }
.ap__hero .ap__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.ap__text { text-align: center; }

.ap__title { color: #FFF; font-size: clamp(30px, 7vw, 40px); font-weight: 700;
  line-height: 124%; letter-spacing: -0.24px; margin: 0; text-wrap: balance; }
/* Плашка повторяет приём с главной, но с запасом снизу: у «ф» и «у» глубокие
   хвосты, при обрезке по низу они уходили бы на тёмный фон. */
.ap__mark { position: relative; z-index: 1; color: #191C1F; display: inline-block;
  transform: rotate(-2deg); padding: 0 2px; }
.ap__mark::before { content: ""; position: absolute; z-index: -1; background: #BCE31A;
  border-radius: 8px; left: -8px; right: -8px; top: -2%; bottom: -12%; }

.ap__lead { color: rgba(255,255,255,.72); font-size: 16px; line-height: 158%;
  margin: 18px auto 0; max-width: 42ch; }

.ap__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #FFF; color: #191C1F; border-radius: 500px; padding: 12px 24px 12px 20px;
  transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
/* Кнопки сторів у стані «Скоро»: помітні, але не клікабельні (застосунок ще не в сторах). */
.store--soon { position: relative; opacity: .78; pointer-events: none; }
.store__soon { position: absolute; top: -9px; right: -6px; z-index: 2;
  background: #BCE31A; color: #191C1F; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 500px; box-shadow: 0 4px 10px rgba(0, 0, 0, .28); }
.store__logo { width: 26px; height: 26px; flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store__small { font-size: 11px; color: #5B6167; }
.store__big { font-size: 17px; font-weight: 500; }

/* .52, а не .45: на темному тлі це давало 4,45 при нормі 4,5 — промах на волосину. */
.ap__note { color: rgba(255,255,255,.52); font-size: 13px; margin: 16px 0 0; }

/* --- знімок з застосунку: реальний скрін головного екрана в рамці телефона --- */
.ap__shot { display: flex; justify-content: center; flex: none; }
.phone { position: relative; width: min(288px, 74vw);
  background: linear-gradient(150deg, #2c2f33, #0c0e10 62%);
  border-radius: 46px; padding: 11px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .55), 0 6px 18px rgba(0, 0, 0, .4),
    inset 0 0 0 2px rgba(255, 255, 255, .05); }
.phone__screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: 36px;
  overflow: hidden; background: #F6F6F6; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.phone__screen img { display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; }
/* Бічні кнопки: тонкі штрихи на металевому канті, у відсотках — щоб масштабувались. */
.phone__btn { position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(#43464a, #17191b); }
.phone__btn--power  { right: -3px; top: 25%; height: 11%; }
.phone__btn--vol-up { left: -3px; top: 19%; height: 6.5%; }
.phone__btn--vol-dn { left: -3px; top: 27.5%; height: 6.5%; }

/* --- что внутри --- */
.ap__list { padding: 56px 0 64px; }
.ap__h2 { color: #191C1F; font-size: clamp(24px, 5.4vw, 34px); font-weight: 700;
  text-align: center; margin: 0 0 28px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feat { background: #FFF; border: 1px solid #EBEBEB; border-radius: 20px; padding: 22px;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 14px; row-gap: 6px; align-items: start; }
/* Було чотири емодзі (книжки, галочка, мішень, стрілки по колу). Емодзі малює
   система, тож на кожному пристрої вони різні й до стилю сайту стосунку не мають,
   а правило репозиторію їх і не дозволяє. Тепер свої контурні значки на світло-
   лаймовому квадраті — той самий штрих, що й в інших іконках сайту. */
.feat__icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px;
  background: #DDF18C; color: #3B5D08; display: inline-flex; align-items: center;
  justify-content: center; }
.feat__icon svg { width: 22px; height: 22px; display: block; }
.feat__title { color: #191C1F; font-size: 17px; font-weight: 500; }
.feat__text { color: #6C7278; font-size: 15px; line-height: 154%; }
.ap__back { color: #4E7A0B; font-size: 15px; text-align: center; margin-top: 28px; text-decoration: none; }
.ap__back:hover { text-decoration: underline; }

/* --- подвал --- */
.ap__foot { background: #191C1F; padding: 32px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.ap__legal { display: grid; gap: 12px; }
.ap__legal a { color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; }
.ap__legal a:hover { color: #BCE31A; }

/* --- десктоп: две колонки, крупнее, воздушнее --- */
@media (min-width: 1024px) {
  .ap__hero { padding: 64px 0 88px; }
  .ap__hero .ap__inner { flex-direction: row; align-items: center;
    justify-content: center; gap: 72px; }
  .ap__text { text-align: left; flex: 1 1 0; max-width: 560px; }
  .ap__title { font-size: clamp(40px, 3.4vw, 56px); }
  .ap__lead { margin-left: 0; font-size: 18px; }
  .ap__stores { justify-content: flex-start; }
  .ap__card { width: 480px; }
  .ap__list { padding: 80px 0 96px; }
  .feats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feat { padding: 26px; }
  .feat__title { font-size: 19px; }
  .feat__text { font-size: 16px; }
  .ap__legal { grid-template-columns: repeat(4, auto); justify-content: center; gap: 28px; }
}
