/* Corporate gifts, Figma 481:2231. The content is normal flow; only paper,
 * shadows and stickers overlap. Opt-in, phone-only: no tablet/desktop rules. */
@media (max-width: 430px) {
  body.phone-flow .cp-page { width: 100%; min-width: 0; }
  body.phone-flow .cp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 759px;
    max-height: none;
    padding: 233px 0 204px;
    background-image: url('../../../img/corporate/phone-flow-hero-photo-3x.png') !important;
    background-size: cover;
    background-position: center;
  }
  body.phone-flow .cp-hero__card {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    width: calc(100% - 10px);
    height: auto;
    min-height: 322px;
    margin: 0 6px 0 4px;
    padding: 33px 67px 34px;
  }
  body.phone-flow .cp-hero__title {
    display: block;
    width: 100%;
    max-width: none;
    font-size: 37px;
    line-height: .918919;
    transform: translateY(14px);
  }
  body.phone-flow .cp-hero__script {
    width: 100%;
    font-size: 52px;
    line-height: .826923;
    transform: translateY(-14px) rotate(-.93deg);
  }
  body.phone-flow .cp-hero__sub {
    width: calc(100% + 60px);
    max-width: none;
    font-size: 15px;
    line-height: 14px;
    margin: 20px 0 0 -20px;
  }
  body.phone-flow .cp-hero__sub > span { min-width: 0; }
  body.phone-flow .cp-hero__cta {
    width: calc(100% + 8px);
    min-width: 0;
    height: auto;
    min-height: 46px;
    margin: 41px 0 0 -1px;
    padding: 14px 10px;
    font-size: 12px;
  }
  body.phone-flow :is(.cp-hero__sticker--gift, .cp-hero__sticker--love) {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
  }
  body.phone-flow .cp-hero__sticker--gift {
    align-self: end;
    justify-self: end;
    width: 121.667px;
    height: 116px;
    margin: 0 25.33px -60px 0;
    content: url('../../../img/corporate/phone-flow-hero-gift-3x.png');
  }
  body.phone-flow .cp-hero__sticker--love {
    align-self: start;
    justify-self: start;
    width: 144.333px;
    height: 123.333px;
    margin: -69.23px 0 0 10.46px;
    transform: none;
    background-image: url('../../../img/corporate/phone-flow-hero-love-3x.png');
  }
  body.phone-flow .cp-hero__sticker--love span { display: none; }
  body.phone-flow .cp-page .cp-phone-copy[hidden] { display: inline; }
  body.phone-flow .cp-page .cp-wide-copy { display: none; }
  body.phone-flow .cp-features { height: auto; padding: 35px 0 60px; scroll-margin-top: 85px; }
  body.phone-flow .cp-features > .container {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0 calc(var(--phone-gutter) + 1px) 0 var(--phone-gutter);
    gap: 30px;
  }
  body.phone-flow .cp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-width: 0;
    padding: 0;
    background: none !important;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
  }
  body.phone-flow .cp-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -21px -25px -27px -21px;
    width: auto;
    height: auto;
    background: var(--corporate-paper) center / 100% 100% no-repeat;
    pointer-events: none;
  }
  body.phone-flow .cp-card--doc::before,
  body.phone-flow .cp-card--personal::before { inset: -20px -28px -28px -20px; }
  body.phone-flow .cp-card__body { width: 100%; padding: 0; min-width: 0; }
  body.phone-flow .cp-card__title {
    width: 100%;
    font-size: 37px;
    line-height: 35px;
    margin: 0 0 21px;
    text-align: center;
  }
  body.phone-flow .cp-card__text { width: 100%; font-size: 16px; line-height: 19px; text-align: center; }
  body.phone-flow .cp-card--left-tall,
  body.phone-flow .cp-card--right-tall { --corporate-paper: url('../../../img/corporate/phone-flow-paper-tall-3x.png'); }
  body.phone-flow .cp-card--left-tall .cp-card__body { padding: 62px 4.5px 0; }
  body.phone-flow .cp-card--stacked .cp-card__photo {
    display: block;
    flex: none;
    width: 100%;
    /* Бумага-подложка (::before) скруглена на 30px — фото обязано повторять
       её дугу, иначе прямые углы снимка торчат из-под скругления карточки. */
    border-radius: 0 0 30px 30px;
    background-repeat: no-repeat;
    background-position: center bottom -8px;
    background-size: calc(100% + 8px) auto;
  }
  body.phone-flow .cp-card--left-tall .cp-card__photo {
    aspect-ratio: 379 / 405;
    margin-top: 50px;
    background-image: url('../../../img/corporate/phone-flow-left-photo-3x.png') !important;
  }
  body.phone-flow .cp-card__icon--gift-sm {
    position: absolute;
    top: auto;
    bottom: 358px;
    width: 77.667px;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    content: url('../../../img/corporate/phone-flow-gift-icon-3x.png');
  }
  body.phone-flow .cp-card--red { --corporate-paper: url('../../../img/corporate/phone-flow-red-paper-3x.png'); padding: 64.92px 34px 118.08px; }
  body.phone-flow .cp-card--red::before {
    inset: -8px -12px -12px -8px;
    /* Nine-slice keeps the star ribbon below growing copy, instead of
     * stretching its Y position through the paragraph on small phones. */
    background: none;
    border-image: url('../../../img/corporate/phone-flow-red-paper-3x.png') 150 150 330 150 fill / 50px 50px 110px 50px stretch;
  }
  body.phone-flow .cp-card--center-white { --corporate-paper: url('../../../img/corporate/phone-flow-paper-short-3x.png'); padding: 53.5px 8px 49.5px; }
  body.phone-flow .cp-card--center-white::after {
    content: '';
    position: absolute;
    right: -25px;
    top: -8px;
    width: 120.36px;
    height: 119.04px;
    background: url('../../../img/corporate/phone-flow-macaron-icon-3x.png') center / contain no-repeat;
    pointer-events: none;
  }
  body.phone-flow .cp-card--packaging { --corporate-paper: url('../../../img/corporate/phone-flow-orange-paper-3x.png'); padding: 61px 0 0; }
  body.phone-flow .cp-card--packaging::before { inset: -8px -12px -9.965px -8px; }
  body.phone-flow .cp-card--packaging .cp-card__body { padding: 0 29.5px; }
  body.phone-flow .cp-card--packaging .cp-card__text { width: min(100%, 288px); margin: auto; }
  body.phone-flow .cp-card__packaging-box {
    position: relative;
    inset: auto;
    flex: none;
    width: min(100%, 294.554px);
    height: auto;
    margin: -24px 0 0;
    transform: none;
    content: url('../../../img/corporate/phone-flow-packaging-3x.png');
  }
  body.phone-flow .cp-card--doc { --corporate-paper: url('../../../img/corporate/phone-flow-paper-doc.svg'); padding: 60px 4.5px; margin-top: .8px; }
  body.phone-flow .cp-card__icon--doc {
    width: 92.667px;
    height: 96.667px;
    object-fit: contain;
    aspect-ratio: auto;
    margin: -7px auto 19.333px;
    content: url('../../../img/corporate/phone-flow-doc-icon-3x.png');
    transform: translateX(4px);
  }
  body.phone-flow .cp-card--doc .cp-card__text { max-width: 100%; }
  body.phone-flow .cp-card--personal.cp-card--row {
    --corporate-paper: url('../../../img/corporate/phone-flow-paper-personal.svg');
    flex-direction: column-reverse;
    padding: 60px 8px 25.19px;
    gap: 16.98px;
  }
  body.phone-flow .cp-card--personal .cp-card__text strong { display: block; }
  body.phone-flow .cp-card--personal .cp-card__icon--gift-lg {
    width: 148.333px;
    height: 121.667px;
    aspect-ratio: auto;
    margin: -5px 0 -5.837px;
    transform: translate(7px, 4px) rotate(6deg);
    content: url('../../../img/corporate/phone-flow-personal-icon-3x.png');
  }
  body.phone-flow .cp-card--right-tall .cp-card__body { position: relative; z-index: 1; padding: 60px 4.5px 0; }
  body.phone-flow .cp-card--right-tall .cp-card__photo {
    position: static;
    aspect-ratio: 379 / 409;
    margin-top: 48px;
    background-image: none !important;
  }
  /* This one decorative canvas includes both the full photo and its single
     star; the real text stays above it and the card shadow stays underneath. */
  body.phone-flow .cp-card--right-tall .cp-card__photo::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 30px;
    background: url('../../../img/corporate/corporate-right-photo-phone-figma.png') center top / auto calc(100% + 8px) no-repeat;
    pointer-events: none;
  }
  body.phone-flow .cp-card__icon--macaron { display: none; }
  body.phone-flow .cp-col__cta { width: 100%; min-width: 0; height: auto; min-height: 46px; margin: 0; padding: 14px; font-size: 12px; }
}
@media (max-width: 399px) {
  body.phone-flow .cp-hero { padding-top: 233px; padding-bottom: 170px; min-height: 680px; }
  body.phone-flow .cp-hero__card { padding-inline: 36px; }
  body.phone-flow .cp-hero__sub { line-height: 18px; }
  body.phone-flow .cp-hero__sub { width: calc(100% + 23px); margin-left: -12px; }
  body.phone-flow .cp-hero__sub br { display: none; }
  body.phone-flow .cp-card--red { padding-inline: 20px; }
  body.phone-flow .cp-card--packaging .cp-card__body { padding-inline: 16px; }
  body.phone-flow .cp-card--personal .cp-card__title { font-size: 32px; }
}
