/* Figma 793:5774. Content determines block height; absolute positioning is
   restricted to decorative layers and the crop inside each photograph. */
.ab-love-preposition { display:contents; }
@media (max-width: 430px) {
  body.phone-flow .about-page { width:100%; min-width:0; padding:100px 0 60px; }
  body.phone-flow .about-page > .container,
  body.phone-flow .ab-team > .container { width:100%; max-width:none; height:auto; padding:0 var(--phone-gutter,25px); }
  body.phone-flow .ab-header { width:100%; height:auto; gap:11px; margin:0 0 48px; }
  body.phone-flow .ab-title { font-size:37px; }
  body.phone-flow .ab-subtitle { width:100%; max-width:350px; }
  body.phone-flow .ab-story { width:100%; height:auto; gap:39px; margin:0 0 60px -1px; }
  body.phone-flow .ab-story__col { position:relative; inset:auto; width:100%; min-width:0; padding:0; }
  body.phone-flow .ab-story__col p { font-size:16px; line-height:normal; text-wrap: pretty; }
  /* [88].1/.5 — переносы: text-wrap:pretty снимает «висячие» слова
     в описаниях, balance у заголовков. Игнорируется старыми браузерами. */
  body.phone-flow .ab-title, body.phone-flow .ab-subtitle,
  body.phone-flow .ab-feature__body, body.phone-flow .ab-feature__note,
  body.phone-flow .ab-team__name { text-wrap: pretty; }
  body.phone-flow .ab-feature__title, body.phone-flow .ab-why__title { text-wrap: balance; }
  body.phone-flow .ab-story__cta { width:100%; min-height:46px; height:auto; padding:14px 12px; white-space:normal; line-height:18px; }
  body.phone-flow .ab-story__watermark { left:calc(5.26% + 1px); width:91.58%; max-width:348px; }
  /* [175] — красная плашка должна доходить до края экрана без зазоров.
     100vw/50vw под :root{zoom} считаются от РЕАЛЬНОГО окна и сжимаются
     дважды (см. AGENTS.md) — из-за этого справа и слева оставались белые
     поля (rect left=24 right=351 при width=375 вместо 0/375). .ab-team —
     прямой потомок .about-page (не .container), поэтому у него и так нет
     горизонтальных отступов: достаточно width:100% без vw-трюка. */
  body.phone-flow .ab-team { height:auto; width:100%; margin-left:0; margin-right:0; padding:60px 0 56.45px; margin-bottom:60px; }
  body.phone-flow .ab-team__grid { position:relative; inset:auto; width:100%; margin-left:-1px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 22px; align-items:start; }
  body.phone-flow .ab-team__card { min-width:0; margin-top:11px; }
  body.phone-flow .ab-team__card:first-child { margin-top:12.56px; }
  body.phone-flow .ab-team__card:not(:first-child) { margin-top:11px; }
  body.phone-flow .ab-team__photo > img:not(.ab-team__sticker) { width:100%; height:auto; aspect-ratio:179 / 235; object-fit:cover; }
  body.phone-flow .ab-team__photo > img.ab-lazy { display:none; }
  body.phone-flow .ab-team__adaptive-photo { display:block; position:relative; width:100%; aspect-ratio:179 / 235; overflow:hidden; border-radius:4px; }
  body.phone-flow .ab-team__adaptive-photo img { position:absolute; max-width:none; width:157.214%; height:179.604%; left:-28.604%; top:-18.229%; }
  body.phone-flow .ab-team__card:nth-child(2) .ab-team__adaptive-photo img { width:179.33%; height:205.106%; left:-40.22%; top:-32.34%; }
  body.phone-flow .ab-team__card:nth-child(3) .ab-team__adaptive-photo img { width:145.81%; height:166.81%; left:-23.46%; top:-21.28%; }
  body.phone-flow .ab-team__card:nth-child(4) .ab-team__adaptive-photo img { width:180.447%; height:205.957%; left:-42.458%; top:-33.617%; }
  body.phone-flow .ab-team__info { padding-top:18px; min-height:54px; }
  body.phone-flow .ab-team__name { font-size:15px; }
  body.phone-flow .ab-team__photo > img.ab-team__sticker--hat { width:41.9%; left:67.04%; top:-47px; }
  /* [88].2 — наклейка кондитерского мешка на карточке Анны сдвинута
     правее к нижнему углу, как на макете. */
  body.phone-flow .ab-team__photo > img.ab-team__sticker--carrot { width:36.31%; left:78%; top:58%; }
  body.phone-flow .ab-team__title { position:relative; inset:auto; width:100%; margin:49px 0 16px; font-size:37px; white-space:normal; }
  body.phone-flow .ab-team__more { position:relative; inset:auto; width:100%; min-height:46px; height:auto; padding:14px 12px; }
  body.phone-flow .ab-why__header { width:100%; height:auto; gap:10px; margin-bottom:48px; }
  body.phone-flow .ab-why__title { width:100%; max-width:321px; font-size:37px; line-height:43px; }
  /* [88].4 — Figma keeps «нас выбирают» on one line (267px) and leaves
     14px before the star. A 260px cap split the phrase into three lines. */
  body.phone-flow .ab-why__title { width:267px; max-width:100%; }
  /* [176] — звезда стояла выше центра нижней строки (bottom:8px давал центр
     на ~22px выше центра строки «ВЫБИРАЮТ» — замер по canvas-координатам:
     разница box.bottom−lastLine.center ≈ 21.8px при высоте псевдоэлемента
     45px, т.е. нужный bottom = 21.8 − 45/2 ≈ −1px). Проверено на 320/375/414/430
     (canvas 430 одинаков под zoom, поэтому одно значение подходит всем). */
  body.phone-flow .ab-why__title::after { left:calc(100% + 14px); right:auto; bottom:-1px; }
  body.phone-flow .ab-why__line-break { display:block; }
  body.phone-flow .ab-why__sub { width:100%; max-width:350px; }
  body.phone-flow .about-page .ab-feature,
  body.phone-flow .ab-feature--flip,
  body.phone-flow .ab-feature--tall { width:100%; height:auto; display:flex; flex-direction:column; margin-bottom:40px; }
  body.phone-flow .ab-feature:last-child { margin-bottom:0; }
  body.phone-flow .ab-feature::before { inset:0; width:100%; height:100%; background:url('../../../img/about/pass2-paper-mobile-regular.svg') center / 100% 100% no-repeat; filter:drop-shadow(4px 4px 9.5px rgba(0,0,0,.35)); }
  body.phone-flow .ab-feature--tall::before { background-image:url('../../../img/about/pass2-paper-mobile-tall.svg'); }
  body.phone-flow .ab-feature--love::before { background-image:url('../../../img/about/pass2-paper-mobile-love.svg'); }
  body.phone-flow .ab-feature__text,
  body.phone-flow .ab-feature--flip .ab-feature__text { opacity:1; pointer-events:auto; position:relative; inset:auto; width:100%; padding:54.8px 30.75px 55.46px 41.25px; }
  body.phone-flow .ab-feature--tall .ab-feature__text { padding-top:55.97px; padding-bottom:50.5px; }
  body.phone-flow .ab-feature--love .ab-feature__text { padding-bottom:62.21px; }
  body.phone-flow .ab-feature__title { max-width:none; font-size:32px; line-height:38px; margin-bottom:10px; }
  body.phone-flow .ab-feature__title span { display:block; }
  body.phone-flow .ab-feature--love .ab-feature__title > span { display:inline; }
  body.phone-flow .ab-feature--love .ab-love-preposition { display:inline; color:#401c0c; }
  body.phone-flow .ab-feature--love .ab-love-preposition::before { content:''; display:block; }
  body.phone-flow .ab-feature__body { max-width:none; font-size:16px; line-height:normal; }
  body.phone-flow .ab-feature--tall .ab-feature__body strong { font-weight:400; }
  body.phone-flow .ab-feature__note { max-width:298px; font-size:13px; line-height:normal; margin-top:34px; }
  body.phone-flow .ab-feature__img, body.phone-flow .ab-feature__texture { display:none; }
  body.phone-flow .ab-feature__mobile-img { display:block; position:relative; inset:auto; order:-1; width:100%; height:auto!important; aspect-ratio:380 / 238.75; overflow:hidden; border-radius:3px 3px 0 0; }
  body.phone-flow .ab-feature__mobile-img > img { position:absolute; width:100%; height:100%; inset:0; max-width:none; object-fit:fill; }
  body.phone-flow .ab-feature--tall .ab-feature__mobile-img { aspect-ratio:380 / 238.55; }
  body.phone-flow .ab-feature--love .ab-feature__mobile-img { aspect-ratio:380 / 239; }
  body.phone-flow .ab-feature--tall .ab-feature__mobile-img > img { width:103.63%; height:247.11%; left:-3.59%; top:-86.82%; }
  body.phone-flow .ab-feature--flip:not(.ab-feature--love) .ab-feature__mobile-img > img { height:105.53%; top:-5.51%; }
  body.phone-flow .ab-feature--love .ab-feature__mobile-img > img { height:105.93%; width:100.21%; left:-.15%; top:.03%; }
}
@media (max-width:379px) {
  body.phone-flow .ab-feature__text, body.phone-flow .ab-feature--flip .ab-feature__text { padding-left:25px; padding-right:25px; }
  body.phone-flow .ab-feature__title { font-size:28px; line-height:1.1875; }
  body.phone-flow .ab-team__grid { column-gap:16px; }
}
